@hhgtech/hhg-components 1.29.88 → 1.29.89

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 (459) hide show
  1. package/build/{LastPeriod-235fc10e.js → LastPeriod-c8c46da3.js} +1 -1
  2. package/build/MobileBottomNavigationIcon-efacfc0c.js +193 -0
  3. package/build/{WhatsApp-e6406d8d.js → WhatsApp-8a1d6d0c.js} +1 -1
  4. package/build/adapters.js +18 -16
  5. package/build/atoms.js +47 -45
  6. package/build/babyGrowth.js +82 -80
  7. package/build/cache.js +2 -2
  8. package/build/care.js +28 -25
  9. package/build/careBookingSearchBar.js +1594 -0
  10. package/build/careBookingSearchBarV2.js +1665 -0
  11. package/build/components.js +125 -115
  12. package/build/{constants-2d046b25.js → constants-f5c5e2ae.js} +1 -1
  13. package/build/constants.js +3 -3
  14. package/build/constantsDomainLocales.js +1 -1
  15. package/build/constantsRiskScreener.js +2 -2
  16. package/build/constantsSite.js +2 -2
  17. package/build/{core-ab09e68b.js → core-58a245c5.js} +1 -1
  18. package/build/{dataTransform-945e5f4f.js → dataTransform-9ec385e3.js} +1 -1
  19. package/build/ecom.js +4 -4
  20. package/build/editor-40386fe7.js +986 -0
  21. package/build/embeddedHeathToolCards_babyGrowth.js +22 -20
  22. package/build/embeddedHeathToolCards_babyPoop.js +18 -16
  23. package/build/embeddedHeathToolCards_babyVaccine.js +21 -19
  24. package/build/embeddedHeathToolCards_bmi_bmi.js +25 -23
  25. package/build/embeddedHeathToolCards_bmrBmr.js +25 -23
  26. package/build/embeddedHeathToolCards_dueDate_dueDate.js +21 -19
  27. package/build/embeddedHeathToolCards_ovulation_ovulation.js +21 -19
  28. package/build/embeddedHeathToolCards_pwg_pwg.js +26 -24
  29. package/build/embeddedHeathToolCards_targetHeartRate.js +27 -25
  30. package/build/esm/{LastPeriod-fcd2b5ec.js → LastPeriod-46d6c03f.js} +1 -1
  31. package/build/esm/MobileBottomNavigationIcon-ae6490d7.js +185 -0
  32. package/build/esm/{WhatsApp-2f54ed26.js → WhatsApp-ed8ce0f2.js} +1 -1
  33. package/build/esm/adapters.js +18 -16
  34. package/build/esm/atoms.js +44 -42
  35. package/build/esm/babyGrowth.js +82 -80
  36. package/build/esm/cache.js +2 -2
  37. package/build/esm/care.js +26 -23
  38. package/build/esm/careBookingSearchBar.js +1582 -0
  39. package/build/esm/careBookingSearchBarV2.js +1655 -0
  40. package/build/esm/components.js +93 -83
  41. package/build/esm/{constants-b68073ea.js → constants-e9ebe043.js} +1 -1
  42. package/build/esm/constants.js +3 -3
  43. package/build/esm/constantsDomainLocales.js +1 -1
  44. package/build/esm/constantsRiskScreener.js +2 -2
  45. package/build/esm/constantsSite.js +2 -2
  46. package/build/esm/{core-bcdf3422.js → core-6d8629c2.js} +1 -1
  47. package/build/esm/{dataTransform-c3905a10.js → dataTransform-2023858d.js} +2 -2
  48. package/build/esm/ecom.js +4 -4
  49. package/build/esm/editor-82c3d476.js +959 -0
  50. package/build/esm/embeddedHeathToolCards_babyGrowth.js +22 -20
  51. package/build/esm/embeddedHeathToolCards_babyPoop.js +18 -16
  52. package/build/esm/embeddedHeathToolCards_babyVaccine.js +21 -19
  53. package/build/esm/embeddedHeathToolCards_bmi_bmi.js +25 -23
  54. package/build/esm/embeddedHeathToolCards_bmrBmr.js +25 -23
  55. package/build/esm/embeddedHeathToolCards_dueDate_dueDate.js +21 -19
  56. package/build/esm/embeddedHeathToolCards_ovulation_ovulation.js +21 -19
  57. package/build/esm/embeddedHeathToolCards_pwg_pwg.js +26 -24
  58. package/build/esm/embeddedHeathToolCards_targetHeartRate.js +27 -25
  59. package/build/esm/{fixedBottomAdBlock-bb1a3c50.js → fixedBottomAdBlock-2af1606f.js} +26 -662
  60. package/build/esm/footer.js +20 -18
  61. package/build/esm/gAssets.js +2 -2
  62. package/build/esm/healthToolsCardWrapper.js +17 -15
  63. package/build/esm/healthToolsForm.js +33 -31
  64. package/build/esm/hooks.js +15 -15
  65. package/build/esm/i18n.js +2 -2
  66. package/build/esm/i18nV2.js +2 -2
  67. package/build/esm/{index-04146795.js → index-04ba5caa.js} +1 -1
  68. package/build/esm/{index-69c631bf.js → index-082a24ae.js} +12 -11
  69. package/build/esm/{index-478546e8.js → index-1313a7ac.js} +12 -11
  70. package/build/esm/{index-155daac5.js → index-13783871.js} +2 -2
  71. package/build/esm/{index-48fdf51c.js → index-16a4f1c7.js} +16 -15
  72. package/build/esm/{index-877a46df.js → index-19f27bd3.js} +2 -2
  73. package/build/esm/{index-8570e132.js → index-1a2bc551.js} +2 -2
  74. package/build/esm/{index-fcf9a2ce.js → index-275c8526.js} +14 -13
  75. package/build/esm/{index-0cf91429.js → index-277566f7.js} +1 -1
  76. package/build/esm/{index-67603e6c.js → index-2ac50d8f.js} +15 -14
  77. package/build/esm/{index-19a9a60d.js → index-2c4a2d31.js} +1 -1
  78. package/build/esm/{index-ef2b1e44.js → index-32a968a1.js} +6 -6
  79. package/build/esm/{index-cde1edae.js → index-346fd194.js} +21 -19
  80. package/build/esm/{index-b927d85a.js → index-38b87b21.js} +12 -11
  81. package/build/esm/{index-a7bfcfbd.js → index-46c22744.js} +6 -6
  82. package/build/esm/index-4cf37916.js +22 -0
  83. package/build/esm/{index-a715b700.js → index-4d27d02e.js} +15 -14
  84. package/build/esm/{index-9a0b3bcd.js → index-52d04cc5.js} +7 -7
  85. package/build/esm/index-538ca8aa.js +860 -0
  86. package/build/esm/{index-a2704991.js → index-57da0f13.js} +16 -88
  87. package/build/esm/{index-b4cab951.js → index-5e17f985.js} +16 -15
  88. package/build/esm/{index-83ab0594.js → index-605eed95.js} +35 -800
  89. package/build/esm/{index-5303fcd9.js → index-628c5e84.js} +2 -2
  90. package/build/esm/{index-321f0612.js → index-64b1cd5c.js} +1 -1
  91. package/build/esm/index-673fd5bd.js +1264 -0
  92. package/build/esm/{index-140ea208.js → index-70883b48.js} +17 -16
  93. package/build/esm/{index-e84f16f3.js → index-71c8b83f.js} +3 -142
  94. package/build/esm/{index-e5797070.js → index-72c269cf.js} +3 -3
  95. package/build/esm/index-7ad9db02.js +1030 -0
  96. package/build/esm/{index-17115a3b.js → index-7ca4ec53.js} +15 -14
  97. package/build/esm/{index-5a81cbdd.js → index-7decdf27.js} +1 -1
  98. package/build/esm/index-7e95ba03.js +144 -0
  99. package/build/esm/{index-11bc6557.js → index-84b3ef3d.js} +3 -3
  100. package/build/esm/{index-4e92aaf2.js → index-8b9c7b45.js} +3 -3
  101. package/build/esm/{index-63d30402.js → index-930b0a77.js} +16 -15
  102. package/build/esm/{index-2292c1f3.js → index-93c8863d.js} +2 -2
  103. package/build/esm/{index-29676661.js → index-949f771c.js} +6 -6
  104. package/build/esm/{index-7d97103f.js → index-99551970.js} +2 -2
  105. package/build/esm/{index-d3c3615e.js → index-9c268a93.js} +2 -2
  106. package/build/esm/{index-d10d5d1f.js → index-9d7d3a53.js} +4 -4
  107. package/build/esm/{index-69ca7b6a.js → index-9e220aaa.js} +2 -2
  108. package/build/esm/{index-58982ea1.js → index-a424a33d.js} +3 -3
  109. package/build/esm/{index-b23b0c82.js → index-a54b6536.js} +14 -13
  110. package/build/esm/{index-05075062.js → index-b09ced58.js} +1 -1
  111. package/build/esm/{index-1f944c2d.js → index-b5ed732f.js} +5 -5
  112. package/build/esm/{index-0e0f3ac6.js → index-b867d267.js} +1 -1
  113. package/build/esm/{index-2f06b1d8.js → index-c4b04b5f.js} +1 -1
  114. package/build/esm/{index-efdc151c.js → index-c5286b89.js} +12 -11
  115. package/build/esm/{index-2b20b8ce.js → index-cbb45a5d.js} +2 -2
  116. package/build/esm/{index-f42f0c66.js → index-d4dcfb68.js} +2 -2
  117. package/build/esm/{index-c0790cdc.js → index-dec46974.js} +20 -17
  118. package/build/esm/index-e19da15e.js +468 -0
  119. package/build/esm/{index-fbe76c43.js → index-e1d35fec.js} +7 -6
  120. package/build/esm/{index-58ed669e.js → index-e477c2a3.js} +23 -19
  121. package/build/esm/{index-7ab1ac4c.js → index-ed292946.js} +2 -2
  122. package/build/esm/index-f3f06437.js +281 -0
  123. package/build/esm/index.js +118 -98
  124. package/build/esm/index.styles-25454e9c.js +62 -0
  125. package/build/esm/interfaces/types/Subot.d.ts +3 -3
  126. package/build/esm/{labelSorting-db27bdad.js → labelSorting-27ecf45e.js} +4 -4
  127. package/build/esm/lead.js +22 -20
  128. package/build/esm/{logoIcon-6ed45e55.js → logoIcon-ef6d9e4c.js} +2 -2
  129. package/build/esm/mantine.js +24 -22
  130. package/build/esm/misc.js +18 -18
  131. package/build/esm/miscGetDynamicHealthTool.js +7 -7
  132. package/build/esm/miscGetSocialList.js +8 -8
  133. package/build/esm/miscScreenSizeContext.js +1 -1
  134. package/build/esm/mobileBottomNavigation.js +19 -0
  135. package/build/esm/mobileBottomNavigationIcon.js +10 -0
  136. package/build/esm/molecules.js +71 -64
  137. package/build/esm/moleculesArticleCard.js +85 -0
  138. package/build/esm/moleculesArticleCardV2.js +171 -0
  139. package/build/esm/navigation.js +40 -35
  140. package/build/esm/navigationLogoutPopup.js +116 -0
  141. package/build/esm/navigationProfileButton.js +43 -0
  142. package/build/esm/{normalizeLink-fcd22117.js → normalizeLink-d756e5e6.js} +1 -1
  143. package/build/esm/onboardingV2.js +27 -25
  144. package/build/esm/organisms.js +46 -41
  145. package/build/esm/post-86117110.js +267 -0
  146. package/build/esm/profileNavigation.js +441 -0
  147. package/build/esm/progressBar.js +250 -0
  148. package/build/esm/pwg.js +21 -19
  149. package/build/esm/{routing-ed745cc6.js → routing-b81b8f17.js} +1 -1
  150. package/build/esm/subot.js +29 -27
  151. package/build/esm/surveyOrPremiumBanner.js +30 -28
  152. package/build/esm/surveyQuestionCard.js +10 -10
  153. package/build/esm/{surveyThankyouCard-6fc9a327.js → surveyThankyouCard-1b30aa0b.js} +5 -5
  154. package/build/esm/together.js +53 -44
  155. package/build/esm/togetherApiUtils.js +4 -4
  156. package/build/esm/togetherAtoms.js +29 -26
  157. package/build/esm/togetherComponentGlobalContext.js +4 -4
  158. package/build/esm/togetherMolecules.js +56 -47
  159. package/build/esm/togetherMoleculesCardAuthor.js +41 -0
  160. package/build/esm/togetherMoleculesPostImagePreview.js +21 -0
  161. package/build/esm/togetherMoleculesProfileDetail.js +53 -0
  162. package/build/esm/togetherOrganisms.js +53 -44
  163. package/build/esm/togetherRichTextEditor.js +27 -0
  164. package/build/esm/togetherShareBox.js +305 -0
  165. package/build/esm/{treePopoverMenu-937ef815.js → treePopoverMenu-04ded0ef.js} +18 -17
  166. package/build/esm/types-3eb97d85.js +44 -0
  167. package/build/esm/types.js +2 -2
  168. package/build/esm/{useCategory-d239339f.js → useCategory-391ffab0.js} +5 -5
  169. package/build/esm/{useHealthToolCache-e6e0e96c.js → useHealthToolCache-931ab3ca.js} +1 -1
  170. package/build/esm/{useMantineLocale-2ece6eac.js → useMantineLocale-b29ca68b.js} +5 -5
  171. package/build/esm/{usePlacesAutocomplete-ecf31643.js → usePlacesAutocomplete-91226a4d.js} +1 -1
  172. package/build/esm/useTogetherAuthRequiredAction.js +4 -4
  173. package/build/esm/{useTranslations-160e66cc.js → useTranslations-b66d9f2b.js} +1 -1
  174. package/build/esm/utils-92e2bc22.js +206 -0
  175. package/build/esm/{utils-d78e02e6.js → utils-f4b925d7.js} +2 -2
  176. package/build/esm/{utils-3d9043fb.js → utils-f873578b.js} +4 -4
  177. package/build/esm/vaccination.js +20 -18
  178. package/build/{fixedBottomAdBlock-87988744.js → fixedBottomAdBlock-605a8692.js} +49 -691
  179. package/build/footer.js +20 -18
  180. package/build/gAssets.js +2 -2
  181. package/build/healthToolsCardWrapper.js +17 -15
  182. package/build/healthToolsForm.js +33 -31
  183. package/build/hooks.js +15 -15
  184. package/build/i18n.js +1 -1
  185. package/build/i18nV2.js +1 -1
  186. package/build/{index-6ce119f5.js → index-0afde39e.js} +2 -2
  187. package/build/{index-bac0bd08.js → index-0cb2de9d.js} +3 -3
  188. package/build/{index-84e8b355.js → index-188e2316.js} +15 -14
  189. package/build/index-1b06e81f.js +151 -0
  190. package/build/{index-fcf16e35.js → index-1cdccd4e.js} +2 -2
  191. package/build/index-27e50de1.js +478 -0
  192. package/build/{index-a688f865.js → index-32abfb15.js} +12 -11
  193. package/build/{index-a136cba7.js → index-36723718.js} +6 -6
  194. package/build/{index-9e92431c.js → index-36ba9947.js} +2 -2
  195. package/build/{index-5006f129.js → index-3c593ede.js} +6 -6
  196. package/build/{index-6c2d2f25.js → index-4bf6b5da.js} +24 -99
  197. package/build/{index-5ddda8f4.js → index-4fd69136.js} +16 -15
  198. package/build/{index-6313ec6f.js → index-526cee72.js} +6 -6
  199. package/build/{index-92e82d0d.js → index-549b9e8c.js} +1 -1
  200. package/build/{index-a6acde43.js → index-5b52b076.js} +38 -34
  201. package/build/{index-8b8263ed.js → index-5dbd317c.js} +34 -33
  202. package/build/index-5dcd87b7.js +289 -0
  203. package/build/{index-e4004288.js → index-648aac83.js} +2 -2
  204. package/build/{index-c294ccc2.js → index-6b7b4292.js} +3 -3
  205. package/build/{index-2de1a14d.js → index-6b95442c.js} +2 -2
  206. package/build/{index-9add51eb.js → index-6b9e8dda.js} +3 -3
  207. package/build/{index-b040447b.js → index-767f9ac6.js} +2 -2
  208. package/build/{index-1ebaa446.js → index-7ce45455.js} +16 -15
  209. package/build/{index-f05721a0.js → index-81ff6094.js} +7 -7
  210. package/build/{index-03834ac7.js → index-86ecfc48.js} +3 -3
  211. package/build/{index-66b34bd9.js → index-8a19ce1b.js} +96 -864
  212. package/build/{index-f3553904.js → index-8d9663db.js} +9 -8
  213. package/build/{index-227e17fd.js → index-9151d357.js} +2 -2
  214. package/build/index-922020ed.js +1045 -0
  215. package/build/{index-347a91f6.js → index-a76596ef.js} +1 -1
  216. package/build/{index-1489f027.js → index-a839c6ca.js} +3 -3
  217. package/build/{index-4dc41ef1.js → index-a8705384.js} +1 -1
  218. package/build/{index-b8620e16.js → index-aad249ab.js} +2 -2
  219. package/build/{index-92815934.js → index-af48fea3.js} +5 -5
  220. package/build/{index-ae03f378.js → index-b04c5212.js} +16 -15
  221. package/build/{index-7e8732ae.js → index-b4fd3100.js} +1 -1
  222. package/build/{index-f3f648e1.js → index-be0a9d63.js} +17 -16
  223. package/build/{index-d9559ac1.js → index-be262a50.js} +2 -2
  224. package/build/index-becfec7a.js +1307 -0
  225. package/build/index-bf3796aa.js +870 -0
  226. package/build/{index-196d4981.js → index-cc4ce0c4.js} +1 -1
  227. package/build/{index-9f995309.js → index-cd0db938.js} +34 -31
  228. package/build/{index-c016b1bb.js → index-d0610b0f.js} +14 -13
  229. package/build/{index-554ad68c.js → index-d393d57e.js} +1 -1
  230. package/build/{index-0772398f.js → index-d471ff2d.js} +1 -1
  231. package/build/{index-7024d536.js → index-d5d9ceb9.js} +15 -14
  232. package/build/{index-1245ea43.js → index-de26b5d1.js} +12 -11
  233. package/build/{index-7ca746d3.js → index-dec3abcf.js} +15 -14
  234. package/build/{index-a97a7a53.js → index-e018af91.js} +31 -29
  235. package/build/index-e8dc7fdb.js +29 -0
  236. package/build/{index-4a6c95fe.js → index-f30e56f1.js} +12 -11
  237. package/build/{index-519a6287.js → index-f6b32484.js} +12 -11
  238. package/build/{index-d39f2445.js → index-f91ed3be.js} +4 -4
  239. package/build/{index-e7b871b4.js → index-faa2908c.js} +3 -143
  240. package/build/{index-9cc21262.js → index-fbb369ff.js} +1 -1
  241. package/build/{index-f8a51099.js → index-fde11604.js} +2 -2
  242. package/build/index.js +182 -162
  243. package/build/index.styles-9031f6d6.js +65 -0
  244. package/build/interfaces/types/Subot.d.ts +3 -3
  245. package/build/{labelSorting-60b0f16a.js → labelSorting-11165c8e.js} +4 -4
  246. package/build/lead.js +22 -20
  247. package/build/{logoIcon-8e1ff0aa.js → logoIcon-f3283bfd.js} +2 -2
  248. package/build/mantine.js +20 -18
  249. package/build/misc.js +18 -18
  250. package/build/miscGetDynamicHealthTool.js +7 -7
  251. package/build/miscGetSocialList.js +8 -8
  252. package/build/miscScreenSizeContext.js +1 -1
  253. package/build/mobileBottomNavigation.js +27 -0
  254. package/build/mobileBottomNavigationIcon.js +18 -0
  255. package/build/molecules.js +76 -69
  256. package/build/moleculesArticleCard.js +93 -0
  257. package/build/moleculesArticleCardV2.js +180 -0
  258. package/build/navigation.js +40 -35
  259. package/build/navigationLogoutPopup.js +125 -0
  260. package/build/navigationProfileButton.js +51 -0
  261. package/build/onboardingV2.js +29 -27
  262. package/build/organisms.js +49 -44
  263. package/build/post-0fec66f4.js +303 -0
  264. package/build/profileNavigation.js +450 -0
  265. package/build/progressBar.js +260 -0
  266. package/build/pwg.js +21 -19
  267. package/build/{routing-d764168d.js → routing-7a9c8608.js} +1 -1
  268. package/build/subot.js +28 -26
  269. package/build/surveyOrPremiumBanner.js +30 -28
  270. package/build/surveyQuestionCard.js +10 -10
  271. package/build/{surveyThankyouCard-944ab001.js → surveyThankyouCard-db73c893.js} +5 -5
  272. package/build/together.js +77 -68
  273. package/build/togetherApiUtils.js +4 -4
  274. package/build/togetherAtoms.js +29 -26
  275. package/build/togetherComponentGlobalContext.js +4 -4
  276. package/build/togetherMolecules.js +79 -70
  277. package/build/togetherMoleculesCardAuthor.js +49 -0
  278. package/build/togetherMoleculesPostImagePreview.js +29 -0
  279. package/build/togetherMoleculesProfileDetail.js +70 -0
  280. package/build/togetherOrganisms.js +53 -44
  281. package/build/togetherRichTextEditor.js +36 -0
  282. package/build/togetherShareBox.js +314 -0
  283. package/build/{treePopoverMenu-0cbe3fd0.js → treePopoverMenu-61ebd05c.js} +18 -17
  284. package/build/types-57052089.js +52 -0
  285. package/build/types.js +2 -2
  286. package/build/{useCategory-32558796.js → useCategory-d9f73b82.js} +5 -5
  287. package/build/{useHealthToolCache-cbe4b1b4.js → useHealthToolCache-4b5bfb11.js} +1 -1
  288. package/build/{useMantineLocale-992ae094.js → useMantineLocale-cc272195.js} +5 -5
  289. package/build/{usePlacesAutocomplete-c19d396b.js → usePlacesAutocomplete-a0156f14.js} +1 -1
  290. package/build/useTogetherAuthRequiredAction.js +4 -4
  291. package/build/{useTranslations-5d28e8df.js → useTranslations-8a9fa84d.js} +1 -1
  292. package/build/{utils-1a876a51.js → utils-251b2841.js} +3 -3
  293. package/build/{utils-d3353e9c.js → utils-c29214c6.js} +2 -2
  294. package/build/utils-f47b2d2d.js +229 -0
  295. package/build/vaccination.js +24 -22
  296. package/package.json +1 -1
  297. package/build/esm/index-c7b92115.js +0 -5060
  298. package/build/esm/types-f387cdcf.js +0 -3433
  299. package/build/index-2ce324cf.js +0 -5123
  300. package/build/types-d798cef3.js +0 -3447
  301. /package/build/{BMI_BOYS.percentile.monthly-2fdec618.js → BMI_BOYS.percentile.monthly-5f29289b.js} +0 -0
  302. /package/build/{BMI_BOYS.percentile.weekly-4b1616c4.js → BMI_BOYS.percentile.weekly-53584232.js} +0 -0
  303. /package/build/{BMI_BOYS.percentile.yearly-f7761749.js → BMI_BOYS.percentile.yearly-84aaf8fb.js} +0 -0
  304. /package/build/{BMI_BOYS.zscore.monthly-6767b0d4.js → BMI_BOYS.zscore.monthly-76d7fd0e.js} +0 -0
  305. /package/build/{BMI_BOYS.zscore.weekly-5c57342b.js → BMI_BOYS.zscore.weekly-ed3d66f2.js} +0 -0
  306. /package/build/{BMI_BOYS.zscore.yearly-d970734e.js → BMI_BOYS.zscore.yearly-7e74f0e8.js} +0 -0
  307. /package/build/{BMI_GIRLS.percentile.monthly-ba4d972d.js → BMI_GIRLS.percentile.monthly-6973d8b0.js} +0 -0
  308. /package/build/{BMI_GIRLS.percentile.weekly-f73dacf3.js → BMI_GIRLS.percentile.weekly-a873a4e6.js} +0 -0
  309. /package/build/{BMI_GIRLS.percentile.yearly-a5b59a8c.js → BMI_GIRLS.percentile.yearly-e86761bb.js} +0 -0
  310. /package/build/{BMI_GIRLS.zscore.monthly-110d6823.js → BMI_GIRLS.zscore.monthly-9a12fa84.js} +0 -0
  311. /package/build/{BMI_GIRLS.zscore.weekly-cfe97ba9.js → BMI_GIRLS.zscore.weekly-5936ed5b.js} +0 -0
  312. /package/build/{BMI_GIRLS.zscore.yearly-ab4ae640.js → BMI_GIRLS.zscore.yearly-d40d8356.js} +0 -0
  313. /package/build/{ChevronDown-d37704eb.js → ChevronDown-a6775d48.js} +0 -0
  314. /package/build/{Close-1514c815.js → Close-9fa735bc.js} +0 -0
  315. /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-6c797045.js → HEAD CIRCUM_BOYS.percentile.monthly-873a839f.js} +0 -0
  316. /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-7ac501c0.js → HEAD CIRCUM_BOYS.percentile.weekly-bbe3965d.js} +0 -0
  317. /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-2999cdb8.js → HEAD CIRCUM_BOYS.percentile.yearly-645dfc78.js} +0 -0
  318. /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-7e3a78aa.js → HEAD CIRCUM_BOYS.zscore.monthly-9fe137bf.js} +0 -0
  319. /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-2ea72789.js → HEAD CIRCUM_BOYS.zscore.weekly-2ccb15fb.js} +0 -0
  320. /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-826ab425.js → HEAD CIRCUM_BOYS.zscore.yearly-48aed724.js} +0 -0
  321. /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-0f1636c1.js → HEAD CIRCUM_GIRLS.percentile.monthly-d99d6d30.js} +0 -0
  322. /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-b32da590.js → HEAD CIRCUM_GIRLS.percentile.weekly-8a49b504.js} +0 -0
  323. /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-850c4e29.js → HEAD CIRCUM_GIRLS.percentile.yearly-d747b0cd.js} +0 -0
  324. /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-f942b53a.js → HEAD CIRCUM_GIRLS.zscore.monthly-8ef18721.js} +0 -0
  325. /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-26daad32.js → HEAD CIRCUM_GIRLS.zscore.weekly-853cca20.js} +0 -0
  326. /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-0f331108.js → HEAD CIRCUM_GIRLS.zscore.yearly-4d5b2175.js} +0 -0
  327. /package/build/{HEIGHT_BOYS.percentile.monthly-6bfc3799.js → HEIGHT_BOYS.percentile.monthly-070590b8.js} +0 -0
  328. /package/build/{HEIGHT_BOYS.percentile.weekly-0ed4b053.js → HEIGHT_BOYS.percentile.weekly-56741428.js} +0 -0
  329. /package/build/{HEIGHT_BOYS.percentile.yearly-cc4c343d.js → HEIGHT_BOYS.percentile.yearly-9c81f767.js} +0 -0
  330. /package/build/{HEIGHT_BOYS.zscore.monthly-b2d384dc.js → HEIGHT_BOYS.zscore.monthly-729982c3.js} +0 -0
  331. /package/build/{HEIGHT_BOYS.zscore.weekly-b65aa792.js → HEIGHT_BOYS.zscore.weekly-ddb206fb.js} +0 -0
  332. /package/build/{HEIGHT_BOYS.zscore.yearly-0bae3840.js → HEIGHT_BOYS.zscore.yearly-5fc7ea6a.js} +0 -0
  333. /package/build/{HEIGHT_GIRLS.percentile.monthly-34960fd2.js → HEIGHT_GIRLS.percentile.monthly-8cbc8d18.js} +0 -0
  334. /package/build/{HEIGHT_GIRLS.percentile.weekly-949ca5b1.js → HEIGHT_GIRLS.percentile.weekly-7145e94f.js} +0 -0
  335. /package/build/{HEIGHT_GIRLS.percentile.yearly-4c40b714.js → HEIGHT_GIRLS.percentile.yearly-ab0e4f4e.js} +0 -0
  336. /package/build/{HEIGHT_GIRLS.zscore.monthly-a3856728.js → HEIGHT_GIRLS.zscore.monthly-b851b1d7.js} +0 -0
  337. /package/build/{HEIGHT_GIRLS.zscore.weekly-b39f321f.js → HEIGHT_GIRLS.zscore.weekly-98aef3cf.js} +0 -0
  338. /package/build/{HEIGHT_GIRLS.zscore.yearly-f50c6d58.js → HEIGHT_GIRLS.zscore.yearly-65d990f7.js} +0 -0
  339. /package/build/{Locale-e3b7ae56.js → Locale-07aceee9.js} +0 -0
  340. /package/build/{Visible-c6736a66.js → Visible-ddeaf4cc.js} +0 -0
  341. /package/build/{WEIGHT_BOYS.percentile.monthly-685aabfc.js → WEIGHT_BOYS.percentile.monthly-0ce96694.js} +0 -0
  342. /package/build/{WEIGHT_BOYS.percentile.weekly-3c1a6d2f.js → WEIGHT_BOYS.percentile.weekly-b5397f20.js} +0 -0
  343. /package/build/{WEIGHT_BOYS.percentile.yearly-2bd65c8f.js → WEIGHT_BOYS.percentile.yearly-80cccd42.js} +0 -0
  344. /package/build/{WEIGHT_BOYS.zscore.monthly-bba8cd92.js → WEIGHT_BOYS.zscore.monthly-12907f1f.js} +0 -0
  345. /package/build/{WEIGHT_BOYS.zscore.weekly-7bdc0673.js → WEIGHT_BOYS.zscore.weekly-a1af17eb.js} +0 -0
  346. /package/build/{WEIGHT_BOYS.zscore.yearly-32f635e0.js → WEIGHT_BOYS.zscore.yearly-2649ff58.js} +0 -0
  347. /package/build/{WEIGHT_GIRLS.percentile.monthly-ad305e84.js → WEIGHT_GIRLS.percentile.monthly-222d7201.js} +0 -0
  348. /package/build/{WEIGHT_GIRLS.percentile.weekly-92e552b6.js → WEIGHT_GIRLS.percentile.weekly-2997b740.js} +0 -0
  349. /package/build/{WEIGHT_GIRLS.percentile.yearly-df0dd71c.js → WEIGHT_GIRLS.percentile.yearly-3dc5928a.js} +0 -0
  350. /package/build/{WEIGHT_GIRLS.zscore.monthly-8820671b.js → WEIGHT_GIRLS.zscore.monthly-742b7617.js} +0 -0
  351. /package/build/{WEIGHT_GIRLS.zscore.weekly-31d29b05.js → WEIGHT_GIRLS.zscore.weekly-5ee1ca40.js} +0 -0
  352. /package/build/{WEIGHT_GIRLS.zscore.yearly-f731d1e2.js → WEIGHT_GIRLS.zscore.yearly-d6ca7d60.js} +0 -0
  353. /package/build/{animation-b224626d.js → animation-a1ed71d8.js} +0 -0
  354. /package/build/{cart-149e990d.js → cart-7bc1b943.js} +0 -0
  355. /package/build/{constants-f9eca9ad.js → constants-4cad9f4d.js} +0 -0
  356. /package/build/{constants-9c314450.js → constants-81b95117.js} +0 -0
  357. /package/build/{constants-42eed92d.js → constants-c3b9c9a9.js} +0 -0
  358. /package/build/{dataTransform-104761fc.js → dataTransform-867c472c.js} +0 -0
  359. /package/build/{doctor-d8f36158.js → doctor-dca6d1b2.js} +0 -0
  360. /package/build/esm/{BMI_BOYS.percentile.monthly-df1b3770.js → BMI_BOYS.percentile.monthly-2388d98f.js} +0 -0
  361. /package/build/esm/{BMI_BOYS.percentile.weekly-1d9595b1.js → BMI_BOYS.percentile.weekly-8ebe6955.js} +0 -0
  362. /package/build/esm/{BMI_BOYS.percentile.yearly-6bd2bb46.js → BMI_BOYS.percentile.yearly-3a97e95b.js} +0 -0
  363. /package/build/esm/{BMI_BOYS.zscore.monthly-658792d1.js → BMI_BOYS.zscore.monthly-f7572dcd.js} +0 -0
  364. /package/build/esm/{BMI_BOYS.zscore.weekly-d3c4d378.js → BMI_BOYS.zscore.weekly-d6281906.js} +0 -0
  365. /package/build/esm/{BMI_BOYS.zscore.yearly-8ad375e2.js → BMI_BOYS.zscore.yearly-fbebaaca.js} +0 -0
  366. /package/build/esm/{BMI_GIRLS.percentile.monthly-25f98c64.js → BMI_GIRLS.percentile.monthly-a75c8880.js} +0 -0
  367. /package/build/esm/{BMI_GIRLS.percentile.weekly-d60b034d.js → BMI_GIRLS.percentile.weekly-652bc9af.js} +0 -0
  368. /package/build/esm/{BMI_GIRLS.percentile.yearly-0560df43.js → BMI_GIRLS.percentile.yearly-8bcb5a6e.js} +0 -0
  369. /package/build/esm/{BMI_GIRLS.zscore.monthly-2104651f.js → BMI_GIRLS.zscore.monthly-ecbe2982.js} +0 -0
  370. /package/build/esm/{BMI_GIRLS.zscore.weekly-37757497.js → BMI_GIRLS.zscore.weekly-3abed735.js} +0 -0
  371. /package/build/esm/{BMI_GIRLS.zscore.yearly-56872c59.js → BMI_GIRLS.zscore.yearly-d88a34a0.js} +0 -0
  372. /package/build/esm/{ChevronDown-5633c5e8.js → ChevronDown-dfd91883.js} +0 -0
  373. /package/build/esm/{Close-f541a904.js → Close-b8fc27b1.js} +0 -0
  374. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-47e6539d.js → HEAD CIRCUM_BOYS.percentile.monthly-ff980a90.js} +0 -0
  375. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-594e065d.js → HEAD CIRCUM_BOYS.percentile.weekly-eb86eac9.js} +0 -0
  376. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-d24f1cc6.js → HEAD CIRCUM_BOYS.percentile.yearly-27ed6504.js} +0 -0
  377. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-94d82cb5.js → HEAD CIRCUM_BOYS.zscore.monthly-0d345597.js} +0 -0
  378. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-cb0109d0.js → HEAD CIRCUM_BOYS.zscore.weekly-c182ab46.js} +0 -0
  379. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-79a794c9.js → HEAD CIRCUM_BOYS.zscore.yearly-d45dbce1.js} +0 -0
  380. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-89615b43.js → HEAD CIRCUM_GIRLS.percentile.monthly-61919e45.js} +0 -0
  381. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-29d9184f.js → HEAD CIRCUM_GIRLS.percentile.weekly-51fa8f98.js} +0 -0
  382. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-140da49d.js → HEAD CIRCUM_GIRLS.percentile.yearly-c1fa6006.js} +0 -0
  383. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-fe41d0e8.js → HEAD CIRCUM_GIRLS.zscore.monthly-4dfc55d8.js} +0 -0
  384. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-c6193e75.js → HEAD CIRCUM_GIRLS.zscore.weekly-b21b5bf1.js} +0 -0
  385. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-7018fed4.js → HEAD CIRCUM_GIRLS.zscore.yearly-c42836fa.js} +0 -0
  386. /package/build/esm/{HEIGHT_BOYS.percentile.monthly-fae5e6a0.js → HEIGHT_BOYS.percentile.monthly-24ff8afa.js} +0 -0
  387. /package/build/esm/{HEIGHT_BOYS.percentile.weekly-ddc33aee.js → HEIGHT_BOYS.percentile.weekly-2be7b66e.js} +0 -0
  388. /package/build/esm/{HEIGHT_BOYS.percentile.yearly-9e3064f0.js → HEIGHT_BOYS.percentile.yearly-ac02aa2d.js} +0 -0
  389. /package/build/esm/{HEIGHT_BOYS.zscore.monthly-7c9e0bb8.js → HEIGHT_BOYS.zscore.monthly-b43667dc.js} +0 -0
  390. /package/build/esm/{HEIGHT_BOYS.zscore.weekly-50b0a6a0.js → HEIGHT_BOYS.zscore.weekly-abcfcf3a.js} +0 -0
  391. /package/build/esm/{HEIGHT_BOYS.zscore.yearly-afb6c4a2.js → HEIGHT_BOYS.zscore.yearly-71598c16.js} +0 -0
  392. /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-5c7487f0.js → HEIGHT_GIRLS.percentile.monthly-7f9d679c.js} +0 -0
  393. /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-33465e14.js → HEIGHT_GIRLS.percentile.weekly-6ce1d4e7.js} +0 -0
  394. /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-ae62b279.js → HEIGHT_GIRLS.percentile.yearly-c398fd6b.js} +0 -0
  395. /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-fd13c492.js → HEIGHT_GIRLS.zscore.monthly-8d33bc28.js} +0 -0
  396. /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-f509ffbe.js → HEIGHT_GIRLS.zscore.weekly-eb44c302.js} +0 -0
  397. /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-bf3a867b.js → HEIGHT_GIRLS.zscore.yearly-10b4d1fe.js} +0 -0
  398. /package/build/esm/{Locale-81beb37e.js → Locale-b86a7a92.js} +0 -0
  399. /package/build/esm/{Visible-3d8c22f1.js → Visible-69da852f.js} +0 -0
  400. /package/build/esm/{WEIGHT_BOYS.percentile.monthly-4db4c32c.js → WEIGHT_BOYS.percentile.monthly-fd349fe7.js} +0 -0
  401. /package/build/esm/{WEIGHT_BOYS.percentile.weekly-5321689a.js → WEIGHT_BOYS.percentile.weekly-d5e52d60.js} +0 -0
  402. /package/build/esm/{WEIGHT_BOYS.percentile.yearly-0c2aee80.js → WEIGHT_BOYS.percentile.yearly-929119b3.js} +0 -0
  403. /package/build/esm/{WEIGHT_BOYS.zscore.monthly-ddf307e5.js → WEIGHT_BOYS.zscore.monthly-3f0f08cd.js} +0 -0
  404. /package/build/esm/{WEIGHT_BOYS.zscore.weekly-be1d57ac.js → WEIGHT_BOYS.zscore.weekly-b9fd3298.js} +0 -0
  405. /package/build/esm/{WEIGHT_BOYS.zscore.yearly-6dab88ff.js → WEIGHT_BOYS.zscore.yearly-9945948d.js} +0 -0
  406. /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-a666fe8a.js → WEIGHT_GIRLS.percentile.monthly-1e83ae51.js} +0 -0
  407. /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-cd85042c.js → WEIGHT_GIRLS.percentile.weekly-c3531852.js} +0 -0
  408. /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-f22705ec.js → WEIGHT_GIRLS.percentile.yearly-3c0040b0.js} +0 -0
  409. /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-9f3f1083.js → WEIGHT_GIRLS.zscore.monthly-3baeda15.js} +0 -0
  410. /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-7dcf0ba5.js → WEIGHT_GIRLS.zscore.weekly-2d8e6618.js} +0 -0
  411. /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-c658040c.js → WEIGHT_GIRLS.zscore.yearly-826f5bdd.js} +0 -0
  412. /package/build/esm/{animation-db89f033.js → animation-7207941a.js} +0 -0
  413. /package/build/esm/{cart-47013af9.js → cart-4f482601.js} +0 -0
  414. /package/build/esm/{constants-f9614464.js → constants-0497b893.js} +0 -0
  415. /package/build/esm/{constants-247d5eb0.js → constants-af02be2a.js} +0 -0
  416. /package/build/esm/{constants-410be40f.js → constants-f7943ab2.js} +0 -0
  417. /package/build/esm/{dataTransform-f9e5b4ec.js → dataTransform-610e61bf.js} +0 -0
  418. /package/build/esm/{doctor-88e78d2c.js → doctor-63e09ada.js} +0 -0
  419. /package/build/esm/{index-907fffe6.js → index-20192854.js} +0 -0
  420. /package/build/esm/{index-c3d6b2ed.js → index-20199246.js} +0 -0
  421. /package/build/esm/{index-6dd5a329.js → index-5364f2db.js} +0 -0
  422. /package/build/esm/{index-0ca51fbb.js → index-56d0ac47.js} +0 -0
  423. /package/build/esm/{index-24f2f569.js → index-9f076f64.js} +0 -0
  424. /package/build/esm/{index-6f44d928.js → index-a2506e52.js} +0 -0
  425. /package/build/esm/{index-5f214b71.js → index-c130afdc.js} +0 -0
  426. /package/build/esm/{index-fcd9b927.js → index-c9467e39.js} +0 -0
  427. /package/build/esm/{localizeNumberFormat-be70a31e.js → localizeNumberFormat-3bf28240.js} +0 -0
  428. /package/build/esm/{number-7e3f376a.js → number-d26abebe.js} +0 -0
  429. /package/build/esm/{other-811b7d93.js → other-08d0b30e.js} +0 -0
  430. /package/build/esm/{paths-650d5eee.js → paths-ce59b252.js} +0 -0
  431. /package/build/esm/{translationsContext-0cbb21e6.js → translationsContext-8afb0ce3.js} +0 -0
  432. /package/build/esm/{tslib.es6-3970c414.js → tslib.es6-e0840efa.js} +0 -0
  433. /package/build/esm/{types-78bfaf40.js → types-41242882.js} +0 -0
  434. /package/build/esm/{useIsInit-3f7af1fd.js → useIsInit-f59c6bd2.js} +0 -0
  435. /package/build/esm/{useOutsideClick-2fae5fb5.js → useOutsideClick-12815e56.js} +0 -0
  436. /package/build/esm/{useScrollbarSize-2a7e6dd2.js → useScrollbarSize-431cf33c.js} +0 -0
  437. /package/build/esm/{useUniqueId-d714426d.js → useUniqueId-8f710187.js} +0 -0
  438. /package/build/esm/{utils-cee25689.js → utils-8a1f05c9.js} +0 -0
  439. /package/build/{index-27f25094.js → index-017f99b2.js} +0 -0
  440. /package/build/{index-1d528960.js → index-1a6a94cd.js} +0 -0
  441. /package/build/{index-41a348a2.js → index-668f591b.js} +0 -0
  442. /package/build/{index-32917720.js → index-70abc2ac.js} +0 -0
  443. /package/build/{index-20a5cee0.js → index-c6b0831a.js} +0 -0
  444. /package/build/{index-9f501aac.js → index-ce2d2850.js} +0 -0
  445. /package/build/{index-186f9324.js → index-e3e72aed.js} +0 -0
  446. /package/build/{index-e327613c.js → index-f70c0edf.js} +0 -0
  447. /package/build/{localizeNumberFormat-a5804ea2.js → localizeNumberFormat-30e7f015.js} +0 -0
  448. /package/build/{normalizeLink-2878a2ce.js → normalizeLink-c1b2b407.js} +0 -0
  449. /package/build/{number-35662113.js → number-20d56f69.js} +0 -0
  450. /package/build/{other-a7f01b3d.js → other-eedaf6ca.js} +0 -0
  451. /package/build/{paths-488dafd4.js → paths-4c182009.js} +0 -0
  452. /package/build/{translationsContext-951038ad.js → translationsContext-cd046df4.js} +0 -0
  453. /package/build/{tslib.es6-145af9ce.js → tslib.es6-f3c387c0.js} +0 -0
  454. /package/build/{types-aeea2cc2.js → types-2614ec58.js} +0 -0
  455. /package/build/{useIsInit-0c37752a.js → useIsInit-e56642e4.js} +0 -0
  456. /package/build/{useOutsideClick-aa477d22.js → useOutsideClick-f18dfe3f.js} +0 -0
  457. /package/build/{useScrollbarSize-01b12b72.js → useScrollbarSize-4aaa4dd1.js} +0 -0
  458. /package/build/{useUniqueId-17c2097b.js → useUniqueId-621ec272.js} +0 -0
  459. /package/build/{utils-a1cfbdac.js → utils-ae9740c0.js} +0 -0
@@ -0,0 +1,860 @@
1
+ import { _ as __rest, a as __awaiter } from './tslib.es6-e0840efa.js';
2
+ import React__default, { useState, useContext, useMemo, useRef, useEffect, createContext } from 'react';
3
+ import dayjs from 'dayjs';
4
+ import { A as Anchor$1, T as Tabs } from './index-57da0f13.js';
5
+ import { u as useTranslations } from './useTranslations-b66d9f2b.js';
6
+ import { B as Button } from './index-9c268a93.js';
7
+ import { b as formatPost, a as formatCommunity, g as formatArticle } from './dataTransform-2023858d.js';
8
+ import { PATHS } from './togetherApiPaths.js';
9
+ import { T as TogetherComponentGlobalContext, c as callApi, d as getApiPath, b as callApiWithAuth } from './utils-f873578b.js';
10
+ import { Plus } from '@hhgtech/icons/core';
11
+ import { createStyles, Anchor, Accordion, Flex, useMantineTheme } from '@mantine/core';
12
+ import { C as CommonGAssets } from './index-9f076f64.js';
13
+ import { I as ImageWrap } from './index-4cf37916.js';
14
+ import { P as PopupExpert, d as CardAuthor, C as CardAuthor$1 } from './index-7ad9db02.js';
15
+ import { S as SocialType } from './index-7decdf27.js';
16
+ import { theme } from './miscTheme.js';
17
+ import { CrossLogo, ArrowDown } from '@hhgtech/icons/other';
18
+ import '@mantine/dates';
19
+ import './index-9e220aaa.js';
20
+ import './useMantineLocale-b29ca68b.js';
21
+ import { T as Text } from './index-99551970.js';
22
+ import { B as Button$1 } from './index-c4b04b5f.js';
23
+ import './index.styles-25454e9c.js';
24
+ import '@mantine/hooks';
25
+ import './utils-8a1f05c9.js';
26
+ import './other-08d0b30e.js';
27
+ import styled from '@emotion/styled';
28
+ import { useTogetherAuthRequiredAction } from './useTogetherAuthRequiredAction.js';
29
+ import { d as decodeMention, a as decodePostUrl } from './post-86117110.js';
30
+ import './translationsContext-8afb0ce3.js';
31
+ import 'string-format';
32
+
33
+ const StyledPostContent = styled.div `
34
+ padding: 0.5rem 1rem 1rem;
35
+ line-height: 1.5;
36
+ word-break: break-word;
37
+ .post-content-replying {
38
+ margin-right: 5px;
39
+ cursor: pointer;
40
+ display: inline-block;
41
+ &.tag-only {
42
+ margin-right: 0;
43
+ }
44
+ }
45
+ .post-content {
46
+ display: inline;
47
+ white-space: pre-wrap;
48
+ /* > *:first-child, */
49
+ > mention:first-child ~ * {
50
+ &:not(ul),
51
+ &:not(ol) {
52
+ display: inline-block;
53
+ }
54
+ }
55
+ > mention:first-child {
56
+ margin-right: 5px;
57
+ }
58
+ &.has-see-more {
59
+ *:last-child {
60
+ &:not(ul),
61
+ &:not(ol) {
62
+ display: inline;
63
+ }
64
+ }
65
+ }
66
+ img {
67
+ width: 100%;
68
+ height: unset;
69
+ }
70
+ ul,
71
+ ol {
72
+ list-style-position: inside;
73
+ padding-left: 1rem;
74
+ display: block;
75
+ }
76
+ ol {
77
+ list-style-type: decimal;
78
+ }
79
+ ul {
80
+ list-style-type: disc;
81
+ }
82
+ mention {
83
+ color: ${(props) => props.mentionColor || '#1890ff'};
84
+ padding-right: 4px;
85
+ :hover {
86
+ text-decoration: underline;
87
+ }
88
+ }
89
+ }
90
+ `;
91
+
92
+ var useStyles = createStyles((theme) => {
93
+ return {
94
+ root: {
95
+ mention: {
96
+ color: theme.fn.primaryColor(),
97
+ },
98
+ a: {
99
+ '&,&:visited,&:focus': {
100
+ color: theme.fn.primaryColor(),
101
+ },
102
+ },
103
+ '.create-post-link': {
104
+ display: 'inline',
105
+ color: theme.fn.primaryColor(),
106
+ cursor: 'pointer',
107
+ },
108
+ },
109
+ };
110
+ });
111
+
112
+ const PostContent = (_a) => {
113
+ var { trackingCategory, url, className, style, replyingTo, mentionedUser, description: rawDescription, disableShortenContent, mentions = [], maxChars = 1000, hideShowAllBtn, styles, onClickCreatePostLink } = _a, rest = __rest(_a, ["trackingCategory", "url", "className", "style", "replyingTo", "mentionedUser", "description", "disableShortenContent", "mentions", "maxChars", "hideShowAllBtn", "styles", "onClickCreatePostLink"]);
114
+ const { classes, theme: _theme } = useStyles(undefined,
115
+ // Second argument is responsible for styles api integration
116
+ { name: 'PostContent', styles });
117
+ const [showAll, setShowAll] = useState(false);
118
+ const { t } = useTranslations();
119
+ const { authActionWrapper } = useTogetherAuthRequiredAction();
120
+ const [openPopupExpert, setOpenPopupExpert] = useState(false);
121
+ const description = decodeMention(decodePostUrl(rawDescription || '', 'display'), mentions);
122
+ const { action: { sanitizeFunction }, } = useContext(TogetherComponentGlobalContext);
123
+ const shortenSanitizedContentData = useMemo(() => {
124
+ const sanitizedContent = sanitizeFunction(description || '');
125
+ if (disableShortenContent || showAll)
126
+ return {
127
+ showContent: sanitizedContent,
128
+ hasSeeMore: false,
129
+ };
130
+ const firstRound = sanitizedContent.slice(0, maxChars);
131
+ const newLineCompensateLength = maxChars - ((firstRound.match(/<\/div>/g) || []).length - 1) * 27;
132
+ const shortenFirstRound = (firstRound || '').slice(0, newLineCompensateLength < 40 ? 40 : newLineCompensateLength);
133
+ // remove < if we cut off right before start of a new html tag
134
+ const secondRound = sanitizeFunction(shortenFirstRound.replace(/(<|<\/)( +|[a-zA-Z]*)$/gi, ''));
135
+ // don't show see more if not much difference
136
+ const hasSeeMore = secondRound.length < sanitizedContent.length - 10;
137
+ return {
138
+ showContent: hasSeeMore ? secondRound : sanitizedContent,
139
+ hasSeeMore,
140
+ };
141
+ }, [disableShortenContent, showAll, description]);
142
+ const replyName = (mentionedUser === null || mentionedUser === void 0 ? void 0 : mentionedUser.name) || replyingTo;
143
+ const hasExpert = (mentionedUser === null || mentionedUser === void 0 ? void 0 : mentionedUser.role) === 'expert' && !!(mentionedUser === null || mentionedUser === void 0 ? void 0 : mentionedUser.partnerId);
144
+ const contentRef = useRef(null);
145
+ const handleCreatePostClick = (e) => {
146
+ e.preventDefault();
147
+ onClickCreatePostLink === null || onClickCreatePostLink === void 0 ? void 0 : onClickCreatePostLink();
148
+ };
149
+ useEffect(() => {
150
+ var _a;
151
+ (_a = contentRef === null || contentRef === void 0 ? void 0 : contentRef.current) === null || _a === void 0 ? void 0 : _a.querySelectorAll('[data-create-post]').forEach((dom) => {
152
+ dom.addEventListener('click', handleCreatePostClick, {
153
+ passive: true,
154
+ });
155
+ });
156
+ return () => {
157
+ var _a;
158
+ (_a = contentRef === null || contentRef === void 0 ? void 0 : contentRef.current) === null || _a === void 0 ? void 0 : _a.querySelectorAll('[data-create-post]').forEach((dom) => {
159
+ dom.removeEventListener('click', handleCreatePostClick, false);
160
+ });
161
+ };
162
+ }, [disableShortenContent, showAll, description]);
163
+ return (React__default.createElement(React__default.Fragment, null,
164
+ hasExpert && (React__default.createElement(PopupExpert, { isOpen: openPopupExpert, onClose: () => setOpenPopupExpert(false), expertId: String(mentionedUser === null || mentionedUser === void 0 ? void 0 : mentionedUser.partnerId) })),
165
+ React__default.createElement(StyledPostContent, Object.assign({ ref: contentRef, className: `${classes.root} ${className} no-replace-click`, style: style, mentionColor: _theme.fn.primaryColor() }, rest),
166
+ replyName && (React__default.createElement(Anchor, { onClick: () => hasExpert && setOpenPopupExpert(true), className: "post-content-replying" },
167
+ "@",
168
+ replyName)),
169
+ (rawDescription === null || rawDescription === void 0 ? void 0 : rawDescription.startsWith('[mention+id=')) && (React__default.createElement("span", { className: "post-content-replying tag-only", style: {
170
+ color: _theme.fn.primaryColor(),
171
+ } }, "@")),
172
+ React__default.createElement("span", { dangerouslySetInnerHTML: {
173
+ __html: shortenSanitizedContentData.showContent,
174
+ }, className: `post-content ${shortenSanitizedContentData.hasSeeMore ? 'has-see-more' : ''}` }),
175
+ shortenSanitizedContentData.hasSeeMore && !showAll && (React__default.createElement("span", null,
176
+ `... `,
177
+ !hideShowAllBtn && (React__default.createElement(Anchor, Object.assign({ onClick: (e) => {
178
+ e.preventDefault();
179
+ e.stopPropagation();
180
+ authActionWrapper(() => setShowAll(true));
181
+ }, className: "see-more-text" }, (trackingCategory
182
+ ? {
183
+ 'data-event-category': trackingCategory,
184
+ 'data-event-action': 'See More Post Click',
185
+ 'data-event-label': url,
186
+ }
187
+ : {})), t('post.seeMore'))))))));
188
+ };
189
+
190
+ var styles$c = {"loading":"PD6nRZX"};
191
+
192
+ const Loading = ({ className, size = 'md' }) => {
193
+ const { t } = useTranslations();
194
+ return (React__default.createElement("div", { className: `${styles$c.loading} ${className}` },
195
+ React__default.createElement(Button, { size: size, color: "transparent", isLoading: true }, t('loading'))));
196
+ };
197
+
198
+ var styles$b = {"category":"l5fL1xL","title":"L-aGKo7"};
199
+
200
+ const CategoryText = ({ children, className = '' }) => {
201
+ return React__default.createElement("div", { className: `${styles$b.category} ${className}` }, children);
202
+ };
203
+ const Title = ({ children, className = '' }) => {
204
+ return React__default.createElement("div", { className: `${styles$b.title} ${className}` }, children);
205
+ };
206
+
207
+ var styles$a = {"container":"eaR8ATZ","info":"xM-7K0a"};
208
+
209
+ var styles$9 = {"inner":"DZmf3s7"};
210
+
211
+ const Thumbnail = ({ src, defaultSrc = CommonGAssets.getAssetPath('logo/logomark.png'), ratio = 1, size = 80, radius = 8, alt, className = '', }) => {
212
+ return (React__default.createElement("div", { className: className },
213
+ React__default.createElement("div", { className: styles$9.inner, style: {
214
+ width: `${size}px`,
215
+ height: `${size * ratio}px`,
216
+ borderRadius: `${radius}px`,
217
+ } },
218
+ React__default.createElement(ImageWrap, { src: src, backupSrc: defaultSrc, alt: alt }))));
219
+ };
220
+
221
+ const CardArticle = ({ category, title, src, children, className = '', }) => {
222
+ return (React__default.createElement("div", { className: `${styles$a.container} ${className}` },
223
+ React__default.createElement(Thumbnail, { src: src }),
224
+ React__default.createElement("div", { className: styles$a.info }, children || (React__default.createElement("div", null,
225
+ category && React__default.createElement(CategoryText, null, category),
226
+ title && React__default.createElement(Title, null, title))))));
227
+ };
228
+ CardArticle.CategoryText = CategoryText;
229
+ CardArticle.Title = Title;
230
+
231
+ const ArticleCard = ({ featureImage, postTitle, author, categories, isReview, className = '', }) => {
232
+ var _a;
233
+ const note = isReview
234
+ ? 'Medically reviewed by Jobelle Ann Dela Cruz Bigalbal, MD'
235
+ : 'Written by Jobelle Ann Dela Cruz Bigalbal, MD';
236
+ return (React__default.createElement(CardArticle, { src: featureImage, className: className },
237
+ React__default.createElement(React__default.Fragment, null,
238
+ React__default.createElement(CardArticle.CategoryText, null, (_a = categories === null || categories === void 0 ? void 0 : categories[0]) === null || _a === void 0 ? void 0 : _a.name),
239
+ React__default.createElement(CardArticle.Title, null, postTitle),
240
+ React__default.createElement(CardAuthor, { avatarProps: Object.assign(Object.assign({}, author), { size: 32 }), subTitle: React__default.createElement(React__default.Fragment, null,
241
+ note,
242
+ React__default.createElement(CardAuthor.SubDivider, null),
243
+ 'Dec 12, 2022') }))));
244
+ };
245
+
246
+ var styles$8 = {"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"};
247
+
248
+ const ProfileDetailContext = createContext({});
249
+
250
+ const About = ({ className = '' }) => {
251
+ var _a, _b, _c, _d, _e;
252
+ const { t } = useTranslations();
253
+ const { info, isMarryBaby, currentPageUrl } = useContext(ProfileDetailContext);
254
+ const authorProps = info === null || info === void 0 ? void 0 : info.data;
255
+ const social = [
256
+ {
257
+ type: SocialType.LinkedIn,
258
+ icon: CommonGAssets.getAssetPath('linkedin.svg'),
259
+ url: (_a = info === null || info === void 0 ? void 0 : info.contact) === null || _a === void 0 ? void 0 : _a.linkedin,
260
+ eventAction: 'Doctor Profile - Linkedin',
261
+ },
262
+ {
263
+ type: SocialType.Instagram,
264
+ icon: CommonGAssets.getAssetPath('instagram.svg'),
265
+ url: (_b = info === null || info === void 0 ? void 0 : info.contact) === null || _b === void 0 ? void 0 : _b.instagram,
266
+ eventAction: 'Doctor Profile - Instagram',
267
+ },
268
+ {
269
+ type: SocialType.Facebook,
270
+ icon: CommonGAssets.getAssetPath('facebook.svg'),
271
+ url: (_c = info === null || info === void 0 ? void 0 : info.contact) === null || _c === void 0 ? void 0 : _c.facebook,
272
+ eventAction: 'Doctor Profile - Facebook',
273
+ },
274
+ {
275
+ type: SocialType.Youtube,
276
+ icon: CommonGAssets.getAssetPath('youtube.svg'),
277
+ url: (_d = info === null || info === void 0 ? void 0 : info.contact) === null || _d === void 0 ? void 0 : _d.youtube,
278
+ eventAction: 'Doctor Profile - Youtube',
279
+ },
280
+ {
281
+ type: SocialType.Tiktok,
282
+ icon: CommonGAssets.getAssetPath('tiktok.svg'),
283
+ url: (_e = info === null || info === void 0 ? void 0 : info.contact) === null || _e === void 0 ? void 0 : _e.tiktok,
284
+ eventAction: 'Doctor Profile - TikTok',
285
+ },
286
+ ];
287
+ const accProps = [
288
+ ...(((info === null || info === void 0 ? void 0 : info.experiences) || []).length > 0
289
+ ? [
290
+ {
291
+ key: 'experience',
292
+ heading: t('profilePanel.experience'),
293
+ iconSrc: CommonGAssets.getAssetPath(isMarryBaby ? 'award-doc-mb.svg' : 'award-doc.svg'),
294
+ eventAction: 'Doctor Experience Click',
295
+ panel: (React__default.createElement("div", { className: styles$8.accBodyGroup }, info === null || info === void 0 ? void 0 : info.experiences.map((i, idx) => (React__default.createElement("div", { className: styles$8.accBodyGroupItem, key: String(idx) },
296
+ React__default.createElement("div", { className: styles$8.accBodyGroupTitle }, i.title),
297
+ React__default.createElement("div", { className: styles$8.accBodyGroupDesc },
298
+ React__default.createElement("p", null, i.organization),
299
+ React__default.createElement("p", null, i.duration))))))),
300
+ },
301
+ ]
302
+ : []),
303
+ ...(((info === null || info === void 0 ? void 0 : info.educations) || []).length > 0
304
+ ? [
305
+ {
306
+ key: 'education',
307
+ heading: t('profilePanel.education'),
308
+ iconSrc: CommonGAssets.getAssetPath(isMarryBaby ? 'book-mb.svg' : 'book.svg'),
309
+ eventAction: 'Doctor Degree Click',
310
+ panel: (React__default.createElement("div", { className: styles$8.accBodyGroup }, info === null || info === void 0 ? void 0 : info.educations.map((i, idx) => (React__default.createElement("div", { className: styles$8.accBodyGroupItem, key: String(idx) },
311
+ React__default.createElement("div", { className: styles$8.accBodyGroupTitle }, i.schoolName),
312
+ React__default.createElement("div", { className: styles$8.accBodyGroupDesc },
313
+ React__default.createElement("p", null, i.study),
314
+ React__default.createElement("p", null, i.completedYear))))))),
315
+ },
316
+ ]
317
+ : []),
318
+ ...(((info === null || info === void 0 ? void 0 : info.awards) || []).length > 0
319
+ ? [
320
+ {
321
+ key: 'awards',
322
+ heading: t('profilePanel.awards'),
323
+ iconSrc: CommonGAssets.getAssetPath(isMarryBaby ? 'award-mb.svg' : 'award.svg'),
324
+ eventAction: 'Doctor Award Click',
325
+ panel: (React__default.createElement("div", { className: styles$8.accBodyGroup }, info === null || info === void 0 ? void 0 : info.awards.map((i, idx) => (React__default.createElement("div", { className: styles$8.accBodyGroupTitle, key: idx }, i.title))))),
326
+ },
327
+ ]
328
+ : []),
329
+ ];
330
+ const relatedPost = (info === null || info === void 0 ? void 0 : info.relatedPosts) || [];
331
+ const socialList = social.filter((i) => i.url);
332
+ return (React__default.createElement("div", { className: `${styles$8.container} ${className}`, "data-is-marrybaby": isMarryBaby },
333
+ accProps.length > 0 && (React__default.createElement(Accordion, { defaultValue: accProps[0].key, chevron: isMarryBaby ? (React__default.createElement("div", { className: styles$8.mbChevronWrapper },
334
+ React__default.createElement(Plus, { size: 12, color: theme.mbColors.midGray }))) : (React__default.createElement(Plus, { color: theme.colors.gray400 })), styles: {
335
+ chevron: {
336
+ '&[data-rotate]': {
337
+ '.minus-path': {
338
+ display: 'block',
339
+ },
340
+ '.plus-path': {
341
+ display: 'none',
342
+ },
343
+ },
344
+ },
345
+ content: {
346
+ display: 'flex',
347
+ flexDirection: 'column',
348
+ gap: '16px',
349
+ padding: '0',
350
+ },
351
+ item: {
352
+ border: 0,
353
+ },
354
+ control: {
355
+ paddingLeft: 0,
356
+ '&:hover': {
357
+ background: 'transparent',
358
+ },
359
+ '*': {
360
+ pointerEvents: 'none',
361
+ },
362
+ },
363
+ } }, accProps.map((i) => (React__default.createElement(Accordion.Item, { key: i.key, value: i.key },
364
+ React__default.createElement(Accordion.Control, { "data-event-category": "Together", "data-event-action": i.eventAction, "data-event-label": currentPageUrl },
365
+ React__default.createElement("div", { className: styles$8.header },
366
+ React__default.createElement("div", { className: styles$8.headingIcon },
367
+ React__default.createElement("img", { src: i.iconSrc, loading: "lazy" })),
368
+ React__default.createElement("div", { className: styles$8.heading }, i.heading))),
369
+ React__default.createElement(Accordion.Panel, null, i.panel)))))),
370
+ relatedPost.length > 0 && (React__default.createElement("div", { className: styles$8.group },
371
+ React__default.createElement("div", { className: styles$8.subTitle },
372
+ React__default.createElement("img", { className: styles$8.subIcon, src: CommonGAssets.getAssetPath(isMarryBaby ? 'mb-logo.svg' : 'logo/circle-solid.svg'), loading: "lazy" }),
373
+ t('profilePanel.publishedArticles')),
374
+ React__default.createElement("div", { className: `${styles$8.relatedList}` }, info === null || info === void 0 ? void 0 : info.relatedPosts.map((i) => (React__default.createElement("a", { key: String(i.id), href: `${window.location.origin}${i === null || i === void 0 ? void 0 : i.permalink}`, className: styles$8.articleCardLink },
375
+ React__default.createElement(ArticleCard, Object.assign({ className: 'article-card' }, Object.assign(Object.assign({}, i), (!i.author && {
376
+ author: {
377
+ displayName: authorProps === null || authorProps === void 0 ? void 0 : authorProps.name,
378
+ avatar: authorProps === null || authorProps === void 0 ? void 0 : authorProps.avatar,
379
+ },
380
+ })), { isReview: true })))))))),
381
+ socialList.length > 0 && (React__default.createElement("div", { className: styles$8.group },
382
+ React__default.createElement("div", { className: styles$8.subTitle },
383
+ React__default.createElement("img", { className: styles$8.subIcon, src: CommonGAssets.getAssetPath(isMarryBaby ? 'social-mb.svg' : 'social.svg'), loading: "lazy" }),
384
+ t('profilePanel.socialLinks')),
385
+ React__default.createElement("div", { className: styles$8.groupBody },
386
+ React__default.createElement(Flex, null, social.map((i, idx) => i.url && (React__default.createElement("div", { className: styles$8.socialItem, key: idx },
387
+ React__default.createElement("a", { href: i.url, target: "_blank", rel: "noreferrer" },
388
+ React__default.createElement("img", { src: i.icon, loading: "lazy", width: "32px", "data-event-category": "Together", "data-event-action": i.eventAction, "data-event-label": currentPageUrl })))))))))));
389
+ };
390
+
391
+ var styles$7 = {"container":"GYUElSy","question":"_3C6QpT1","questionTitle":"_9M9VYL6","community":"_1RuSyv3","questionCard":"_1IG-eEp"};
392
+
393
+ const PostCard$1 = ({ post, className = '' }) => {
394
+ var _a, _b, _c, _d, _e, _f, _g, _h;
395
+ const { t } = useTranslations();
396
+ const { data: { userInfo, env: { togetherBasePath }, }, } = useContext(TogetherComponentGlobalContext);
397
+ const { authActionWrapper, authorProps, currentPageUrl } = useContext(ProfileDetailContext);
398
+ const postHref = `${window.location.origin}${togetherBasePath}/${(_a = post === null || post === void 0 ? void 0 : post.community) === null || _a === void 0 ? void 0 : _a.slug}/${post === null || post === void 0 ? void 0 : post.slug}/`;
399
+ return (React__default.createElement("div", { className: `${styles$7.container} ${className}` },
400
+ React__default.createElement("div", { className: styles$7.header },
401
+ React__default.createElement("div", { className: styles$7.question },
402
+ t('profilePanel.question'),
403
+ ' ',
404
+ React__default.createElement(Anchor$1, { className: styles$7.questionTitle, href: "#", onClick: () => {
405
+ if (!(userInfo === null || userInfo === void 0 ? void 0 : userInfo.id)) {
406
+ authActionWrapper === null || authActionWrapper === void 0 ? void 0 : authActionWrapper(() => (window.location.href = postHref));
407
+ }
408
+ } },
409
+ "#", post === null || post === void 0 ? void 0 :
410
+ post.title)),
411
+ React__default.createElement("div", { className: styles$7.community }, (_b = post === null || post === void 0 ? void 0 : post.community) === null || _b === void 0 ? void 0 :
412
+ _b.name,
413
+ " - ", post === null || post === void 0 ? void 0 :
414
+ post.createdTime)),
415
+ React__default.createElement("div", { className: styles$7.questionCard },
416
+ React__default.createElement(CardAuthor$1, Object.assign({ className: "card-author" }, authorProps, { role: "user", avatarIcon: React__default.createElement(CrossLogo, null), subLine: React__default.createElement(CardAuthor$1.SubTextRow, null,
417
+ React__default.createElement(CardAuthor$1.SubText, null, (_e = (_d = (_c = post === null || post === void 0 ? void 0 : post.expertAnswer) === null || _c === void 0 ? void 0 : _c.answer) === null || _d === void 0 ? void 0 : _d[0]) === null || _e === void 0 ? void 0 : _e.createdTime)) })),
418
+ React__default.createElement(PostContent, { className: "post-content-wrapper", description: ((_h = (_g = (_f = post === null || post === void 0 ? void 0 : post.expertAnswer) === null || _f === void 0 ? void 0 : _f.answer) === null || _g === void 0 ? void 0 : _g[0]) === null || _h === void 0 ? void 0 : _h.content) || '',
419
+ // disableShortenContent={disableShortenContent}
420
+ mentions: post === null || post === void 0 ? void 0 : post.mentions, "data-testid": "Content of the Post" })),
421
+ React__default.createElement(Button$1, { variant: "secondary", "data-event-category": "Together", "data-event-action": "Doctor Reply Click", "data-event-label": currentPageUrl, size: "md", onClick: () => {
422
+ if (!(userInfo === null || userInfo === void 0 ? void 0 : userInfo.id)) {
423
+ authActionWrapper === null || authActionWrapper === void 0 ? void 0 : authActionWrapper(() => (window.location.href = postHref));
424
+ }
425
+ else {
426
+ window.location.href = postHref;
427
+ }
428
+ } }, t('profilePanel.anserwing.viewFull'))));
429
+ };
430
+
431
+ var styles$6 = {"container":"MrdoES3"};
432
+
433
+ var styles$5 = {"container":"_8fd7YMs","thumb":"DomiQfw","content":"-b2qnfL"};
434
+
435
+ const EmptyMessage = ({ message, buttonTxt, imgSrc, onBtnClick }) => {
436
+ const { siteType, isMarryBaby } = useContext(ProfileDetailContext);
437
+ return (React__default.createElement("div", { className: styles$5.container },
438
+ React__default.createElement("div", { className: styles$5.thumb },
439
+ React__default.createElement("img", { src: imgSrc ||
440
+ CommonGAssets.getAssetPath(isMarryBaby ? 'comments-mb.svg' : 'comments.svg'), loading: "lazy" })),
441
+ message && React__default.createElement("div", { className: styles$5.content }, message),
442
+ buttonTxt && (React__default.createElement(Button, { size: "md", theme: siteType, color: "secondary", onClick: onBtnClick }, buttonTxt))));
443
+ };
444
+
445
+ const Answering = ({ id }) => {
446
+ const { t } = useTranslations();
447
+ const { data: { locale }, } = useContext(TogetherComponentGlobalContext);
448
+ const { authorProps } = useContext(ProfileDetailContext);
449
+ const [posts, setPosts] = useState(null);
450
+ const [loading, setLoading] = useState(false);
451
+ useEffect(() => {
452
+ id &&
453
+ (() => __awaiter(void 0, void 0, void 0, function* () {
454
+ var _a;
455
+ setLoading(true);
456
+ const res = yield callApi(getApiPath(PATHS.USER.LIST_ANSWERS, {
457
+ _locale: locale,
458
+ id,
459
+ }), 'GET');
460
+ const resData = (((_a = res === null || res === void 0 ? void 0 : res.data) === null || _a === void 0 ? void 0 : _a.replies) || []).map(formatPost);
461
+ setPosts(resData);
462
+ setLoading(false);
463
+ }))();
464
+ }, []);
465
+ return (React__default.createElement("div", { className: styles$6.container }, loading ? (React__default.createElement(Loading, null)) : (posts !== null &&
466
+ (posts.length > 0 ? (posts.map((i) => (React__default.createElement(PostCard$1, { className: "post-card", key: i.id, post: i })))) : (React__default.createElement(EmptyMessage, { message: t('profilePanel.emptyPostMess.content', {
467
+ name: (authorProps === null || authorProps === void 0 ? void 0 : authorProps.name) || (authorProps === null || authorProps === void 0 ? void 0 : authorProps.username),
468
+ }) }))))));
469
+ };
470
+
471
+ var styles$4 = {"container":"toEutn7","title":"drdisHs","actions":"scNwTvv","skipBtn":"HNlhOdx"};
472
+
473
+ const QuestionCard = (_a) => {
474
+ var _b, _c, _d, _e;
475
+ var { post } = _a, rest = __rest(_a, ["post"]);
476
+ const { data: { env: { togetherBasePath }, }, } = useContext(TogetherComponentGlobalContext);
477
+ // const { showSkipQuestionTag } = useContext(ProfileDetailContext)
478
+ return (React__default.createElement(React__default.Fragment, null,
479
+ React__default.createElement("div", Object.assign({}, rest, { className: `${styles$4.container} ${(rest === null || rest === void 0 ? void 0 : rest.className) || ''}` }),
480
+ React__default.createElement(CardAuthor$1, { className: "card-author", avatar: (_b = post === null || post === void 0 ? void 0 : post.author) === null || _b === void 0 ? void 0 : _b.avatar, name: ((_c = post === null || post === void 0 ? void 0 : post.author) === null || _c === void 0 ? void 0 : _c.name) || ((_d = post === null || post === void 0 ? void 0 : post.author) === null || _d === void 0 ? void 0 : _d.username), isAnonymous: Boolean(post === null || post === void 0 ? void 0 : post.isAnonymous), subLine: React__default.createElement(CardAuthor$1.SubTextRow, null,
481
+ React__default.createElement(CardAuthor$1.SubText, null, post === null || post === void 0 ? void 0 : post.createdTime)) }),
482
+ React__default.createElement(Anchor$1, { href: `${window.location.origin}${togetherBasePath}/${(_e = post === null || post === void 0 ? void 0 : post.community) === null || _e === void 0 ? void 0 : _e.slug}/${post === null || post === void 0 ? void 0 : post.slug}/`, className: styles$4.title, rel: "noreferrer" }, post === null || post === void 0 ? void 0 : post.title))));
483
+ };
484
+
485
+ var styles$3 = {"accordion":"I-uIJ6E","header":"_41WRsj2","heading":"AcOGL93","headingIcon":"JD3dWJN","panel":"dKAgnS8","chevron":"L2Q9T6m","container":"h-pSmhX"};
486
+
487
+ const Care = () => {
488
+ var _a, _b;
489
+ const { t } = useTranslations();
490
+ const { data: { locale, userInfo }, } = useContext(TogetherComponentGlobalContext);
491
+ const { onSkipQuestion, countValues, setCountValues } = useContext(ProfileDetailContext);
492
+ const [questions, setQuestions] = useState();
493
+ const [communities, setCommunities] = useState([]);
494
+ const [fetchLoading, setFetchLoading] = useState(false);
495
+ const loginId = userInfo === null || userInfo === void 0 ? void 0 : userInfo.id;
496
+ useEffect(() => {
497
+ loginId &&
498
+ (() => __awaiter(void 0, void 0, void 0, function* () {
499
+ var _a;
500
+ setFetchLoading(true);
501
+ const res = yield callApiWithAuth(getApiPath(PATHS.USER.LIST_QUESTION_NEED_REPLY, {
502
+ _locale: locale,
503
+ }), 'GET');
504
+ const tmpCom = [];
505
+ const tmpQuestionByCom = Object.create({});
506
+ (((_a = res === null || res === void 0 ? void 0 : res.data) === null || _a === void 0 ? void 0 : _a.communities) || [])
507
+ .filter((i) => ((i === null || i === void 0 ? void 0 : i.question) || []).length > 0)
508
+ .map((i) => {
509
+ tmpQuestionByCom[i.id] = i.question.map(formatPost);
510
+ delete i.question;
511
+ tmpCom.push(formatCommunity(i));
512
+ });
513
+ setCommunities(tmpCom);
514
+ setQuestions(tmpQuestionByCom);
515
+ setFetchLoading(false);
516
+ }))();
517
+ }, []);
518
+ const handleSkipQuestion = ({ id, communityId }) => {
519
+ if (id && communityId && questions) {
520
+ const newListQuestions = Object.assign(Object.assign({}, questions), { [communityId]: [
521
+ ...((questions === null || questions === void 0 ? void 0 : questions[communityId]) || []).filter((i) => i.id !== id),
522
+ ] });
523
+ let countLists = 0;
524
+ Object.keys(newListQuestions).map((idx) => (countLists += newListQuestions[idx].length || 0));
525
+ setQuestions(newListQuestions);
526
+ setCountValues(Object.assign(Object.assign({}, countValues), { total_question: countLists }));
527
+ onSkipQuestion === null || onSkipQuestion === void 0 ? void 0 : onSkipQuestion(countLists);
528
+ }
529
+ };
530
+ return (React__default.createElement("div", { className: styles$3.container }, fetchLoading ? (React__default.createElement(Loading, null)) : (countValues === null || countValues === void 0 ? void 0 : countValues.total_question) > 0 ? (communities.length > 0 && (React__default.createElement(Accordion, { className: styles$3.accordion, defaultValue: String(((_b = communities[(_a = Object.keys(communities)) === null || _a === void 0 ? void 0 : _a[0]]) === null || _b === void 0 ? void 0 : _b.id) || ''), styles: (_theme) => ({
531
+ control: {
532
+ padding: '16px',
533
+ border: `1px solid ${_theme.colors.neutral[1]}`,
534
+ borderTopLeftRadius: '8px',
535
+ borderTopRightRadius: '8px',
536
+ '&[aria-expanded="false"]': {
537
+ borderBottom: 0,
538
+ },
539
+ },
540
+ chevron: {
541
+ width: '32px',
542
+ height: '32px',
543
+ },
544
+ content: {
545
+ padding: 0,
546
+ border: `1px solid ${_theme.colors.neutral[1]}`,
547
+ borderTop: 0,
548
+ borderBottom: 0,
549
+ },
550
+ label: {
551
+ padding: 0,
552
+ },
553
+ item: {
554
+ marginBottom: '16px',
555
+ },
556
+ }), chevron: React__default.createElement("div", { className: styles$3.chevron },
557
+ React__default.createElement(ArrowDown, { color: theme.colors.gray600, size: 20 })) }, communities.map((i) => {
558
+ const listing = (questions && (questions === null || questions === void 0 ? void 0 : questions[i.id])) || [];
559
+ return (listing.length > 0 && (React__default.createElement(Accordion.Item, { key: i.id, value: String(i.id) },
560
+ React__default.createElement(Accordion.Control, null,
561
+ React__default.createElement("div", { className: styles$3.header },
562
+ React__default.createElement("div", { className: styles$3.headingIcon },
563
+ React__default.createElement("img", { src: i.thumbnail, loading: "lazy" })),
564
+ React__default.createElement("div", { className: styles$3.heading }, i.name))),
565
+ React__default.createElement(Accordion.Panel, null,
566
+ React__default.createElement("div", { className: styles$3.body }, listing.map((post) => (React__default.createElement(QuestionCard, { className: "question-card", key: post.id, post: post, onSkip: handleSkipQuestion }))))))));
567
+ })))) : (React__default.createElement(EmptyMessage, { message: t('profilePanel.emptyCareMess.content'), imgSrc: CommonGAssets.getAssetPath('questions.svg') }))));
568
+ };
569
+
570
+ var styles$2 = {"container":"GA-zc-O","mainTxt":"A18McWD","question":"yzr0H0N","questionTitle":"_6gVRc3i","community":"xOzLGrD","questionCard":"IB049vj","linkWrapper":"_8I--vEV"};
571
+
572
+ const PostCard = ({ post, className = '' }) => {
573
+ var _a;
574
+ const { data: { userInfo, env: { togetherBasePath }, }, } = useContext(TogetherComponentGlobalContext);
575
+ const { t } = useTranslations();
576
+ const theme = useMantineTheme();
577
+ const { authActionWrapper, authorProps } = useContext(ProfileDetailContext);
578
+ const postHref = `${window.location.origin}${togetherBasePath}/${(_a = post === null || post === void 0 ? void 0 : post.community) === null || _a === void 0 ? void 0 : _a.slug}/${post === null || post === void 0 ? void 0 : post.slug}/`;
579
+ return (React__default.createElement("div", { className: `${styles$2.container} ${className}` },
580
+ React__default.createElement("div", { className: styles$2.questionCard },
581
+ React__default.createElement("a", { "data-event-category": "Together", "data-event-action": "Click Post", "data-event-label": postHref, className: styles$2.linkWrapper, href: postHref, onClick: (e) => {
582
+ if (!(userInfo === null || userInfo === void 0 ? void 0 : userInfo.id)) {
583
+ e.preventDefault();
584
+ authActionWrapper === null || authActionWrapper === void 0 ? void 0 : authActionWrapper(() => (window.location.href = postHref));
585
+ }
586
+ } }),
587
+ React__default.createElement(CardAuthor, { className: "card-author", avatarProps: {
588
+ avatar: authorProps === null || authorProps === void 0 ? void 0 : authorProps.avatar,
589
+ size: 32,
590
+ } },
591
+ React__default.createElement(CardAuthor$1.MainText, { className: styles$2.mainTxt }, post === null || post === void 0 ? void 0 : post.title),
592
+ React__default.createElement(CardAuthor$1.SubTextRow, null,
593
+ React__default.createElement(CardAuthor$1.SubText, null, post === null || post === void 0 ? void 0 : post.createdTime))),
594
+ React__default.createElement(PostContent, { className: "post-content-wrapper", description: post === null || post === void 0 ? void 0 : post.description, mentions: post === null || post === void 0 ? void 0 : post.mentions, maxChars: 200, "data-testid": "Content of the Post", hideShowAllBtn: true }),
595
+ React__default.createElement(Text, { size: "p3", color: theme.fn.primaryColor() }, t('post.seeMore')))));
596
+ };
597
+
598
+ var styles$1 = {"container":"TSMHoEM"};
599
+
600
+ const Posts = () => {
601
+ const { t } = useTranslations();
602
+ const { data: { locale }, } = useContext(TogetherComponentGlobalContext);
603
+ const { authorId: id, authorProps, isAuthorLogin, onCloseFromPost, } = useContext(ProfileDetailContext);
604
+ const [posts, setPosts] = useState(null);
605
+ const [loading, setLoading] = useState(false);
606
+ useEffect(() => {
607
+ id &&
608
+ (() => __awaiter(void 0, void 0, void 0, function* () {
609
+ var _a;
610
+ setLoading(true);
611
+ const res = yield callApi(getApiPath(PATHS.USER.LIST_POST, {
612
+ _locale: locale,
613
+ id,
614
+ isAnonymous: 0,
615
+ }), 'GET');
616
+ const resData = (((_a = res === null || res === void 0 ? void 0 : res.data) === null || _a === void 0 ? void 0 : _a.posts) || []).map(formatPost);
617
+ setPosts(resData);
618
+ setLoading(false);
619
+ }))();
620
+ }, [id]);
621
+ return (React__default.createElement("div", { className: styles$1.container }, loading ? (React__default.createElement(Loading, null)) : (posts !== null &&
622
+ (posts.length > 0 ? (posts.map((i) => (React__default.createElement(PostCard, { className: "post-card", key: i.id, post: i })))) : (React__default.createElement(EmptyMessage, { message: t('profilePanel.emptyPostMess.content', {
623
+ name: (authorProps === null || authorProps === void 0 ? void 0 : authorProps.name) || (authorProps === null || authorProps === void 0 ? void 0 : authorProps.username) || '',
624
+ }), buttonTxt: isAuthorLogin && t('profilePanel.createPost'), onBtnClick: () => {
625
+ onCloseFromPost === null || onCloseFromPost === void 0 ? void 0 : onCloseFromPost();
626
+ } }))))));
627
+ };
628
+
629
+ var styles = {"container":"_4Vekw96","info":"DIJdGcB","body":"aQSt4-Q"};
630
+
631
+ const formatExperience = (data) => {
632
+ if (!data)
633
+ return {};
634
+ return {
635
+ title: data === null || data === void 0 ? void 0 : data.title,
636
+ organization: data === null || data === void 0 ? void 0 : data.organization,
637
+ duration: data.duration,
638
+ };
639
+ };
640
+ const formatEducation = (data) => {
641
+ if (!data)
642
+ return {};
643
+ return {
644
+ completedYear: data === null || data === void 0 ? void 0 : data.completed_year,
645
+ schoolName: data.school_name,
646
+ study: data.study,
647
+ };
648
+ };
649
+
650
+ var TabName;
651
+ (function (TabName) {
652
+ TabName[TabName["About"] = 0] = "About";
653
+ TabName[TabName["Care"] = 1] = "Care";
654
+ TabName[TabName["Answer"] = 2] = "Answer";
655
+ TabName[TabName["Posts"] = 3] = "Posts";
656
+ })(TabName || (TabName = {}));
657
+ var UserType;
658
+ (function (UserType) {
659
+ UserType[UserType["Expert"] = 0] = "Expert";
660
+ UserType[UserType["User"] = 1] = "User";
661
+ })(UserType || (UserType = {}));
662
+ const TabDataInit = {
663
+ experiences: [],
664
+ relatedPosts: [],
665
+ educations: [],
666
+ awards: [],
667
+ contact: {},
668
+ data: {},
669
+ };
670
+ const ProfileDetail = (_a) => {
671
+ var _b;
672
+ var { authorProps, selectedTab, authActionWrapper, onSkipQuestion, onCloseFromPost, hideQuestionTab, hideAnswerTab, showSkipQuestionTag, rolesToShowQuestionsTab = ['expert'], currentPageUrl } = _a, rest = __rest(_a, ["authorProps", "selectedTab", "authActionWrapper", "onSkipQuestion", "onCloseFromPost", "hideQuestionTab", "hideAnswerTab", "showSkipQuestionTag", "rolesToShowQuestionsTab", "currentPageUrl"]);
673
+ const { data: { locale, userInfo, env: { isMarryBaby }, }, } = useContext(TogetherComponentGlobalContext);
674
+ const { t } = useTranslations();
675
+ const role = authorProps === null || authorProps === void 0 ? void 0 : authorProps.role;
676
+ const loginRole = userInfo === null || userInfo === void 0 ? void 0 : userInfo.role;
677
+ const id = String(authorProps === null || authorProps === void 0 ? void 0 : authorProps.userId);
678
+ const [countValues, setCountValues] = useState();
679
+ const [loading, setLoading] = useState(false);
680
+ const [info, setInfo] = useState();
681
+ const isAuthorLogin = (userInfo === null || userInfo === void 0 ? void 0 : userInfo._togetherUserId) === (authorProps === null || authorProps === void 0 ? void 0 : authorProps.userId);
682
+ const tabContent = [
683
+ ...(rolesToShowQuestionsTab.indexOf(role) !== -1
684
+ ? [
685
+ {
686
+ value: TabName.About,
687
+ text: t('profilePanel.tabs.highlight'),
688
+ content: React__default.createElement(About, { id: id, info: info }),
689
+ dataEventCategory: 'Together',
690
+ dataEventAction: 'Doctor Profile Click',
691
+ dataEventLabel: currentPageUrl,
692
+ },
693
+ ]
694
+ : []),
695
+ {
696
+ value: TabName.Posts,
697
+ text: t('profilePanel.tabs.posts'),
698
+ content: React__default.createElement(Posts, null),
699
+ hasCountResult: true,
700
+ keyOfCountApi: 'post',
701
+ keyOfResult: 'total_post',
702
+ },
703
+ ...(!hideQuestionTab &&
704
+ rolesToShowQuestionsTab.indexOf(loginRole) !== -1 &&
705
+ (userInfo === null || userInfo === void 0 ? void 0 : userInfo._togetherUserId) === (authorProps === null || authorProps === void 0 ? void 0 : authorProps.userId)
706
+ ? [
707
+ {
708
+ value: TabName.Care,
709
+ text: `${t('profilePanel.tabs.care')}`,
710
+ content: React__default.createElement(Care, null),
711
+ hasCountResult: true,
712
+ keyOfCountApi: 'question',
713
+ keyOfResult: 'total_question',
714
+ dataEventCategory: 'Together',
715
+ dataEventAction: 'Doctor Questions Click',
716
+ dataEventLabel: currentPageUrl,
717
+ },
718
+ ]
719
+ : []),
720
+ ...(!hideAnswerTab && rolesToShowQuestionsTab.indexOf(role) !== -1
721
+ ? [
722
+ {
723
+ value: TabName.Answer,
724
+ text: `${t('profilePanel.tabs.expertAnswer')}`,
725
+ content: React__default.createElement(Answering, { id: id }),
726
+ hasCountResult: true,
727
+ keyOfCountApi: 'reply',
728
+ keyOfResult: 'total_reply',
729
+ dataEventCategory: 'Together',
730
+ dataEventAction: 'Doctor Reply Tab Click',
731
+ dataEventLabel: currentPageUrl,
732
+ },
733
+ ]
734
+ : []),
735
+ ];
736
+ const [finalTabContent, setFinalTabContent] = useState(null);
737
+ const [activeTab, setActiveTab] = useState(null);
738
+ const tabsProps = {
739
+ value: String(activeTab),
740
+ dataList: finalTabContent,
741
+ onTabChange: (n) => setActiveTab(Number(n)),
742
+ };
743
+ const listTabsHasCount = tabContent === null || tabContent === void 0 ? void 0 : tabContent.filter((i) => i === null || i === void 0 ? void 0 : i.hasCountResult);
744
+ useEffect(() => {
745
+ (() => __awaiter(void 0, void 0, void 0, function* () {
746
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
747
+ setLoading(true);
748
+ const res = yield Promise.all([
749
+ callApi(getApiPath(PATHS.USER.DETAIL, {
750
+ _locale: locale,
751
+ id,
752
+ }), 'GET'),
753
+ ...listTabsHasCount.map((i) => {
754
+ return callApi(getApiPath(PATHS.USER.COUNT_TABS, {
755
+ _locale: locale,
756
+ id,
757
+ [i.keyOfCountApi]: 1,
758
+ }), 'GET');
759
+ }),
760
+ ]);
761
+ const [restDetail] = res;
762
+ const resInfo = {
763
+ data: restDetail === null || restDetail === void 0 ? void 0 : restDetail.data,
764
+ experiences: (((_b = (_a = restDetail === null || restDetail === void 0 ? void 0 : restDetail.data) === null || _a === void 0 ? void 0 : _a.fields) === null || _b === void 0 ? void 0 : _b.experiences) || []).map(formatExperience),
765
+ relatedPosts: (((_c = restDetail === null || restDetail === void 0 ? void 0 : restDetail.data) === null || _c === void 0 ? void 0 : _c.related_post) || []).map((i) => formatArticle(i.post)),
766
+ educations: (((_e = (_d = restDetail === null || restDetail === void 0 ? void 0 : restDetail.data) === null || _d === void 0 ? void 0 : _d.fields) === null || _e === void 0 ? void 0 : _e.educations) || []).map(formatEducation),
767
+ awards: ((_g = (_f = restDetail === null || restDetail === void 0 ? void 0 : restDetail.data) === null || _f === void 0 ? void 0 : _f.fields) === null || _g === void 0 ? void 0 : _g.awards_accreditations) || [],
768
+ contact: ((_j = (_h = restDetail === null || restDetail === void 0 ? void 0 : restDetail.data) === null || _h === void 0 ? void 0 : _h.fields) === null || _j === void 0 ? void 0 : _j.contact) || {},
769
+ };
770
+ (restDetail === null || restDetail === void 0 ? void 0 : restDetail.status) === 1 && setInfo(resInfo);
771
+ const relatedPost = (resInfo === null || resInfo === void 0 ? void 0 : resInfo.relatedPosts) || [];
772
+ const socialList = Object.keys(resInfo.contact).map((i) => { var _a; return ((_a = resInfo === null || resInfo === void 0 ? void 0 : resInfo.contact) === null || _a === void 0 ? void 0 : _a[i]) !== ''; });
773
+ const accInfo = [
774
+ ...((resInfo === null || resInfo === void 0 ? void 0 : resInfo.experiences) || []),
775
+ ...((resInfo === null || resInfo === void 0 ? void 0 : resInfo.educations) || []),
776
+ ...((resInfo === null || resInfo === void 0 ? void 0 : resInfo.awards) || []),
777
+ ];
778
+ const showAboutTab = relatedPost.length > 0 || socialList.length > 0 || accInfo.length > 0;
779
+ const tmp = {};
780
+ const listToShow = listTabsHasCount
781
+ .map((i, idx) => {
782
+ var _a, _b, _c;
783
+ const countNumber = ((_c = (_b = (_a = res[idx + 1]) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.counting) === null || _c === void 0 ? void 0 : _c[i.keyOfResult]) || 0;
784
+ if (countNumber > 0) {
785
+ tmp[i.keyOfResult] = countNumber;
786
+ return i;
787
+ }
788
+ else {
789
+ // ONLY SHOW TAB HAS COUNT > 0
790
+ if ([TabName.Care, TabName.Posts].indexOf(i.value) !== -1) {
791
+ return i;
792
+ }
793
+ }
794
+ })
795
+ .filter(Boolean)
796
+ .map((i) => i.value);
797
+ const newTab = tabContent
798
+ .map((i) => {
799
+ const newItem = Object.assign(Object.assign({}, i), { text: i.text +
800
+ (i.keyOfResult ? ` (${(tmp === null || tmp === void 0 ? void 0 : tmp[i.keyOfResult]) || '0'})` : '') });
801
+ if (!newItem.hasCountResult) {
802
+ if (newItem.value === TabName.About) {
803
+ return showAboutTab && newItem;
804
+ }
805
+ else {
806
+ return newItem;
807
+ }
808
+ }
809
+ else {
810
+ if (listToShow.indexOf(newItem.value) !== -1) {
811
+ return newItem;
812
+ }
813
+ }
814
+ })
815
+ .filter(Boolean);
816
+ setFinalTabContent(newTab);
817
+ setActiveTab(selectedTab || ((_k = newTab === null || newTab === void 0 ? void 0 : newTab[0]) === null || _k === void 0 ? void 0 : _k.value));
818
+ setCountValues(tmp);
819
+ setLoading(false);
820
+ }))();
821
+ }, []);
822
+ const userData = info === null || info === void 0 ? void 0 : info.data;
823
+ return (React__default.createElement(ProfileDetailContext.Provider, { value: {
824
+ isMarryBaby,
825
+ siteType: isMarryBaby ? 'marryBaby' : 'helloSites',
826
+ authorId: String((authorProps === null || authorProps === void 0 ? void 0 : authorProps.userId) || ''),
827
+ authActionWrapper,
828
+ onSkipQuestion,
829
+ info,
830
+ authorProps,
831
+ onCloseFromPost,
832
+ countValues,
833
+ setCountValues,
834
+ isAuthorLogin,
835
+ showSkipQuestionTag,
836
+ currentPageUrl,
837
+ } },
838
+ React__default.createElement("div", Object.assign({}, rest, { className: `${styles.container} ${(rest === null || rest === void 0 ? void 0 : rest.className) || ''}`, "data-is-marrybaby": isMarryBaby }), loading ? (React__default.createElement(Loading, null)) : (React__default.createElement(React__default.Fragment, null,
839
+ React__default.createElement(CardAuthor$1, Object.assign({}, authorProps, { className: "card-author", showDetailPopup: false, subLine: (authorProps === null || authorProps === void 0 ? void 0 : authorProps.role) === 'expert'
840
+ ? (userData === null || userData === void 0 ? void 0 : userData.specialty) &&
841
+ (userData === null || userData === void 0 ? void 0 : userData.organisation) && (React__default.createElement(CardAuthor$1.SubTextRow, null,
842
+ (userData === null || userData === void 0 ? void 0 : userData.specialty) && (React__default.createElement(React__default.Fragment, null,
843
+ React__default.createElement(CardAuthor$1.SubText, null, userData === null || userData === void 0 ? void 0 : userData.specialty),
844
+ React__default.createElement(CardAuthor$1.SubDivider, null))),
845
+ React__default.createElement(CardAuthor$1.SubText, null, userData === null || userData === void 0 ? void 0 : userData.organisation)))
846
+ : (userData === null || userData === void 0 ? void 0 : userData.created_at) && (React__default.createElement(CardAuthor$1.SubTextRow, null,
847
+ React__default.createElement(CardAuthor$1.SubText, null,
848
+ t('profilePanel.joined'),
849
+ ' ',
850
+ dayjs(userData === null || userData === void 0 ? void 0 : userData.created_at).toNow(true)))) })),
851
+ role === 'expert' && (React__default.createElement("div", { className: styles.info, dangerouslySetInnerHTML: { __html: (_b = info === null || info === void 0 ? void 0 : info.data) === null || _b === void 0 ? void 0 : _b.description } })),
852
+ finalTabContent !== null &&
853
+ activeTab !== null &&
854
+ (finalTabContent.length > 0 ? (React__default.createElement("div", { className: styles.body },
855
+ React__default.createElement(Tabs, Object.assign({}, tabsProps)))) : (React__default.createElement(EmptyMessage, { message: t('profilePanel.emptyPostMess.content', {
856
+ text: (authorProps === null || authorProps === void 0 ? void 0 : authorProps.name) || (authorProps === null || authorProps === void 0 ? void 0 : authorProps.username) || '',
857
+ }) }))))))));
858
+ };
859
+
860
+ export { PostContent as P, TabName as T, UserType as U, ProfileDetail as a, TabDataInit as b };