@hhgtech/hhg-components 1.25.16 → 1.25.17

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 (341) 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/carousel/core/index.d.ts +10 -0
  5. package/build/components/mantine/carousel/index.d.ts +4 -10
  6. package/build/components/mantine/{anchor → core/anchor}/index.d.ts +1 -1
  7. package/build/components/mantine/{button → core/button}/index.d.ts +1 -1
  8. package/build/components/mantine/core/index.d.ts +46 -0
  9. package/build/components/mantine/{text → core/text}/index.d.ts +1 -1
  10. package/build/components/mantine/index.d.ts +2 -50
  11. package/build/components/molecules/pillCarousel/index.styled.d.ts +1 -1
  12. package/build/components/onboarding/dynamicForm/index.d.ts +1 -1
  13. package/build/components/onboarding/onboardingForm/index.d.ts +1 -1
  14. package/build/components.js +1 -1
  15. package/build/constants.js +1 -1
  16. package/build/core-ba69d8fc.js +1 -0
  17. package/build/{dataTransform-b864fb66.js → dataTransform-bb7ce059.js} +1 -1
  18. package/build/ecom.js +1 -1
  19. package/build/esm/babyGrowth.js +5 -5
  20. package/build/esm/cache.js +1 -1
  21. package/build/esm/care.js +1 -1
  22. package/build/esm/components.js +1 -1
  23. package/build/esm/constants.js +1 -1
  24. package/build/esm/{core-ba2fd683.js → core-cb6b8247.js} +1 -1
  25. package/build/esm/{dataTransform-ea1a3fca.js → dataTransform-9490e626.js} +1 -1
  26. package/build/esm/ecom.js +1 -1
  27. package/build/esm/footer.js +1 -1
  28. package/build/esm/gAssets.js +1 -1
  29. package/build/esm/getDynamicHealthTool-516693b6.js +1 -0
  30. package/build/esm/{getSocialList-ab030004.js → getSocialList-91102ad9.js} +1 -1
  31. package/build/esm/hooks.js +1 -1
  32. package/build/esm/i18n.js +1 -1
  33. package/build/esm/{index-c98f75b8.js → index-06418d2b.js} +1 -1
  34. package/build/esm/{index-75991114.js → index-0f813120.js} +1 -1
  35. package/build/esm/index-1597778e.js +1 -0
  36. package/build/esm/{index-70b45c46.js → index-16830c56.js} +1 -1
  37. package/build/esm/index-2dfb4d86.js +1 -0
  38. package/build/esm/{index-c2c86c0d.js → index-43d83c96.js} +1 -1
  39. package/build/esm/index-5d569ee2.js +1 -0
  40. package/build/esm/index-751cb996.js +1 -0
  41. package/build/esm/{index-35f7806c.js → index-7d7d84a5.js} +1 -1
  42. package/build/esm/{index-2a142a47.js → index-7e47d16a.js} +1 -1
  43. package/build/esm/{index-a07f4bfe.js → index-882f8fed.js} +1 -1
  44. package/build/esm/{index-5a461d74.js → index-8bebc342.js} +1 -1
  45. package/build/esm/index-a97e6523.js +1 -0
  46. package/build/esm/{index-cfb74ea0.js → index-ab16ac85.js} +1 -1
  47. package/build/esm/index-aff36134.js +1 -0
  48. package/build/esm/index-be5eb388.js +1 -0
  49. package/build/esm/index-c5372031.js +1 -0
  50. package/build/esm/{index-9138faf1.js → index-c7af9fd1.js} +1 -1
  51. package/build/esm/{index-a40d64e8.js → index-c7cbd72b.js} +1 -1
  52. package/build/esm/{index-0bf06ee0.js → index-de582f61.js} +1 -1
  53. package/build/esm/index-e4ed5b4d.js +1 -0
  54. package/build/esm/{index-ccdd392f.js → index-f1096581.js} +1 -1
  55. package/build/esm/index-f569cf80.js +1 -0
  56. package/build/esm/index.css +1 -1
  57. package/build/esm/index.js +1 -1
  58. package/build/esm/{index.styled-fc561049.js → index.styled-11e0ce87.js} +1 -1
  59. package/build/esm/{index.styled-3cdd12f1.js → index.styled-1d730d27.js} +3 -3
  60. package/build/esm/{index.styled-5ae035ab.js → index.styled-4b109674.js} +1 -1
  61. package/build/esm/{index.styled-f1ee25d0.js → index.styled-801193c3.js} +14 -14
  62. package/build/esm/{index.styled-a505cd67.js → index.styled-a960846e.js} +1 -1
  63. package/build/esm/{index.styled-0b649758.js → index.styled-af8fd90d.js} +1 -1
  64. package/build/esm/{index.styled-02059ce4.js → index.styled-d4de3910.js} +1 -1
  65. package/build/esm/index.styles-3745dc2e.js +115 -0
  66. package/build/esm/lead.js +1 -1
  67. package/build/esm/mantine.js +1 -1
  68. package/build/esm/misc.js +1 -1
  69. package/build/esm/navigation.js +1 -1
  70. package/build/esm/onboarding.js +1 -1
  71. package/build/esm/pwg.js +5 -5
  72. package/build/esm/{routing-f5267fd3.js → routing-74aefe66.js} +1 -1
  73. package/build/esm/{screenSizeContext-c2f212e1.js → screenSizeContext-9f2a4814.js} +3 -3
  74. package/build/esm/together.js +1 -1
  75. package/build/esm/{translationsProvider-3c3c7c09.js → translationsProvider-bb9d1501.js} +1 -1
  76. package/build/esm/{types-9566b194.js → types-ab6474e4.js} +4 -4
  77. package/build/esm/{types-ffbd2ac8.js → types-c118ec1d.js} +1 -1
  78. package/build/esm/types.js +1 -1
  79. package/build/esm/useHealthToolCache-b9c0610b.js +1 -0
  80. package/build/esm/{useRafState-01a7faf0.js → useRafState-104da213.js} +1 -1
  81. package/build/esm/{useScreenSize-e9d8015e.js → useScreenSize-6a9a110b.js} +1 -1
  82. package/build/esm/useTranslations-49be9e59.js +1 -0
  83. package/build/esm/vaccination.js +40 -40
  84. package/build/footer.js +1 -1
  85. package/build/gAssets.js +1 -1
  86. package/build/{getDynamicHealthTool-0bec177a.js → getDynamicHealthTool-fb58720c.js} +1 -1
  87. package/build/{getSocialList-f88da586.js → getSocialList-cd04e009.js} +1 -1
  88. package/build/hooks.js +1 -1
  89. package/build/i18n.js +1 -1
  90. package/build/{index-074dc655.js → index-07bd454b.js} +1 -1
  91. package/build/index-146dff36.js +1 -0
  92. package/build/{index-6c25a76a.js → index-177100b9.js} +1 -1
  93. package/build/{index-c9fa77fa.js → index-1aa326b2.js} +1 -1
  94. package/build/index-4bed6e9f.js +1 -0
  95. package/build/{index-46eeb64f.js → index-596ac3bf.js} +1 -1
  96. package/build/index-5c6f265a.js +1 -0
  97. package/build/index-5d8e9029.js +1 -0
  98. package/build/{index-2f2a1ca0.js → index-624e32a7.js} +1 -1
  99. package/build/{index-789ba373.js → index-63556ab8.js} +1 -1
  100. package/build/{index-4d7509df.js → index-72884c62.js} +1 -1
  101. package/build/{index-8a9eec8d.js → index-7bb39ce0.js} +1 -1
  102. package/build/index-8c37251e.js +1 -0
  103. package/build/{index-c82da917.js → index-8e22ac59.js} +1 -1
  104. package/build/{index-2cd87b80.js → index-a10c456d.js} +1 -1
  105. package/build/{index-91ec8025.js → index-a6cbf0aa.js} +1 -1
  106. package/build/index-a7c933ec.js +1 -0
  107. package/build/{index-af1a37ba.js → index-b010a1c5.js} +1 -1
  108. package/build/index-cac87321.js +1 -0
  109. package/build/{index-304e2cf7.js → index-d48375af.js} +1 -1
  110. package/build/{index-f452a4a5.js → index-e5245d33.js} +1 -1
  111. package/build/{index-a7f41562.js → index-e9025b9d.js} +1 -1
  112. package/build/{index-67c83807.js → index-ff056c87.js} +1 -1
  113. package/build/index.css +1 -1
  114. package/build/index.js +1 -1
  115. package/build/{index.styled-ed47a07d.js → index.styled-1f25a7c0.js} +1 -1
  116. package/build/{index.styled-e70d700a.js → index.styled-2813b78a.js} +1 -1
  117. package/build/{index.styled-d6658215.js → index.styled-3ac29630.js} +1 -1
  118. package/build/{index.styled-795f004b.js → index.styled-4883a3ce.js} +4 -4
  119. package/build/index.styled-48876b56.js +50 -0
  120. package/build/{index.styled-80be162a.js → index.styled-5bc4a4b6.js} +1 -1
  121. package/build/{index.styled-8006e170.js → index.styled-d13cbd8e.js} +1 -1
  122. package/build/index.styles-a38eaf42.js +115 -0
  123. package/build/interfaces/constants/storybook.d.ts +21 -0
  124. package/build/lead.js +1 -1
  125. package/build/mantine.js +1 -1
  126. package/build/misc.js +1 -1
  127. package/build/navigation.js +1 -1
  128. package/build/onboarding.js +1 -1
  129. package/build/pwg.js +4 -4
  130. package/build/{routing-72927134.js → routing-9fde2ffa.js} +1 -1
  131. package/build/screenSizeContext-a8d848ec.js +81 -0
  132. package/build/together.js +1 -1
  133. package/build/{translationsProvider-8f550930.js → translationsProvider-5cd4fa9c.js} +1 -1
  134. package/build/{types-c5bc90cb.js → types-102e1b49.js} +3 -3
  135. package/build/{types-c8d8eb16.js → types-12b35bb6.js} +1 -1
  136. package/build/types.js +1 -1
  137. package/build/useHealthToolCache-a700c73b.js +1 -0
  138. package/build/{useRafState-5a76bd5c.js → useRafState-fba5e6b5.js} +1 -1
  139. package/build/{useScreenSize-31904dd7.js → useScreenSize-940244c4.js} +1 -1
  140. package/build/{useTranslations-89571228.js → useTranslations-180b224a.js} +1 -1
  141. package/build/vaccination.js +32 -32
  142. package/package.json +2 -2
  143. package/build/core-5d728a55.js +0 -1
  144. package/build/esm/getDynamicHealthTool-e8444a16.js +0 -1
  145. package/build/esm/index-024aff4c.js +0 -1
  146. package/build/esm/index-045c3dbe.js +0 -1
  147. package/build/esm/index-0b9e6d69.js +0 -1
  148. package/build/esm/index-3b9131af.js +0 -1
  149. package/build/esm/index-58533005.js +0 -1
  150. package/build/esm/index-a3321808.js +0 -1
  151. package/build/esm/index-aa162c84.js +0 -1
  152. package/build/esm/index-b2955d8b.js +0 -1
  153. package/build/esm/index-ba2de84b.js +0 -1
  154. package/build/esm/index-cb20d0aa.js +0 -1
  155. package/build/esm/index-e9975efa.js +0 -1
  156. package/build/esm/index.styles-a3b13b63.js +0 -115
  157. package/build/esm/useHealthToolCache-87da841b.js +0 -1
  158. package/build/esm/useTranslations-500ece2c.js +0 -1
  159. package/build/index-120345da.js +0 -1
  160. package/build/index-228911dd.js +0 -1
  161. package/build/index-3e9e6943.js +0 -1
  162. package/build/index-55c2cff1.js +0 -1
  163. package/build/index-5cd58eea.js +0 -1
  164. package/build/index-998549ec.js +0 -1
  165. package/build/index-ad60c9da.js +0 -1
  166. package/build/index-d07da214.js +0 -1
  167. package/build/index.styled-155f6ab4.js +0 -50
  168. package/build/index.styles-c9257a36.js +0 -115
  169. package/build/screenSizeContext-d44834fc.js +0 -81
  170. package/build/useHealthToolCache-cb75d930.js +0 -1
  171. /package/build/{BMI_BOYS.percentile.monthly-a16fdd7b.js → BMI_BOYS.percentile.monthly-713fc9aa.js} +0 -0
  172. /package/build/{BMI_BOYS.percentile.weekly-2d669c9d.js → BMI_BOYS.percentile.weekly-0e55af52.js} +0 -0
  173. /package/build/{BMI_BOYS.percentile.yearly-126eea7f.js → BMI_BOYS.percentile.yearly-dbc5893d.js} +0 -0
  174. /package/build/{BMI_BOYS.zscore.monthly-12bef84e.js → BMI_BOYS.zscore.monthly-4b4b5592.js} +0 -0
  175. /package/build/{BMI_BOYS.zscore.weekly-fb51d160.js → BMI_BOYS.zscore.weekly-e690e8ef.js} +0 -0
  176. /package/build/{BMI_BOYS.zscore.yearly-a7402792.js → BMI_BOYS.zscore.yearly-8f489011.js} +0 -0
  177. /package/build/{BMI_GIRLS.percentile.monthly-6d61502a.js → BMI_GIRLS.percentile.monthly-368e943a.js} +0 -0
  178. /package/build/{BMI_GIRLS.percentile.weekly-d7569f41.js → BMI_GIRLS.percentile.weekly-0f6eeb7f.js} +0 -0
  179. /package/build/{BMI_GIRLS.percentile.yearly-6e1d9d07.js → BMI_GIRLS.percentile.yearly-f1162492.js} +0 -0
  180. /package/build/{BMI_GIRLS.zscore.monthly-3856f4d3.js → BMI_GIRLS.zscore.monthly-6d58bba1.js} +0 -0
  181. /package/build/{BMI_GIRLS.zscore.weekly-92efb198.js → BMI_GIRLS.zscore.weekly-4b089b2c.js} +0 -0
  182. /package/build/{BMI_GIRLS.zscore.yearly-0d46cd1a.js → BMI_GIRLS.zscore.yearly-9ecdd403.js} +0 -0
  183. /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-56b91897.js → HEAD CIRCUM_BOYS.percentile.monthly-1023be41.js} +0 -0
  184. /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-1ecbaf24.js → HEAD CIRCUM_BOYS.percentile.weekly-9a20ba88.js} +0 -0
  185. /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-88e10dad.js → HEAD CIRCUM_BOYS.percentile.yearly-a1659c29.js} +0 -0
  186. /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-d03ecb35.js → HEAD CIRCUM_BOYS.zscore.monthly-b4d66d62.js} +0 -0
  187. /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-d15f3aa0.js → HEAD CIRCUM_BOYS.zscore.weekly-bb057af0.js} +0 -0
  188. /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-576685e4.js → HEAD CIRCUM_BOYS.zscore.yearly-9d1e219f.js} +0 -0
  189. /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-54904949.js → HEAD CIRCUM_GIRLS.percentile.monthly-033ad24d.js} +0 -0
  190. /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-1c2a5e76.js → HEAD CIRCUM_GIRLS.percentile.weekly-7e64249e.js} +0 -0
  191. /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-4e2827dc.js → HEAD CIRCUM_GIRLS.percentile.yearly-11dd8669.js} +0 -0
  192. /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-42b4d984.js → HEAD CIRCUM_GIRLS.zscore.monthly-8c319303.js} +0 -0
  193. /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-57157b4b.js → HEAD CIRCUM_GIRLS.zscore.weekly-f708ceb7.js} +0 -0
  194. /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-381e2c20.js → HEAD CIRCUM_GIRLS.zscore.yearly-01375ad3.js} +0 -0
  195. /package/build/{HEIGHT_BOYS.percentile.monthly-a1a204ec.js → HEIGHT_BOYS.percentile.monthly-c7cc753f.js} +0 -0
  196. /package/build/{HEIGHT_BOYS.percentile.weekly-2fdfbd58.js → HEIGHT_BOYS.percentile.weekly-8582fa27.js} +0 -0
  197. /package/build/{HEIGHT_BOYS.percentile.yearly-c8bb1fc2.js → HEIGHT_BOYS.percentile.yearly-7fc9e6a1.js} +0 -0
  198. /package/build/{HEIGHT_BOYS.zscore.monthly-793028cd.js → HEIGHT_BOYS.zscore.monthly-184e6766.js} +0 -0
  199. /package/build/{HEIGHT_BOYS.zscore.weekly-49e6013e.js → HEIGHT_BOYS.zscore.weekly-8eb4c11a.js} +0 -0
  200. /package/build/{HEIGHT_BOYS.zscore.yearly-00c13900.js → HEIGHT_BOYS.zscore.yearly-716e3fa5.js} +0 -0
  201. /package/build/{HEIGHT_GIRLS.percentile.monthly-dce27240.js → HEIGHT_GIRLS.percentile.monthly-f7900bca.js} +0 -0
  202. /package/build/{HEIGHT_GIRLS.percentile.weekly-ba38d9a1.js → HEIGHT_GIRLS.percentile.weekly-78a0e501.js} +0 -0
  203. /package/build/{HEIGHT_GIRLS.percentile.yearly-0f12c790.js → HEIGHT_GIRLS.percentile.yearly-55e46740.js} +0 -0
  204. /package/build/{HEIGHT_GIRLS.zscore.monthly-29002345.js → HEIGHT_GIRLS.zscore.monthly-89487eb3.js} +0 -0
  205. /package/build/{HEIGHT_GIRLS.zscore.weekly-8559a3c1.js → HEIGHT_GIRLS.zscore.weekly-9ee55eb0.js} +0 -0
  206. /package/build/{HEIGHT_GIRLS.zscore.yearly-d8f2671f.js → HEIGHT_GIRLS.zscore.yearly-d80e6128.js} +0 -0
  207. /package/build/{Onboarding-2e80c74d.js → Onboarding-42d0015c.js} +0 -0
  208. /package/build/{Visible-0136fe9c.js → Visible-8b2fd6de.js} +0 -0
  209. /package/build/{WEIGHT_BOYS.percentile.monthly-afcb3402.js → WEIGHT_BOYS.percentile.monthly-235379f4.js} +0 -0
  210. /package/build/{WEIGHT_BOYS.percentile.weekly-128b4a80.js → WEIGHT_BOYS.percentile.weekly-029b7241.js} +0 -0
  211. /package/build/{WEIGHT_BOYS.percentile.yearly-4854c506.js → WEIGHT_BOYS.percentile.yearly-65207d06.js} +0 -0
  212. /package/build/{WEIGHT_BOYS.zscore.monthly-0ec4d94b.js → WEIGHT_BOYS.zscore.monthly-e1a7dc2b.js} +0 -0
  213. /package/build/{WEIGHT_BOYS.zscore.weekly-bd7e4513.js → WEIGHT_BOYS.zscore.weekly-48b7119c.js} +0 -0
  214. /package/build/{WEIGHT_BOYS.zscore.yearly-6e46e508.js → WEIGHT_BOYS.zscore.yearly-c5ff63f7.js} +0 -0
  215. /package/build/{WEIGHT_GIRLS.percentile.monthly-aeee568e.js → WEIGHT_GIRLS.percentile.monthly-20716a2b.js} +0 -0
  216. /package/build/{WEIGHT_GIRLS.percentile.weekly-11dfff17.js → WEIGHT_GIRLS.percentile.weekly-563be09c.js} +0 -0
  217. /package/build/{WEIGHT_GIRLS.percentile.yearly-ab56574a.js → WEIGHT_GIRLS.percentile.yearly-6ddc2b47.js} +0 -0
  218. /package/build/{WEIGHT_GIRLS.zscore.monthly-0502b9f2.js → WEIGHT_GIRLS.zscore.monthly-daedfd4f.js} +0 -0
  219. /package/build/{WEIGHT_GIRLS.zscore.weekly-62b12b98.js → WEIGHT_GIRLS.zscore.weekly-eea3eb17.js} +0 -0
  220. /package/build/{WEIGHT_GIRLS.zscore.yearly-4cc4173d.js → WEIGHT_GIRLS.zscore.yearly-29a40747.js} +0 -0
  221. /package/build/components/mantine/{CentralCarousel → carousel/centralCarousel}/index.d.ts +0 -0
  222. /package/build/components/mantine/{CentralCarousel → carousel/centralCarousel}/index.styled.d.ts +0 -0
  223. /package/build/components/mantine/{accordion → core/accordion}/index.d.ts +0 -0
  224. /package/build/components/mantine/{accordion → core/accordion}/index.styled.d.ts +0 -0
  225. /package/build/components/mantine/{anchor → core/anchor}/index.styles.d.ts +0 -0
  226. /package/build/components/mantine/{aspectRatio → core/aspectRatio}/index.d.ts +0 -0
  227. /package/build/components/mantine/{aspectRatio → core/aspectRatio}/index.styled.d.ts +0 -0
  228. /package/build/components/mantine/{avatar → core/avatar}/index.d.ts +0 -0
  229. /package/build/components/mantine/{badge → core/badge}/index.d.ts +0 -0
  230. /package/build/components/mantine/{button → core/button}/index.styled.d.ts +0 -0
  231. /package/build/components/mantine/{button → core/button}/index.styles.d.ts +0 -0
  232. /package/build/components/mantine/{checkbox → core/checkbox}/index.d.ts +0 -0
  233. /package/build/components/mantine/{datepicker → core/datepicker}/index.d.ts +0 -0
  234. /package/build/components/mantine/{datepicker → core/datepicker}/index.styled.d.ts +0 -0
  235. /package/build/components/mantine/{datepicker → core/datepicker}/range.d.ts +0 -0
  236. /package/build/components/mantine/{indicator → core/indicator}/index.d.ts +0 -0
  237. /package/build/components/mantine/{input → core/input}/file.d.ts +0 -0
  238. /package/build/components/mantine/{input → core/input}/index.d.ts +0 -0
  239. /package/build/components/mantine/{input → core/input}/number.d.ts +0 -0
  240. /package/build/components/mantine/{input → core/input}/password.d.ts +0 -0
  241. /package/build/components/mantine/{loadingOverlay → core/loadingOverlay}/index.d.ts +0 -0
  242. /package/build/components/mantine/{modal → core/modal}/index.d.ts +0 -0
  243. /package/build/components/mantine/{modal → core/modal}/index.styled.d.ts +0 -0
  244. /package/build/components/mantine/{otp → core/otp}/index.d.ts +0 -0
  245. /package/build/components/mantine/{otp → core/otp}/index.helpers.d.ts +0 -0
  246. /package/build/components/mantine/{phone → core/phone}/index.d.ts +0 -0
  247. /package/build/components/mantine/{phone → core/phone}/index.helpers.d.ts +0 -0
  248. /package/build/components/mantine/{provider → core/provider}/index.d.ts +0 -0
  249. /package/build/components/mantine/{radio → core/radio}/index.d.ts +0 -0
  250. /package/build/components/mantine/{result → core/result}/index.d.ts +0 -0
  251. /package/build/components/mantine/{select → core/select}/index.d.ts +0 -0
  252. /package/build/components/mantine/{slider → core/slider}/index.d.ts +0 -0
  253. /package/build/components/mantine/{slider → core/slider}/index.styled.d.ts +0 -0
  254. /package/build/components/mantine/{spoiler → core/spoiler}/index.d.ts +0 -0
  255. /package/build/components/mantine/{switch → core/switch}/index.d.ts +0 -0
  256. /package/build/components/mantine/{text → core/text}/index.styled.d.ts +0 -0
  257. /package/build/components/mantine/{text → core/text}/index.styles.d.ts +0 -0
  258. /package/build/components/mantine/{textArea → core/textArea}/index.d.ts +0 -0
  259. /package/build/components/mantine/{textArea → core/textArea}/index.styled.d.ts +0 -0
  260. /package/build/{constants-24bf9108.js → constants-8ad4c20d.js} +0 -0
  261. /package/build/{cookieHelper-1d464ea5.js → cookieHelper-08dcca45.js} +0 -0
  262. /package/build/{dataTransform-0b79774a.js → dataTransform-7e070948.js} +0 -0
  263. /package/build/esm/{BMI_BOYS.percentile.monthly-c5dfa74f.js → BMI_BOYS.percentile.monthly-010cdbac.js} +0 -0
  264. /package/build/esm/{BMI_BOYS.percentile.weekly-3f4604bd.js → BMI_BOYS.percentile.weekly-9a0b1642.js} +0 -0
  265. /package/build/esm/{BMI_BOYS.percentile.yearly-4a05fe36.js → BMI_BOYS.percentile.yearly-74fc2ddf.js} +0 -0
  266. /package/build/esm/{BMI_BOYS.zscore.monthly-e9531e7f.js → BMI_BOYS.zscore.monthly-c0d8cf6c.js} +0 -0
  267. /package/build/esm/{BMI_BOYS.zscore.weekly-ece69d39.js → BMI_BOYS.zscore.weekly-b3a56640.js} +0 -0
  268. /package/build/esm/{BMI_BOYS.zscore.yearly-3d4725b1.js → BMI_BOYS.zscore.yearly-75178654.js} +0 -0
  269. /package/build/esm/{BMI_GIRLS.percentile.monthly-8e52926a.js → BMI_GIRLS.percentile.monthly-364a1f4b.js} +0 -0
  270. /package/build/esm/{BMI_GIRLS.percentile.weekly-d504e41f.js → BMI_GIRLS.percentile.weekly-8c2ab6c0.js} +0 -0
  271. /package/build/esm/{BMI_GIRLS.percentile.yearly-692fecea.js → BMI_GIRLS.percentile.yearly-63729aa1.js} +0 -0
  272. /package/build/esm/{BMI_GIRLS.zscore.monthly-4411084b.js → BMI_GIRLS.zscore.monthly-3beadff9.js} +0 -0
  273. /package/build/esm/{BMI_GIRLS.zscore.weekly-e1a4c0a6.js → BMI_GIRLS.zscore.weekly-baeb1e31.js} +0 -0
  274. /package/build/esm/{BMI_GIRLS.zscore.yearly-6799ae8b.js → BMI_GIRLS.zscore.yearly-49dc132d.js} +0 -0
  275. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-3a1e046f.js → HEAD CIRCUM_BOYS.percentile.monthly-c796be9f.js} +0 -0
  276. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-2af01be2.js → HEAD CIRCUM_BOYS.percentile.weekly-1a563c84.js} +0 -0
  277. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-658c26aa.js → HEAD CIRCUM_BOYS.percentile.yearly-d3f3a08b.js} +0 -0
  278. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-e71903e1.js → HEAD CIRCUM_BOYS.zscore.monthly-fb470779.js} +0 -0
  279. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-a44695a1.js → HEAD CIRCUM_BOYS.zscore.weekly-ec91dc28.js} +0 -0
  280. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-ad6d11bb.js → HEAD CIRCUM_BOYS.zscore.yearly-5ea0106b.js} +0 -0
  281. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-b34fe105.js → HEAD CIRCUM_GIRLS.percentile.monthly-3a9c5746.js} +0 -0
  282. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-14965d6c.js → HEAD CIRCUM_GIRLS.percentile.weekly-603bb706.js} +0 -0
  283. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-1c00effc.js → HEAD CIRCUM_GIRLS.percentile.yearly-feb15e12.js} +0 -0
  284. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-e4624c3f.js → HEAD CIRCUM_GIRLS.zscore.monthly-eb7843a9.js} +0 -0
  285. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-81449064.js → HEAD CIRCUM_GIRLS.zscore.weekly-6fcb2470.js} +0 -0
  286. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-fd4989ad.js → HEAD CIRCUM_GIRLS.zscore.yearly-9589308b.js} +0 -0
  287. /package/build/esm/{HEIGHT_BOYS.percentile.monthly-e4b8de54.js → HEIGHT_BOYS.percentile.monthly-a4c7ad53.js} +0 -0
  288. /package/build/esm/{HEIGHT_BOYS.percentile.weekly-57fb5e26.js → HEIGHT_BOYS.percentile.weekly-69bfd4db.js} +0 -0
  289. /package/build/esm/{HEIGHT_BOYS.percentile.yearly-4e5d379e.js → HEIGHT_BOYS.percentile.yearly-86bcb1f7.js} +0 -0
  290. /package/build/esm/{HEIGHT_BOYS.zscore.monthly-5c764416.js → HEIGHT_BOYS.zscore.monthly-628a9ceb.js} +0 -0
  291. /package/build/esm/{HEIGHT_BOYS.zscore.weekly-e3164328.js → HEIGHT_BOYS.zscore.weekly-cfcace85.js} +0 -0
  292. /package/build/esm/{HEIGHT_BOYS.zscore.yearly-ccbd7cbb.js → HEIGHT_BOYS.zscore.yearly-8a320d00.js} +0 -0
  293. /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-dc5ab5fb.js → HEIGHT_GIRLS.percentile.monthly-d925e2cf.js} +0 -0
  294. /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-b19a343b.js → HEIGHT_GIRLS.percentile.weekly-96e25765.js} +0 -0
  295. /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-3ecec91a.js → HEIGHT_GIRLS.percentile.yearly-9caaa57f.js} +0 -0
  296. /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-a9235ceb.js → HEIGHT_GIRLS.zscore.monthly-75b91cd0.js} +0 -0
  297. /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-fa778348.js → HEIGHT_GIRLS.zscore.weekly-9a4de60b.js} +0 -0
  298. /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-2f457d9d.js → HEIGHT_GIRLS.zscore.yearly-478fa4c8.js} +0 -0
  299. /package/build/esm/{Onboarding-4dcdddc9.js → Onboarding-f5e77ca6.js} +0 -0
  300. /package/build/esm/{Visible-5abcf2da.js → Visible-cd8e0490.js} +0 -0
  301. /package/build/esm/{WEIGHT_BOYS.percentile.monthly-3383dc71.js → WEIGHT_BOYS.percentile.monthly-3e26ea96.js} +0 -0
  302. /package/build/esm/{WEIGHT_BOYS.percentile.weekly-2061fbc6.js → WEIGHT_BOYS.percentile.weekly-c430cc99.js} +0 -0
  303. /package/build/esm/{WEIGHT_BOYS.percentile.yearly-a133f5a6.js → WEIGHT_BOYS.percentile.yearly-cf809ec7.js} +0 -0
  304. /package/build/esm/{WEIGHT_BOYS.zscore.monthly-36ecd3d1.js → WEIGHT_BOYS.zscore.monthly-d4f6701c.js} +0 -0
  305. /package/build/esm/{WEIGHT_BOYS.zscore.weekly-e65de9c4.js → WEIGHT_BOYS.zscore.weekly-1d69eb7e.js} +0 -0
  306. /package/build/esm/{WEIGHT_BOYS.zscore.yearly-f926f0f9.js → WEIGHT_BOYS.zscore.yearly-bc11a6b2.js} +0 -0
  307. /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-79a3e3f3.js → WEIGHT_GIRLS.percentile.monthly-c90b05fe.js} +0 -0
  308. /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-420c2207.js → WEIGHT_GIRLS.percentile.weekly-37712c82.js} +0 -0
  309. /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-a8f23f9e.js → WEIGHT_GIRLS.percentile.yearly-8eb51d0e.js} +0 -0
  310. /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-a58e66b3.js → WEIGHT_GIRLS.zscore.monthly-5e8eb25e.js} +0 -0
  311. /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-dcc56686.js → WEIGHT_GIRLS.zscore.weekly-77bcc888.js} +0 -0
  312. /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-fa525f90.js → WEIGHT_GIRLS.zscore.yearly-aaf3bba0.js} +0 -0
  313. /package/build/esm/{constants-e75d23ea.js → constants-b66cec54.js} +0 -0
  314. /package/build/esm/{cookieHelper-825eddeb.js → cookieHelper-2b7d2afc.js} +0 -0
  315. /package/build/esm/{dataTransform-696b660d.js → dataTransform-ac81f250.js} +0 -0
  316. /package/build/esm/{index-1a6d7a63.js → index-a077234a.js} +0 -0
  317. /package/build/esm/{isProduction-691bcc80.js → isProduction-904f917e.js} +0 -0
  318. /package/build/esm/{localizeNumberFormat-f7d6dd01.js → localizeNumberFormat-84313743.js} +0 -0
  319. /package/build/esm/{normalizeLink-87921b1f.js → normalizeLink-f09315c8.js} +0 -0
  320. /package/build/esm/{theme-220bea92.js → theme-da141727.js} +0 -0
  321. /package/build/esm/{translationsContext-fb265fa4.js → translationsContext-2e507b01.js} +0 -0
  322. /package/build/esm/{tslib.es6-5ca9a486.js → tslib.es6-86b09138.js} +0 -0
  323. /package/build/esm/{types-f17433cd.js → types-b145c121.js} +0 -0
  324. /package/build/esm/{useIsInit-32dad1f8.js → useIsInit-6b11d6d0.js} +0 -0
  325. /package/build/esm/{useOutsideClick-ac963db7.js → useOutsideClick-085b1908.js} +0 -0
  326. /package/build/esm/{useScrollbarSize-7ad12109.js → useScrollbarSize-2610061b.js} +0 -0
  327. /package/build/esm/{useUniqueId-bcdf2a8c.js → useUniqueId-36e0c061.js} +0 -0
  328. /package/build/esm/{utils-b166401c.js → utils-967698bd.js} +0 -0
  329. /package/build/{index-7f5c603f.js → index-c5488d40.js} +0 -0
  330. /package/build/{isProduction-8b18510e.js → isProduction-eb9ee7c9.js} +0 -0
  331. /package/build/{localizeNumberFormat-92b1eeb9.js → localizeNumberFormat-6ee4498e.js} +0 -0
  332. /package/build/{normalizeLink-9bcb4d68.js → normalizeLink-4a97a619.js} +0 -0
  333. /package/build/{theme-0de6f9a8.js → theme-7f938f51.js} +0 -0
  334. /package/build/{translationsContext-991e7c4c.js → translationsContext-e545bfdf.js} +0 -0
  335. /package/build/{tslib.es6-9adbafe9.js → tslib.es6-6cc6202d.js} +0 -0
  336. /package/build/{types-1d0672d7.js → types-391a418d.js} +0 -0
  337. /package/build/{useIsInit-bbd70a25.js → useIsInit-293cc298.js} +0 -0
  338. /package/build/{useOutsideClick-d23beba5.js → useOutsideClick-c2339c81.js} +0 -0
  339. /package/build/{useScrollbarSize-81f1a66e.js → useScrollbarSize-2f8469a3.js} +0 -0
  340. /package/build/{useUniqueId-7a6ca14d.js → useUniqueId-d09e507f.js} +0 -0
  341. /package/build/{utils-00acb8fd.js → utils-efe1a237.js} +0 -0
@@ -1,4 +1,4 @@
1
- import{a as e,_ as t}from"./tslib.es6-5ca9a486.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,Checkbox as g,Portal as h,Anchor as v,Accordion as f,Popover as b}from"@mantine/core";import{B as w}from"./index-a07f4bfe.js";import{T as x}from"./index-a3321808.js";import{a as y}from"./index.styled-0b649758.js";import{u as E}from"./useTranslations-500ece2c.js";import C from"innertext";import{t as k}from"./theme-220bea92.js";import{N,a9 as A,a4 as L,D as T,_ as I,C as S,ab as P}from"./index.styled-a505cd67.js";import{CommonGAssets as M}from"./gAssets.js";import{T as z,au as j,av as F,aw as B,ax as O,ay as R,az as V,aA as D,U,aB as W,aC as Z,aD as H,aE as q,aF as _,aG as G,aH as Q,aI as X,aJ as K,aK as $,aL as Y,aM as J,aN as ee,aO as te,aP as ae}from"./index.styled-5ae035ab.js";import{A as oe,B as ne,T as ie,D as le}from"./index-3b9131af.js";import{e as re,c as se,P as ce,g as de,b as me,h as pe,i as ue}from"./dataTransform-ea1a3fca.js";import{I as ge}from"./index-9138faf1.js";import he from"lodash/debounce";import ve from"react-contenteditable";import{H as fe}from"./index-0bf06ee0.js";import{d as be,g as we}from"./cookieHelper-825eddeb.js";import{M as xe,t as ye,c as Ee,a as Ce}from"./utils-b166401c.js";import ke,{keyframes as Ne,css as Ae}from"styled-components";import"./index.styled-02059ce4.js";import"./index-a40d64e8.js";import{I as Le,C as Te,a as Ie}from"./index-2a142a47.js";import"./index.styled-fc561049.js";import"./index-1a6d7a63.js";import"./index.styles-a3b13b63.js";import Se from"dayjs";import"./screenSizeContext-c2f212e1.js";import{d as Pe}from"./index-c2c86c0d.js";import"./isProduction-691bcc80.js";import"./Onboarding-4dcdddc9.js";import"./index-024aff4c.js";import"@mantine/hooks";import"date-fns";import"react-day-picker/DayPickerInput";import*as Me from"react-dom";import"./index-5a461d74.js";import"lodash/throttle";import"keen-slider/react";import"./types-f17433cd.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-3cdd12f1.js";import"string-format";import ze from"dayjs/plugin/relativeTime";import{M as je}from"./index-aa162c84.js";import{a as Fe}from"./useUniqueId-bcdf2a8c.js";import"./translationsContext-fb265fa4.js";import{g as Be}from"./routing-f5267fd3.js";import{B as Oe}from"./index-045c3dbe.js";import{A as Re}from"./index-b2955d8b.js";const Ve=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"})),De=n({}),Ue=({children:e,defaultParams:t})=>o.createElement(De.Provider,{value:{defaultParams:t}},e),We=e=>{const{data:{userInfo:t,env:{togetherBasePath:a}}}=i(z),{defaultParams:o}=i(De)||{},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||be(j),(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=F(e,r,a),null}return t&&t()},params:Object.assign(Object.assign({},o),e)}},Ze=ke.div`
1
+ import{a as e,_ as t}from"./tslib.es6-86b09138.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,Checkbox as g,Portal as h,Anchor as v,Accordion as f,Popover as b}from"@mantine/core";import{B as w}from"./index-882f8fed.js";import{T as x}from"./index-5d569ee2.js";import{a as y}from"./index.styled-af8fd90d.js";import{u as E}from"./useTranslations-49be9e59.js";import C from"innertext";import{t as k}from"./theme-da141727.js";import{N,a9 as A,a4 as L,D as T,_ as I,C as S,ab as P}from"./index.styled-a960846e.js";import{CommonGAssets as M}from"./gAssets.js";import{T as z,au as j,av as F,aw as B,ax as O,ay as R,az as V,aA as D,U,aB as W,aC as Z,aD as H,aE as q,aF as _,aG as G,aH as Q,aI as X,aJ as K,aK as $,aL as Y,aM as J,aN as ee,aO as te,aP as ae}from"./index.styled-4b109674.js";import{A as oe,B as ne,T as ie,D as le}from"./index-f569cf80.js";import{e as re,c as se,P as ce,g as de,b as me,h as pe,i as ue}from"./dataTransform-9490e626.js";import{I as ge}from"./index-c7af9fd1.js";import he from"lodash/debounce";import ve from"react-contenteditable";import{H as fe}from"./index-de582f61.js";import{d as be,g as we}from"./cookieHelper-2b7d2afc.js";import{M as xe,t as ye,c as Ee,a as Ce}from"./utils-967698bd.js";import ke,{keyframes as Ne,css as Ae}from"styled-components";import"./index.styled-d4de3910.js";import"./index-c7cbd72b.js";import{I as Le,C as Te,a as Ie}from"./index-7e47d16a.js";import"./index.styled-11e0ce87.js";import"./index-a077234a.js";import"./index.styles-3745dc2e.js";import{d as Se}from"./index-43d83c96.js";import"./Onboarding-f5e77ca6.js";import Pe from"dayjs";import"./screenSizeContext-9f2a4814.js";import"./isProduction-904f917e.js";import"@mantine/hooks";import"date-fns";import"react-day-picker/DayPickerInput";import*as Me from"react-dom";import"./index-8bebc342.js";import"lodash/throttle";import"keen-slider/react";import"./types-b145c121.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-1d730d27.js";import"string-format";import ze from"dayjs/plugin/relativeTime";import{M as je}from"./index-aff36134.js";import{a as Fe}from"./useUniqueId-36e0c061.js";import"./translationsContext-2e507b01.js";import{g as Be}from"./routing-74aefe66.js";import{B as Oe}from"./index-be5eb388.js";import{A as Re}from"./index-e4ed5b4d.js";const Ve=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"})),De=n({}),Ue=({children:e,defaultParams:t})=>o.createElement(De.Provider,{value:{defaultParams:t}},e),We=e=>{const{data:{userInfo:t,env:{togetherBasePath:a}}}=i(z),{defaultParams:o}=i(De)||{},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||be(j),(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=F(e,r,a),null}return t&&t()},params:Object.assign(Object.assign({},o),e)}},Ze=ke.div`
2
2
  display: flex;
3
3
  align-items: center;
4
4
  justify-content: center;
@@ -959,7 +959,7 @@ import{a as e,_ as t}from"./tslib.es6-5ca9a486.js";import*as a from"react";impor
959
959
  width: 24px;
960
960
  height: 24px;
961
961
  }
962
- `;const $t=({isOpen:e=!0,onClose:t,enableAnimation:a=!0,hospitalId:n,locale:i,isMobile:r,overwriteProfileProps:d,avatarFallback:m=M.getAssetPath("avatar.jpg"),trackingCategory:p="Together"})=>{const{t:u}=E(),[g,h]=l(null),[v,f]=l(!1);s((()=>{if(e&&n&&String(null==g?void 0:g.id)!==String(n)){f(!0);try{h(null),B(W(Z.GET_HOSPITAL_INFO,{hospital_branch_id:n,website_url:H[i]}),"get").then((e=>{h(Object.assign(Object.assign({},null==e?void 0:e._data.branch),d))}))}catch(e){console.error(e)}f(!1)}}),[e,n,null==g?void 0:g.id]);const b=(null==g?void 0:g.specialties)||[],y=c((()=>b.map((e=>e.name))),[b]);return o.createElement(o.Fragment,null,o.createElement(Gt,{"data-open":e,"data-animation":a,onClick:e=>e.stopPropagation()},v||!g?o.createElement(qe,null):o.createElement("div",{className:"popup-content"},o.createElement("div",{className:"close-button",onClick:t},o.createElement("img",{src:Mt,style:{width:20,height:20},alt:"close-icon"})),o.createElement("div",{className:"main-info"},o.createElement("div",{className:"border-banner"}),o.createElement("div",{className:"avatar-title"},o.createElement(Xt,null,o.createElement("div",{className:"image-container"},o.createElement("div",{style:{position:"relative"}},o.createElement(Pt,{src:null==g?void 0:g.logo,className:"profile-image",alt:"avatar",fallbackSrc:m}),o.createElement("img",{className:"badge-avatar",src:zt,alt:"badge"})))),o.createElement(Kt,null,o.createElement(x,{size:"s3",type:"semiBold",className:"full-name"},null==g?void 0:g.name),o.createElement("div",{className:"specialty"},b&&o.createElement(x,{size:"p4",color:k.colors.gray800},y.join(" • "),"•"),o.createElement("a",{href:q({id:g.id,name:g.name,slug:g.slug,locale:i}),className:"organisation",target:"_blank",rel:"noreferrer"},o.createElement(x,{size:"p4",className:"organisation",color:k.colors.gray800,style:{textDecoration:"underline"}},null==g?void 0:g.name))))),!r&&o.createElement("a",{href:q({id:g.id,name:g.name,slug:g.slug,locale:i})},o.createElement("div",{className:"btn-wrapper"},o.createElement(w,{color:"primary",size:"md",className:"btn-booking"},u("careBooking.bookAnAppointment"))))),o.createElement(Kt,null,o.createElement("div",{className:"experience"},o.createElement(x,{type:"bold",size:"s3",color:k.colors.gray800,style:{paddingBottom:16}},u("hospital.content.description").toUpperCase()),o.createElement(x,{size:"p2",color:k.colors.gray500},g.about),r?o.createElement("a",{href:q({id:g.id,name:g.name,slug:g.slug,locale:i})},o.createElement("div",{className:"btn-wrapper"},o.createElement(w,{color:"primary",size:"md",className:"btn-booking"},u("careBooking.bookAnAppointment")))):o.createElement("a",{href:q({id:g.id,name:g.name,slug:g.slug,locale:i})},o.createElement(x,{size:"s4",color:"#2D87F3",as:"span","data-event-category":p,"data-event-action":"See Full Hospital Profile","data-event-label":D(i)+q({id:g.id,name:g.name,slug:g.slug,locale:i})},u("home.seeHospital"))))))),o.createElement(Qt,{"data-open":e,onClick:e=>{e.stopPropagation(),t()}}))};var Yt="_2UKyiK1",Jt="E5ga-tI",ea="_8Y2nWXX",ta="d0T7kSP";const aa=({open:e,onClose:t,children:a,profileModalProps:n})=>{const{t:i}=E();return o.createElement(je,Object.assign({className:Yt,opened:e,onClose:t,overlayOpacity:.2,overflow:"inside",styles:{inner:{padding:0,justifyContent:"flex-end",borderRadius:0},modal:{height:"100%",borderRadius:0},body:{padding:"24px",maxHeight:"100%"}},title:"Profile"},n),o.createElement("div",{className:Jt},o.createElement("div",{className:ea},i("profilePanel.modal.heading")),o.createElement("div",{className:ta,onClick:t},o.createElement(Ve,null))),a)};var oa=p(((e,t)=>({root:{},authorBadge:{background:"yellow"}})));Se.extend(ze);const na=n({}),ia=({siteType:e})=>{const{t:t}=E(),{handleMakeAppointment:a,doctorId:n,hospitalId:l,currentUrl:r}=i(na);return o.createElement(w,{theme:e,color:"primary",size:"xs",onClick:e=>{null==a||a(n,l),e.stopPropagation()},dataEventCategory:"Care",dataEventAction:"Comment - Quick Booking",dataEventLabel:r,icon:o.createElement(L,{className:"buttonIcon",size:18}),iconPosition:"right",style:{whiteSpace:"nowrap"}},o.createElement("span",null,t("careBooking.bookAnAppointment")))},la=e=>{const{className:t="",community:a,name:n,username:r,url:c,avatar:d,role:m,title:p,userType:g="user",expertId:h,isMarryBaby:v,doctorId:f,hospitalId:b,hasQuickBooking:w,handleMakeAppointment:x,communityTrackingAttr:y,isAnonymous:C,showDetailPopup:N,subLine:L,authActionWrapper:T,profileProps:I,profileModalProps:S,extendEle:P,avatarProps:j,hideInfo:F,timeText:B,onCloseFromPost:O,avatarIcon:R,badgeIconSize:V,hideBackground:D,children:U,styles:W}=e,{data:{locale:Z,router:H,env:{isMarryBaby:q,togetherBasePath:_}}}=i(z),{t:G}=E(),{classes:Q}=oa(void 0,{name:"CardAuthor",styles:W}),X="boolean"==typeof v?v:q,K=X?"marryBaby":"helloSites",$=C?G("cardPost.anonymous"):n||r||"",Y=C?M.getAssetPath("avatar.jpg"):d,J=C?void 0:m,[ee,te]=l(!1),{asPath:ae}=H||{},ne=`https://${Pe[Z]}${ae}`,ie=e=>{if(C||"chatbot"===g)return!1;N?re(!0):c&&(window.location.href=c)};s((()=>{ye(ee)}),[ee]);const[le,re]=l(!1),se="expert"===(null==e?void 0:e.role),[ce,de]=l(null);return s((()=>{le&&!ce&&Promise.resolve().then((function(){return Wn})).then((e=>{de((()=>e.ProfileDetail))}))}),[le]),o.createElement(na.Provider,{value:{handleMakeAppointment:x,doctorId:f,hospitalId:b,currentUrl:ne}},o.createElement(aa,{open:le,onClose:()=>re(!1),profileModalProps:S},ce&&o.createElement(ce,Object.assign({authorProps:{userId:null==e?void 0:e.userId,avatar:Y,name:null==e?void 0:e.name,role:null==e?void 0:e.role,title:null==e?void 0:e.title},authActionWrapper:T,onCloseFromPost:()=>{re(!1),null==O||O()}},I))),"expert"===J&&h?o.createElement(_t,{isOpen:ee,onClose:()=>te(!1),expertId:h}):null,"expert"===J&&f?o.createElement(Vt,{isOpen:ee,onClose:()=>te(!1),doctorId:f,locale:Z}):null,"expert"===J&&b?o.createElement($t,{isOpen:ee,onClose:()=>te(!1),hospitalId:b,locale:Z}):null,o.createElement("div",{className:`hhg-card-author ${Q.root} ${t} ${se?"expert-author":""}`,"data-background":!D&&se,"data-is-marrybaby":X},o.createElement(St,{onAvatarClick:ie,avatarProps:Object.assign(Object.assign({avatar:Y,username:$},j),{style:{cursor:C||!c&&!N?"default":"pointer"}}),avatarIcon:R||se&&o.createElement(bt,{size:V||15})},U?o.createElement("div",{onClick:ie},U):!F&&o.createElement(St.Row,null,o.createElement(St.ColLeft,null,o.createElement(u,{align:"center",onClick:ie},o.createElement(St.MainText,{onClick:ie},$,"chatbot"===g?o.createElement(o.Fragment,null," ",o.createElement(A,{color:k.colors.primaryBase,size:16,style:{display:"inline-block",transform:"translate(0, 2px)"}})):J&&o.createElement(oe,{className:Q.authorBadge,siteType:K,role:J,title:p,style:{verticalAlign:"bottom"}}))),L||o.createElement(St.SubTextRow,null,(null==a?void 0:a.name)&&o.createElement(St.SubText,null,o.createElement("a",Object.assign({href:(null==a?void 0:a.slug)&&a.isActive&&!a.isHidden?`${_}/${null==a?void 0:a.slug}`:void 0,className:"author-community-name"},y),`${null==a?void 0:a.name}`)),B&&o.createElement(o.Fragment,null,o.createElement(St.SubDivider,null),o.createElement(St.SubText,{className:"time-text"},B)))),w&&o.createElement(St.ColRight,null,o.createElement(ia,{siteType:K})))),P&&P))};la.BookingBtn=ia,la.MainText=St.MainText,la.SubText=St.SubText,la.SubTextRow=St.SubTextRow,la.SubDivider=St.SubDivider;const ra=e=>({message:e("notification.failure"),type:"danger"}),sa=e=>{var{size:a,color:n}=e,i=t(e,["size","color"]);return o.createElement("svg",Object.assign({width:a,height:a,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i),o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.99967 1.33331C4.31967 1.33331 1.33301 4.31998 1.33301 7.99998C1.33301 11.68 4.31967 14.6666 7.99967 14.6666C11.6797 14.6666 14.6663 11.68 14.6663 7.99998C14.6663 4.31998 11.6797 1.33331 7.99967 1.33331ZM7.99967 8.66665C7.63301 8.66665 7.33301 8.36665 7.33301 7.99998V5.33331C7.33301 4.96665 7.63301 4.66665 7.99967 4.66665C8.36634 4.66665 8.66634 4.96665 8.66634 5.33331V7.99998C8.66634 8.36665 8.36634 8.66665 7.99967 8.66665ZM7.33301 9.99998V11.3333H8.66634V9.99998H7.33301Z",fill:n}))};sa.defaultProps={size:24,color:k.colors.gray600};var ca="data:image/svg+xml,%3csvg width='16' height='17' viewBox='0 0 16 17' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M8 14.5C11.3137 14.5 14 11.8137 14 8.5C14 5.18629 11.3137 2.5 8 2.5C4.68629 2.5 2 5.18629 2 8.5C2 11.8137 4.68629 14.5 8 14.5Z' fill='%23FE921D'/%3e%3cpath d='M8 5.5V8.5' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M8 11.5H8.00708' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e";const da=/<mocka ([^>]*)data-url="true"[^<>]*>(.*?)<\/mocka>/gim,ma=/((?:=")|(?:data-url="true">)|)(https?:\/\/(www\.)?(?:\([-A-Z0-9+&@#\/%=~_|$?!:,.]*\)|[-A-Z0-9+&@#\/%=~_|$?!:,.])*(?:\([-A-Z0-9+&@#\/%=~_|$?!:,.]*\)|[A-Z0-9+&@#\/%=~_|$]))/gim,pa=/\[a\+href="([^<"]+)"(?:\+text=\"([^<"]+)")?\]/gim,ua=/<mention [^>]*data-id="([^<"]+)"[^>]*>([^<]+)<\/mention>/gim,ga=/<mention [^>]*data-id="([^<"]+)" [^\>]*data-name="([^<"]+)"[^>]*>([^<]+)<\/mention>/gim,ha=/\[mention\+id="([^<"]+)"([^\]]*)\]/gim,va=/^(https?:\/\/(www\.)?(?:\([-A-Z0-9+&@#\/%=~_|$?!:,.]*\)|[-A-Z0-9+&@#\/%=~_|$?!:,.])*(?:\([-A-Z0-9+&@#\/%=~_|$?!:,.]*\)|[A-Z0-9+&@#\/%=~_|$]))$/gim,fa=/^((https?:\/\/)?(www\.)?(?:\([-A-Z0-9+&@#\/%=~_|$?!:,.]*\)|[-A-Z0-9+&@#\/%=~_|$?!:,.])*(?:\([-A-Z0-9+&@#\/%=~_|$?!:,.]*\)|[A-Z0-9+&@#\/%=~_|$]))$/gim,ba=/<a [^>]*href="([^>"]+)"[^>]*>([^<]+)<\/a>/gim,wa=/<mocka [^\>]*data-bad-word="[^\"]*" [^\>]*data-error="true"[^\>]*>(.*?)<\/mocka>/gim,xa=({url:e,text:t,method:a})=>{const o=t.indexOf(t.trimStart()),n=t.trimEnd().length,i=t.substring(0,o),l=t.substring(o,n),r=t.substring(n);return"edit"===a?`${i}<mocka data-href="${e}" data-url="true">${l}</mocka>${r}`:"display"===a&&(e.startsWith("http://")||e.startsWith("https://"))?`${i}<a href="${e}" target="_blank">${l}</a>${r}`:t},ya=(e,t)=>e.replace(pa,((e,a,o)=>xa({text:o||a,url:a,method:t}))).replace(ba,((e,a,o)=>xa({text:o||a,url:a,method:t}))),Ea=(e,t=[])=>e.replace(ha,((e,a,o)=>{const n=t.find((e=>String(e.id)===a));if(!n){if(!o)return"";let e="";return o.replace(/\+name="([^<"]+)"/i,((t,a)=>(e=a,t))),`<mention data-id="${a}" data-name="${e}">${e}</mention>`}return`<mention data-id="${a}" data-name="${n.name}">${n.name}</mention>`})),Ca=e=>{const t=[];return e.replace(/(\&amp;)+/g,"&").replace(ma,((e,a,o)=>('="'!==a&&'data-url="true">'!==a&&t.push(o),e))),t},ka=(e,t)=>{const a=[];return e.replace(ua,((e,t)=>(a.push(t),e))).replace(ha,((e,t)=>(a.push(t),e))),t?a:Array.from(new Set(a)).slice(0,30)},Na=e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),Aa=e=>e.replace(wa,"$1"),La=(e,t=(e=>e))=>((e,t=(e=>e))=>{var a;return t(null===(a=e.replace(/(\&nbsp;)+/g," ").replace(/(\&amp;)+/g,"&"))||void 0===a?void 0:a.replace(/(\u200c|&zwnj;)+/g,"").replace(ma,((e,t,a)=>'="'!==t&&'data-url="true">'!==t?`<a href="${a}" target="_blank">${a}</a>`:e)).replace(da,((e,t,a)=>{var o;const n=null===(o=t.match(/data-href="([^"]*)"/im))||void 0===o?void 0:o[1];return n?`<a href="${n}" target="_blank">${a}</a>`:`<a href="${a}" target="_blank">${a}</a>`})))})((e=>e.replace(ua,((e,t,a)=>`[mention+id="${t}"+name="${a}"]`)))(Aa(e)),t),Ta=["hellobacsi.com","hellosehat.com","hellodoktor.com","hellokrupet.com","hellodoctor.com.ph","hellokhunmor.com","hellosayarwon.com","helloyishi.com.tw","helloswasthya.com","marrybaby.vn"],Ia=e=>e.match(fa)?e.startsWith("https://")||e.startsWith("http://")?e:`https://${e}`:"",Sa=(e,t)=>{const a=t.filter(Boolean);if(e&&a.length>0){return Aa(e).replace(new RegExp(`\\b(${a.map((e=>Na(e))).join("|")})\\b`,"gi"),((e,t)=>{const a=document.createElement("mocka");return a.setAttribute("data-bad-word",t),a.setAttribute("data-error","true"),a.innerText=t,`${a.outerHTML}`}))}return e},Pa=(t,a,o)=>"string"==typeof t?Promise.resolve(t):e(void 0,void 0,void 0,(function*(){var e;const n=new FormData;if(t.type.startsWith("image/gif"))n.append("image",t);else{const e=yield import("browser-image-compression"),a=yield e.default(t,{maxSizeMB:.4,maxWidthOrHeight:1536,useWebWorker:!0});n.append("image",a)}const i=o?K:$,l=yield i(O(o?X.COMMENT.IMAGE_UPLOAD:R.COMMENT.IMAGE_UPLOAD,{_locale:a}),"POST",{data:n});return(null===(e=null==l?void 0:l.data)||void 0===e?void 0:e.image)||""})),Ma=(e,t)=>{const[a,o]=l(e||[]);return{onSelectImages:n=>{const i=n.target.files;if(i)if(t&&e){t((e||a).concat(Array.from(i)))}else o((a=>{const o=e||a;return t&&t(o.concat(Array.from(i))),o.concat(Array.from(i))}))},onRemoveImage:a=>{if(t&&e){const o=e;o.splice(a,1),t(o.slice())}else o((o=>{const n=e||o;return n.splice(a,1),t&&t(n.slice()),n.slice()}))},onRemoveAllImages:()=>{t?t([]):o([])},imageSrcs:c((()=>(e||a).map((e=>"string"==typeof e?e:URL.createObjectURL(e)))),[e,a]),imageFiles:e||a}};var za="data:image/svg+xml,%3csvg width='24' height='25' viewBox='0 0 24 25' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12 22.9844C17.5228 22.9844 22 18.5072 22 12.9844C22 7.46153 17.5228 2.98438 12 2.98438C6.47715 2.98438 2 7.46153 2 12.9844C2 18.5072 6.47715 22.9844 12 22.9844Z' fill='%23262626'/%3e%3cpath d='M14.8281 10.1562L9.17127 15.8131' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M9.17188 10.1562L14.8287 15.8131' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e";const ja=ke.div`
962
+ `;const $t=({isOpen:e=!0,onClose:t,enableAnimation:a=!0,hospitalId:n,locale:i,isMobile:r,overwriteProfileProps:d,avatarFallback:m=M.getAssetPath("avatar.jpg"),trackingCategory:p="Together"})=>{const{t:u}=E(),[g,h]=l(null),[v,f]=l(!1);s((()=>{if(e&&n&&String(null==g?void 0:g.id)!==String(n)){f(!0);try{h(null),B(W(Z.GET_HOSPITAL_INFO,{hospital_branch_id:n,website_url:H[i]}),"get").then((e=>{h(Object.assign(Object.assign({},null==e?void 0:e._data.branch),d))}))}catch(e){console.error(e)}f(!1)}}),[e,n,null==g?void 0:g.id]);const b=(null==g?void 0:g.specialties)||[],y=c((()=>b.map((e=>e.name))),[b]);return o.createElement(o.Fragment,null,o.createElement(Gt,{"data-open":e,"data-animation":a,onClick:e=>e.stopPropagation()},v||!g?o.createElement(qe,null):o.createElement("div",{className:"popup-content"},o.createElement("div",{className:"close-button",onClick:t},o.createElement("img",{src:Mt,style:{width:20,height:20},alt:"close-icon"})),o.createElement("div",{className:"main-info"},o.createElement("div",{className:"border-banner"}),o.createElement("div",{className:"avatar-title"},o.createElement(Xt,null,o.createElement("div",{className:"image-container"},o.createElement("div",{style:{position:"relative"}},o.createElement(Pt,{src:null==g?void 0:g.logo,className:"profile-image",alt:"avatar",fallbackSrc:m}),o.createElement("img",{className:"badge-avatar",src:zt,alt:"badge"})))),o.createElement(Kt,null,o.createElement(x,{size:"s3",type:"semiBold",className:"full-name"},null==g?void 0:g.name),o.createElement("div",{className:"specialty"},b&&o.createElement(x,{size:"p4",color:k.colors.gray800},y.join(" • "),"•"),o.createElement("a",{href:q({id:g.id,name:g.name,slug:g.slug,locale:i}),className:"organisation",target:"_blank",rel:"noreferrer"},o.createElement(x,{size:"p4",className:"organisation",color:k.colors.gray800,style:{textDecoration:"underline"}},null==g?void 0:g.name))))),!r&&o.createElement("a",{href:q({id:g.id,name:g.name,slug:g.slug,locale:i})},o.createElement("div",{className:"btn-wrapper"},o.createElement(w,{color:"primary",size:"md",className:"btn-booking"},u("careBooking.bookAnAppointment"))))),o.createElement(Kt,null,o.createElement("div",{className:"experience"},o.createElement(x,{type:"bold",size:"s3",color:k.colors.gray800,style:{paddingBottom:16}},u("hospital.content.description").toUpperCase()),o.createElement(x,{size:"p2",color:k.colors.gray500},g.about),r?o.createElement("a",{href:q({id:g.id,name:g.name,slug:g.slug,locale:i})},o.createElement("div",{className:"btn-wrapper"},o.createElement(w,{color:"primary",size:"md",className:"btn-booking"},u("careBooking.bookAnAppointment")))):o.createElement("a",{href:q({id:g.id,name:g.name,slug:g.slug,locale:i})},o.createElement(x,{size:"s4",color:"#2D87F3",as:"span","data-event-category":p,"data-event-action":"See Full Hospital Profile","data-event-label":D(i)+q({id:g.id,name:g.name,slug:g.slug,locale:i})},u("home.seeHospital"))))))),o.createElement(Qt,{"data-open":e,onClick:e=>{e.stopPropagation(),t()}}))};var Yt="_2UKyiK1",Jt="E5ga-tI",ea="_8Y2nWXX",ta="d0T7kSP";const aa=({open:e,onClose:t,children:a,profileModalProps:n})=>{const{t:i}=E();return o.createElement(je,Object.assign({className:Yt,opened:e,onClose:t,overlayOpacity:.2,overflow:"inside",styles:{inner:{padding:0,justifyContent:"flex-end",borderRadius:0},modal:{height:"100%",borderRadius:0},body:{padding:"24px",maxHeight:"100%"}},title:"Profile"},n),o.createElement("div",{className:Jt},o.createElement("div",{className:ea},i("profilePanel.modal.heading")),o.createElement("div",{className:ta,onClick:t},o.createElement(Ve,null))),a)};var oa=p(((e,t)=>({root:{},authorBadge:{background:"yellow"}})));Pe.extend(ze);const na=n({}),ia=({siteType:e})=>{const{t:t}=E(),{handleMakeAppointment:a,doctorId:n,hospitalId:l,currentUrl:r}=i(na);return o.createElement(w,{theme:e,color:"primary",size:"xs",onClick:e=>{null==a||a(n,l),e.stopPropagation()},dataEventCategory:"Care",dataEventAction:"Comment - Quick Booking",dataEventLabel:r,icon:o.createElement(L,{className:"buttonIcon",size:18}),iconPosition:"right",style:{whiteSpace:"nowrap"}},o.createElement("span",null,t("careBooking.bookAnAppointment")))},la=e=>{const{className:t="",community:a,name:n,username:r,url:c,avatar:d,role:m,title:p,userType:g="user",expertId:h,isMarryBaby:v,doctorId:f,hospitalId:b,hasQuickBooking:w,handleMakeAppointment:x,communityTrackingAttr:y,isAnonymous:C,showDetailPopup:N,subLine:L,authActionWrapper:T,profileProps:I,profileModalProps:S,extendEle:P,avatarProps:j,hideInfo:F,timeText:B,onCloseFromPost:O,avatarIcon:R,badgeIconSize:V,hideBackground:D,children:U,styles:W}=e,{data:{locale:Z,router:H,env:{isMarryBaby:q,togetherBasePath:_}}}=i(z),{t:G}=E(),{classes:Q}=oa(void 0,{name:"CardAuthor",styles:W}),X="boolean"==typeof v?v:q,K=X?"marryBaby":"helloSites",$=C?G("cardPost.anonymous"):n||r||"",Y=C?M.getAssetPath("avatar.jpg"):d,J=C?void 0:m,[ee,te]=l(!1),{asPath:ae}=H||{},ne=`https://${Se[Z]}${ae}`,ie=e=>{if(C||"chatbot"===g)return!1;N?re(!0):c&&(window.location.href=c)};s((()=>{ye(ee)}),[ee]);const[le,re]=l(!1),se="expert"===(null==e?void 0:e.role),[ce,de]=l(null);return s((()=>{le&&!ce&&Promise.resolve().then((function(){return Wn})).then((e=>{de((()=>e.ProfileDetail))}))}),[le]),o.createElement(na.Provider,{value:{handleMakeAppointment:x,doctorId:f,hospitalId:b,currentUrl:ne}},o.createElement(aa,{open:le,onClose:()=>re(!1),profileModalProps:S},ce&&o.createElement(ce,Object.assign({authorProps:{userId:null==e?void 0:e.userId,avatar:Y,name:null==e?void 0:e.name,role:null==e?void 0:e.role,title:null==e?void 0:e.title},authActionWrapper:T,onCloseFromPost:()=>{re(!1),null==O||O()}},I))),"expert"===J&&h?o.createElement(_t,{isOpen:ee,onClose:()=>te(!1),expertId:h}):null,"expert"===J&&f?o.createElement(Vt,{isOpen:ee,onClose:()=>te(!1),doctorId:f,locale:Z}):null,"expert"===J&&b?o.createElement($t,{isOpen:ee,onClose:()=>te(!1),hospitalId:b,locale:Z}):null,o.createElement("div",{className:`hhg-card-author ${Q.root} ${t} ${se?"expert-author":""}`,"data-background":!D&&se,"data-is-marrybaby":X},o.createElement(St,{onAvatarClick:ie,avatarProps:Object.assign(Object.assign({avatar:Y,username:$},j),{style:{cursor:C||!c&&!N?"default":"pointer"}}),avatarIcon:R||se&&o.createElement(bt,{size:V||15})},U?o.createElement("div",{onClick:ie},U):!F&&o.createElement(St.Row,null,o.createElement(St.ColLeft,null,o.createElement(u,{align:"center",onClick:ie},o.createElement(St.MainText,{onClick:ie},$,"chatbot"===g?o.createElement(o.Fragment,null," ",o.createElement(A,{color:k.colors.primaryBase,size:16,style:{display:"inline-block",transform:"translate(0, 2px)"}})):J&&o.createElement(oe,{className:Q.authorBadge,siteType:K,role:J,title:p,style:{verticalAlign:"bottom"}}))),L||o.createElement(St.SubTextRow,null,(null==a?void 0:a.name)&&o.createElement(St.SubText,null,o.createElement("a",Object.assign({href:(null==a?void 0:a.slug)&&a.isActive&&!a.isHidden?`${_}/${null==a?void 0:a.slug}`:void 0,className:"author-community-name"},y),`${null==a?void 0:a.name}`)),B&&o.createElement(o.Fragment,null,o.createElement(St.SubDivider,null),o.createElement(St.SubText,{className:"time-text"},B)))),w&&o.createElement(St.ColRight,null,o.createElement(ia,{siteType:K})))),P&&P))};la.BookingBtn=ia,la.MainText=St.MainText,la.SubText=St.SubText,la.SubTextRow=St.SubTextRow,la.SubDivider=St.SubDivider;const ra=e=>({message:e("notification.failure"),type:"danger"}),sa=e=>{var{size:a,color:n}=e,i=t(e,["size","color"]);return o.createElement("svg",Object.assign({width:a,height:a,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i),o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.99967 1.33331C4.31967 1.33331 1.33301 4.31998 1.33301 7.99998C1.33301 11.68 4.31967 14.6666 7.99967 14.6666C11.6797 14.6666 14.6663 11.68 14.6663 7.99998C14.6663 4.31998 11.6797 1.33331 7.99967 1.33331ZM7.99967 8.66665C7.63301 8.66665 7.33301 8.36665 7.33301 7.99998V5.33331C7.33301 4.96665 7.63301 4.66665 7.99967 4.66665C8.36634 4.66665 8.66634 4.96665 8.66634 5.33331V7.99998C8.66634 8.36665 8.36634 8.66665 7.99967 8.66665ZM7.33301 9.99998V11.3333H8.66634V9.99998H7.33301Z",fill:n}))};sa.defaultProps={size:24,color:k.colors.gray600};var ca="data:image/svg+xml,%3csvg width='16' height='17' viewBox='0 0 16 17' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M8 14.5C11.3137 14.5 14 11.8137 14 8.5C14 5.18629 11.3137 2.5 8 2.5C4.68629 2.5 2 5.18629 2 8.5C2 11.8137 4.68629 14.5 8 14.5Z' fill='%23FE921D'/%3e%3cpath d='M8 5.5V8.5' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M8 11.5H8.00708' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e";const da=/<mocka ([^>]*)data-url="true"[^<>]*>(.*?)<\/mocka>/gim,ma=/((?:=")|(?:data-url="true">)|)(https?:\/\/(www\.)?(?:\([-A-Z0-9+&@#\/%=~_|$?!:,.]*\)|[-A-Z0-9+&@#\/%=~_|$?!:,.])*(?:\([-A-Z0-9+&@#\/%=~_|$?!:,.]*\)|[A-Z0-9+&@#\/%=~_|$]))/gim,pa=/\[a\+href="([^<"]+)"(?:\+text=\"([^<"]+)")?\]/gim,ua=/<mention [^>]*data-id="([^<"]+)"[^>]*>([^<]+)<\/mention>/gim,ga=/<mention [^>]*data-id="([^<"]+)" [^\>]*data-name="([^<"]+)"[^>]*>([^<]+)<\/mention>/gim,ha=/\[mention\+id="([^<"]+)"([^\]]*)\]/gim,va=/^(https?:\/\/(www\.)?(?:\([-A-Z0-9+&@#\/%=~_|$?!:,.]*\)|[-A-Z0-9+&@#\/%=~_|$?!:,.])*(?:\([-A-Z0-9+&@#\/%=~_|$?!:,.]*\)|[A-Z0-9+&@#\/%=~_|$]))$/gim,fa=/^((https?:\/\/)?(www\.)?(?:\([-A-Z0-9+&@#\/%=~_|$?!:,.]*\)|[-A-Z0-9+&@#\/%=~_|$?!:,.])*(?:\([-A-Z0-9+&@#\/%=~_|$?!:,.]*\)|[A-Z0-9+&@#\/%=~_|$]))$/gim,ba=/<a [^>]*href="([^>"]+)"[^>]*>([^<]+)<\/a>/gim,wa=/<mocka [^\>]*data-bad-word="[^\"]*" [^\>]*data-error="true"[^\>]*>(.*?)<\/mocka>/gim,xa=({url:e,text:t,method:a})=>{const o=t.indexOf(t.trimStart()),n=t.trimEnd().length,i=t.substring(0,o),l=t.substring(o,n),r=t.substring(n);return"edit"===a?`${i}<mocka data-href="${e}" data-url="true">${l}</mocka>${r}`:"display"===a&&(e.startsWith("http://")||e.startsWith("https://"))?`${i}<a href="${e}" target="_blank">${l}</a>${r}`:t},ya=(e,t)=>e.replace(pa,((e,a,o)=>xa({text:o||a,url:a,method:t}))).replace(ba,((e,a,o)=>xa({text:o||a,url:a,method:t}))),Ea=(e,t=[])=>e.replace(ha,((e,a,o)=>{const n=t.find((e=>String(e.id)===a));if(!n){if(!o)return"";let e="";return o.replace(/\+name="([^<"]+)"/i,((t,a)=>(e=a,t))),`<mention data-id="${a}" data-name="${e}">${e}</mention>`}return`<mention data-id="${a}" data-name="${n.name}">${n.name}</mention>`})),Ca=e=>{const t=[];return e.replace(/(\&amp;)+/g,"&").replace(ma,((e,a,o)=>('="'!==a&&'data-url="true">'!==a&&t.push(o),e))),t},ka=(e,t)=>{const a=[];return e.replace(ua,((e,t)=>(a.push(t),e))).replace(ha,((e,t)=>(a.push(t),e))),t?a:Array.from(new Set(a)).slice(0,30)},Na=e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),Aa=e=>e.replace(wa,"$1"),La=(e,t=(e=>e))=>((e,t=(e=>e))=>{var a;return t(null===(a=e.replace(/(\&nbsp;)+/g," ").replace(/(\&amp;)+/g,"&"))||void 0===a?void 0:a.replace(/(\u200c|&zwnj;)+/g,"").replace(ma,((e,t,a)=>'="'!==t&&'data-url="true">'!==t?`<a href="${a}" target="_blank">${a}</a>`:e)).replace(da,((e,t,a)=>{var o;const n=null===(o=t.match(/data-href="([^"]*)"/im))||void 0===o?void 0:o[1];return n?`<a href="${n}" target="_blank">${a}</a>`:`<a href="${a}" target="_blank">${a}</a>`})))})((e=>e.replace(ua,((e,t,a)=>`[mention+id="${t}"+name="${a}"]`)))(Aa(e)),t),Ta=["hellobacsi.com","hellosehat.com","hellodoktor.com","hellokrupet.com","hellodoctor.com.ph","hellokhunmor.com","hellosayarwon.com","helloyishi.com.tw","helloswasthya.com","marrybaby.vn"],Ia=e=>e.match(fa)?e.startsWith("https://")||e.startsWith("http://")?e:`https://${e}`:"",Sa=(e,t)=>{const a=t.filter(Boolean);if(e&&a.length>0){return Aa(e).replace(new RegExp(`\\b(${a.map((e=>Na(e))).join("|")})\\b`,"gi"),((e,t)=>{const a=document.createElement("mocka");return a.setAttribute("data-bad-word",t),a.setAttribute("data-error","true"),a.innerText=t,`${a.outerHTML}`}))}return e},Pa=(t,a,o)=>"string"==typeof t?Promise.resolve(t):e(void 0,void 0,void 0,(function*(){var e;const n=new FormData;if(t.type.startsWith("image/gif"))n.append("image",t);else{const e=yield import("browser-image-compression"),a=yield e.default(t,{maxSizeMB:.4,maxWidthOrHeight:1536,useWebWorker:!0});n.append("image",a)}const i=o?K:$,l=yield i(O(o?X.COMMENT.IMAGE_UPLOAD:R.COMMENT.IMAGE_UPLOAD,{_locale:a}),"POST",{data:n});return(null===(e=null==l?void 0:l.data)||void 0===e?void 0:e.image)||""})),Ma=(e,t)=>{const[a,o]=l(e||[]);return{onSelectImages:n=>{const i=n.target.files;if(i)if(t&&e){t((e||a).concat(Array.from(i)))}else o((a=>{const o=e||a;return t&&t(o.concat(Array.from(i))),o.concat(Array.from(i))}))},onRemoveImage:a=>{if(t&&e){const o=e;o.splice(a,1),t(o.slice())}else o((o=>{const n=e||o;return n.splice(a,1),t&&t(n.slice()),n.slice()}))},onRemoveAllImages:()=>{t?t([]):o([])},imageSrcs:c((()=>(e||a).map((e=>"string"==typeof e?e:URL.createObjectURL(e)))),[e,a]),imageFiles:e||a}};var za="data:image/svg+xml,%3csvg width='24' height='25' viewBox='0 0 24 25' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12 22.9844C17.5228 22.9844 22 18.5072 22 12.9844C22 7.46153 17.5228 2.98438 12 2.98438C6.47715 2.98438 2 7.46153 2 12.9844C2 18.5072 6.47715 22.9844 12 22.9844Z' fill='%23262626'/%3e%3cpath d='M14.8281 10.1562L9.17127 15.8131' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M9.17188 10.1562L14.8287 15.8131' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e";const ja=ke.div`
963
963
  input:focus,
964
964
  textarea:focus,
965
965
  [contenteditable='true'] {
@@ -2634,7 +2634,7 @@ import{a as e,_ as t}from"./tslib.es6-5ca9a486.js";import*as a from"react";impor
2634
2634
  overflow: hidden;
2635
2635
  border-radius: 1rem;
2636
2636
  }
2637
- `,Ho=({url:t,image:a,className:n,style:d,autoPlay:p=!0})=>{const{data:{locale:u}}=i(z),[g,h]=l(null);s((()=>{e(void 0,void 0,void 0,(function*(){if(!a){if(!t)return h(null);h((e=>Object.assign(Object.assign({},e),{isFetching:!0}))),B(O(R.FETCH_PREVIEW,{_locale:u}),"POST",{data:{link:t},headers:{"Content-Type":"application/json"}}).then((e=>{var a,o;h({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((()=>{h(null)}))}}))}),[t,a]);const v=a||(null==g?void 0:g.image),f=(null==g?void 0:g.url)||t,b=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])||""})(f)),[f]),w=c((()=>f.includes("facebook.com")||f.includes("fb.watch")),[f]),x=r(0),y=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&&(!x.current||Math.abs((x.current-t.width)/(null==t?void 0:t.width))>.2)&&(x.current=Math.floor(t.width),a=!0),t&&(!y.current||Math.abs((y.current-t.height)/(null==t?void 0:t.height))>.2)&&(y.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),N=r(!1),A=m();return o.createElement(Zo,{className:`${n} no-replace-click`,style:d,ref:k,color:A.colors[A.primaryColor][0]},a||!b&&!w?o.createElement("a",{href:f,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(qe,{className:"loading-spinner"}):o.createElement("img",{className:"link-image",src:v||V,onError:e=>{N.current||(N.current=!0,e.currentTarget.src=V)}}))):o.createElement("div",{className:"link-image-wrapper"},b?o.createElement("iframe",{width:"100%",height:"100%",src:`https://www.youtube.com/embed/${b}?&autoplay=${p?1:0}&mute=1&enablejsapi=1`,frameBorder:"0",allowFullScreen:!0,style:{position:"absolute",top:0,left:0,border:"none",overflow:"hidden"}}):w?o.createElement("iframe",{key:String(E),src:`https://www.facebook.com/plugins/video.php?href=${encodeURIComponent(f)}&autoplay=${p?1:0}&show_text=false&t=0&width=${x.current}&height=${y.current}`,style:{position:"absolute",top:"50%",left:"50%",border:"none",overflow:"hidden",height:y.current,width:x.current,transform:"translate(-50%, -50%)"},scrolling:"no",frameBorder:"0",allowFullScreen:!0,allow:"autoplay; clipboard-write; encrypted-media; picture-in-picture; web-share"}):null))};var qo="PD6nRZX";const _o=({className:e,size:t="md"})=>{const{t:a}=E();return o.createElement("div",{className:`${qo} ${e}`},o.createElement(w,{size:t,color:"transparent",isLoading:!0},a("loading")))},Go=n({});var Qo="DZmf3s7";const Xo=({src:e,defaultSrc:t=M.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:Qo,style:{width:`${n}px`,height:n*a+"px",borderRadius:`${i}px`}},o.createElement(Pt,{src:e,fallbackSrc:t,alt:l})));var Ko="l5fL1xL",$o="L-aGKo7";const Yo=({children:e,className:t=""})=>o.createElement("div",{className:`${Ko} ${t}`},e),Jo=({children:e,className:t=""})=>o.createElement("div",{className:`${$o} ${t}`},e);var en="eaR8ATZ",tn="xM-7K0a";const an=({category:e,title:t,src:a,children:n,className:i=""})=>o.createElement("div",{className:`${en} ${i}`},o.createElement(Xo,{src:a}),o.createElement("div",{className:tn},n||o.createElement("div",null,e&&o.createElement(Yo,null,e),t&&o.createElement(Jo,null,t))));an.CategoryText=Yo,an.Title=Jo;const on=({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(an,{src:e,className:l},o.createElement(o.Fragment,null,o.createElement(an.CategoryText,null,null===(r=null==n?void 0:n[0])||void 0===r?void 0:r.name),o.createElement(an.Title,null,t),o.createElement(St,{avatarProps:Object.assign(Object.assign({},a),{size:32}),subTitle:o.createElement(o.Fragment,null,s,o.createElement(St.SubDivider,null),"Dec 12, 2022")})))};var nn={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 ln=({className:e=""})=>{var t,a,n,l,r;const{t:s}=E(),{info:c,isMarryBaby:d}=i(Go),m=null==c?void 0:c.data,p=[{type:"linkedin",icon:M.getAssetPath("linkedin.svg"),url:null===(t=null==c?void 0:c.contact)||void 0===t?void 0:t.linkedin},{type:"instagram",icon:M.getAssetPath("instagram.svg"),url:null===(a=null==c?void 0:c.contact)||void 0===a?void 0:a.instagram},{type:"facebook",icon:M.getAssetPath("facebook.svg"),url:null===(n=null==c?void 0:c.contact)||void 0===n?void 0:n.facebook},{type:"youtube",icon:M.getAssetPath("youtube.svg"),url:null===(l=null==c?void 0:c.contact)||void 0===l?void 0:l.youtube},{type:"tiktok",icon:M.getAssetPath("tiktok.svg"),url:null===(r=null==c?void 0:c.contact)||void 0===r?void 0:r.tiktok}],g=[...((null==c?void 0:c.experiences)||[]).length>0?[{key:"experience",heading:s("profilePanel.experience"),iconSrc:M.getAssetPath(d?"award-doc-mb.svg":"award-doc.svg"),panel:o.createElement("div",{className:nn.accBodyGroup},null==c?void 0:c.experiences.map(((e,t)=>o.createElement("div",{className:nn.accBodyGroupItem,key:String(t)},o.createElement("div",{className:nn.accBodyGroupTitle},e.title),o.createElement("div",{className:nn.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:M.getAssetPath(d?"book-mb.svg":"book.svg"),panel:o.createElement("div",{className:nn.accBodyGroup},null==c?void 0:c.educations.map(((e,t)=>o.createElement("div",{className:nn.accBodyGroupItem,key:String(t)},o.createElement("div",{className:nn.accBodyGroupTitle},e.schoolName),o.createElement("div",{className:nn.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:M.getAssetPath(d?"award-mb.svg":"award.svg"),panel:o.createElement("div",{className:nn.accBodyGroup},null==c?void 0:c.awards.map(((e,t)=>o.createElement("div",{className:nn.accBodyGroupTitle,key:t},e.title))))}]:[]],h=(null==c?void 0:c.relatedPosts)||[],v=p.filter((e=>e.url));return o.createElement("div",{className:`${nn.container} ${e}`,"data-is-marrybaby":d},g.length>0&&o.createElement(f,{defaultValue:g[0].key,chevron:d?o.createElement("div",{className:nn.mbChevronWrapper},o.createElement(P,{size:12,color:k.mbColors.midGray})):o.createElement(P,{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"}}}},g.map((e=>o.createElement(f.Item,{key:e.key,value:e.key},o.createElement(f.Control,null,o.createElement("div",{className:nn.header},o.createElement("div",{className:nn.headingIcon},o.createElement("img",{src:e.iconSrc})),o.createElement("div",{className:nn.heading},e.heading))),o.createElement(f.Panel,null,e.panel))))),h.length>0&&o.createElement("div",{className:nn.group},o.createElement("div",{className:nn.subTitle},o.createElement("img",{className:nn.subIcon,src:M.getAssetPath(d?"mb-logo.svg":"logo/circle-solid.svg")}),s("profilePanel.publishedArticles")),o.createElement("div",{className:`${nn.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:nn.articleCardLink},o.createElement(on,Object.assign({className:"article-card"},Object.assign(Object.assign({},e),!e.author&&{author:{displayName:null==m?void 0:m.name,avatar:null==m?void 0:m.avatar}}),{isReview:!0}))))))),v.length>0&&o.createElement("div",{className:nn.group},o.createElement("div",{className:nn.subTitle},o.createElement("img",{className:nn.subIcon,src:M.getAssetPath(d?"social-mb.svg":"social.svg")}),s("profilePanel.socialLinks")),o.createElement("div",{className:nn.groupBody},o.createElement(u,null,p.map(((e,t)=>e.url&&o.createElement("div",{className:nn.socialItem,key:t},o.createElement("a",{href:e.url,target:"_blank",rel:"noreferrer"},o.createElement("img",{src:e.icon,loading:"lazy",width:"32px"})))))))))};var rn="_8fd7YMs",sn="DomiQfw",cn="-b2qnfL";const dn=({message:e,buttonTxt:t,imgSrc:a,onBtnClick:n})=>{const{siteType:l,isMarryBaby:r}=i(Go);return o.createElement("div",{className:rn},o.createElement("div",{className:sn},o.createElement("img",{src:a||M.getAssetPath(r?"comments-mb.svg":"comments.svg")})),e&&o.createElement("div",{className:cn},e),t&&o.createElement(w,{size:"md",theme:l,color:"secondary",onClick:n},t))};var mn={container:"GYUElSy",question:"_3C6QpT1",questionTitle:"_9M9VYL6",community:"_1RuSyv3",questionCard:"_1IG-eEp"};const pn=({post:e,className:t=""})=>{var a,n,l,r,s,c,d,m;const{t:p}=E(),{data:{userInfo:u,env:{togetherBasePath:g}}}=i(z),{authActionWrapper:h,authorProps:v,isMarryBaby:f}=i(Go),b=`${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:`${mn.container} ${t}`},o.createElement("div",{className:mn.header},o.createElement("div",{className:mn.question},p("profilePanel.question")," ",o.createElement(Re,{className:mn.questionTitle,href:"#",onClick:()=>{(null==u?void 0:u.id)||null==h||h((()=>window.location.href=b))}},"#",null==e?void 0:e.title)),o.createElement("div",{className:mn.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:mn.questionCard},o.createElement(la,Object.assign({className:"card-author"},v,{role:"user",avatarIcon:o.createElement(bt,null),subLine:o.createElement(la.SubTextRow,null,o.createElement(la.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(yo,{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(Oe,{size:"md",onClick:()=>{(null==u?void 0:u.id)?window.location.href=b:null==h||h((()=>window.location.href=b))}},p("profilePanel.anserwing.viewFull")))};var un="MrdoES3";const gn=({id:t})=>{const{t:a}=E(),{data:{locale:n}}=i(z),{authorProps:r}=i(Go),[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 B(O(R.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(se);d(o),p(!1)}))}),[]),o.createElement("div",{className:un},m?o.createElement(_o,null):null!==c&&(c.length>0?c.map((e=>o.createElement(pn,{className:"post-card",key:e.id,post:e}))):o.createElement(dn,{message:a("profilePanel.emptyPostMess.content",{name:(null==r?void 0:r.name)||(null==r?void 0:r.username)})})))},hn=e=>{var{size:a,color:n}=e,i=t(e,["size","color"]);return o.createElement("svg",Object.assign({width:a,height:a,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i),o.createElement("path",{d:"M9.99983 9.14326L6.94303 12.2001C6.61183 12.5313 6.07423 12.5313 5.74303 12.2001C5.41183 11.8689 5.41183 11.3313 5.74303 11.0001L9.43423 7.30886C9.74703 6.99606 10.2534 6.99606 10.5654 7.30886L14.2566 11.0001C14.5878 11.3313 14.5878 11.8689 14.2566 12.2001C13.9254 12.5313 13.3878 12.5313 13.0566 12.2001L9.99983 9.14326Z",fill:n}))};hn.defaultProps={size:24,color:k.colors.gray600};var vn="KsWg8i6",fn="_9tS0EUN",bn="kyyRKlb",wn="-Uqqka-";const xn=a=>{var{post:n,onSkip:r,siteType:s,btnText:c}=a,p=t(a,["post","onSkip","siteType","btnText"]);const{t:u}=E(),{data:{locale:g},action:{pushNotifications:h}}=i(z),[v,f]=l(!1),[w,x]=l(!1),y=m(),C=d((()=>e(void 0,void 0,void 0,(function*(){var e;x(!0);const t=yield $(O(R.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)||""}),f(!1),h({title:"",message:"Skip success",type:"success"})):h({title:"",message:null==t?void 0:t.messages,type:"danger"}),x(!1)}))),[]);return o.createElement(b,{width:327,withArrow:!0,shadow:"md",opened:v},o.createElement(b.Target,null,o.createElement("div",Object.assign({className:`${vn} ${(null==p?void 0:p.className)||""}`,onClick:()=>f(!0)},p),c||u("profilePanel.questionNotClear"))),o.createElement(b.Dropdown,null,o.createElement("div",null,o.createElement("div",{className:fn},u("profilePanel.skipQuestion.heading")),o.createElement("div",{className:bn},u("profilePanel.skipQuestion.content")),o.createElement("div",{className:wn},o.createElement(Oe,{size:"md",variant:"secondary",leftIcon:o.createElement(Te,{color:y.fn.primaryColor(),size:24}),onClick:()=>f(!1),styles:()=>({leftIcon:{marginRight:0}})}),o.createElement(Oe,{variant:"primary",size:"md",leftIcon:o.createElement(Ie,{color:"white",size:24}),onClick:C,loading:w,styles:()=>({leftIcon:{marginRight:0}})})))))};var yn="toEutn7",En="drdisHs",Cn="HNlhOdx";const kn=e=>{var a,n,l,r,{post:s,onSkip:c}=e,d=t(e,["post","onSkip"]);const{data:{env:{togetherBasePath:m}}}=i(z),{showSkipQuestionTag:p}=i(Go);return o.createElement(o.Fragment,null,o.createElement("div",Object.assign({},d,{className:`${yn} ${(null==d?void 0:d.className)||""}`}),o.createElement(la,{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(la.SubTextRow,null,o.createElement(la.SubText,null,null==s?void 0:s.createdTime))}),o.createElement(Re,{href:`${window.location.origin}${m}/${null===(r=null==s?void 0:s.community)||void 0===r?void 0:r.slug}/${null==s?void 0:s.slug}`,className:En,rel:"noreferrer"},null==s?void 0:s.title),p&&o.createElement(xn,{className:Cn,post:s,onSkip:c})))};var Nn={accordion:"I-uIJ6E",header:"_41WRsj2",heading:"AcOGL93",headingIcon:"JD3dWJN",panel:"dKAgnS8",chevron:"L2Q9T6m"};const An=()=>{var t,a;const{t:n}=E(),{data:{locale:r,userInfo:c}}=i(z),{onSkipQuestion:d,countValues:m,setCountValues:p}=i(Go),[u,g]=l(),[h,v]=l([]),[b,w]=l(!1),x=null==c?void 0:c.id;s((()=>{x&&e(void 0,void 0,void 0,(function*(){var e;w(!0);const t=yield $(O(R.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(se),delete e.question,a.push(me(e))})),v(a),g(o),w(!1)}))}),[]);const y=({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(_o,null):(null==m?void 0:m.total_question)>0?h.length>0&&o.createElement(f,{className:Nn.accordion,defaultValue:String((null===(a=h[null===(t=Object.keys(h))||void 0===t?void 0:t[0]])||void 0===a?void 0:a.id)||""),styles:{control:{padding:"16px",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:Nn.chevron},o.createElement(hn,{color:k.colors.gray600,size:20}))},h.map((e=>{const t=u&&(null==u?void 0:u[e.id])||[];return t.length>0&&o.createElement(f.Item,{key:e.id,value:String(e.id)},o.createElement(f.Control,null,o.createElement("div",{className:Nn.header},o.createElement("div",{className:Nn.headingIcon},o.createElement("img",{src:e.thumbnail})),o.createElement("div",{className:Nn.heading},e.name))),o.createElement(f.Panel,null,o.createElement("div",{className:Nn.body},t.map((e=>o.createElement(kn,{className:"question-card",key:e.id,post:e,onSkip:y}))))))}))):o.createElement(dn,{message:n("profilePanel.emptyCareMess.content"),imgSrc:M.getAssetPath("questions.svg")}))};var Ln="GA-zc-O",Tn="A18McWD",In="IB049vj",Sn="_8I--vEV";const Pn=({post:e,className:t=""})=>{var a;const{data:{userInfo:n,env:{togetherBasePath:l}}}=i(z),{authActionWrapper:r,authorProps:s}=i(Go),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:`${Ln} ${t}`},o.createElement("div",{className:In},o.createElement("a",{className:Sn,href:c,onClick:e=>{(null==n?void 0:n.id)||(e.preventDefault(),null==r||r((()=>window.location.href=c)))}}),o.createElement(St,{className:"card-author",avatarProps:{avatar:null==s?void 0:s.avatar,size:32}},o.createElement(la.MainText,{className:Tn},null==e?void 0:e.title),o.createElement(la.SubTextRow,null,o.createElement(la.SubText,null,null==e?void 0:e.createdTime))),o.createElement(yo,{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 Mn="TSMHoEM";const zn=()=>{const{t:t}=E(),{data:{locale:a}}=i(z),{authorId:n,authorProps:r,isAuthorLogin:c,onCloseFromPost:d}=i(Go),[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 B(O(R.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(se);p(o),g(!1)}))}),[n]),o.createElement("div",{className:Mn},u?o.createElement(_o,null):null!==m&&(m.length>0?m.map((e=>o.createElement(Pn,{className:"post-card",key:e.id,post:e}))):o.createElement(dn,{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",Fn="DIJdGcB",Bn="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,r,{authorProps:c,selectedTab:d,authActionWrapper:m,onSkipQuestion:p,onCloseFromPost:u,hideQuestionTab:g,hideAnswerTab:h,showSkipQuestionTag:v,rolesToShowQuestionsTab:f=["expert"]}=a,b=t(a,["authorProps","selectedTab","authActionWrapper","onSkipQuestion","onCloseFromPost","hideQuestionTab","hideAnswerTab","showSkipQuestionTag","rolesToShowQuestionsTab"]);const{data:{locale:w,userInfo:x,env:{isMarryBaby:y}}}=i(z),{t:C}=E(),k=null==c?void 0:c.role,N=null==x?void 0:x.role,A=String(null==c?void 0:c.userId),[L,T]=l(),[I,S]=l(!1),[P,M]=l(),j=(null==x?void 0:x._togetherUserId)===(null==c?void 0:c.userId),F=[...-1!==f.indexOf(k)?[{key:Vn.About,name:C("profilePanel.tabs.highlight"),component:o.createElement(ln,{id:A,info:P})}]:[{key:Vn.Posts,name:C("profilePanel.tabs.posts"),component:o.createElement(zn,null),hasCountResult:!0,keyOfCountApi:"post",keyOfResult:"total_post"}],...g||-1===f.indexOf(N)||(null==x?void 0:x._togetherUserId)!==(null==c?void 0:c.userId)?[]:[{key:Vn.Care,name:`${C("profilePanel.tabs.care")}`,component:o.createElement(An,null),hasCountResult:!0,keyOfCountApi:"question",keyOfResult:"total_question"}],...h||-1===f.indexOf(k)?[]:[{key:Vn.Answer,name:`${C("profilePanel.tabs.expertAnswer")}`,component:o.createElement(gn,{id:A}),hasCountResult:!0,keyOfCountApi:"reply",keyOfResult:"total_reply"}]],[V,D]=l(null),[U,W]=l(null),Z={initialTab:U,tabContent:V,onChange:e=>W(e),styles:e=>({label:{fontSize:e.fontSizes.sm,fontWeight:600}})},H=null==F?void 0:F.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;S(!0);const c=yield Promise.all([B(O(R.USER.DETAIL,{_locale:w,id:A}),"GET"),...H.map((e=>B(O(R.USER.COUNT_TABS,{_locale:w,id:A,[e.keyOfCountApi]:1}),"GET")))]),[m]=c,p={data:null==m?void 0:m.data,experiences:((null===(t=null===(e=null==m?void 0:m.data)||void 0===e?void 0:e.fields)||void 0===t?void 0:t.experiences)||[]).map(On),relatedPosts:((null===(a=null==m?void 0:m.data)||void 0===a?void 0:a.related_post)||[]).map((e=>pe(e.post))),educations:((null===(n=null===(o=null==m?void 0:m.data)||void 0===o?void 0:o.fields)||void 0===n?void 0:n.educations)||[]).map(Rn),awards:(null===(l=null===(i=null==m?void 0:m.data)||void 0===i?void 0:i.fields)||void 0===l?void 0:l.awards_accreditations)||[],contact:(null===(s=null===(r=null==m?void 0:m.data)||void 0===r?void 0:r.fields)||void 0===s?void 0:s.contact)||{}};1===(null==m?void 0:m.status)&&M(p);const u=(null==p?void 0:p.relatedPosts)||[],g=Object.keys(p.contact).map((e=>{var t;return""!==(null===(t=null==p?void 0:p.contact)||void 0===t?void 0:t[e])})),h=[...(null==p?void 0:p.experiences)||[],...(null==p?void 0:p.educations)||[],...(null==p?void 0:p.awards)||[]],v=u.length>0||g.length>0||h.length>0,f={},b=H.map(((e,t)=>{var a,o,n;const i=(null===(n=null===(o=null===(a=c[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.key)?e:void 0})).filter(Boolean).map((e=>e.key)),x=F.map((e=>{const t=Object.assign(Object.assign({},e),{name:e.name+(e.keyOfResult?` (${(null==f?void 0:f[e.keyOfResult])||"0"})`:"")});return t.hasCountResult?-1!==b.indexOf(t.key)?t:void 0:t.key===Vn.About?v&&t:t})).filter(Boolean);D(x),W((()=>{if(!d)return 0;const e=null==x?void 0:x.findIndex((e=>e.key===d));return-1!==e?e:0})()),T(f),S(!1)}))}),[]);const q=null==P?void 0:P.data;return o.createElement(Go.Provider,{value:{isMarryBaby:y,siteType:y?"marryBaby":"helloSites",authorId:String((null==c?void 0:c.userId)||""),authActionWrapper:m,onSkipQuestion:p,info:P,authorProps:c,onCloseFromPost:u,countValues:L,setCountValues:T,isAuthorLogin:j,showSkipQuestionTag:v}},o.createElement("div",Object.assign({},b,{className:`${jn} ${(null==b?void 0:b.className)||""}`,"data-is-marrybaby":y}),I?o.createElement(_o,null):o.createElement(o.Fragment,null,o.createElement(la,Object.assign({},c,{className:"card-author",showDetailPopup:!1,subLine:"expert"===(null==c?void 0:c.role)?(null==q?void 0:q.specialty)&&(null==q?void 0:q.organisation)&&o.createElement(la.SubTextRow,null,(null==q?void 0:q.specialty)&&o.createElement(o.Fragment,null,o.createElement(la.SubText,null,null==q?void 0:q.specialty),o.createElement(la.SubDivider,null)),o.createElement(la.SubText,null,null==q?void 0:q.organisation)):(null==q?void 0:q.created_at)&&o.createElement(la.SubTextRow,null,o.createElement(la.SubText,null,C("profilePanel.joined")," ",Se(null==q?void 0:q.created_at).toNow(!0)))})),"expert"===k&&o.createElement("div",{className:Fn,dangerouslySetInnerHTML:{__html:null===(n=null==P?void 0:P.data)||void 0===n?void 0:n.description}}),null!==V&&null!==U&&(V.length>0?o.createElement("div",{className:Bn},o.createElement(ie,Object.assign({},Z)),null===(r=null==V?void 0:V[U])||void 0===r?void 0:r.component):o.createElement(dn,{message:C("profilePanel.emptyPostMess.content",{name:(null==c?void 0:c.name)||(null==c?void 0:c.username)||""})})))))};var Wn=Object.freeze({__proto__:null,get TabName(){return Vn},get UserType(){return Dn},TabDataInit:{experiences:[],relatedPosts:[],educations:[],awards:[],contact:{},data:{}},ProfileDetail:Un}),Zn="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",Hn="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",qn="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 _n=({onDeleteComment:t,commentId:a,className:n="",popoverClassName:r=""})=>{const{data:{env:{isMarryBaby:s},locale:c},action:{pushNotifications:d}}=i(z),{t:m}=E(),[p,u]=l(!1),{authActionWrapper:g}=We();return o.createElement("div",{className:n,onClick:e=>{e.preventDefault(),e.stopPropagation()}},p&&o.createElement(lo,{thumbnail:"data:image/svg+xml,%3csvg width='16' height='17' viewBox='0 0 16 17' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cg clip-path='url(%23clip0)'%3e%3cpath d='M2 4.00781H3.33333H14' stroke='%23737373' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M5.33337 4.00846V2.67513C5.33337 2.32151 5.47385 1.98237 5.7239 1.73232C5.97395 1.48227 6.31309 1.3418 6.66671 1.3418H9.33337C9.687 1.3418 10.0261 1.48227 10.2762 1.73232C10.5262 1.98237 10.6667 2.32151 10.6667 2.67513V4.00846M12.6667 4.00846V13.3418C12.6667 13.6954 12.5262 14.0346 12.2762 14.2846C12.0261 14.5347 11.687 14.6751 11.3334 14.6751H4.66671C4.31309 14.6751 3.97395 14.5347 3.7239 14.2846C3.47385 14.0346 3.33337 13.6954 3.33337 13.3418V4.00846H12.6667Z' stroke='%23737373' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M6.66663 7.3418V11.3418' stroke='%23737373' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M9.33337 7.3418V11.3418' stroke='%23737373' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/g%3e%3cdefs%3e%3cclipPath id='clip0'%3e%3crect width='16' height='16' fill='white' transform='translate(0 0.0078125)'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",isThumbnailIcon:!0,title:m("popup.deleteComment.title"),description:m("popup.deleteComment.description"),acceptText:m("popup.deletePost.accept"),cancelText:m("popup.deletePost.cancel"),onAccept:()=>e(void 0,void 0,void 0,(function*(){var e;if(!a)return;const o=yield(({id:e,locale:t})=>$(O(R.COMMENT.DELETE,{_locale:t,id:e}),"DELETE"))({id:a,locale:c});1===(null==o?void 0:o.status)?(t&&t(),d({title:"",message:m("notification.success"),type:"success"})):d({title:"",message:(null===(e=null==o?void 0:o.messages)||void 0===e?void 0:e[0])||m("notification.failure"),type:"danger"})})),onClose:()=>u(!1)}),o.createElement(gt,{position:"bottom",align:"end",data:{isShowheader:!1,type:"list",list:[{icon:qn,label:m("actionPopover.delete"),onClick:()=>{g((()=>{u(!0)}))}}]},className:r,toggleButtonContent:o.createElement("img",{src:s?Zn:Hn}),buttonProps:{}}))},Gn=ke.div`
2637
+ `,Ho=({url:t,image:a,className:n,style:d,autoPlay:p=!0})=>{const{data:{locale:u}}=i(z),[g,h]=l(null);s((()=>{e(void 0,void 0,void 0,(function*(){if(!a){if(!t)return h(null);h((e=>Object.assign(Object.assign({},e),{isFetching:!0}))),B(O(R.FETCH_PREVIEW,{_locale:u}),"POST",{data:{link:t},headers:{"Content-Type":"application/json"}}).then((e=>{var a,o;h({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((()=>{h(null)}))}}))}),[t,a]);const v=a||(null==g?void 0:g.image),f=(null==g?void 0:g.url)||t,b=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])||""})(f)),[f]),w=c((()=>f.includes("facebook.com")||f.includes("fb.watch")),[f]),x=r(0),y=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&&(!x.current||Math.abs((x.current-t.width)/(null==t?void 0:t.width))>.2)&&(x.current=Math.floor(t.width),a=!0),t&&(!y.current||Math.abs((y.current-t.height)/(null==t?void 0:t.height))>.2)&&(y.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),N=r(!1),A=m();return o.createElement(Zo,{className:`${n} no-replace-click`,style:d,ref:k,color:A.colors[A.primaryColor][0]},a||!b&&!w?o.createElement("a",{href:f,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(qe,{className:"loading-spinner"}):o.createElement("img",{className:"link-image",src:v||V,onError:e=>{N.current||(N.current=!0,e.currentTarget.src=V)}}))):o.createElement("div",{className:"link-image-wrapper"},b?o.createElement("iframe",{width:"100%",height:"100%",src:`https://www.youtube.com/embed/${b}?&autoplay=${p?1:0}&mute=1&enablejsapi=1`,frameBorder:"0",allowFullScreen:!0,style:{position:"absolute",top:0,left:0,border:"none",overflow:"hidden"}}):w?o.createElement("iframe",{key:String(E),src:`https://www.facebook.com/plugins/video.php?href=${encodeURIComponent(f)}&autoplay=${p?1:0}&show_text=false&t=0&width=${x.current}&height=${y.current}`,style:{position:"absolute",top:"50%",left:"50%",border:"none",overflow:"hidden",height:y.current,width:x.current,transform:"translate(-50%, -50%)"},scrolling:"no",frameBorder:"0",allowFullScreen:!0,allow:"autoplay; clipboard-write; encrypted-media; picture-in-picture; web-share"}):null))};var qo="PD6nRZX";const _o=({className:e,size:t="md"})=>{const{t:a}=E();return o.createElement("div",{className:`${qo} ${e}`},o.createElement(w,{size:t,color:"transparent",isLoading:!0},a("loading")))},Go=n({});var Qo="DZmf3s7";const Xo=({src:e,defaultSrc:t=M.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:Qo,style:{width:`${n}px`,height:n*a+"px",borderRadius:`${i}px`}},o.createElement(Pt,{src:e,fallbackSrc:t,alt:l})));var Ko="l5fL1xL",$o="L-aGKo7";const Yo=({children:e,className:t=""})=>o.createElement("div",{className:`${Ko} ${t}`},e),Jo=({children:e,className:t=""})=>o.createElement("div",{className:`${$o} ${t}`},e);var en="eaR8ATZ",tn="xM-7K0a";const an=({category:e,title:t,src:a,children:n,className:i=""})=>o.createElement("div",{className:`${en} ${i}`},o.createElement(Xo,{src:a}),o.createElement("div",{className:tn},n||o.createElement("div",null,e&&o.createElement(Yo,null,e),t&&o.createElement(Jo,null,t))));an.CategoryText=Yo,an.Title=Jo;const on=({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(an,{src:e,className:l},o.createElement(o.Fragment,null,o.createElement(an.CategoryText,null,null===(r=null==n?void 0:n[0])||void 0===r?void 0:r.name),o.createElement(an.Title,null,t),o.createElement(St,{avatarProps:Object.assign(Object.assign({},a),{size:32}),subTitle:o.createElement(o.Fragment,null,s,o.createElement(St.SubDivider,null),"Dec 12, 2022")})))};var nn={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 ln=({className:e=""})=>{var t,a,n,l,r;const{t:s}=E(),{info:c,isMarryBaby:d}=i(Go),m=null==c?void 0:c.data,p=[{type:"linkedin",icon:M.getAssetPath("linkedin.svg"),url:null===(t=null==c?void 0:c.contact)||void 0===t?void 0:t.linkedin},{type:"instagram",icon:M.getAssetPath("instagram.svg"),url:null===(a=null==c?void 0:c.contact)||void 0===a?void 0:a.instagram},{type:"facebook",icon:M.getAssetPath("facebook.svg"),url:null===(n=null==c?void 0:c.contact)||void 0===n?void 0:n.facebook},{type:"youtube",icon:M.getAssetPath("youtube.svg"),url:null===(l=null==c?void 0:c.contact)||void 0===l?void 0:l.youtube},{type:"tiktok",icon:M.getAssetPath("tiktok.svg"),url:null===(r=null==c?void 0:c.contact)||void 0===r?void 0:r.tiktok}],g=[...((null==c?void 0:c.experiences)||[]).length>0?[{key:"experience",heading:s("profilePanel.experience"),iconSrc:M.getAssetPath(d?"award-doc-mb.svg":"award-doc.svg"),panel:o.createElement("div",{className:nn.accBodyGroup},null==c?void 0:c.experiences.map(((e,t)=>o.createElement("div",{className:nn.accBodyGroupItem,key:String(t)},o.createElement("div",{className:nn.accBodyGroupTitle},e.title),o.createElement("div",{className:nn.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:M.getAssetPath(d?"book-mb.svg":"book.svg"),panel:o.createElement("div",{className:nn.accBodyGroup},null==c?void 0:c.educations.map(((e,t)=>o.createElement("div",{className:nn.accBodyGroupItem,key:String(t)},o.createElement("div",{className:nn.accBodyGroupTitle},e.schoolName),o.createElement("div",{className:nn.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:M.getAssetPath(d?"award-mb.svg":"award.svg"),panel:o.createElement("div",{className:nn.accBodyGroup},null==c?void 0:c.awards.map(((e,t)=>o.createElement("div",{className:nn.accBodyGroupTitle,key:t},e.title))))}]:[]],h=(null==c?void 0:c.relatedPosts)||[],v=p.filter((e=>e.url));return o.createElement("div",{className:`${nn.container} ${e}`,"data-is-marrybaby":d},g.length>0&&o.createElement(f,{defaultValue:g[0].key,chevron:d?o.createElement("div",{className:nn.mbChevronWrapper},o.createElement(P,{size:12,color:k.mbColors.midGray})):o.createElement(P,{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"}}}},g.map((e=>o.createElement(f.Item,{key:e.key,value:e.key},o.createElement(f.Control,null,o.createElement("div",{className:nn.header},o.createElement("div",{className:nn.headingIcon},o.createElement("img",{src:e.iconSrc})),o.createElement("div",{className:nn.heading},e.heading))),o.createElement(f.Panel,null,e.panel))))),h.length>0&&o.createElement("div",{className:nn.group},o.createElement("div",{className:nn.subTitle},o.createElement("img",{className:nn.subIcon,src:M.getAssetPath(d?"mb-logo.svg":"logo/circle-solid.svg")}),s("profilePanel.publishedArticles")),o.createElement("div",{className:`${nn.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:nn.articleCardLink},o.createElement(on,Object.assign({className:"article-card"},Object.assign(Object.assign({},e),!e.author&&{author:{displayName:null==m?void 0:m.name,avatar:null==m?void 0:m.avatar}}),{isReview:!0}))))))),v.length>0&&o.createElement("div",{className:nn.group},o.createElement("div",{className:nn.subTitle},o.createElement("img",{className:nn.subIcon,src:M.getAssetPath(d?"social-mb.svg":"social.svg")}),s("profilePanel.socialLinks")),o.createElement("div",{className:nn.groupBody},o.createElement(u,null,p.map(((e,t)=>e.url&&o.createElement("div",{className:nn.socialItem,key:t},o.createElement("a",{href:e.url,target:"_blank",rel:"noreferrer"},o.createElement("img",{src:e.icon,loading:"lazy",width:"32px"})))))))))};var rn="_8fd7YMs",sn="DomiQfw",cn="-b2qnfL";const dn=({message:e,buttonTxt:t,imgSrc:a,onBtnClick:n})=>{const{siteType:l,isMarryBaby:r}=i(Go);return o.createElement("div",{className:rn},o.createElement("div",{className:sn},o.createElement("img",{src:a||M.getAssetPath(r?"comments-mb.svg":"comments.svg")})),e&&o.createElement("div",{className:cn},e),t&&o.createElement(w,{size:"md",theme:l,color:"secondary",onClick:n},t))};var mn={container:"GYUElSy",question:"_3C6QpT1",questionTitle:"_9M9VYL6",community:"_1RuSyv3",questionCard:"_1IG-eEp"};const pn=({post:e,className:t=""})=>{var a,n,l,r,s,c,d,m;const{t:p}=E(),{data:{userInfo:u,env:{togetherBasePath:g}}}=i(z),{authActionWrapper:h,authorProps:v,isMarryBaby:f}=i(Go),b=`${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:`${mn.container} ${t}`},o.createElement("div",{className:mn.header},o.createElement("div",{className:mn.question},p("profilePanel.question")," ",o.createElement(Re,{className:mn.questionTitle,href:"#",onClick:()=>{(null==u?void 0:u.id)||null==h||h((()=>window.location.href=b))}},"#",null==e?void 0:e.title)),o.createElement("div",{className:mn.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:mn.questionCard},o.createElement(la,Object.assign({className:"card-author"},v,{role:"user",avatarIcon:o.createElement(bt,null),subLine:o.createElement(la.SubTextRow,null,o.createElement(la.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(yo,{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(Oe,{size:"md",onClick:()=>{(null==u?void 0:u.id)?window.location.href=b:null==h||h((()=>window.location.href=b))}},p("profilePanel.anserwing.viewFull")))};var un="MrdoES3";const gn=({id:t})=>{const{t:a}=E(),{data:{locale:n}}=i(z),{authorProps:r}=i(Go),[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 B(O(R.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(se);d(o),p(!1)}))}),[]),o.createElement("div",{className:un},m?o.createElement(_o,null):null!==c&&(c.length>0?c.map((e=>o.createElement(pn,{className:"post-card",key:e.id,post:e}))):o.createElement(dn,{message:a("profilePanel.emptyPostMess.content",{name:(null==r?void 0:r.name)||(null==r?void 0:r.username)})})))},hn=e=>{var{size:a,color:n}=e,i=t(e,["size","color"]);return o.createElement("svg",Object.assign({width:a,height:a,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i),o.createElement("path",{d:"M9.99983 9.14326L6.94303 12.2001C6.61183 12.5313 6.07423 12.5313 5.74303 12.2001C5.41183 11.8689 5.41183 11.3313 5.74303 11.0001L9.43423 7.30886C9.74703 6.99606 10.2534 6.99606 10.5654 7.30886L14.2566 11.0001C14.5878 11.3313 14.5878 11.8689 14.2566 12.2001C13.9254 12.5313 13.3878 12.5313 13.0566 12.2001L9.99983 9.14326Z",fill:n}))};hn.defaultProps={size:24,color:k.colors.gray600};var vn="KsWg8i6",fn="_9tS0EUN",bn="kyyRKlb",wn="-Uqqka-";const xn=a=>{var{post:n,onSkip:r,siteType:s,btnText:c}=a,p=t(a,["post","onSkip","siteType","btnText"]);const{t:u}=E(),{data:{locale:g},action:{pushNotifications:h}}=i(z),[v,f]=l(!1),[w,x]=l(!1),y=m(),C=d((()=>e(void 0,void 0,void 0,(function*(){var e;x(!0);const t=yield $(O(R.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)||""}),f(!1),h({title:"",message:"Skip success",type:"success"})):h({title:"",message:null==t?void 0:t.messages,type:"danger"}),x(!1)}))),[]);return o.createElement(b,{width:327,withArrow:!0,shadow:"md",opened:v},o.createElement(b.Target,null,o.createElement("div",Object.assign({className:`${vn} ${(null==p?void 0:p.className)||""}`,onClick:()=>f(!0)},p),c||u("profilePanel.questionNotClear"))),o.createElement(b.Dropdown,null,o.createElement("div",null,o.createElement("div",{className:fn},u("profilePanel.skipQuestion.heading")),o.createElement("div",{className:bn},u("profilePanel.skipQuestion.content")),o.createElement("div",{className:wn},o.createElement(Oe,{size:"md",variant:"secondary",leftIcon:o.createElement(Te,{color:y.fn.primaryColor(),size:24}),onClick:()=>f(!1),styles:()=>({leftIcon:{marginRight:0}})}),o.createElement(Oe,{variant:"primary",size:"md",leftIcon:o.createElement(Ie,{color:"white",size:24}),onClick:C,loading:w,styles:()=>({leftIcon:{marginRight:0}})})))))};var yn="toEutn7",En="drdisHs",Cn="HNlhOdx";const kn=e=>{var a,n,l,r,{post:s,onSkip:c}=e,d=t(e,["post","onSkip"]);const{data:{env:{togetherBasePath:m}}}=i(z),{showSkipQuestionTag:p}=i(Go);return o.createElement(o.Fragment,null,o.createElement("div",Object.assign({},d,{className:`${yn} ${(null==d?void 0:d.className)||""}`}),o.createElement(la,{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(la.SubTextRow,null,o.createElement(la.SubText,null,null==s?void 0:s.createdTime))}),o.createElement(Re,{href:`${window.location.origin}${m}/${null===(r=null==s?void 0:s.community)||void 0===r?void 0:r.slug}/${null==s?void 0:s.slug}`,className:En,rel:"noreferrer"},null==s?void 0:s.title),p&&o.createElement(xn,{className:Cn,post:s,onSkip:c})))};var Nn={accordion:"I-uIJ6E",header:"_41WRsj2",heading:"AcOGL93",headingIcon:"JD3dWJN",panel:"dKAgnS8",chevron:"L2Q9T6m"};const An=()=>{var t,a;const{t:n}=E(),{data:{locale:r,userInfo:c}}=i(z),{onSkipQuestion:d,countValues:m,setCountValues:p}=i(Go),[u,g]=l(),[h,v]=l([]),[b,w]=l(!1),x=null==c?void 0:c.id;s((()=>{x&&e(void 0,void 0,void 0,(function*(){var e;w(!0);const t=yield $(O(R.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(se),delete e.question,a.push(me(e))})),v(a),g(o),w(!1)}))}),[]);const y=({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(_o,null):(null==m?void 0:m.total_question)>0?h.length>0&&o.createElement(f,{className:Nn.accordion,defaultValue:String((null===(a=h[null===(t=Object.keys(h))||void 0===t?void 0:t[0]])||void 0===a?void 0:a.id)||""),styles:{control:{padding:"16px",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:Nn.chevron},o.createElement(hn,{color:k.colors.gray600,size:20}))},h.map((e=>{const t=u&&(null==u?void 0:u[e.id])||[];return t.length>0&&o.createElement(f.Item,{key:e.id,value:String(e.id)},o.createElement(f.Control,null,o.createElement("div",{className:Nn.header},o.createElement("div",{className:Nn.headingIcon},o.createElement("img",{src:e.thumbnail})),o.createElement("div",{className:Nn.heading},e.name))),o.createElement(f.Panel,null,o.createElement("div",{className:Nn.body},t.map((e=>o.createElement(kn,{className:"question-card",key:e.id,post:e,onSkip:y}))))))}))):o.createElement(dn,{message:n("profilePanel.emptyCareMess.content"),imgSrc:M.getAssetPath("questions.svg")}))};var Ln="GA-zc-O",Tn="A18McWD",In="IB049vj",Sn="_8I--vEV";const Pn=({post:e,className:t=""})=>{var a;const{data:{userInfo:n,env:{togetherBasePath:l}}}=i(z),{authActionWrapper:r,authorProps:s}=i(Go),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:`${Ln} ${t}`},o.createElement("div",{className:In},o.createElement("a",{className:Sn,href:c,onClick:e=>{(null==n?void 0:n.id)||(e.preventDefault(),null==r||r((()=>window.location.href=c)))}}),o.createElement(St,{className:"card-author",avatarProps:{avatar:null==s?void 0:s.avatar,size:32}},o.createElement(la.MainText,{className:Tn},null==e?void 0:e.title),o.createElement(la.SubTextRow,null,o.createElement(la.SubText,null,null==e?void 0:e.createdTime))),o.createElement(yo,{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 Mn="TSMHoEM";const zn=()=>{const{t:t}=E(),{data:{locale:a}}=i(z),{authorId:n,authorProps:r,isAuthorLogin:c,onCloseFromPost:d}=i(Go),[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 B(O(R.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(se);p(o),g(!1)}))}),[n]),o.createElement("div",{className:Mn},u?o.createElement(_o,null):null!==m&&(m.length>0?m.map((e=>o.createElement(Pn,{className:"post-card",key:e.id,post:e}))):o.createElement(dn,{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",Fn="DIJdGcB",Bn="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,r,{authorProps:c,selectedTab:d,authActionWrapper:m,onSkipQuestion:p,onCloseFromPost:u,hideQuestionTab:g,hideAnswerTab:h,showSkipQuestionTag:v,rolesToShowQuestionsTab:f=["expert"]}=a,b=t(a,["authorProps","selectedTab","authActionWrapper","onSkipQuestion","onCloseFromPost","hideQuestionTab","hideAnswerTab","showSkipQuestionTag","rolesToShowQuestionsTab"]);const{data:{locale:w,userInfo:x,env:{isMarryBaby:y}}}=i(z),{t:C}=E(),k=null==c?void 0:c.role,N=null==x?void 0:x.role,A=String(null==c?void 0:c.userId),[L,T]=l(),[I,S]=l(!1),[P,M]=l(),j=(null==x?void 0:x._togetherUserId)===(null==c?void 0:c.userId),F=[...-1!==f.indexOf(k)?[{key:Vn.About,name:C("profilePanel.tabs.highlight"),component:o.createElement(ln,{id:A,info:P})}]:[{key:Vn.Posts,name:C("profilePanel.tabs.posts"),component:o.createElement(zn,null),hasCountResult:!0,keyOfCountApi:"post",keyOfResult:"total_post"}],...g||-1===f.indexOf(N)||(null==x?void 0:x._togetherUserId)!==(null==c?void 0:c.userId)?[]:[{key:Vn.Care,name:`${C("profilePanel.tabs.care")}`,component:o.createElement(An,null),hasCountResult:!0,keyOfCountApi:"question",keyOfResult:"total_question"}],...h||-1===f.indexOf(k)?[]:[{key:Vn.Answer,name:`${C("profilePanel.tabs.expertAnswer")}`,component:o.createElement(gn,{id:A}),hasCountResult:!0,keyOfCountApi:"reply",keyOfResult:"total_reply"}]],[V,D]=l(null),[U,W]=l(null),Z={initialTab:U,tabContent:V,onChange:e=>W(e),styles:e=>({label:{fontSize:e.fontSizes.sm,fontWeight:600}})},H=null==F?void 0:F.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;S(!0);const c=yield Promise.all([B(O(R.USER.DETAIL,{_locale:w,id:A}),"GET"),...H.map((e=>B(O(R.USER.COUNT_TABS,{_locale:w,id:A,[e.keyOfCountApi]:1}),"GET")))]),[m]=c,p={data:null==m?void 0:m.data,experiences:((null===(t=null===(e=null==m?void 0:m.data)||void 0===e?void 0:e.fields)||void 0===t?void 0:t.experiences)||[]).map(On),relatedPosts:((null===(a=null==m?void 0:m.data)||void 0===a?void 0:a.related_post)||[]).map((e=>pe(e.post))),educations:((null===(n=null===(o=null==m?void 0:m.data)||void 0===o?void 0:o.fields)||void 0===n?void 0:n.educations)||[]).map(Rn),awards:(null===(l=null===(i=null==m?void 0:m.data)||void 0===i?void 0:i.fields)||void 0===l?void 0:l.awards_accreditations)||[],contact:(null===(s=null===(r=null==m?void 0:m.data)||void 0===r?void 0:r.fields)||void 0===s?void 0:s.contact)||{}};1===(null==m?void 0:m.status)&&M(p);const u=(null==p?void 0:p.relatedPosts)||[],g=Object.keys(p.contact).map((e=>{var t;return""!==(null===(t=null==p?void 0:p.contact)||void 0===t?void 0:t[e])})),h=[...(null==p?void 0:p.experiences)||[],...(null==p?void 0:p.educations)||[],...(null==p?void 0:p.awards)||[]],v=u.length>0||g.length>0||h.length>0,f={},b=H.map(((e,t)=>{var a,o,n;const i=(null===(n=null===(o=null===(a=c[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.key)?e:void 0})).filter(Boolean).map((e=>e.key)),x=F.map((e=>{const t=Object.assign(Object.assign({},e),{name:e.name+(e.keyOfResult?` (${(null==f?void 0:f[e.keyOfResult])||"0"})`:"")});return t.hasCountResult?-1!==b.indexOf(t.key)?t:void 0:t.key===Vn.About?v&&t:t})).filter(Boolean);D(x),W((()=>{if(!d)return 0;const e=null==x?void 0:x.findIndex((e=>e.key===d));return-1!==e?e:0})()),T(f),S(!1)}))}),[]);const q=null==P?void 0:P.data;return o.createElement(Go.Provider,{value:{isMarryBaby:y,siteType:y?"marryBaby":"helloSites",authorId:String((null==c?void 0:c.userId)||""),authActionWrapper:m,onSkipQuestion:p,info:P,authorProps:c,onCloseFromPost:u,countValues:L,setCountValues:T,isAuthorLogin:j,showSkipQuestionTag:v}},o.createElement("div",Object.assign({},b,{className:`${jn} ${(null==b?void 0:b.className)||""}`,"data-is-marrybaby":y}),I?o.createElement(_o,null):o.createElement(o.Fragment,null,o.createElement(la,Object.assign({},c,{className:"card-author",showDetailPopup:!1,subLine:"expert"===(null==c?void 0:c.role)?(null==q?void 0:q.specialty)&&(null==q?void 0:q.organisation)&&o.createElement(la.SubTextRow,null,(null==q?void 0:q.specialty)&&o.createElement(o.Fragment,null,o.createElement(la.SubText,null,null==q?void 0:q.specialty),o.createElement(la.SubDivider,null)),o.createElement(la.SubText,null,null==q?void 0:q.organisation)):(null==q?void 0:q.created_at)&&o.createElement(la.SubTextRow,null,o.createElement(la.SubText,null,C("profilePanel.joined")," ",Pe(null==q?void 0:q.created_at).toNow(!0)))})),"expert"===k&&o.createElement("div",{className:Fn,dangerouslySetInnerHTML:{__html:null===(n=null==P?void 0:P.data)||void 0===n?void 0:n.description}}),null!==V&&null!==U&&(V.length>0?o.createElement("div",{className:Bn},o.createElement(ie,Object.assign({},Z)),null===(r=null==V?void 0:V[U])||void 0===r?void 0:r.component):o.createElement(dn,{message:C("profilePanel.emptyPostMess.content",{name:(null==c?void 0:c.name)||(null==c?void 0:c.username)||""})})))))};var Wn=Object.freeze({__proto__:null,get TabName(){return Vn},get UserType(){return Dn},TabDataInit:{experiences:[],relatedPosts:[],educations:[],awards:[],contact:{},data:{}},ProfileDetail:Un}),Zn="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",Hn="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",qn="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 _n=({onDeleteComment:t,commentId:a,className:n="",popoverClassName:r=""})=>{const{data:{env:{isMarryBaby:s},locale:c},action:{pushNotifications:d}}=i(z),{t:m}=E(),[p,u]=l(!1),{authActionWrapper:g}=We();return o.createElement("div",{className:n,onClick:e=>{e.preventDefault(),e.stopPropagation()}},p&&o.createElement(lo,{thumbnail:"data:image/svg+xml,%3csvg width='16' height='17' viewBox='0 0 16 17' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cg clip-path='url(%23clip0)'%3e%3cpath d='M2 4.00781H3.33333H14' stroke='%23737373' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M5.33337 4.00846V2.67513C5.33337 2.32151 5.47385 1.98237 5.7239 1.73232C5.97395 1.48227 6.31309 1.3418 6.66671 1.3418H9.33337C9.687 1.3418 10.0261 1.48227 10.2762 1.73232C10.5262 1.98237 10.6667 2.32151 10.6667 2.67513V4.00846M12.6667 4.00846V13.3418C12.6667 13.6954 12.5262 14.0346 12.2762 14.2846C12.0261 14.5347 11.687 14.6751 11.3334 14.6751H4.66671C4.31309 14.6751 3.97395 14.5347 3.7239 14.2846C3.47385 14.0346 3.33337 13.6954 3.33337 13.3418V4.00846H12.6667Z' stroke='%23737373' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M6.66663 7.3418V11.3418' stroke='%23737373' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M9.33337 7.3418V11.3418' stroke='%23737373' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/g%3e%3cdefs%3e%3cclipPath id='clip0'%3e%3crect width='16' height='16' fill='white' transform='translate(0 0.0078125)'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",isThumbnailIcon:!0,title:m("popup.deleteComment.title"),description:m("popup.deleteComment.description"),acceptText:m("popup.deletePost.accept"),cancelText:m("popup.deletePost.cancel"),onAccept:()=>e(void 0,void 0,void 0,(function*(){var e;if(!a)return;const o=yield(({id:e,locale:t})=>$(O(R.COMMENT.DELETE,{_locale:t,id:e}),"DELETE"))({id:a,locale:c});1===(null==o?void 0:o.status)?(t&&t(),d({title:"",message:m("notification.success"),type:"success"})):d({title:"",message:(null===(e=null==o?void 0:o.messages)||void 0===e?void 0:e[0])||m("notification.failure"),type:"danger"})})),onClose:()=>u(!1)}),o.createElement(gt,{position:"bottom",align:"end",data:{isShowheader:!1,type:"list",list:[{icon:qn,label:m("actionPopover.delete"),onClick:()=>{g((()=>{u(!0)}))}}]},className:r,toggleButtonContent:o.createElement("img",{src:s?Zn:Hn}),buttonProps:{}}))},Gn=ke.div`
2638
2638
  .add-link {
2639
2639
  color: ${k.colors.primaryBase};
2640
2640
  }
@@ -2900,7 +2900,7 @@ import{a as e,_ as t}from"./tslib.es6-5ca9a486.js";import*as a from"react";impor
2900
2900
  `,pi=ke(di)`
2901
2901
  margin-top: 12px;
2902
2902
  padding: 0.5rem 1rem 1rem;
2903
- `;var ui="-dzIuHr";const gi=({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(w,{className:`${ui} ${r}`,color:"success",size:"xs",onClick:()=>d(!0),style:{padding:"5px 8px",marginBottom:"12px",borderRadius:"4px"}},o.createElement("span",{className:"text"},o.createElement(Le.Endorse,{isSolid:!0,size:18,color:k.colors.green800,className:"icon"}),s("cardReply.verifyBy",{name:`${a||""}`}))),o.createElement(aa,{open:c,onClose:()=>d(!1),profileModalProps:{zIndex:1e3}},o.createElement(Un,{authorProps:{userId:e,avatar:t,name:a,role:n,title:i},hideQuestionTab:!0})))},hi=({className:t,style:a,comment:n,type:r="comment",level:d=0,replyingId:m,onPostCommentSuccess:p,post:u,onDeleteComment:g,refetchComment:h,hasQuickBookingEnable:v,handleMakeAppointment:f,cardAuthorProps:b,maxChars:x=600,disableShortenContent:y})=>{var C,k,N,A,L,T,I,S,P,M,j,F;const{data:{locale:V,userInfo:D,env:{isMarryBaby:U}}}=i(z),{t:H}=E(),[q,_]=l(n||null),{id:G,countReplies:Q,countLikes:X,content:K,createdAt:Y,replies:J=[],images:ee=[],author:te,liked:ae,link:oe,mentionedUser:ne,mentions:ie}=q,{text:re,replyingTo:se}=(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:ce}=We({_joinCommunityIds:[null===(C=null==u?void 0:u.community)||void 0===C?void 0:C.id],_joinTopicIds:null===(k=null==u?void 0:u.topics)||void 0===k?void 0:k.map((e=>e.id))}),[de,me]=l(4),pe=!!(null==D?void 0:D.id)&&(null==J?void 0:J.some((e=>e.author.id===D.id))),ue=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 h&&h(a),a}return t}))},[ge,he]=l(!1),ve=c((()=>"comment"===r&&J&&0!=J.length?J.sort(((e,t)=>{const a=new Date(e.createdAt).getTime(),o=new Date(t.createdAt).getTime();return a>o?-1:a<o?1:0})):J),[r,J]),fe=(null==J?void 0:J.length)||0,be=String(null==te?void 0:te.email)&&(null==D?void 0:D.email)&&String(null==te?void 0:te.email)===String(null==D?void 0:D.email),we=(null==te?void 0:te.name)||(null==te?void 0:te.username)||"",xe=(null==te?void 0:te.username)||(null==te?void 0:te.name)||"",ye=null==te?void 0:te.avatar,Ee=(null==u?void 0:u.isAnonymous)||null==te?void 0:te.role,Ce=[...(null==u?void 0:u.isAnonymous)?[{id:(null===(N=null==u?void 0:u.author)||void 0===N?void 0:N.id)||0,name:H("cardPost.anonymous")}]:[],...ie||[]],[ke,Ne]=l(null),[Ae,Le]=l(null);s((()=>{if(null==te?void 0:te.hospitalId){const t=t=>e(void 0,void 0,void 0,(function*(){var e;const a=yield B(W(Z.GET_HOSPITAL_INFO,{hospital_branch_id:t,website_url:Pe[V]}),"get");(null===(e=null==a?void 0:a._data)||void 0===e?void 0:e.branch)&&Ne(null==a?void 0:a._data.branch)}));t(te.hospitalId)}if(null==te?void 0:te.doctorId){const t=t=>e(void 0,void 0,void 0,(function*(){var e;const a=yield B(W(Z.GET_DOCTOR_INFO,{doctorId:t,website_url:Pe[V]}),"get");(null===(e=null==a?void 0:a._data)||void 0===e?void 0:e.doctor)&&Le(null==a?void 0:a._data.doctor)}));t(te.doctorId)}}),[te.hospitalId,te.doctorId]);const Te=(null==Ae?void 0:Ae.valid_outpatient)||(null==Ae?void 0:Ae.valid_telemedicine),Ie=((null==ke?void 0:ke.total_available_service)||(null==ke?void 0:ke.total_available_doctor))>0,Se=v&&(Te||Ie),Me="chatbot"===(null===(A=null==q?void 0:q.author)||void 0===A?void 0:A.type);return o.createElement(Ue,{defaultParams:{_joinCommunityIds:[null===(L=null==u?void 0:u.community)||void 0===L?void 0:L.id],_joinTopicIds:null===(T=null==u?void 0:u.topics)||void 0===T?void 0:T.map((e=>e.id))}},o.createElement(mi,{className:t,style:a,"data-is-reply":!!d,"data-is-marrybaby":U,"data-has-booking":Se},"reply"===r&&o.createElement(le,{className:"top-divider",type:"solid"}),o.createElement("div",{style:{padding:"16px 16px 0"}},o.createElement(la,Object.assign({avatar:ye,name:we,username:xe,timeText:null==u?void 0:u.createdTime,community:null==u?void 0:u.community,className:"post-author "+(be?"with-popover":""),type:r,userId:null==te?void 0:te.id,role:Ee,expertId:null==te?void 0:te.partnerId,title:null==te?void 0:te.title,doctorId:null==te?void 0:te.doctorId,hospitalId:null==te?void 0:te.hospitalId,hasQuickBooking:Se,handleMakeAppointment:f,isAnonymous:!!(null==u?void 0:u.isAnonymous),hideBackground:Me,userType:null==te?void 0:te.type},b)),Boolean(null==q?void 0:q.isVerify)&&!Boolean(null==q?void 0:q.isOppose)&&o.createElement(gi,{title:null===(I=null==q?void 0:q.userVerify)||void 0===I?void 0:I.title,name:null===(S=null==q?void 0:q.userVerify)||void 0===S?void 0:S.name,userId:null===(P=null==q?void 0:q.userVerify)||void 0===P?void 0:P.id,role:null===(M=null==q?void 0:q.userVerify)||void 0===M?void 0:M.role,avatar:null===(j=null==q?void 0:q.userVerify)||void 0===j?void 0:j.avatar,className:"verify-tag"})),o.createElement(yo,{className:"post-content-wrapper",replyingTo:se,mentionedUser:ne,description:re,mentions:Ce,maxChars:x,disableShortenContent:y}),o.createElement("span",null),o.createElement("span",null),ee&&ee.length>0?o.createElement("div",{key:"image-preview",className:"image-preview-wrapper","data-is-reply":!0},o.createElement(Wo,{images:ee,authorName:null==te?void 0:te.username})):null,ee&&0!==ee.length||!oe?null:o.createElement("div",{key:"link-preview",className:"link-preview-wrapper","data-is-reply":!0},o.createElement(Ge,{url:oe})),"most-engaging"!==r?o.createElement(o.Fragment,null,Me&&o.createElement(pi,{listUrl:null==q?void 0:q.source,categorySlug:null==q?void 0:q.categorySlug}),o.createElement(it,{type:Je.reply,loveCount:X,replyCount:fe,className:"post-reaction",liked:ae,isReplied:pe,hideCommentIcon:"reply"===r||Me,hasShare:!1,onCommentClick:()=>ce((()=>he((e=>!e)))),onCommentCountClick:()=>ce((()=>{he(!0)})),onLikeClick:()=>ce((()=>e(void 0,void 0,void 0,(function*(){if(G){const t=yield(({commentId:t,setLike:a=!1,locale:o})=>e(void 0,void 0,void 0,(function*(){return $(O(a?R.COMMENT.LIKE:R.COMMENT.UNLIKE,{_locale:o,id:t}),"GET")})))({commentId:G,setLike:!ae,locale:V});1===t.status&&_((e=>Object.assign(Object.assign({},e),{liked:!ae,countLikes:e.countLikes+(ae?-1:1)})))}}))))}),ge&&o.createElement(co,{replyingId:m||q.id,replyToName:we,isReply:!0,onClose:()=>he(!1),onPostSuccess:e=>{"reply"===r?p&&p(e):ue(e)},post:u,replyingUser:te}),"comment"===r&&J&&J.length>0?o.createElement("div",{className:"comment-reply-wrapper"},null===(F=null==ve?void 0:ve.slice(0,de))||void 0===F?void 0:F.map((e=>o.createElement(hi,{key:e.id,comment:e,type:"reply",className:"comment-reply-item",level:d+1,replyingId:G,onPostCommentSuccess:ue,post:u,onDeleteComment:()=>{_((t=>Object.assign(Object.assign({},t),{replies:t.replies.filter((t=>t.id!==e.id)),countReplies:t.countReplies-1})))},handleMakeAppointment:f,hasQuickBookingEnable:v}))),fe>de&&o.createElement(o.Fragment,null,o.createElement(le,{className:"top-divider",type:"solid"}),o.createElement(w,{className:"more-cmt",size:"lg",color:"ghost",onClick:()=>me((e=>e+4))},H("comment.seeMoreReplies",{count:fe-de}),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"})))):null):null,be&&o.createElement(_n,{onDeleteComment:g,className:"popover",commentId:q.id})))};var vi="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",fi="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",bi="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";const wi=({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:h,env:{isMarryBaby:v}},action:{pushNotifications:f}}=i(z),{t:b}=E(),[w,x]=l(!1),[y,C]=l(!1),[k,N]=l(!1),{authActionWrapper:A}=We(),L=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(go,{url:n,text:null==r?void 0:r.title,onClose:()=>N(!1)}),y&&o.createElement(lo,{thumbnail:M.getAssetPath("trash-bin.svg"),isThumbnailIcon:!0,title:b("popup.deletePost.title"),description:b("popup.deletePost.description"),acceptText:b("popup.deletePost.accept"),cancelText:b("popup.deletePost.cancel"),onAccept:()=>e(void 0,void 0,void 0,(function*(){if((null==r?void 0:r.id)&&!w){x(!0);try{const t=yield(({id:t,locale:a})=>e(void 0,void 0,void 0,(function*(){if(t)return yield $(O(R.POST.DELETE,{id:t,_locale:a}),"DELETE")})))({id:r.id,locale:u});1===(null==t?void 0:t.status)&&(null==a||a())}catch(e){}x(!1)}})),onClose:()=>C(!1)}),o.createElement(gt,{className:c,toggleButtonContent:o.createElement("img",{src:v?Zn:Hn}),position:"bottom",align:"end",buttonProps:{isLoading:w},data:L?{isShowheader:!1,type:"list",list:[{icon:bi,label:b("morePopover.share"),onClick:()=>N(!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:b("actionPopover.edit"),onClick:p},{icon:qn,label:b("actionPopover.delete"),onClick:()=>{A((()=>C(!0)))}}]}:{isShowheader:!1,type:"list",list:[{icon:bi,label:b("morePopover.share"),onClick:()=>N(!0)},{icon:(null==r?void 0:r.bookmarked)?vi:fi,label:(null==r?void 0:r.bookmarked)?b("morePopover.unsavePost"):b("morePopover.savePost"),onClick:()=>{A((()=>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 $(O(R.BOOKMARK.DELETE,{_locale:u}),"DELETE",{data:{post_id:String(r.id)}});1===(null==e?void 0:e.status)?(f({title:"",message:"Removed saved post",type:"success",displayIcon:fi}),m&&m()):f({title:"",message:"Remove failed",type:"danger",displayIcon:fi})}else{const e=yield $(O(R.BOOKMARK.CREATE,{_locale:u}),"POST",{data:{user_id:h||g.id,post_id:r.id}});1===(null==e?void 0:e.status)?(f({title:"",message:"Post saved",type:"success",displayIcon:vi}),d&&d()):f({title:"",message:"Post saved failed",type:"danger",displayIcon:fi})}}))))}},{icon:vo,label:b("morePopover.report"),subTree:{title:b("morePopover.report.title"),description:b("morePopover.report.description"),isShowheader:!0,type:"list",list:Object.keys(te).map((e=>({label:te[e].label,reason:te[e].reportReasonText,reasonValue:e}))).map((e=>({label:b(e.label),subTree:{title:b("morePopover.reportSubmit.title"),description:b("morePopover.reportSubmit.description"),isShowheader:!0,type:"jsx",jsxRenderer:t=>o.createElement(bo,{reason:e.reasonValue,reasonText:b(e.reason),postId:null==r?void 0:r.id,onClose:()=>t&&t(!1)})}})))}}]}}))},xi=ke.div`
2903
+ `;var ui="-dzIuHr";const gi=({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(w,{className:`${ui} ${r}`,color:"success",size:"xs",onClick:()=>d(!0),style:{padding:"5px 8px",marginBottom:"12px",borderRadius:"4px"}},o.createElement("span",{className:"text"},o.createElement(Le.Endorse,{isSolid:!0,size:18,color:k.colors.green800,className:"icon"}),s("cardReply.verifyBy",{name:`${a||""}`}))),o.createElement(aa,{open:c,onClose:()=>d(!1),profileModalProps:{zIndex:1e3}},o.createElement(Un,{authorProps:{userId:e,avatar:t,name:a,role:n,title:i},hideQuestionTab:!0})))},hi=({className:t,style:a,comment:n,type:r="comment",level:d=0,replyingId:m,onPostCommentSuccess:p,post:u,onDeleteComment:g,refetchComment:h,hasQuickBookingEnable:v,handleMakeAppointment:f,cardAuthorProps:b,maxChars:x=600,disableShortenContent:y})=>{var C,k,N,A,L,T,I,S,P,M,j,F;const{data:{locale:V,userInfo:D,env:{isMarryBaby:U}}}=i(z),{t:H}=E(),[q,_]=l(n||null),{id:G,countReplies:Q,countLikes:X,content:K,createdAt:Y,replies:J=[],images:ee=[],author:te,liked:ae,link:oe,mentionedUser:ne,mentions:ie}=q,{text:re,replyingTo:se}=(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:ce}=We({_joinCommunityIds:[null===(C=null==u?void 0:u.community)||void 0===C?void 0:C.id],_joinTopicIds:null===(k=null==u?void 0:u.topics)||void 0===k?void 0:k.map((e=>e.id))}),[de,me]=l(4),pe=!!(null==D?void 0:D.id)&&(null==J?void 0:J.some((e=>e.author.id===D.id))),ue=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 h&&h(a),a}return t}))},[ge,he]=l(!1),ve=c((()=>"comment"===r&&J&&0!=J.length?J.sort(((e,t)=>{const a=new Date(e.createdAt).getTime(),o=new Date(t.createdAt).getTime();return a>o?-1:a<o?1:0})):J),[r,J]),fe=(null==J?void 0:J.length)||0,be=String(null==te?void 0:te.email)&&(null==D?void 0:D.email)&&String(null==te?void 0:te.email)===String(null==D?void 0:D.email),we=(null==te?void 0:te.name)||(null==te?void 0:te.username)||"",xe=(null==te?void 0:te.username)||(null==te?void 0:te.name)||"",ye=null==te?void 0:te.avatar,Ee=(null==u?void 0:u.isAnonymous)||null==te?void 0:te.role,Ce=[...(null==u?void 0:u.isAnonymous)?[{id:(null===(N=null==u?void 0:u.author)||void 0===N?void 0:N.id)||0,name:H("cardPost.anonymous")}]:[],...ie||[]],[ke,Ne]=l(null),[Ae,Le]=l(null);s((()=>{if(null==te?void 0:te.hospitalId){const t=t=>e(void 0,void 0,void 0,(function*(){var e;const a=yield B(W(Z.GET_HOSPITAL_INFO,{hospital_branch_id:t,website_url:Se[V]}),"get");(null===(e=null==a?void 0:a._data)||void 0===e?void 0:e.branch)&&Ne(null==a?void 0:a._data.branch)}));t(te.hospitalId)}if(null==te?void 0:te.doctorId){const t=t=>e(void 0,void 0,void 0,(function*(){var e;const a=yield B(W(Z.GET_DOCTOR_INFO,{doctorId:t,website_url:Se[V]}),"get");(null===(e=null==a?void 0:a._data)||void 0===e?void 0:e.doctor)&&Le(null==a?void 0:a._data.doctor)}));t(te.doctorId)}}),[te.hospitalId,te.doctorId]);const Te=(null==Ae?void 0:Ae.valid_outpatient)||(null==Ae?void 0:Ae.valid_telemedicine),Ie=((null==ke?void 0:ke.total_available_service)||(null==ke?void 0:ke.total_available_doctor))>0,Pe=v&&(Te||Ie),Me="chatbot"===(null===(A=null==q?void 0:q.author)||void 0===A?void 0:A.type);return o.createElement(Ue,{defaultParams:{_joinCommunityIds:[null===(L=null==u?void 0:u.community)||void 0===L?void 0:L.id],_joinTopicIds:null===(T=null==u?void 0:u.topics)||void 0===T?void 0:T.map((e=>e.id))}},o.createElement(mi,{className:t,style:a,"data-is-reply":!!d,"data-is-marrybaby":U,"data-has-booking":Pe},"reply"===r&&o.createElement(le,{className:"top-divider",type:"solid"}),o.createElement("div",{style:{padding:"16px 16px 0"}},o.createElement(la,Object.assign({avatar:ye,name:we,username:xe,timeText:null==u?void 0:u.createdTime,community:null==u?void 0:u.community,className:"post-author "+(be?"with-popover":""),type:r,userId:null==te?void 0:te.id,role:Ee,expertId:null==te?void 0:te.partnerId,title:null==te?void 0:te.title,doctorId:null==te?void 0:te.doctorId,hospitalId:null==te?void 0:te.hospitalId,hasQuickBooking:Pe,handleMakeAppointment:f,isAnonymous:!!(null==u?void 0:u.isAnonymous),hideBackground:Me,userType:null==te?void 0:te.type},b)),Boolean(null==q?void 0:q.isVerify)&&!Boolean(null==q?void 0:q.isOppose)&&o.createElement(gi,{title:null===(I=null==q?void 0:q.userVerify)||void 0===I?void 0:I.title,name:null===(S=null==q?void 0:q.userVerify)||void 0===S?void 0:S.name,userId:null===(P=null==q?void 0:q.userVerify)||void 0===P?void 0:P.id,role:null===(M=null==q?void 0:q.userVerify)||void 0===M?void 0:M.role,avatar:null===(j=null==q?void 0:q.userVerify)||void 0===j?void 0:j.avatar,className:"verify-tag"})),o.createElement(yo,{className:"post-content-wrapper",replyingTo:se,mentionedUser:ne,description:re,mentions:Ce,maxChars:x,disableShortenContent:y}),o.createElement("span",null),o.createElement("span",null),ee&&ee.length>0?o.createElement("div",{key:"image-preview",className:"image-preview-wrapper","data-is-reply":!0},o.createElement(Wo,{images:ee,authorName:null==te?void 0:te.username})):null,ee&&0!==ee.length||!oe?null:o.createElement("div",{key:"link-preview",className:"link-preview-wrapper","data-is-reply":!0},o.createElement(Ge,{url:oe})),"most-engaging"!==r?o.createElement(o.Fragment,null,Me&&o.createElement(pi,{listUrl:null==q?void 0:q.source,categorySlug:null==q?void 0:q.categorySlug}),o.createElement(it,{type:Je.reply,loveCount:X,replyCount:fe,className:"post-reaction",liked:ae,isReplied:pe,hideCommentIcon:"reply"===r||Me,hasShare:!1,onCommentClick:()=>ce((()=>he((e=>!e)))),onCommentCountClick:()=>ce((()=>{he(!0)})),onLikeClick:()=>ce((()=>e(void 0,void 0,void 0,(function*(){if(G){const t=yield(({commentId:t,setLike:a=!1,locale:o})=>e(void 0,void 0,void 0,(function*(){return $(O(a?R.COMMENT.LIKE:R.COMMENT.UNLIKE,{_locale:o,id:t}),"GET")})))({commentId:G,setLike:!ae,locale:V});1===t.status&&_((e=>Object.assign(Object.assign({},e),{liked:!ae,countLikes:e.countLikes+(ae?-1:1)})))}}))))}),ge&&o.createElement(co,{replyingId:m||q.id,replyToName:we,isReply:!0,onClose:()=>he(!1),onPostSuccess:e=>{"reply"===r?p&&p(e):ue(e)},post:u,replyingUser:te}),"comment"===r&&J&&J.length>0?o.createElement("div",{className:"comment-reply-wrapper"},null===(F=null==ve?void 0:ve.slice(0,de))||void 0===F?void 0:F.map((e=>o.createElement(hi,{key:e.id,comment:e,type:"reply",className:"comment-reply-item",level:d+1,replyingId:G,onPostCommentSuccess:ue,post:u,onDeleteComment:()=>{_((t=>Object.assign(Object.assign({},t),{replies:t.replies.filter((t=>t.id!==e.id)),countReplies:t.countReplies-1})))},handleMakeAppointment:f,hasQuickBookingEnable:v}))),fe>de&&o.createElement(o.Fragment,null,o.createElement(le,{className:"top-divider",type:"solid"}),o.createElement(w,{className:"more-cmt",size:"lg",color:"ghost",onClick:()=>me((e=>e+4))},H("comment.seeMoreReplies",{count:fe-de}),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"})))):null):null,be&&o.createElement(_n,{onDeleteComment:g,className:"popover",commentId:q.id})))};var vi="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",fi="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",bi="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";const wi=({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:h,env:{isMarryBaby:v}},action:{pushNotifications:f}}=i(z),{t:b}=E(),[w,x]=l(!1),[y,C]=l(!1),[k,N]=l(!1),{authActionWrapper:A}=We(),L=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(go,{url:n,text:null==r?void 0:r.title,onClose:()=>N(!1)}),y&&o.createElement(lo,{thumbnail:M.getAssetPath("trash-bin.svg"),isThumbnailIcon:!0,title:b("popup.deletePost.title"),description:b("popup.deletePost.description"),acceptText:b("popup.deletePost.accept"),cancelText:b("popup.deletePost.cancel"),onAccept:()=>e(void 0,void 0,void 0,(function*(){if((null==r?void 0:r.id)&&!w){x(!0);try{const t=yield(({id:t,locale:a})=>e(void 0,void 0,void 0,(function*(){if(t)return yield $(O(R.POST.DELETE,{id:t,_locale:a}),"DELETE")})))({id:r.id,locale:u});1===(null==t?void 0:t.status)&&(null==a||a())}catch(e){}x(!1)}})),onClose:()=>C(!1)}),o.createElement(gt,{className:c,toggleButtonContent:o.createElement("img",{src:v?Zn:Hn}),position:"bottom",align:"end",buttonProps:{isLoading:w},data:L?{isShowheader:!1,type:"list",list:[{icon:bi,label:b("morePopover.share"),onClick:()=>N(!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:b("actionPopover.edit"),onClick:p},{icon:qn,label:b("actionPopover.delete"),onClick:()=>{A((()=>C(!0)))}}]}:{isShowheader:!1,type:"list",list:[{icon:bi,label:b("morePopover.share"),onClick:()=>N(!0)},{icon:(null==r?void 0:r.bookmarked)?vi:fi,label:(null==r?void 0:r.bookmarked)?b("morePopover.unsavePost"):b("morePopover.savePost"),onClick:()=>{A((()=>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 $(O(R.BOOKMARK.DELETE,{_locale:u}),"DELETE",{data:{post_id:String(r.id)}});1===(null==e?void 0:e.status)?(f({title:"",message:"Removed saved post",type:"success",displayIcon:fi}),m&&m()):f({title:"",message:"Remove failed",type:"danger",displayIcon:fi})}else{const e=yield $(O(R.BOOKMARK.CREATE,{_locale:u}),"POST",{data:{user_id:h||g.id,post_id:r.id}});1===(null==e?void 0:e.status)?(f({title:"",message:"Post saved",type:"success",displayIcon:vi}),d&&d()):f({title:"",message:"Post saved failed",type:"danger",displayIcon:fi})}}))))}},{icon:vo,label:b("morePopover.report"),subTree:{title:b("morePopover.report.title"),description:b("morePopover.report.description"),isShowheader:!0,type:"list",list:Object.keys(te).map((e=>({label:te[e].label,reason:te[e].reportReasonText,reasonValue:e}))).map((e=>({label:b(e.label),subTree:{title:b("morePopover.reportSubmit.title"),description:b("morePopover.reportSubmit.description"),isShowheader:!0,type:"jsx",jsxRenderer:t=>o.createElement(bo,{reason:e.reasonValue,reasonText:b(e.reason),postId:null==r?void 0:r.id,onClose:()=>t&&t(!1)})}})))}}]}}))},xi=ke.div`
2904
2904
  position: relative;
2905
2905
  margin-bottom: 24px;
2906
2906
  background: white;
@@ -1,4 +1,4 @@
1
- import{a as e}from"./tslib.es6-5ca9a486.js";import t,{useState as i,useCallback as o,useMemo as a,useEffect as n,useRef as s,useReducer as r}from"react";import{I as c,L as l}from"./constants-e75d23ea.js";import{b as d,d as h}from"./index-c2c86c0d.js";import{g as u,s as p,d as g}from"./cookieHelper-825eddeb.js";import{u as m}from"./useTranslations-500ece2c.js";import C from"lodash/debounce";import{I as y}from"./index-9138faf1.js";import f,{createGlobalStyle as b}from"styled-components";import{T as v}from"./index-a3321808.js";import{t as E}from"./theme-220bea92.js";import w from"react-loading-skeleton";import{M as L}from"./utils-b166401c.js";import x from"lodash/shuffle";import{a as S}from"./useOutsideClick-ac963db7.js";import k from"string-format";const O=f.div``,I=f.div`
1
+ import{a as e}from"./tslib.es6-86b09138.js";import t,{useState as i,useCallback as o,useMemo as a,useEffect as n,useRef as s,useReducer as r}from"react";import{I as c,L as l}from"./constants-b66cec54.js";import{b as d,d as h}from"./index-43d83c96.js";import{g as u,s as p,d as g}from"./cookieHelper-2b7d2afc.js";import{u as m}from"./useTranslations-49be9e59.js";import C from"lodash/debounce";import{I as y}from"./index-c7af9fd1.js";import f,{createGlobalStyle as b}from"styled-components";import{T as v}from"./index-5d569ee2.js";import{t as E}from"./theme-da141727.js";import w from"react-loading-skeleton";import{M as L}from"./utils-967698bd.js";import x from"lodash/shuffle";import{a as S}from"./useOutsideClick-085b1908.js";import k from"string-format";const O=f.div``,I=f.div`
2
2
  --searchbar-z-index: 305;
3
3
  &[data-is-modal='true'] {
4
4
  position: fixed;
@@ -1 +1 @@
1
- export{a as BabyGrowthChartDuration,B as BabyGrowthChartType,b as BabyGrowthResultTab,G as Gender,L as LOCALE,O as OnboardingStep}from"./Onboarding-4dcdddc9.js";
1
+ export{a as BabyGrowthChartDuration,B as BabyGrowthChartType,b as BabyGrowthResultTab,G as Gender,L as LOCALE,O as OnboardingStep}from"./Onboarding-f5e77ca6.js";
@@ -0,0 +1 @@
1
+ import{a as o}from"./tslib.es6-86b09138.js";import{useState as t,useEffect as i,useCallback as l}from"react";import{a as n}from"./getDynamicHealthTool-516693b6.js";const r=r=>{const[a,e]=t([]);i((()=>{o(void 0,void 0,void 0,(function*(){const o=yield n(r);e(o)}))}),[n,r]);const s=l((o=>{var t;return(null===(t=a.find((t=>t.template===o)))||void 0===t?void 0:t.link)||""}),[a]);return{allTools:a,getHealthToolLink:s}};export{r as u};
@@ -1 +1 @@
1
- import{a as e}from"./tslib.es6-5ca9a486.js";import{useRef as t,useEffect as n,useState as r,useCallback as i}from"react";import{g as o}from"./cookieHelper-825eddeb.js";import{u as a}from"./useUniqueId-bcdf2a8c.js";function l(e){const t=(new TextEncoder).encode(e.trim().toLowerCase());return crypto.subtle.digest("SHA-256",t).then((e=>Array.from(new Uint8Array(e)).map((e=>e.toString(16).padStart(2,"0"))).join("")))}const c=r=>{const i=t("");n((()=>(e(void 0,void 0,void 0,(function*(){var e,t,n,a,c;if(!i.current){let e=yield fetch("https://api.ipify.org").then((e=>e.text()));e||(e=yield fetch("https://icanhazip.com").then((e=>e.text()))),i.current=e}if(null===(t=null===(e=window.localStorage)||void 0===e?void 0:e.setItem)||void 0===t||t.call(e,"fbClientIp",JSON.stringify({client_ip_address:(null===(n=i.current)||void 0===n?void 0:n.replace("\n",""))||"",client_user_agent:navigator.userAgent||""})),null==r?void 0:r.id){const[e,t,n,i,s,u]=yield Promise.all([r.email?l(r.email):null,r.phone?l(r.phone):null,r.birthday?l(r.birthday.split("-").join("")):null,r.gender?"m":"f",r.city_name?l(r.city_name).then((e=>e.replace(/\s/g,""))):null,r.name?l(r.name):null]);o("_fbc"),o("_fbp");const d={user_id:r.id};u&&(d.fn=u),e&&(d.em=e),t&&(d.ph=t),n&&(d.db=n),i&&(d.ge=i),s&&(d.ct=s),null===(c=null===(a=window.localStorage)||void 0===a?void 0:a.setItem)||void 0===c||c.call(a,"fbDataLayer_userInfo",JSON.stringify(d))}})),()=>{})),[r])},s=e=>{const n=t(),r=t(e);return a()||r.current===e||(n.current=r.current,r.current=e),n.current},u=e=>{const[o,a]=r(e),l=t(0),c=i((e=>{cancelAnimationFrame(l.current),l.current=requestAnimationFrame((()=>{a(e)}))}),[]);return n((()=>()=>cancelAnimationFrame(l.current))),[o,c]};export{s as a,u as b,c as u};
1
+ import{a as e}from"./tslib.es6-86b09138.js";import{useRef as t,useEffect as n,useState as r,useCallback as i}from"react";import{g as o}from"./cookieHelper-2b7d2afc.js";import{u as a}from"./useUniqueId-36e0c061.js";function l(e){const t=(new TextEncoder).encode(e.trim().toLowerCase());return crypto.subtle.digest("SHA-256",t).then((e=>Array.from(new Uint8Array(e)).map((e=>e.toString(16).padStart(2,"0"))).join("")))}const c=r=>{const i=t("");n((()=>(e(void 0,void 0,void 0,(function*(){var e,t,n,a,c;if(!i.current){let e=yield fetch("https://api.ipify.org").then((e=>e.text()));e||(e=yield fetch("https://icanhazip.com").then((e=>e.text()))),i.current=e}if(null===(t=null===(e=window.localStorage)||void 0===e?void 0:e.setItem)||void 0===t||t.call(e,"fbClientIp",JSON.stringify({client_ip_address:(null===(n=i.current)||void 0===n?void 0:n.replace("\n",""))||"",client_user_agent:navigator.userAgent||""})),null==r?void 0:r.id){const[e,t,n,i,s,u]=yield Promise.all([r.email?l(r.email):null,r.phone?l(r.phone):null,r.birthday?l(r.birthday.split("-").join("")):null,r.gender?"m":"f",r.city_name?l(r.city_name).then((e=>e.replace(/\s/g,""))):null,r.name?l(r.name):null]);o("_fbc"),o("_fbp");const d={user_id:r.id};u&&(d.fn=u),e&&(d.em=e),t&&(d.ph=t),n&&(d.db=n),i&&(d.ge=i),s&&(d.ct=s),null===(c=null===(a=window.localStorage)||void 0===a?void 0:a.setItem)||void 0===c||c.call(a,"fbDataLayer_userInfo",JSON.stringify(d))}})),()=>{})),[r])},s=e=>{const n=t(),r=t(e);return a()||r.current===e||(n.current=r.current,r.current=e),n.current},u=e=>{const[o,a]=r(e),l=t(0),c=i((e=>{cancelAnimationFrame(l.current),l.current=requestAnimationFrame((()=>{a(e)}))}),[]);return n((()=>()=>cancelAnimationFrame(l.current))),[o,c]};export{s as a,u as b,c as u};
@@ -1 +1 @@
1
- import{useState as e,useEffect as i}from"react";import{B as n}from"./utils-b166401c.js";const o=()=>"undefined"!=typeof window&&window.innerWidth<n.BREAK_POINT_MOBILE,r=()=>"undefined"!=typeof window&&window.innerWidth>=n.BREAK_POINT_MOBILE&&window.innerWidth<n.BREAK_POINT_PC,t=()=>{const[n,t]=e(o()),[d,s]=e(r());return i((()=>{const e=()=>{t(o()),s(r())};return window.addEventListener("resize",e,{passive:!0}),()=>{window.removeEventListener("resize",e)}}),[]),{isMobile:n,isLargeMobile:d}};export{t as u};
1
+ import{useState as e,useEffect as i}from"react";import{B as n}from"./utils-967698bd.js";const o=()=>"undefined"!=typeof window&&window.innerWidth<n.BREAK_POINT_MOBILE,r=()=>"undefined"!=typeof window&&window.innerWidth>=n.BREAK_POINT_MOBILE&&window.innerWidth<n.BREAK_POINT_PC,t=()=>{const[n,t]=e(o()),[d,s]=e(r());return i((()=>{const e=()=>{t(o()),s(r())};return window.addEventListener("resize",e,{passive:!0}),()=>{window.removeEventListener("resize",e)}}),[]),{isMobile:n,isLargeMobile:d}};export{t as u};
@@ -0,0 +1 @@
1
+ import{useContext as o,useMemo as a}from"react";import{T as e,d as r}from"./translationsContext-2e507b01.js";import t from"string-format";function n(){const{values:n,locale:s}=o(e)||{locale:"en-PH"};return a((()=>({t:(o,a)=>n?n[o]?a?t(n[o]||o,a):n[o]||o:(console.warn(`[useTranslations] Missing translation for key ${o} and locale ${s}`),a?t(r[o]||o,a):r[o]||o):(console.error("[useTranslations] t method called before translation values are loaded"),o),locale:s})),[n,s])}export{n as u};