@hhgtech/hhg-components 1.24.16 → 1.24.18

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 (283) hide show
  1. package/README.md +0 -2
  2. package/build/babyGrowth.js +2 -2
  3. package/build/cache.js +1 -1
  4. package/build/care.js +1 -1
  5. package/build/components/mantine/aspectRatio/index.d.ts +5 -0
  6. package/build/components/mantine/aspectRatio/index.styled.d.ts +1 -0
  7. package/build/components/mantine/button/index.d.ts +7 -0
  8. package/build/components/mantine/button/index.styled.d.ts +1 -0
  9. package/build/components/mantine/datepicker/index.d.ts +1 -0
  10. package/build/components/mantine/index.d.ts +4 -0
  11. package/build/components/mantine/provider/index.d.ts +2 -1
  12. package/build/components/mantine/theme/button.d.ts +9 -0
  13. package/build/components/mantine/theme/checkbox.d.ts +11 -0
  14. package/build/components/mantine/theme/index.d.ts +3 -0
  15. package/build/components/mantine/theme/input.d.ts +59 -0
  16. package/build/components/mantine/theme/radio.d.ts +15 -0
  17. package/build/components/mantine/theme/shared.d.ts +6 -0
  18. package/build/components.js +1 -1
  19. package/build/constants.js +1 -1
  20. package/build/core-44b6fd33.js +1 -0
  21. package/build/{dataTransform-a3364c37.js → dataTransform-9466d6d3.js} +1 -1
  22. package/build/esm/babyGrowth.js +7 -7
  23. package/build/esm/cache.js +1 -1
  24. package/build/esm/care.js +1 -1
  25. package/build/esm/components.js +1 -1
  26. package/build/esm/constants.js +1 -1
  27. package/build/esm/{core-05e68f2e.js → core-32e208e4.js} +1 -1
  28. package/build/esm/{dataTransform-fc948613.js → dataTransform-c73f4444.js} +1 -1
  29. package/build/esm/footer.js +1 -1
  30. package/build/esm/gAssets.js +1 -1
  31. package/build/esm/getDynamicHealthTool-d60dea5c.js +1 -0
  32. package/build/esm/{getSocialList-2d8ac762.js → getSocialList-66164a07.js} +1 -1
  33. package/build/esm/hooks.js +1 -1
  34. package/build/esm/i18n.js +1 -1
  35. package/build/esm/{index-406e28ff.js → index-10b64359.js} +1 -1
  36. package/build/esm/{index-ce93c0ee.js → index-12417213.js} +1 -1
  37. package/build/esm/index-31932568.js +67 -0
  38. package/build/esm/{index-84f7e4c5.js → index-37d675fa.js} +1 -1
  39. package/build/esm/{index-cd3471a5.js → index-4409dd2c.js} +11 -11
  40. package/build/esm/{index-cc43363d.js → index-4c4078eb.js} +1 -1
  41. package/build/esm/index-6c7bbcc4.js +1 -0
  42. package/build/esm/{index-689f59a7.js → index-79c1251f.js} +1 -1
  43. package/build/esm/{index-ab1c11d2.js → index-7b96705b.js} +1 -1
  44. package/build/esm/{index-6f06d62f.js → index-8ba2ea1d.js} +1 -1
  45. package/build/esm/{index-0ce9c4bc.js → index-9254d435.js} +1 -1
  46. package/build/esm/{index-ca36dfad.js → index-ae35fac7.js} +1 -1
  47. package/build/esm/{index-5b3673a4.js → index-bd911e00.js} +1 -1
  48. package/build/esm/index-c2c70ac5.js +1 -0
  49. package/build/esm/{index-923b2d1a.js → index-c583dd71.js} +1 -1
  50. package/build/esm/{index-a5d5d8a8.js → index-c5e851bf.js} +1 -1
  51. package/build/esm/{index-7bbcafe4.js → index-d459e63b.js} +1 -1
  52. package/build/esm/index-db427e52.js +1 -0
  53. package/build/esm/{index-4ac1c532.js → index-ee6565d8.js} +3 -3
  54. package/build/esm/index-f68f4e52.js +1 -0
  55. package/build/esm/{index-60c7166f.js → index-f7618a46.js} +1 -1
  56. package/build/esm/index.css +1 -1
  57. package/build/esm/index.js +1 -1
  58. package/build/esm/{index.styled-b34bbc55.js → index.styled-2428dd5c.js} +1 -1
  59. package/build/esm/{index.styled-046c70f8.js → index.styled-8eb8f8e4.js} +1 -1
  60. package/build/esm/{index.styled-6e6866e5.js → index.styled-bf05546b.js} +2 -2
  61. package/build/esm/{index.styled-1912389c.js → index.styled-c42b69ed.js} +1 -1
  62. package/build/esm/{index.styled-068e0752.js → index.styled-d720fd5d.js} +1 -1
  63. package/build/esm/{index.styled-86378e67.js → index.styled-e9a50c39.js} +1 -1
  64. package/build/esm/{index.styled-f900ad52.js → index.styled-fda1f38d.js} +1 -1
  65. package/build/esm/lead.js +1 -1
  66. package/build/esm/mantine.js +1 -1
  67. package/build/esm/misc.js +1 -1
  68. package/build/esm/navigation.js +1 -1
  69. package/build/esm/onboarding.js +1 -1
  70. package/build/esm/pwg.js +5 -5
  71. package/build/esm/{routing-e361ea53.js → routing-5078f6e4.js} +1 -1
  72. package/build/esm/{screenSizeContext-2a98aa33.js → screenSizeContext-29051cf2.js} +1 -1
  73. package/build/esm/{theme-6d95a26a.js → theme-32755fcb.js} +1 -1
  74. package/build/esm/together.js +1 -1
  75. package/build/esm/{translationsProvider-cd3605f0.js → translationsProvider-24160998.js} +1 -1
  76. package/build/esm/{types-76ce1dab.js → types-467064e0.js} +1 -1
  77. package/build/esm/{types-1fcde312.js → types-62b6a766.js} +4 -4
  78. package/build/esm/types.js +1 -1
  79. package/build/esm/useHealthToolCache-89abaf13.js +1 -0
  80. package/build/esm/{useRafState-56f1069e.js → useRafState-f90c4148.js} +1 -1
  81. package/build/esm/{useTranslations-fd9e1f49.js → useTranslations-08940392.js} +1 -1
  82. package/build/footer.js +1 -1
  83. package/build/gAssets.js +1 -1
  84. package/build/{getDynamicHealthTool-b966c91e.js → getDynamicHealthTool-4230a626.js} +1 -1
  85. package/build/{getSocialList-21aa6cc1.js → getSocialList-c0d9deaa.js} +1 -1
  86. package/build/hooks.js +1 -1
  87. package/build/i18n.js +1 -1
  88. package/build/{index-e36e77e9.js → index-08cd99b4.js} +1 -1
  89. package/build/{index-1a72d2c6.js → index-128a6789.js} +1 -1
  90. package/build/{index-da645ad6.js → index-1e73e6ea.js} +1 -1
  91. package/build/{index-414bbf33.js → index-1e892386.js} +1 -1
  92. package/build/{index-5c0abf76.js → index-31315d85.js} +1 -1
  93. package/build/index-43171e19.js +1 -0
  94. package/build/{index-e3337614.js → index-4b2739da.js} +1 -1
  95. package/build/{index-7bdfc4ca.js → index-4e824542.js} +1 -1
  96. package/build/{index-15930b05.js → index-522ced61.js} +1 -1
  97. package/build/index-8be322c5.js +1 -0
  98. package/build/{index-3fa122b0.js → index-8cc8629d.js} +1 -1
  99. package/build/{index-6d2fa56d.js → index-a4e5c235.js} +1 -1
  100. package/build/index-b588dc4d.js +1 -0
  101. package/build/{index-e39e19b6.js → index-b6efb8fb.js} +1 -1
  102. package/build/{index-c9e2716b.js → index-b919e3e6.js} +1 -1
  103. package/build/{index-db09f731.js → index-b9723788.js} +1 -1
  104. package/build/{index-8a331cd3.js → index-ce2c1596.js} +5 -5
  105. package/build/index-ce6bfea9.js +1 -0
  106. package/build/index-e93d63f0.js +1 -0
  107. package/build/index-f54098df.js +62 -0
  108. package/build/index-fd1095ac.js +1 -0
  109. package/build/index.css +1 -1
  110. package/build/index.js +1 -1
  111. package/build/{index.styled-7f7b2b66.js → index.styled-3a45f5c7.js} +1 -1
  112. package/build/{index.styled-3ee62f4d.js → index.styled-413c614c.js} +2 -2
  113. package/build/{index.styled-42f35e96.js → index.styled-4f74cbbe.js} +1 -1
  114. package/build/{index.styled-e09774b3.js → index.styled-a46cbe49.js} +1 -1
  115. package/build/{index.styled-5ba8c093.js → index.styled-a7e71e07.js} +1 -1
  116. package/build/{index.styled-488a758b.js → index.styled-defe74a4.js} +4 -4
  117. package/build/{index.styled-9227302c.js → index.styled-e7a62025.js} +1 -1
  118. package/build/lead.js +1 -1
  119. package/build/mantine.js +1 -1
  120. package/build/misc/theme.d.ts +191 -0
  121. package/build/misc.js +1 -1
  122. package/build/navigation.js +1 -1
  123. package/build/onboarding.js +1 -1
  124. package/build/pwg.js +3 -3
  125. package/build/{routing-c6121b5c.js → routing-0d2fb020.js} +1 -1
  126. package/build/{screenSizeContext-0241a845.js → screenSizeContext-8f7af71c.js} +3 -3
  127. package/build/theme-dfe443d6.js +1 -0
  128. package/build/together.js +1 -1
  129. package/build/{translationsProvider-22982438.js → translationsProvider-9a211600.js} +1 -1
  130. package/build/{types-f3b8e5bd.js → types-52d1a875.js} +1 -1
  131. package/build/{types-60797933.js → types-d4fd4a03.js} +3 -3
  132. package/build/types.js +1 -1
  133. package/build/{useHealthToolCache-44234ce1.js → useHealthToolCache-40cc782f.js} +1 -1
  134. package/build/{useRafState-40b43458.js → useRafState-45c04634.js} +1 -1
  135. package/build/{useTranslations-49f91025.js → useTranslations-82cb6000.js} +1 -1
  136. package/package.json +19 -14
  137. package/build/components/mantine/theme.d.ts +0 -3
  138. package/build/core-5d4bb62a.js +0 -1
  139. package/build/esm/getDynamicHealthTool-83cf2b6d.js +0 -1
  140. package/build/esm/index-049cc534.js +0 -1
  141. package/build/esm/index-0a2ef343.js +0 -1
  142. package/build/esm/index-771c89e2.js +0 -1
  143. package/build/esm/index-cd5f9980.js +0 -67
  144. package/build/esm/index-e6bd8e5e.js +0 -1
  145. package/build/esm/useHealthToolCache-9cf5ca4d.js +0 -1
  146. package/build/index-24d8ed53.js +0 -1
  147. package/build/index-38f3b008.js +0 -1
  148. package/build/index-689b2aeb.js +0 -1
  149. package/build/index-6bb7c07c.js +0 -1
  150. package/build/index-b5604858.js +0 -62
  151. package/build/index-ce9aeebf.js +0 -1
  152. package/build/index-e80e30d0.js +0 -1
  153. package/build/theme-150c2e5b.js +0 -1
  154. /package/build/{BMI_BOYS.percentile.monthly-7595168d.js → BMI_BOYS.percentile.monthly-f89c8531.js} +0 -0
  155. /package/build/{BMI_BOYS.percentile.weekly-4ea20a17.js → BMI_BOYS.percentile.weekly-d8443b05.js} +0 -0
  156. /package/build/{BMI_BOYS.percentile.yearly-3c63d97e.js → BMI_BOYS.percentile.yearly-07dd9945.js} +0 -0
  157. /package/build/{BMI_BOYS.zscore.monthly-3cedb042.js → BMI_BOYS.zscore.monthly-21cbfe6e.js} +0 -0
  158. /package/build/{BMI_BOYS.zscore.weekly-ee112102.js → BMI_BOYS.zscore.weekly-fa680c9e.js} +0 -0
  159. /package/build/{BMI_BOYS.zscore.yearly-2678477b.js → BMI_BOYS.zscore.yearly-f06a652c.js} +0 -0
  160. /package/build/{BMI_GIRLS.percentile.monthly-1f5d7656.js → BMI_GIRLS.percentile.monthly-bdab40d8.js} +0 -0
  161. /package/build/{BMI_GIRLS.percentile.weekly-ec8c6ab1.js → BMI_GIRLS.percentile.weekly-ea5fedff.js} +0 -0
  162. /package/build/{BMI_GIRLS.percentile.yearly-3250a134.js → BMI_GIRLS.percentile.yearly-5c34b88b.js} +0 -0
  163. /package/build/{BMI_GIRLS.zscore.monthly-9da0cd2c.js → BMI_GIRLS.zscore.monthly-4749298a.js} +0 -0
  164. /package/build/{BMI_GIRLS.zscore.weekly-a12ab9ff.js → BMI_GIRLS.zscore.weekly-9284d723.js} +0 -0
  165. /package/build/{BMI_GIRLS.zscore.yearly-85afd4c9.js → BMI_GIRLS.zscore.yearly-259301d8.js} +0 -0
  166. /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-534ad088.js → HEAD CIRCUM_BOYS.percentile.monthly-7c96746f.js} +0 -0
  167. /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-68d213f1.js → HEAD CIRCUM_BOYS.percentile.weekly-45894dc4.js} +0 -0
  168. /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-840ff704.js → HEAD CIRCUM_BOYS.percentile.yearly-8377844d.js} +0 -0
  169. /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-e41bac79.js → HEAD CIRCUM_BOYS.zscore.monthly-1d773ac4.js} +0 -0
  170. /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-20a047f0.js → HEAD CIRCUM_BOYS.zscore.weekly-d1ad2cd1.js} +0 -0
  171. /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-22ae6e2d.js → HEAD CIRCUM_BOYS.zscore.yearly-cfd6753c.js} +0 -0
  172. /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-b7c2dafd.js → HEAD CIRCUM_GIRLS.percentile.monthly-50796078.js} +0 -0
  173. /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-b0b65ba9.js → HEAD CIRCUM_GIRLS.percentile.weekly-e49d53d8.js} +0 -0
  174. /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-252ece0e.js → HEAD CIRCUM_GIRLS.percentile.yearly-c76f91f3.js} +0 -0
  175. /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-ed2487b9.js → HEAD CIRCUM_GIRLS.zscore.monthly-a51a386e.js} +0 -0
  176. /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-b3fe8380.js → HEAD CIRCUM_GIRLS.zscore.weekly-1fc91b9e.js} +0 -0
  177. /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-9848d4f5.js → HEAD CIRCUM_GIRLS.zscore.yearly-f3af54ca.js} +0 -0
  178. /package/build/{HEIGHT_BOYS.percentile.monthly-4e26babb.js → HEIGHT_BOYS.percentile.monthly-7b0fa36c.js} +0 -0
  179. /package/build/{HEIGHT_BOYS.percentile.weekly-1fb8cf5d.js → HEIGHT_BOYS.percentile.weekly-d23c80cc.js} +0 -0
  180. /package/build/{HEIGHT_BOYS.percentile.yearly-37883124.js → HEIGHT_BOYS.percentile.yearly-d483af10.js} +0 -0
  181. /package/build/{HEIGHT_BOYS.zscore.monthly-bebbe244.js → HEIGHT_BOYS.zscore.monthly-2e19ff12.js} +0 -0
  182. /package/build/{HEIGHT_BOYS.zscore.weekly-2884c0f5.js → HEIGHT_BOYS.zscore.weekly-054efac5.js} +0 -0
  183. /package/build/{HEIGHT_BOYS.zscore.yearly-60debaf0.js → HEIGHT_BOYS.zscore.yearly-6482e4d6.js} +0 -0
  184. /package/build/{HEIGHT_GIRLS.percentile.monthly-adf052dd.js → HEIGHT_GIRLS.percentile.monthly-7c92d41b.js} +0 -0
  185. /package/build/{HEIGHT_GIRLS.percentile.weekly-3a247053.js → HEIGHT_GIRLS.percentile.weekly-f408a2a2.js} +0 -0
  186. /package/build/{HEIGHT_GIRLS.percentile.yearly-fd48eb0f.js → HEIGHT_GIRLS.percentile.yearly-f342f134.js} +0 -0
  187. /package/build/{HEIGHT_GIRLS.zscore.monthly-c7e889fe.js → HEIGHT_GIRLS.zscore.monthly-d8e5aa72.js} +0 -0
  188. /package/build/{HEIGHT_GIRLS.zscore.weekly-084095a2.js → HEIGHT_GIRLS.zscore.weekly-d22fe89c.js} +0 -0
  189. /package/build/{HEIGHT_GIRLS.zscore.yearly-4ff2a93e.js → HEIGHT_GIRLS.zscore.yearly-2cfd71b2.js} +0 -0
  190. /package/build/{Locale-895e9c58.js → Locale-efa66a0f.js} +0 -0
  191. /package/build/{Vietnam-0b223354.js → Vietnam-30ac5acd.js} +0 -0
  192. /package/build/{Visible-0ce9ac36.js → Visible-04912386.js} +0 -0
  193. /package/build/{WEIGHT_BOYS.percentile.monthly-939d5011.js → WEIGHT_BOYS.percentile.monthly-27ca09c5.js} +0 -0
  194. /package/build/{WEIGHT_BOYS.percentile.weekly-1da441ab.js → WEIGHT_BOYS.percentile.weekly-3620eca7.js} +0 -0
  195. /package/build/{WEIGHT_BOYS.percentile.yearly-735fd17c.js → WEIGHT_BOYS.percentile.yearly-22255a11.js} +0 -0
  196. /package/build/{WEIGHT_BOYS.zscore.monthly-e0f945f4.js → WEIGHT_BOYS.zscore.monthly-1019c20d.js} +0 -0
  197. /package/build/{WEIGHT_BOYS.zscore.weekly-72535456.js → WEIGHT_BOYS.zscore.weekly-4b1f193f.js} +0 -0
  198. /package/build/{WEIGHT_BOYS.zscore.yearly-fe7bc9ed.js → WEIGHT_BOYS.zscore.yearly-91cbe754.js} +0 -0
  199. /package/build/{WEIGHT_GIRLS.percentile.monthly-0f3152cf.js → WEIGHT_GIRLS.percentile.monthly-a20393dc.js} +0 -0
  200. /package/build/{WEIGHT_GIRLS.percentile.weekly-3e1e0706.js → WEIGHT_GIRLS.percentile.weekly-4f52f812.js} +0 -0
  201. /package/build/{WEIGHT_GIRLS.percentile.yearly-c688070a.js → WEIGHT_GIRLS.percentile.yearly-4d22a1e1.js} +0 -0
  202. /package/build/{WEIGHT_GIRLS.zscore.monthly-b20c30e9.js → WEIGHT_GIRLS.zscore.monthly-f9b14ee0.js} +0 -0
  203. /package/build/{WEIGHT_GIRLS.zscore.weekly-a76c1a04.js → WEIGHT_GIRLS.zscore.weekly-d91e24d5.js} +0 -0
  204. /package/build/{WEIGHT_GIRLS.zscore.yearly-62451f84.js → WEIGHT_GIRLS.zscore.yearly-c5be40f0.js} +0 -0
  205. /package/build/{constants-34449147.js → constants-44e0a75a.js} +0 -0
  206. /package/build/{cookieHelper-5f14cb79.js → cookieHelper-80099e46.js} +0 -0
  207. /package/build/{dataTransform-7807d9ab.js → dataTransform-d89b8c83.js} +0 -0
  208. /package/build/esm/{BMI_BOYS.percentile.monthly-802ef81d.js → BMI_BOYS.percentile.monthly-3b580949.js} +0 -0
  209. /package/build/esm/{BMI_BOYS.percentile.weekly-8d7aa73b.js → BMI_BOYS.percentile.weekly-0038e590.js} +0 -0
  210. /package/build/esm/{BMI_BOYS.percentile.yearly-4e672525.js → BMI_BOYS.percentile.yearly-fc05d13b.js} +0 -0
  211. /package/build/esm/{BMI_BOYS.zscore.monthly-f447f58c.js → BMI_BOYS.zscore.monthly-9412811d.js} +0 -0
  212. /package/build/esm/{BMI_BOYS.zscore.weekly-bea6f1c9.js → BMI_BOYS.zscore.weekly-b03e7bfa.js} +0 -0
  213. /package/build/esm/{BMI_BOYS.zscore.yearly-d5133a1b.js → BMI_BOYS.zscore.yearly-c9d17a60.js} +0 -0
  214. /package/build/esm/{BMI_GIRLS.percentile.monthly-6549b294.js → BMI_GIRLS.percentile.monthly-bb347f20.js} +0 -0
  215. /package/build/esm/{BMI_GIRLS.percentile.weekly-539e506c.js → BMI_GIRLS.percentile.weekly-6c7f10df.js} +0 -0
  216. /package/build/esm/{BMI_GIRLS.percentile.yearly-de15f01b.js → BMI_GIRLS.percentile.yearly-0ceed23d.js} +0 -0
  217. /package/build/esm/{BMI_GIRLS.zscore.monthly-5b120d1b.js → BMI_GIRLS.zscore.monthly-79d585e2.js} +0 -0
  218. /package/build/esm/{BMI_GIRLS.zscore.weekly-aba42819.js → BMI_GIRLS.zscore.weekly-d4e643ee.js} +0 -0
  219. /package/build/esm/{BMI_GIRLS.zscore.yearly-e823fb9d.js → BMI_GIRLS.zscore.yearly-f015b70b.js} +0 -0
  220. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-241a7c40.js → HEAD CIRCUM_BOYS.percentile.monthly-d7116f5d.js} +0 -0
  221. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-f12f852a.js → HEAD CIRCUM_BOYS.percentile.weekly-d9ade644.js} +0 -0
  222. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-5474e01c.js → HEAD CIRCUM_BOYS.percentile.yearly-e310070d.js} +0 -0
  223. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-d00d4347.js → HEAD CIRCUM_BOYS.zscore.monthly-17e761d8.js} +0 -0
  224. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-75759031.js → HEAD CIRCUM_BOYS.zscore.weekly-d36ceaa1.js} +0 -0
  225. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-44843d1e.js → HEAD CIRCUM_BOYS.zscore.yearly-d71bf37a.js} +0 -0
  226. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-d36e8361.js → HEAD CIRCUM_GIRLS.percentile.monthly-f93a84ba.js} +0 -0
  227. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-b995e2c8.js → HEAD CIRCUM_GIRLS.percentile.weekly-62c25dcf.js} +0 -0
  228. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-3dae5bd0.js → HEAD CIRCUM_GIRLS.percentile.yearly-c089eb31.js} +0 -0
  229. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-2e7e5a5b.js → HEAD CIRCUM_GIRLS.zscore.monthly-7265d5be.js} +0 -0
  230. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-9860caf5.js → HEAD CIRCUM_GIRLS.zscore.weekly-e577c502.js} +0 -0
  231. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-d3aa02e9.js → HEAD CIRCUM_GIRLS.zscore.yearly-c12aad4d.js} +0 -0
  232. /package/build/esm/{HEIGHT_BOYS.percentile.monthly-5f4ba9bc.js → HEIGHT_BOYS.percentile.monthly-f8ab197e.js} +0 -0
  233. /package/build/esm/{HEIGHT_BOYS.percentile.weekly-11761f86.js → HEIGHT_BOYS.percentile.weekly-e6dde50c.js} +0 -0
  234. /package/build/esm/{HEIGHT_BOYS.percentile.yearly-6a378a4b.js → HEIGHT_BOYS.percentile.yearly-e4911ac8.js} +0 -0
  235. /package/build/esm/{HEIGHT_BOYS.zscore.monthly-5c68da77.js → HEIGHT_BOYS.zscore.monthly-6b8a0a1f.js} +0 -0
  236. /package/build/esm/{HEIGHT_BOYS.zscore.weekly-264a4736.js → HEIGHT_BOYS.zscore.weekly-f263a1df.js} +0 -0
  237. /package/build/esm/{HEIGHT_BOYS.zscore.yearly-16620a5b.js → HEIGHT_BOYS.zscore.yearly-3c5f49c4.js} +0 -0
  238. /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-7412ca05.js → HEIGHT_GIRLS.percentile.monthly-27b85bc3.js} +0 -0
  239. /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-5db7c0f6.js → HEIGHT_GIRLS.percentile.weekly-9932748b.js} +0 -0
  240. /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-e4f1f52f.js → HEIGHT_GIRLS.percentile.yearly-a9cd1665.js} +0 -0
  241. /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-b78135e8.js → HEIGHT_GIRLS.zscore.monthly-bfb3b22c.js} +0 -0
  242. /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-454d6787.js → HEIGHT_GIRLS.zscore.weekly-d207e523.js} +0 -0
  243. /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-91f39435.js → HEIGHT_GIRLS.zscore.yearly-5b25c021.js} +0 -0
  244. /package/build/esm/{Locale-0bac887d.js → Locale-0d80aa32.js} +0 -0
  245. /package/build/esm/{Vietnam-3acff8c8.js → Vietnam-7862e868.js} +0 -0
  246. /package/build/esm/{Visible-7011a1d6.js → Visible-c8ae8793.js} +0 -0
  247. /package/build/esm/{WEIGHT_BOYS.percentile.monthly-66c0ba46.js → WEIGHT_BOYS.percentile.monthly-b3af000f.js} +0 -0
  248. /package/build/esm/{WEIGHT_BOYS.percentile.weekly-d15fbfa0.js → WEIGHT_BOYS.percentile.weekly-c0a818af.js} +0 -0
  249. /package/build/esm/{WEIGHT_BOYS.percentile.yearly-67b8364c.js → WEIGHT_BOYS.percentile.yearly-4a26af60.js} +0 -0
  250. /package/build/esm/{WEIGHT_BOYS.zscore.monthly-ea33da43.js → WEIGHT_BOYS.zscore.monthly-c3d234f3.js} +0 -0
  251. /package/build/esm/{WEIGHT_BOYS.zscore.weekly-ca6f10ce.js → WEIGHT_BOYS.zscore.weekly-a8ee0058.js} +0 -0
  252. /package/build/esm/{WEIGHT_BOYS.zscore.yearly-5e683f42.js → WEIGHT_BOYS.zscore.yearly-ab055fd2.js} +0 -0
  253. /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-d8ec44c2.js → WEIGHT_GIRLS.percentile.monthly-934fb132.js} +0 -0
  254. /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-3caf43a5.js → WEIGHT_GIRLS.percentile.weekly-1b9f1dde.js} +0 -0
  255. /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-7035d62b.js → WEIGHT_GIRLS.percentile.yearly-f77a2a6d.js} +0 -0
  256. /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-3ccd32e5.js → WEIGHT_GIRLS.zscore.monthly-265c2d83.js} +0 -0
  257. /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-799e5d2f.js → WEIGHT_GIRLS.zscore.weekly-2e8c5052.js} +0 -0
  258. /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-81583088.js → WEIGHT_GIRLS.zscore.yearly-b3b5d519.js} +0 -0
  259. /package/build/esm/{constants-96946035.js → constants-b741e946.js} +0 -0
  260. /package/build/esm/{cookieHelper-c31f3870.js → cookieHelper-20a76375.js} +0 -0
  261. /package/build/esm/{dataTransform-b57dcd5b.js → dataTransform-32c68576.js} +0 -0
  262. /package/build/esm/{index-309b7283.js → index-00e3ba35.js} +0 -0
  263. /package/build/esm/{isProduction-16047c76.js → isProduction-943fdf85.js} +0 -0
  264. /package/build/esm/{localizeNumberFormat-709758aa.js → localizeNumberFormat-b09c122c.js} +0 -0
  265. /package/build/esm/{normalizeLink-f2756a49.js → normalizeLink-41a083ba.js} +0 -0
  266. /package/build/esm/{translationsContext-e145f09f.js → translationsContext-60ea7170.js} +0 -0
  267. /package/build/esm/{tslib.es6-d8037a1a.js → tslib.es6-0162b9b0.js} +0 -0
  268. /package/build/esm/{useIsInit-3d859090.js → useIsInit-4df4e383.js} +0 -0
  269. /package/build/esm/{useOutsideClick-34fd8d3a.js → useOutsideClick-f38e36b7.js} +0 -0
  270. /package/build/esm/{useScrollbarSize-425d4af6.js → useScrollbarSize-686dc2f2.js} +0 -0
  271. /package/build/esm/{useUniqueId-8a9c20ea.js → useUniqueId-10476383.js} +0 -0
  272. /package/build/esm/{utils-89f889b2.js → utils-36afb20f.js} +0 -0
  273. /package/build/{index-41b69d00.js → index-0f3768e1.js} +0 -0
  274. /package/build/{isProduction-443c6670.js → isProduction-0dffc430.js} +0 -0
  275. /package/build/{localizeNumberFormat-54f7a372.js → localizeNumberFormat-aca3da8c.js} +0 -0
  276. /package/build/{normalizeLink-307d4e7a.js → normalizeLink-a75e2e0f.js} +0 -0
  277. /package/build/{translationsContext-2f751431.js → translationsContext-81fe8793.js} +0 -0
  278. /package/build/{tslib.es6-d5a85038.js → tslib.es6-d7a88a93.js} +0 -0
  279. /package/build/{useIsInit-dddb7f1d.js → useIsInit-d6b0a168.js} +0 -0
  280. /package/build/{useOutsideClick-0dabc1bd.js → useOutsideClick-2cdcb752.js} +0 -0
  281. /package/build/{useScrollbarSize-f2df5c9e.js → useScrollbarSize-a12042ae.js} +0 -0
  282. /package/build/{useUniqueId-ef38060f.js → useUniqueId-e8bf8833.js} +0 -0
  283. /package/build/{utils-8ad5cd46.js → utils-17648495.js} +0 -0
@@ -1,4 +1,4 @@
1
- import{a as e}from"./tslib.es6-d8037a1a.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-96946035.js";import{b as d,d as h}from"./index-84f7e4c5.js";import{g as u,s as p,d as g}from"./cookieHelper-c31f3870.js";import{u as m}from"./useTranslations-fd9e1f49.js";import C from"lodash/debounce";import{I as f}from"./index-0ce9c4bc.js";import y,{createGlobalStyle as b}from"styled-components";import{T as v}from"./index-923b2d1a.js";import{t as E}from"./theme-6d95a26a.js";import w from"react-loading-skeleton";import{M as L}from"./utils-89f889b2.js";import x from"lodash/shuffle";import{a as S}from"./useOutsideClick-34fd8d3a.js";import k from"string-format";const O=y.div``,I=y.div`
1
+ import{a as e}from"./tslib.es6-0162b9b0.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-b741e946.js";import{b as d,d as h}from"./index-37d675fa.js";import{g as u,s as p,d as g}from"./cookieHelper-20a76375.js";import{u as m}from"./useTranslations-08940392.js";import C from"lodash/debounce";import{I as f}from"./index-9254d435.js";import y,{createGlobalStyle as b}from"styled-components";import{T as v}from"./index-c583dd71.js";import{t as E}from"./theme-32755fcb.js";import w from"react-loading-skeleton";import{M as L}from"./utils-36afb20f.js";import x from"lodash/shuffle";import{a as S}from"./useOutsideClick-f38e36b7.js";import k from"string-format";const O=y.div``,I=y.div`
2
2
  --searchbar-z-index: 305;
3
3
  &[data-is-modal='true'] {
4
4
  position: fixed;
@@ -1,4 +1,4 @@
1
- import{a as e,_ as t}from"./tslib.es6-d8037a1a.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{Flex as m,Checkbox as p,Portal as u,Accordion as g,Popover as h}from"@mantine/core";import{B as v}from"./index-ca36dfad.js";import{T as f}from"./index-923b2d1a.js";import{a as b}from"./index.styled-86378e67.js";import{u as w}from"./useTranslations-fd9e1f49.js";import x from"innertext";import{t as y}from"./theme-6d95a26a.js";import{H as C,N as E,a9 as k,a4 as N,C as A,_ as L,B as T}from"./index.styled-1912389c.js";import{CommonGAssets as I}from"./gAssets.js";import{T as S,au as P,av as M,aw as z,ax as j,ay as B,az as F,aA as O,U as V,aB as R,aC as D,aD as U,aE as H,aF as W,aG as Z,aH as q,aI as G,aJ as _,aK as Q,aL as X,aM as K,aN as $,aO as Y,aP as J}from"./index.styled-6e6866e5.js";import{A as ee,B as te,T as ae,D as oe}from"./index-7bbcafe4.js";import{e as ne,c as ie,P as le,g as re,b as se,h as ce,i as de}from"./dataTransform-fc948613.js";import{I as me}from"./index-0ce9c4bc.js";import pe from"lodash/debounce";import ue from"react-contenteditable";import{d as ge,g as he}from"./cookieHelper-c31f3870.js";import{M as ve,t as fe,c as be,a as we}from"./utils-89f889b2.js";import xe,{keyframes as ye,css as Ce}from"styled-components";import"./index.styled-f900ad52.js";import"./index-a5d5d8a8.js";import{I as Ee,C as ke,a as Ne}from"./index-4ac1c532.js";import"./index.styled-046c70f8.js";import"./index-309b7283.js";import"date-fns";import"react-day-picker/DayPickerInput";import*as Ae from"react-dom";import"lodash/throttle";import"keen-slider/react";import{d as Le}from"./index-84f7e4c5.js";import Te from"dayjs";import"@mantine/hooks";import"./index-689f59a7.js";import"react-hook-form";import"./isProduction-16047c76.js";import"./Locale-0bac887d.js";import"./screenSizeContext-2a98aa33.js";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-b34bbc55.js";import"@mantine/dates";import"string-format";import Ie from"dayjs/plugin/relativeTime";import{M as Se}from"./index-406e28ff.js";import{a as Pe}from"./useUniqueId-8a9c20ea.js";import"./translationsContext-e145f09f.js";import"./index.styled-068e0752.js";import{g as Me}from"./routing-e361ea53.js";const ze=n({}),je=({children:e,defaultParams:t})=>o.createElement(ze.Provider,{value:{defaultParams:t}},e),Be=e=>{const{data:{userInfo:t,env:{togetherBasePath:a}}}=i(S),{defaultParams:o}=i(ze)||{},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||ge(P),(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=M(e,r,a),null}return t&&t()},params:Object.assign(Object.assign({},o),e)}},Fe=xe.div`
1
+ import{a as e,_ as t}from"./tslib.es6-0162b9b0.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{Flex as m,Checkbox as p,Portal as u,Accordion as g,Popover as h}from"@mantine/core";import{B as v}from"./index-ae35fac7.js";import{T as f}from"./index-c583dd71.js";import{a as b}from"./index.styled-e9a50c39.js";import{u as w}from"./useTranslations-08940392.js";import x from"innertext";import{t as y}from"./theme-32755fcb.js";import{H as C,N as E,a9 as k,a4 as N,C as A,_ as L,B as T}from"./index.styled-c42b69ed.js";import{CommonGAssets as I}from"./gAssets.js";import{T as S,au as P,av as M,aw as z,ax as j,ay as B,az as F,aA as O,U as V,aB as R,aC as D,aD as U,aE as H,aF as W,aG as Z,aH as q,aI as G,aJ as _,aK as Q,aL as X,aM as K,aN as $,aO as Y,aP as J}from"./index.styled-bf05546b.js";import{A as ee,B as te,T as ae,D as oe}from"./index-d459e63b.js";import{e as ne,c as ie,P as le,g as re,b as se,h as ce,i as de}from"./dataTransform-c73f4444.js";import{I as me}from"./index-9254d435.js";import pe from"lodash/debounce";import ue from"react-contenteditable";import{d as ge,g as he}from"./cookieHelper-20a76375.js";import{M as ve,t as fe,c as be,a as we}from"./utils-36afb20f.js";import xe,{keyframes as ye,css as Ce}from"styled-components";import"./index.styled-fda1f38d.js";import"./index-c5e851bf.js";import{I as Ee,C as ke,a as Ne}from"./index-ee6565d8.js";import"./index.styled-8eb8f8e4.js";import"./index-00e3ba35.js";import"date-fns";import"react-day-picker/DayPickerInput";import*as Ae from"react-dom";import"lodash/throttle";import"keen-slider/react";import Le from"dayjs";import"./screenSizeContext-29051cf2.js";import{d as Te}from"./index-37d675fa.js";import"./isProduction-943fdf85.js";import"./Locale-0d80aa32.js";import"@mantine/hooks";import"./index-79c1251f.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-2428dd5c.js";import"@mantine/dates";import"string-format";import Ie from"dayjs/plugin/relativeTime";import{M as Se}from"./index-10b64359.js";import{a as Pe}from"./useUniqueId-10476383.js";import"./translationsContext-60ea7170.js";import"./index.styled-d720fd5d.js";import{g as Me}from"./routing-5078f6e4.js";const ze=n({}),je=({children:e,defaultParams:t})=>o.createElement(ze.Provider,{value:{defaultParams:t}},e),Be=e=>{const{data:{userInfo:t,env:{togetherBasePath:a}}}=i(S),{defaultParams:o}=i(ze)||{},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||ge(P),(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=M(e,r,a),null}return t&&t()},params:Object.assign(Object.assign({},o),e)}},Fe=xe.div`
2
2
  display: flex;
3
3
  align-items: center;
4
4
  justify-content: center;
@@ -995,7 +995,7 @@ import{a as e,_ as t}from"./tslib.es6-d8037a1a.js";import*as a from"react";impor
995
995
  width: 24px;
996
996
  height: 24px;
997
997
  }
998
- `;const Zt=({isOpen:e=!0,onClose:t,enableAnimation:a=!0,hospitalId:n,locale:i,isMobile:r,overwriteProfileProps:d,avatarFallback:m=I.getAssetPath("avatar.jpg"),trackingCategory:p="Together"})=>{const{t:u}=w(),[g,h]=l(null),[b,x]=l(!1);s((()=>{if(e&&n&&String(null==g?void 0:g.id)!==String(n)){x(!0);try{h(null),z(R(D.GET_HOSPITAL_INFO,{hospital_branch_id:n,website_url:U[i]}),"get").then((e=>{h(Object.assign(Object.assign({},null==e?void 0:e._data.branch),d))}))}catch(e){console.error(e)}x(!1)}}),[e,n,null==g?void 0:g.id]);const C=(null==g?void 0:g.specialties)||[],E=c((()=>C.map((e=>e.name))),[C]);return o.createElement(o.Fragment,null,o.createElement(Dt,{"data-open":e,"data-animation":a,onClick:e=>e.stopPropagation()},b||!g?o.createElement(Ve,null):o.createElement("div",{className:"popup-content"},o.createElement("div",{className:"close-button",onClick:t},o.createElement("img",{src:Nt,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(Ht,null,o.createElement("div",{className:"image-container"},o.createElement("div",{style:{position:"relative"}},o.createElement(kt,{src:null==g?void 0:g.logo,className:"profile-image",alt:"avatar",fallbackSrc:m}),o.createElement("img",{className:"badge-avatar",src:At,alt:"badge"})))),o.createElement(Wt,null,o.createElement(f,{size:"s3",type:"semiBold",className:"full-name"},null==g?void 0:g.name),o.createElement("div",{className:"specialty"},C&&o.createElement(f,{size:"p4",color:y.colors.gray800},E.join(" • "),"•"),o.createElement("a",{href:H({id:g.id,name:g.name,slug:g.slug,locale:i}),className:"organisation",target:"_blank",rel:"noreferrer"},o.createElement(f,{size:"p4",className:"organisation",color:y.colors.gray800,style:{textDecoration:"underline"}},null==g?void 0:g.name))))),!r&&o.createElement("a",{href:H({id:g.id,name:g.name,slug:g.slug,locale:i})},o.createElement("div",{className:"btn-wrapper"},o.createElement(v,{color:"primary",size:"md",className:"btn-booking"},u("careBooking.bookAnAppointment"))))),o.createElement(Wt,null,o.createElement("div",{className:"experience"},o.createElement(f,{type:"bold",size:"s3",color:y.colors.gray800,style:{paddingBottom:16}},u("hospital.content.description").toUpperCase()),o.createElement(f,{size:"p2",color:y.colors.gray500},g.about),r?o.createElement("a",{href:H({id:g.id,name:g.name,slug:g.slug,locale:i})},o.createElement("div",{className:"btn-wrapper"},o.createElement(v,{color:"primary",size:"md",className:"btn-booking"},u("careBooking.bookAnAppointment")))):o.createElement("a",{href:H({id:g.id,name:g.name,slug:g.slug,locale:i})},o.createElement(f,{size:"s4",color:"#2D87F3",as:"span","data-event-category":p,"data-event-action":"See Full Hospital Profile","data-event-label":O(i)+H({id:g.id,name:g.name,slug:g.slug,locale:i})},u("home.seeHospital"))))))),o.createElement(Ut,{"data-open":e,onClick:e=>{e.stopPropagation(),t()}}))},qt=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"}));var Gt="_2UKyiK1",_t="E5ga-tI",Qt="_8Y2nWXX",Xt="d0T7kSP";const Kt=({open:e,onClose:t,children:a,profileModalProps:n})=>{const{t:i}=w();return o.createElement(Se,Object.assign({className:Gt,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:_t},o.createElement("div",{className:Qt},i("profilePanel.modal.heading")),o.createElement("div",{className:Xt,onClick:t},o.createElement(qt,null))),a)};var $t="Gp63Agi",Yt="uJl3XVQ",Jt="eeCHPMW";Te.extend(Ie);const ea=n({}),ta=({siteType:e})=>{const{t:t}=w(),{handleMakeAppointment:a,doctorId:n,hospitalId:l,currentUrl:r}=i(ea);return o.createElement(v,{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(N,{className:"buttonIcon",size:18}),iconPosition:"right",style:{whiteSpace:"nowrap"}},o.createElement("span",null,t("careBooking.bookAnAppointment")))},aa=e=>{const{className:t="",community:a,name:n,username:r,url:c,avatar:d,role:p,title:u,userType:g="user",expertId:h,isMarryBaby:v,doctorId:f,hospitalId:b,hasQuickBooking:x,handleMakeAppointment:C,communityTrackingAttr:E,isAnonymous:N,showDetailPopup:A,subLine:L,authActionWrapper:T,profileProps:P,profileModalProps:M,extendEle:z,avatarProps:j,hideInfo:B,timeText:F,onCloseFromPost:O,avatarIcon:V,badgeIconSize:R,hideBackground:D,children:U}=e,{data:{locale:H,router:W,env:{isMarryBaby:Z,togetherBasePath:q}}}=i(S),{t:G}=w(),_="boolean"==typeof v?v:Z,Q=_?"marryBaby":"helloSites",X=N?G("cardPost.anonymous"):n||r||"",K=N?I.getAssetPath("avatar.jpg"):d,$=N?void 0:p,[Y,J]=l(!1),{asPath:te}=W||{},ae=`https://${Le[H]}${te}`,oe=e=>{if(N||"chatbot"===g)return!1;A?ie(!0):c&&(window.location.href=c)};s((()=>{fe(Y)}),[Y]);const[ne,ie]=l(!1),le="expert"===(null==e?void 0:e.role),[re,se]=l(null);return s((()=>{ne&&!re&&Promise.resolve().then((function(){return Rn})).then((e=>{se((()=>e.ProfileDetail))}))}),[ne]),o.createElement(ea.Provider,{value:{handleMakeAppointment:C,doctorId:f,hospitalId:b,currentUrl:ae}},o.createElement(Kt,{open:ne,onClose:()=>ie(!1),profileModalProps:M},re&&o.createElement(re,Object.assign({authorProps:{userId:null==e?void 0:e.userId,avatar:K,name:null==e?void 0:e.name,role:null==e?void 0:e.role,title:null==e?void 0:e.title},authActionWrapper:T,onCloseFromPost:()=>{ie(!1),null==O||O()}},P))),"expert"===$&&h?o.createElement(Rt,{isOpen:Y,onClose:()=>J(!1),expertId:h}):null,"expert"===$&&f?o.createElement(Mt,{isOpen:Y,onClose:()=>J(!1),doctorId:f,locale:H}):null,"expert"===$&&b?o.createElement(Zt,{isOpen:Y,onClose:()=>J(!1),hospitalId:b,locale:H}):null,o.createElement("div",{className:`hhg-card-author ${$t} ${t} ${le?"expert-author":""}`,"data-background":!D&&le,"data-is-marrybaby":_,style:{background:!D&&le&&(_?y.mbColors.toneBlue:y.colors.primary50)}},o.createElement(Et,{onAvatarClick:oe,avatarProps:Object.assign(Object.assign({avatar:K,username:X},j),{style:{cursor:N||!c&&!A?"default":"pointer"}}),avatarIcon:V||le&&o.createElement(mt,{size:R||15})},U||!B&&o.createElement(Et.Row,{className:Jt},o.createElement(Et.ColLeft,null,o.createElement(m,{align:"center",onClick:oe},o.createElement(Et.MainText,{onClick:oe,className:Yt},X,"chatbot"===g?o.createElement(o.Fragment,null," ",o.createElement(k,{color:y.colors.primaryBase,size:16,style:{display:"inline-block",transform:"translate(0, 2px)"}})):$&&o.createElement(ee,{siteType:Q,role:$,title:u,style:{verticalAlign:"bottom"}}))),L||o.createElement(Et.SubTextRow,null,(null==a?void 0:a.name)&&o.createElement(Et.SubText,null,o.createElement("a",Object.assign({href:(null==a?void 0:a.slug)&&a.isActive&&!a.isHidden?`${q}/${null==a?void 0:a.slug}`:void 0,className:"author-community-name"},E),`${null==a?void 0:a.name}`)),F&&o.createElement(o.Fragment,null,o.createElement(Et.SubDivider,null),o.createElement(Et.SubText,{className:"time-text"},F)))),x&&o.createElement(Et.ColRight,null,o.createElement(ta,{siteType:Q})))),z&&z))};aa.BookingBtn=ta,aa.MainText=Et.MainText,aa.SubText=Et.SubText,aa.SubTextRow=Et.SubTextRow,aa.SubDivider=Et.SubDivider;const oa=e=>({message:e("notification.failure"),type:"danger"}),na=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}))};na.defaultProps={size:24,color:y.colors.gray600};var ia="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 la=/<mocka ([^>]*)data-url="true"[^<>]*>(.*?)<\/mocka>/gim,ra=/((?:=")|(?:data-url="true">)|)(https?:\/\/(www\.)?(?:\([-A-Z0-9+&@#\/%=~_|$?!:,.]*\)|[-A-Z0-9+&@#\/%=~_|$?!:,.])*(?:\([-A-Z0-9+&@#\/%=~_|$?!:,.]*\)|[A-Z0-9+&@#\/%=~_|$]))/gim,sa=/\[a\+href="([^<"]+)"(?:\+text=\"([^<"]+)")?\]/gim,ca=/<mention [^>]*data-id="([^<"]+)"[^>]*>([^<]+)<\/mention>/gim,da=/<mention [^>]*data-id="([^<"]+)" [^\>]*data-name="([^<"]+)"[^>]*>([^<]+)<\/mention>/gim,ma=/\[mention\+id="([^<"]+)"([^\]]*)\]/gim,pa=/^(https?:\/\/(www\.)?(?:\([-A-Z0-9+&@#\/%=~_|$?!:,.]*\)|[-A-Z0-9+&@#\/%=~_|$?!:,.])*(?:\([-A-Z0-9+&@#\/%=~_|$?!:,.]*\)|[A-Z0-9+&@#\/%=~_|$]))$/gim,ua=/^((https?:\/\/)?(www\.)?(?:\([-A-Z0-9+&@#\/%=~_|$?!:,.]*\)|[-A-Z0-9+&@#\/%=~_|$?!:,.])*(?:\([-A-Z0-9+&@#\/%=~_|$?!:,.]*\)|[A-Z0-9+&@#\/%=~_|$]))$/gim,ga=/<a [^>]*href="([^>"]+)"[^>]*>([^<]+)<\/a>/gim,ha=/<mocka [^\>]*data-bad-word="[^\"]*" [^\>]*data-error="true"[^\>]*>(.*?)<\/mocka>/gim,va=({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},fa=(e,t)=>e.replace(sa,((e,a,o)=>va({text:o||a,url:a,method:t}))).replace(ga,((e,a,o)=>va({text:o||a,url:a,method:t}))),ba=(e,t=[])=>e.replace(ma,((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>`})),wa=e=>{const t=[];return e.replace(/(\&amp;)+/g,"&").replace(ra,((e,a,o)=>('="'!==a&&'data-url="true">'!==a&&t.push(o),e))),t},xa=(e,t)=>{const a=[];return e.replace(ca,((e,t)=>(a.push(t),e))).replace(ma,((e,t)=>(a.push(t),e))),t?a:Array.from(new Set(a)).slice(0,30)},ya=e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),Ca=e=>e.replace(ha,"$1"),Ea=(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(ra,((e,t,a)=>'="'!==t&&'data-url="true">'!==t?`<a href="${a}" target="_blank">${a}</a>`:e)).replace(la,((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(ca,((e,t,a)=>`[mention+id="${t}"+name="${a}"]`)))(Ca(e)),t),ka=["hellobacsi.com","hellosehat.com","hellodoktor.com","hellokrupet.com","hellodoctor.com.ph","hellokhunmor.com","hellosayarwon.com","helloyishi.com.tw","helloswasthya.com","marrybaby.vn"],Na=e=>e.match(ua)?e.startsWith("https://")||e.startsWith("http://")?e:`https://${e}`:"",Aa=(e,t)=>{const a=t.filter(Boolean);if(e&&a.length>0){return Ca(e).replace(new RegExp(`\\b(${a.map((e=>ya(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},La=(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?_:Q,l=yield i(j(o?G.COMMENT.IMAGE_UPLOAD:B.COMMENT.IMAGE_UPLOAD,{_locale:a}),"POST",{data:n});return(null===(e=null==l?void 0:l.data)||void 0===e?void 0:e.image)||""})),Ta=(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 Ia="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 Sa=xe.div`
998
+ `;const Zt=({isOpen:e=!0,onClose:t,enableAnimation:a=!0,hospitalId:n,locale:i,isMobile:r,overwriteProfileProps:d,avatarFallback:m=I.getAssetPath("avatar.jpg"),trackingCategory:p="Together"})=>{const{t:u}=w(),[g,h]=l(null),[b,x]=l(!1);s((()=>{if(e&&n&&String(null==g?void 0:g.id)!==String(n)){x(!0);try{h(null),z(R(D.GET_HOSPITAL_INFO,{hospital_branch_id:n,website_url:U[i]}),"get").then((e=>{h(Object.assign(Object.assign({},null==e?void 0:e._data.branch),d))}))}catch(e){console.error(e)}x(!1)}}),[e,n,null==g?void 0:g.id]);const C=(null==g?void 0:g.specialties)||[],E=c((()=>C.map((e=>e.name))),[C]);return o.createElement(o.Fragment,null,o.createElement(Dt,{"data-open":e,"data-animation":a,onClick:e=>e.stopPropagation()},b||!g?o.createElement(Ve,null):o.createElement("div",{className:"popup-content"},o.createElement("div",{className:"close-button",onClick:t},o.createElement("img",{src:Nt,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(Ht,null,o.createElement("div",{className:"image-container"},o.createElement("div",{style:{position:"relative"}},o.createElement(kt,{src:null==g?void 0:g.logo,className:"profile-image",alt:"avatar",fallbackSrc:m}),o.createElement("img",{className:"badge-avatar",src:At,alt:"badge"})))),o.createElement(Wt,null,o.createElement(f,{size:"s3",type:"semiBold",className:"full-name"},null==g?void 0:g.name),o.createElement("div",{className:"specialty"},C&&o.createElement(f,{size:"p4",color:y.colors.gray800},E.join(" • "),"•"),o.createElement("a",{href:H({id:g.id,name:g.name,slug:g.slug,locale:i}),className:"organisation",target:"_blank",rel:"noreferrer"},o.createElement(f,{size:"p4",className:"organisation",color:y.colors.gray800,style:{textDecoration:"underline"}},null==g?void 0:g.name))))),!r&&o.createElement("a",{href:H({id:g.id,name:g.name,slug:g.slug,locale:i})},o.createElement("div",{className:"btn-wrapper"},o.createElement(v,{color:"primary",size:"md",className:"btn-booking"},u("careBooking.bookAnAppointment"))))),o.createElement(Wt,null,o.createElement("div",{className:"experience"},o.createElement(f,{type:"bold",size:"s3",color:y.colors.gray800,style:{paddingBottom:16}},u("hospital.content.description").toUpperCase()),o.createElement(f,{size:"p2",color:y.colors.gray500},g.about),r?o.createElement("a",{href:H({id:g.id,name:g.name,slug:g.slug,locale:i})},o.createElement("div",{className:"btn-wrapper"},o.createElement(v,{color:"primary",size:"md",className:"btn-booking"},u("careBooking.bookAnAppointment")))):o.createElement("a",{href:H({id:g.id,name:g.name,slug:g.slug,locale:i})},o.createElement(f,{size:"s4",color:"#2D87F3",as:"span","data-event-category":p,"data-event-action":"See Full Hospital Profile","data-event-label":O(i)+H({id:g.id,name:g.name,slug:g.slug,locale:i})},u("home.seeHospital"))))))),o.createElement(Ut,{"data-open":e,onClick:e=>{e.stopPropagation(),t()}}))},qt=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"}));var Gt="_2UKyiK1",_t="E5ga-tI",Qt="_8Y2nWXX",Xt="d0T7kSP";const Kt=({open:e,onClose:t,children:a,profileModalProps:n})=>{const{t:i}=w();return o.createElement(Se,Object.assign({className:Gt,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:_t},o.createElement("div",{className:Qt},i("profilePanel.modal.heading")),o.createElement("div",{className:Xt,onClick:t},o.createElement(qt,null))),a)};var $t="Gp63Agi",Yt="uJl3XVQ",Jt="eeCHPMW";Le.extend(Ie);const ea=n({}),ta=({siteType:e})=>{const{t:t}=w(),{handleMakeAppointment:a,doctorId:n,hospitalId:l,currentUrl:r}=i(ea);return o.createElement(v,{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(N,{className:"buttonIcon",size:18}),iconPosition:"right",style:{whiteSpace:"nowrap"}},o.createElement("span",null,t("careBooking.bookAnAppointment")))},aa=e=>{const{className:t="",community:a,name:n,username:r,url:c,avatar:d,role:p,title:u,userType:g="user",expertId:h,isMarryBaby:v,doctorId:f,hospitalId:b,hasQuickBooking:x,handleMakeAppointment:C,communityTrackingAttr:E,isAnonymous:N,showDetailPopup:A,subLine:L,authActionWrapper:T,profileProps:P,profileModalProps:M,extendEle:z,avatarProps:j,hideInfo:B,timeText:F,onCloseFromPost:O,avatarIcon:V,badgeIconSize:R,hideBackground:D,children:U}=e,{data:{locale:H,router:W,env:{isMarryBaby:Z,togetherBasePath:q}}}=i(S),{t:G}=w(),_="boolean"==typeof v?v:Z,Q=_?"marryBaby":"helloSites",X=N?G("cardPost.anonymous"):n||r||"",K=N?I.getAssetPath("avatar.jpg"):d,$=N?void 0:p,[Y,J]=l(!1),{asPath:te}=W||{},ae=`https://${Te[H]}${te}`,oe=e=>{if(N||"chatbot"===g)return!1;A?ie(!0):c&&(window.location.href=c)};s((()=>{fe(Y)}),[Y]);const[ne,ie]=l(!1),le="expert"===(null==e?void 0:e.role),[re,se]=l(null);return s((()=>{ne&&!re&&Promise.resolve().then((function(){return Rn})).then((e=>{se((()=>e.ProfileDetail))}))}),[ne]),o.createElement(ea.Provider,{value:{handleMakeAppointment:C,doctorId:f,hospitalId:b,currentUrl:ae}},o.createElement(Kt,{open:ne,onClose:()=>ie(!1),profileModalProps:M},re&&o.createElement(re,Object.assign({authorProps:{userId:null==e?void 0:e.userId,avatar:K,name:null==e?void 0:e.name,role:null==e?void 0:e.role,title:null==e?void 0:e.title},authActionWrapper:T,onCloseFromPost:()=>{ie(!1),null==O||O()}},P))),"expert"===$&&h?o.createElement(Rt,{isOpen:Y,onClose:()=>J(!1),expertId:h}):null,"expert"===$&&f?o.createElement(Mt,{isOpen:Y,onClose:()=>J(!1),doctorId:f,locale:H}):null,"expert"===$&&b?o.createElement(Zt,{isOpen:Y,onClose:()=>J(!1),hospitalId:b,locale:H}):null,o.createElement("div",{className:`hhg-card-author ${$t} ${t} ${le?"expert-author":""}`,"data-background":!D&&le,"data-is-marrybaby":_,style:{background:!D&&le&&(_?y.mbColors.toneBlue:y.colors.primary50)}},o.createElement(Et,{onAvatarClick:oe,avatarProps:Object.assign(Object.assign({avatar:K,username:X},j),{style:{cursor:N||!c&&!A?"default":"pointer"}}),avatarIcon:V||le&&o.createElement(mt,{size:R||15})},U||!B&&o.createElement(Et.Row,{className:Jt},o.createElement(Et.ColLeft,null,o.createElement(m,{align:"center",onClick:oe},o.createElement(Et.MainText,{onClick:oe,className:Yt},X,"chatbot"===g?o.createElement(o.Fragment,null," ",o.createElement(k,{color:y.colors.primaryBase,size:16,style:{display:"inline-block",transform:"translate(0, 2px)"}})):$&&o.createElement(ee,{siteType:Q,role:$,title:u,style:{verticalAlign:"bottom"}}))),L||o.createElement(Et.SubTextRow,null,(null==a?void 0:a.name)&&o.createElement(Et.SubText,null,o.createElement("a",Object.assign({href:(null==a?void 0:a.slug)&&a.isActive&&!a.isHidden?`${q}/${null==a?void 0:a.slug}`:void 0,className:"author-community-name"},E),`${null==a?void 0:a.name}`)),F&&o.createElement(o.Fragment,null,o.createElement(Et.SubDivider,null),o.createElement(Et.SubText,{className:"time-text"},F)))),x&&o.createElement(Et.ColRight,null,o.createElement(ta,{siteType:Q})))),z&&z))};aa.BookingBtn=ta,aa.MainText=Et.MainText,aa.SubText=Et.SubText,aa.SubTextRow=Et.SubTextRow,aa.SubDivider=Et.SubDivider;const oa=e=>({message:e("notification.failure"),type:"danger"}),na=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}))};na.defaultProps={size:24,color:y.colors.gray600};var ia="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 la=/<mocka ([^>]*)data-url="true"[^<>]*>(.*?)<\/mocka>/gim,ra=/((?:=")|(?:data-url="true">)|)(https?:\/\/(www\.)?(?:\([-A-Z0-9+&@#\/%=~_|$?!:,.]*\)|[-A-Z0-9+&@#\/%=~_|$?!:,.])*(?:\([-A-Z0-9+&@#\/%=~_|$?!:,.]*\)|[A-Z0-9+&@#\/%=~_|$]))/gim,sa=/\[a\+href="([^<"]+)"(?:\+text=\"([^<"]+)")?\]/gim,ca=/<mention [^>]*data-id="([^<"]+)"[^>]*>([^<]+)<\/mention>/gim,da=/<mention [^>]*data-id="([^<"]+)" [^\>]*data-name="([^<"]+)"[^>]*>([^<]+)<\/mention>/gim,ma=/\[mention\+id="([^<"]+)"([^\]]*)\]/gim,pa=/^(https?:\/\/(www\.)?(?:\([-A-Z0-9+&@#\/%=~_|$?!:,.]*\)|[-A-Z0-9+&@#\/%=~_|$?!:,.])*(?:\([-A-Z0-9+&@#\/%=~_|$?!:,.]*\)|[A-Z0-9+&@#\/%=~_|$]))$/gim,ua=/^((https?:\/\/)?(www\.)?(?:\([-A-Z0-9+&@#\/%=~_|$?!:,.]*\)|[-A-Z0-9+&@#\/%=~_|$?!:,.])*(?:\([-A-Z0-9+&@#\/%=~_|$?!:,.]*\)|[A-Z0-9+&@#\/%=~_|$]))$/gim,ga=/<a [^>]*href="([^>"]+)"[^>]*>([^<]+)<\/a>/gim,ha=/<mocka [^\>]*data-bad-word="[^\"]*" [^\>]*data-error="true"[^\>]*>(.*?)<\/mocka>/gim,va=({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},fa=(e,t)=>e.replace(sa,((e,a,o)=>va({text:o||a,url:a,method:t}))).replace(ga,((e,a,o)=>va({text:o||a,url:a,method:t}))),ba=(e,t=[])=>e.replace(ma,((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>`})),wa=e=>{const t=[];return e.replace(/(\&amp;)+/g,"&").replace(ra,((e,a,o)=>('="'!==a&&'data-url="true">'!==a&&t.push(o),e))),t},xa=(e,t)=>{const a=[];return e.replace(ca,((e,t)=>(a.push(t),e))).replace(ma,((e,t)=>(a.push(t),e))),t?a:Array.from(new Set(a)).slice(0,30)},ya=e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),Ca=e=>e.replace(ha,"$1"),Ea=(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(ra,((e,t,a)=>'="'!==t&&'data-url="true">'!==t?`<a href="${a}" target="_blank">${a}</a>`:e)).replace(la,((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(ca,((e,t,a)=>`[mention+id="${t}"+name="${a}"]`)))(Ca(e)),t),ka=["hellobacsi.com","hellosehat.com","hellodoktor.com","hellokrupet.com","hellodoctor.com.ph","hellokhunmor.com","hellosayarwon.com","helloyishi.com.tw","helloswasthya.com","marrybaby.vn"],Na=e=>e.match(ua)?e.startsWith("https://")||e.startsWith("http://")?e:`https://${e}`:"",Aa=(e,t)=>{const a=t.filter(Boolean);if(e&&a.length>0){return Ca(e).replace(new RegExp(`\\b(${a.map((e=>ya(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},La=(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?_:Q,l=yield i(j(o?G.COMMENT.IMAGE_UPLOAD:B.COMMENT.IMAGE_UPLOAD,{_locale:a}),"POST",{data:n});return(null===(e=null==l?void 0:l.data)||void 0===e?void 0:e.image)||""})),Ta=(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 Ia="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 Sa=xe.div`
999
999
  input:focus,
1000
1000
  textarea:focus,
1001
1001
  [contenteditable='true'] {
@@ -2679,7 +2679,7 @@ import{a as e,_ as t}from"./tslib.es6-d8037a1a.js";import*as a from"react";impor
2679
2679
  .minus-path {
2680
2680
  display: none;
2681
2681
  }
2682
- `,Wo=e=>{var{size:a,color:n}=e;return t(e,["size","color"]),o.createElement(Ho,{width:a,height:a,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","data-is-minus":"true"},o.createElement("path",{className:"plus-path",d:"M18 13H13V18C13 18.55 12.55 19 12 19C11.45 19 11 18.55 11 18V13H6C5.45 13 5 12.55 5 12C5 11.45 5.45 11 6 11H11V6C11 5.45 11.45 5 12 5C12.55 5 13 5.45 13 6V11H18C18.55 11 19 11.45 19 12C19 12.55 18.55 13 18 13Z",fill:n}),o.createElement("path",{className:"minus-path",d:"M18 13H6C5.45 13 5 12.55 5 12C5 11.45 5.45 11 6 11H18C18.55 11 19 11.45 19 12C19 12.55 18.55 13 18 13Z",fill:n}))};Wo.defaultProps={size:24,color:y.colors.primaryBase};const Zo=n({});var qo="DZmf3s7";const Go=({src:e,defaultSrc:t=I.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(kt,{src:e,fallbackSrc:t,alt:l})));var _o="l5fL1xL",Qo="L-aGKo7";const Xo=({children:e,className:t=""})=>o.createElement("div",{className:`${_o} ${t}`},e),Ko=({children:e,className:t=""})=>o.createElement("div",{className:`${Qo} ${t}`},e);var $o="eaR8ATZ",Yo="xM-7K0a";const Jo=({category:e,title:t,src:a,children:n,className:i=""})=>o.createElement("div",{className:`${$o} ${i}`},o.createElement(Go,{src:a}),o.createElement("div",{className:Yo},n||o.createElement("div",null,e&&o.createElement(Xo,null,e),t&&o.createElement(Ko,null,t))));Jo.CategoryText=Xo,Jo.Title=Ko;const en=({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(Jo,{src:e,className:l},o.createElement(o.Fragment,null,o.createElement(Jo.CategoryText,null,null===(r=null==n?void 0:n[0])||void 0===r?void 0:r.name),o.createElement(Jo.Title,null,t),o.createElement(Et,{avatarProps:Object.assign(Object.assign({},a),{size:32}),subTitle:o.createElement(o.Fragment,null,s,o.createElement(Et.SubDivider,null),"Dec 12, 2022")})))};var tn={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 an=({className:e=""})=>{var t,a,n,l,r;const{t:s}=w(),{info:c,isMarryBaby:d}=i(Zo),p=null==c?void 0:c.data,u=[{type:"linkedin",icon:I.getAssetPath("linkedin.svg"),url:null===(t=null==c?void 0:c.contact)||void 0===t?void 0:t.linkedin},{type:"instagram",icon:I.getAssetPath("instagram.svg"),url:null===(a=null==c?void 0:c.contact)||void 0===a?void 0:a.instagram},{type:"facebook",icon:I.getAssetPath("facebook.svg"),url:null===(n=null==c?void 0:c.contact)||void 0===n?void 0:n.facebook},{type:"youtube",icon:I.getAssetPath("youtube.svg"),url:null===(l=null==c?void 0:c.contact)||void 0===l?void 0:l.youtube},{type:"tiktok",icon:I.getAssetPath("tiktok.svg"),url:null===(r=null==c?void 0:c.contact)||void 0===r?void 0:r.tiktok}],h=[...((null==c?void 0:c.experiences)||[]).length>0?[{key:"experience",heading:s("profilePanel.experience"),iconSrc:I.getAssetPath(d?"award-doc-mb.svg":"award-doc.svg"),panel:o.createElement("div",{className:tn.accBodyGroup},null==c?void 0:c.experiences.map(((e,t)=>o.createElement("div",{className:tn.accBodyGroupItem,key:String(t)},o.createElement("div",{className:tn.accBodyGroupTitle},e.title),o.createElement("div",{className:tn.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:I.getAssetPath(d?"book-mb.svg":"book.svg"),panel:o.createElement("div",{className:tn.accBodyGroup},null==c?void 0:c.educations.map(((e,t)=>o.createElement("div",{className:tn.accBodyGroupItem,key:String(t)},o.createElement("div",{className:tn.accBodyGroupTitle},e.schoolName),o.createElement("div",{className:tn.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:I.getAssetPath(d?"award-mb.svg":"award.svg"),panel:o.createElement("div",{className:tn.accBodyGroup},null==c?void 0:c.awards.map(((e,t)=>o.createElement("div",{className:tn.accBodyGroupTitle,key:t},e.title))))}]:[]],v=(null==c?void 0:c.relatedPosts)||[],f=u.filter((e=>e.url));return o.createElement("div",{className:`${tn.container} ${e}`,"data-is-marrybaby":d},h.length>0&&o.createElement(g,{defaultValue:h[0].key,chevron:d?o.createElement("div",{className:tn.mbChevronWrapper},o.createElement(Wo,{size:12,color:y.mbColors.midGray})):o.createElement(Wo,{color:y.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"}}}},h.map((e=>o.createElement(g.Item,{key:e.key,value:e.key},o.createElement(g.Control,null,o.createElement("div",{className:tn.header},o.createElement("div",{className:tn.headingIcon},o.createElement("img",{src:e.iconSrc})),o.createElement("div",{className:tn.heading},e.heading))),o.createElement(g.Panel,null,e.panel))))),v.length>0&&o.createElement("div",{className:tn.group},o.createElement("div",{className:tn.subTitle},o.createElement("img",{className:tn.subIcon,src:I.getAssetPath(d?"mb-logo.svg":"logo/circle-solid.svg")}),s("profilePanel.publishedArticles")),o.createElement("div",{className:`${tn.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:tn.articleCardLink},o.createElement(en,Object.assign({className:"article-card"},Object.assign(Object.assign({},e),!e.author&&{author:{displayName:null==p?void 0:p.name,avatar:null==p?void 0:p.avatar}}),{isReview:!0}))))))),f.length>0&&o.createElement("div",{className:tn.group},o.createElement("div",{className:tn.subTitle},o.createElement("img",{className:tn.subIcon,src:I.getAssetPath(d?"social-mb.svg":"social.svg")}),s("profilePanel.socialLinks")),o.createElement("div",{className:tn.groupBody},o.createElement(m,null,u.map(((e,t)=>e.url&&o.createElement("div",{className:tn.socialItem,key:t},o.createElement("a",{href:e.url,target:"_blank",rel:"noreferrer"},o.createElement("img",{src:e.icon,loading:"lazy",width:"32px"})))))))))};var on="_8fd7YMs",nn="DomiQfw",ln="-b2qnfL";const rn=({message:e,buttonTxt:t,imgSrc:a,onBtnClick:n})=>{const{siteType:l,isMarryBaby:r}=i(Zo);return o.createElement("div",{className:on},o.createElement("div",{className:nn},o.createElement("img",{src:a||I.getAssetPath(r?"comments-mb.svg":"comments.svg")})),e&&o.createElement("div",{className:ln},e),t&&o.createElement(v,{size:"md",theme:l,color:"secondary",onClick:n},t))};var sn={container:"GYUElSy",question:"_3C6QpT1",questionTitle:"_9M9VYL6",community:"_1RuSyv3",questionCard:"_1IG-eEp"};const cn=({post:e,className:t=""})=>{var a,n,l,r,s,c,d,m;const{t:p}=w(),{data:{userInfo:u,env:{togetherBasePath:g}}}=i(S),{authActionWrapper:h,authorProps:f,isMarryBaby:b}=i(Zo),x=`${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:`${sn.container} ${t}`},o.createElement("div",{className:sn.header},o.createElement("div",{className:sn.question},p("profilePanel.question")," ",o.createElement("span",{className:sn.questionTitle,style:{color:b?y.mbColors.pink:y.colors.primaryBase},onClick:()=>{(null==u?void 0:u.id)||null==h||h((()=>window.location.href=x))}},"#",null==e?void 0:e.title)),o.createElement("div",{className:sn.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:sn.questionCard},o.createElement(aa,Object.assign({className:"card-author"},f,{role:"user",avatarIcon:o.createElement(mt,null),subLine:o.createElement(aa.SubTextRow,null,o.createElement(aa.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(vo,{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(v,{theme:b?"marryBaby":"helloSites",size:"md",color:"secondary",onClick:()=>{(null==u?void 0:u.id)?window.location.href=x:null==h||h((()=>window.location.href=x))}},p("profilePanel.anserwing.viewFull")))};var dn="MrdoES3";const mn=({id:t})=>{const{t:a}=w(),{data:{locale:n}}=i(S),{authorProps:r}=i(Zo),[c,d]=l(null),[m,p]=l(!1);return s((()=>{t&&e(void 0,void 0,void 0,(function*(){var e;p(!0);const a=yield z(j(B.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(ie);d(o),p(!1)}))}),[]),o.createElement("div",{className:dn},m?o.createElement(Uo,null):null!==c&&(c.length>0?c.map((e=>o.createElement(cn,{className:"post-card",key:e.id,post:e}))):o.createElement(rn,{message:a("profilePanel.emptyPostMess.content",{name:(null==r?void 0:r.name)||(null==r?void 0:r.username)})})))},pn=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}))};pn.defaultProps={size:24,color:y.colors.gray600};var un="KsWg8i6",gn="_9tS0EUN",hn="kyyRKlb",vn="-Uqqka-";const fn=a=>{var{post:n,onSkip:r,siteType:s,btnText:c}=a,m=t(a,["post","onSkip","siteType","btnText"]);const{t:p}=w(),{data:{locale:u},action:{pushNotifications:g}}=i(S),[f,b]=l(!1),[x,C]=l(!1),E=d((()=>e(void 0,void 0,void 0,(function*(){var e;C(!0);const t=yield Q(j(B.USER.SKIP_QUESTION,{_locale:u,id:null==n?void 0:n.id}),"PUT");1===(null==t?void 0:t.status)?(null==r||r({id:(null==n?void 0:n.id)||"",communityId:(null===(e=null==n?void 0:n.community)||void 0===e?void 0:e.id)||""}),b(!1),g({title:"",message:"Skip success",type:"success"})):g({title:"",message:null==t?void 0:t.messages,type:"danger"}),C(!1)}))),[]);return o.createElement(h,{width:327,withArrow:!0,shadow:"md",opened:f},o.createElement(h.Target,null,o.createElement("div",Object.assign({className:`${un} ${(null==m?void 0:m.className)||""}`,onClick:()=>b(!0)},m),c||p("profilePanel.questionNotClear"))),o.createElement(h.Dropdown,null,o.createElement("div",null,o.createElement("div",{className:gn},p("profilePanel.skipQuestion.heading")),o.createElement("div",{className:hn},p("profilePanel.skipQuestion.content")),o.createElement("div",{className:vn},o.createElement(v,{theme:s,size:"md",color:"secondary",icon:o.createElement(ke,{color:y.colors.primaryBase,size:24}),onClick:()=>b(!1)}),o.createElement(v,{theme:s,size:"md",icon:o.createElement(Ne,{color:"white",size:24}),onClick:E,isLoading:x})))))};var bn="toEutn7",wn="drdisHs",xn="HNlhOdx";const yn=e=>{var a,n,l,r,{post:s,onSkip:c}=e,d=t(e,["post","onSkip"]);const{data:{env:{togetherBasePath:m}}}=i(S),{showSkipQuestionTag:p}=i(Zo);return o.createElement(o.Fragment,null,o.createElement("div",Object.assign({},d,{className:`${bn} ${(null==d?void 0:d.className)||""}`}),o.createElement(aa,{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(aa.SubTextRow,null,o.createElement(aa.SubText,null,null==s?void 0:s.createdTime))}),o.createElement("a",{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:wn,rel:"noreferrer"},null==s?void 0:s.title),p&&o.createElement(fn,{className:xn,post:s,onSkip:c})))};var Cn={accordion:"I-uIJ6E",header:"_41WRsj2",heading:"AcOGL93",headingIcon:"JD3dWJN",panel:"dKAgnS8",chevron:"L2Q9T6m"};const En=()=>{var t,a;const{t:n}=w(),{data:{locale:r,userInfo:c}}=i(S),{onSkipQuestion:d,countValues:m,setCountValues:p}=i(Zo),[u,h]=l(),[v,f]=l([]),[b,x]=l(!1),C=null==c?void 0:c.id;s((()=>{C&&e(void 0,void 0,void 0,(function*(){var e;x(!0);const t=yield Q(j(B.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(ie),delete e.question,a.push(se(e))})),f(a),h(o),x(!1)}))}),[]);const E=({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)),h(a),p(Object.assign(Object.assign({},m),{total_question:o})),null==d||d(o)}};return o.createElement("div",{className:Cn.container},b?o.createElement(Uo,null):(null==m?void 0:m.total_question)>0?v.length>0&&o.createElement(g,{className:Cn.accordion,defaultValue:String((null===(a=v[null===(t=Object.keys(v))||void 0===t?void 0:t[0]])||void 0===a?void 0:a.id)||""),styles:{control:{padding:"16px",border:`1px solid ${y.colors.neutral100}`,borderTopLeftRadius:"8px",borderTopRightRadius:"8px",'&[aria-expanded="false"]':{borderBottom:0}},chevron:{width:"32px",height:"32px"},content:{padding:0,border:`1px solid ${y.colors.neutral100}`,borderTop:0,borderBottom:0},item:{marginBottom:"16px"}},chevron:o.createElement("div",{className:Cn.chevron},o.createElement(pn,{color:y.colors.gray600,size:20}))},v.map((e=>{const t=u&&(null==u?void 0:u[e.id])||[];return t.length>0&&o.createElement(g.Item,{key:e.id,value:String(e.id)},o.createElement(g.Control,null,o.createElement("div",{className:Cn.header},o.createElement("div",{className:Cn.headingIcon},o.createElement("img",{src:e.thumbnail})),o.createElement("div",{className:Cn.heading},e.name))),o.createElement(g.Panel,null,o.createElement("div",{className:Cn.body},t.map((e=>o.createElement(yn,{className:"question-card",key:e.id,post:e,onSkip:E}))))))}))):o.createElement(rn,{message:n("profilePanel.emptyCareMess.content"),imgSrc:I.getAssetPath("questions.svg")}))};var kn="GA-zc-O",Nn="A18McWD",An="IB049vj",Ln="_8I--vEV";const Tn=({post:e,className:t=""})=>{var a;const{data:{userInfo:n,env:{togetherBasePath:l}}}=i(S),{authActionWrapper:r,authorProps:s}=i(Zo),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:`${kn} ${t}`},o.createElement("div",{className:An},o.createElement("a",{className:Ln,href:c,onClick:e=>{(null==n?void 0:n.id)||(e.preventDefault(),null==r||r((()=>window.location.href=c)))}}),o.createElement(Et,{className:"card-author",avatarProps:{avatar:null==s?void 0:s.avatar,size:32}},o.createElement(aa.MainText,{className:Nn},null==e?void 0:e.title),o.createElement(aa.SubTextRow,null,o.createElement(aa.SubText,null,null==e?void 0:e.createdTime))),o.createElement(vo,{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 In="TSMHoEM";const Sn=()=>{const{t:t}=w(),{data:{locale:a}}=i(S),{authorId:n,authorProps:r,isAuthorLogin:c,onCloseFromPost:d}=i(Zo),[m,p]=l(null),[u,g]=l(!1);return s((()=>{n&&e(void 0,void 0,void 0,(function*(){var e;g(!0);const t=yield z(j(B.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(ie);p(o),g(!1)}))}),[n]),o.createElement("div",{className:In},u?o.createElement(Uo,null):null!==m&&(m.length>0?m.map((e=>o.createElement(Tn,{className:"post-card",key:e.id,post:e}))):o.createElement(rn,{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 Pn="_4Vekw96",Mn="DIJdGcB",zn="aQSt4-Q";const jn=e=>e?{title:null==e?void 0:e.title,organization:null==e?void 0:e.organization,duration:e.duration}:{},Bn=e=>e?{completedYear:null==e?void 0:e.completed_year,schoolName:e.school_name,study:e.study}:{};var Fn,On;!function(e){e[e.About=0]="About",e[e.Care=1]="Care",e[e.Answer=2]="Answer",e[e.Posts=3]="Posts"}(Fn||(Fn={})),function(e){e[e.Expert=0]="Expert",e[e.User=1]="User"}(On||(On={}));const Vn=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:x,userInfo:y,env:{isMarryBaby:C}}}=i(S),{t:E}=w(),k=null==c?void 0:c.role,N=null==y?void 0:y.role,A=String(null==c?void 0:c.userId),[L,T]=l(),[I,P]=l(!1),[M,F]=l(),O=(null==y?void 0:y._togetherUserId)===(null==c?void 0:c.userId),V=[...-1!==f.indexOf(k)?[{key:Fn.About,name:E("profilePanel.tabs.highlight"),component:o.createElement(an,{id:A,info:M})}]:[{key:Fn.Posts,name:E("profilePanel.tabs.posts"),component:o.createElement(Sn,null),hasCountResult:!0,keyOfCountApi:"post",keyOfResult:"total_post"}],...g||-1===f.indexOf(N)||(null==y?void 0:y._togetherUserId)!==(null==c?void 0:c.userId)?[]:[{key:Fn.Care,name:`${E("profilePanel.tabs.care")}`,component:o.createElement(En,null),hasCountResult:!0,keyOfCountApi:"question",keyOfResult:"total_question"}],...h||-1===f.indexOf(k)?[]:[{key:Fn.Answer,name:`${E("profilePanel.tabs.expertAnswer")}`,component:o.createElement(mn,{id:A}),hasCountResult:!0,keyOfCountApi:"reply",keyOfResult:"total_reply"}]],[R,D]=l(null),[U,H]=l(null),W={initialTab:U,tabContent:R,onChange:e=>H(e)},Z=null==V?void 0:V.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;P(!0);const c=yield Promise.all([z(j(B.USER.DETAIL,{_locale:x,id:A}),"GET"),...Z.map((e=>z(j(B.USER.COUNT_TABS,{_locale:x,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(jn),relatedPosts:((null===(a=null==m?void 0:m.data)||void 0===a?void 0:a.related_post)||[]).map((e=>ce(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(Bn),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)&&F(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=Z.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!==[Fn.Care,Fn.Posts].indexOf(e.key)?e:void 0})).filter(Boolean).map((e=>e.key)),w=V.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===Fn.About?v&&t:t})).filter(Boolean);D(w),H((()=>{if(!d)return 0;const e=null==w?void 0:w.findIndex((e=>e.key===d));return-1!==e?e:0})()),T(f),P(!1)}))}),[]);const q=null==M?void 0:M.data;return o.createElement(Zo.Provider,{value:{isMarryBaby:C,siteType:C?"marryBaby":"helloSites",authorId:String((null==c?void 0:c.userId)||""),authActionWrapper:m,onSkipQuestion:p,info:M,authorProps:c,onCloseFromPost:u,countValues:L,setCountValues:T,isAuthorLogin:O,showSkipQuestionTag:v}},o.createElement("div",Object.assign({},b,{className:`${Pn} ${(null==b?void 0:b.className)||""}`,"data-is-marrybaby":C}),I?o.createElement(Uo,null):o.createElement(o.Fragment,null,o.createElement(aa,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(aa.SubTextRow,null,(null==q?void 0:q.specialty)&&o.createElement(o.Fragment,null,o.createElement(aa.SubText,null,null==q?void 0:q.specialty),o.createElement(aa.SubDivider,null)),o.createElement(aa.SubText,null,null==q?void 0:q.organisation)):(null==q?void 0:q.created_at)&&o.createElement(aa.SubTextRow,null,o.createElement(aa.SubText,null,E("profilePanel.joined")," ",Te(null==q?void 0:q.created_at).toNow(!0)))})),"expert"===k&&o.createElement("div",{className:Mn,dangerouslySetInnerHTML:{__html:null===(n=null==M?void 0:M.data)||void 0===n?void 0:n.description}}),null!==R&&null!==U&&(R.length>0?o.createElement("div",{className:zn},o.createElement(ae,Object.assign({},W,{className:"feature-tabs"})),null===(r=null==R?void 0:R[U])||void 0===r?void 0:r.component):o.createElement(rn,{message:E("profilePanel.emptyPostMess.content",{name:(null==c?void 0:c.name)||(null==c?void 0:c.username)||""})})))))};var Rn=Object.freeze({__proto__:null,get TabName(){return Fn},get UserType(){return On},TabDataInit:{experiences:[],relatedPosts:[],educations:[],awards:[],contact:{},data:{}},ProfileDetail:Vn}),Dn="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",Un="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",Hn="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 Wn=({onDeleteComment:t,commentId:a,className:n="",popoverClassName:r=""})=>{const{data:{env:{isMarryBaby:s},locale:c},action:{pushNotifications:d}}=i(S),{t:m}=w(),[p,u]=l(!1),{authActionWrapper:g}=Be();return o.createElement("div",{className:n,onClick:e=>{e.preventDefault(),e.stopPropagation()}},p&&o.createElement(ao,{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})=>Q(j(B.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(rt,{position:"bottom",align:"end",data:{isShowheader:!1,type:"list",list:[{icon:Hn,label:m("actionPopover.delete"),onClick:()=>{g((()=>{u(!0)}))}}]},className:r,toggleButtonContent:o.createElement("img",{src:s?Dn:Un}),buttonProps:{}}))},Zn=xe.a`
2682
+ `,Wo=e=>{var{size:a,color:n}=e;return t(e,["size","color"]),o.createElement(Ho,{width:a,height:a,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","data-is-minus":"true"},o.createElement("path",{className:"plus-path",d:"M18 13H13V18C13 18.55 12.55 19 12 19C11.45 19 11 18.55 11 18V13H6C5.45 13 5 12.55 5 12C5 11.45 5.45 11 6 11H11V6C11 5.45 11.45 5 12 5C12.55 5 13 5.45 13 6V11H18C18.55 11 19 11.45 19 12C19 12.55 18.55 13 18 13Z",fill:n}),o.createElement("path",{className:"minus-path",d:"M18 13H6C5.45 13 5 12.55 5 12C5 11.45 5.45 11 6 11H18C18.55 11 19 11.45 19 12C19 12.55 18.55 13 18 13Z",fill:n}))};Wo.defaultProps={size:24,color:y.colors.primaryBase};const Zo=n({});var qo="DZmf3s7";const Go=({src:e,defaultSrc:t=I.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(kt,{src:e,fallbackSrc:t,alt:l})));var _o="l5fL1xL",Qo="L-aGKo7";const Xo=({children:e,className:t=""})=>o.createElement("div",{className:`${_o} ${t}`},e),Ko=({children:e,className:t=""})=>o.createElement("div",{className:`${Qo} ${t}`},e);var $o="eaR8ATZ",Yo="xM-7K0a";const Jo=({category:e,title:t,src:a,children:n,className:i=""})=>o.createElement("div",{className:`${$o} ${i}`},o.createElement(Go,{src:a}),o.createElement("div",{className:Yo},n||o.createElement("div",null,e&&o.createElement(Xo,null,e),t&&o.createElement(Ko,null,t))));Jo.CategoryText=Xo,Jo.Title=Ko;const en=({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(Jo,{src:e,className:l},o.createElement(o.Fragment,null,o.createElement(Jo.CategoryText,null,null===(r=null==n?void 0:n[0])||void 0===r?void 0:r.name),o.createElement(Jo.Title,null,t),o.createElement(Et,{avatarProps:Object.assign(Object.assign({},a),{size:32}),subTitle:o.createElement(o.Fragment,null,s,o.createElement(Et.SubDivider,null),"Dec 12, 2022")})))};var tn={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 an=({className:e=""})=>{var t,a,n,l,r;const{t:s}=w(),{info:c,isMarryBaby:d}=i(Zo),p=null==c?void 0:c.data,u=[{type:"linkedin",icon:I.getAssetPath("linkedin.svg"),url:null===(t=null==c?void 0:c.contact)||void 0===t?void 0:t.linkedin},{type:"instagram",icon:I.getAssetPath("instagram.svg"),url:null===(a=null==c?void 0:c.contact)||void 0===a?void 0:a.instagram},{type:"facebook",icon:I.getAssetPath("facebook.svg"),url:null===(n=null==c?void 0:c.contact)||void 0===n?void 0:n.facebook},{type:"youtube",icon:I.getAssetPath("youtube.svg"),url:null===(l=null==c?void 0:c.contact)||void 0===l?void 0:l.youtube},{type:"tiktok",icon:I.getAssetPath("tiktok.svg"),url:null===(r=null==c?void 0:c.contact)||void 0===r?void 0:r.tiktok}],h=[...((null==c?void 0:c.experiences)||[]).length>0?[{key:"experience",heading:s("profilePanel.experience"),iconSrc:I.getAssetPath(d?"award-doc-mb.svg":"award-doc.svg"),panel:o.createElement("div",{className:tn.accBodyGroup},null==c?void 0:c.experiences.map(((e,t)=>o.createElement("div",{className:tn.accBodyGroupItem,key:String(t)},o.createElement("div",{className:tn.accBodyGroupTitle},e.title),o.createElement("div",{className:tn.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:I.getAssetPath(d?"book-mb.svg":"book.svg"),panel:o.createElement("div",{className:tn.accBodyGroup},null==c?void 0:c.educations.map(((e,t)=>o.createElement("div",{className:tn.accBodyGroupItem,key:String(t)},o.createElement("div",{className:tn.accBodyGroupTitle},e.schoolName),o.createElement("div",{className:tn.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:I.getAssetPath(d?"award-mb.svg":"award.svg"),panel:o.createElement("div",{className:tn.accBodyGroup},null==c?void 0:c.awards.map(((e,t)=>o.createElement("div",{className:tn.accBodyGroupTitle,key:t},e.title))))}]:[]],v=(null==c?void 0:c.relatedPosts)||[],f=u.filter((e=>e.url));return o.createElement("div",{className:`${tn.container} ${e}`,"data-is-marrybaby":d},h.length>0&&o.createElement(g,{defaultValue:h[0].key,chevron:d?o.createElement("div",{className:tn.mbChevronWrapper},o.createElement(Wo,{size:12,color:y.mbColors.midGray})):o.createElement(Wo,{color:y.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"}}}},h.map((e=>o.createElement(g.Item,{key:e.key,value:e.key},o.createElement(g.Control,null,o.createElement("div",{className:tn.header},o.createElement("div",{className:tn.headingIcon},o.createElement("img",{src:e.iconSrc})),o.createElement("div",{className:tn.heading},e.heading))),o.createElement(g.Panel,null,e.panel))))),v.length>0&&o.createElement("div",{className:tn.group},o.createElement("div",{className:tn.subTitle},o.createElement("img",{className:tn.subIcon,src:I.getAssetPath(d?"mb-logo.svg":"logo/circle-solid.svg")}),s("profilePanel.publishedArticles")),o.createElement("div",{className:`${tn.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:tn.articleCardLink},o.createElement(en,Object.assign({className:"article-card"},Object.assign(Object.assign({},e),!e.author&&{author:{displayName:null==p?void 0:p.name,avatar:null==p?void 0:p.avatar}}),{isReview:!0}))))))),f.length>0&&o.createElement("div",{className:tn.group},o.createElement("div",{className:tn.subTitle},o.createElement("img",{className:tn.subIcon,src:I.getAssetPath(d?"social-mb.svg":"social.svg")}),s("profilePanel.socialLinks")),o.createElement("div",{className:tn.groupBody},o.createElement(m,null,u.map(((e,t)=>e.url&&o.createElement("div",{className:tn.socialItem,key:t},o.createElement("a",{href:e.url,target:"_blank",rel:"noreferrer"},o.createElement("img",{src:e.icon,loading:"lazy",width:"32px"})))))))))};var on="_8fd7YMs",nn="DomiQfw",ln="-b2qnfL";const rn=({message:e,buttonTxt:t,imgSrc:a,onBtnClick:n})=>{const{siteType:l,isMarryBaby:r}=i(Zo);return o.createElement("div",{className:on},o.createElement("div",{className:nn},o.createElement("img",{src:a||I.getAssetPath(r?"comments-mb.svg":"comments.svg")})),e&&o.createElement("div",{className:ln},e),t&&o.createElement(v,{size:"md",theme:l,color:"secondary",onClick:n},t))};var sn={container:"GYUElSy",question:"_3C6QpT1",questionTitle:"_9M9VYL6",community:"_1RuSyv3",questionCard:"_1IG-eEp"};const cn=({post:e,className:t=""})=>{var a,n,l,r,s,c,d,m;const{t:p}=w(),{data:{userInfo:u,env:{togetherBasePath:g}}}=i(S),{authActionWrapper:h,authorProps:f,isMarryBaby:b}=i(Zo),x=`${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:`${sn.container} ${t}`},o.createElement("div",{className:sn.header},o.createElement("div",{className:sn.question},p("profilePanel.question")," ",o.createElement("span",{className:sn.questionTitle,style:{color:b?y.mbColors.pink:y.colors.primaryBase},onClick:()=>{(null==u?void 0:u.id)||null==h||h((()=>window.location.href=x))}},"#",null==e?void 0:e.title)),o.createElement("div",{className:sn.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:sn.questionCard},o.createElement(aa,Object.assign({className:"card-author"},f,{role:"user",avatarIcon:o.createElement(mt,null),subLine:o.createElement(aa.SubTextRow,null,o.createElement(aa.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(vo,{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(v,{theme:b?"marryBaby":"helloSites",size:"md",color:"secondary",onClick:()=>{(null==u?void 0:u.id)?window.location.href=x:null==h||h((()=>window.location.href=x))}},p("profilePanel.anserwing.viewFull")))};var dn="MrdoES3";const mn=({id:t})=>{const{t:a}=w(),{data:{locale:n}}=i(S),{authorProps:r}=i(Zo),[c,d]=l(null),[m,p]=l(!1);return s((()=>{t&&e(void 0,void 0,void 0,(function*(){var e;p(!0);const a=yield z(j(B.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(ie);d(o),p(!1)}))}),[]),o.createElement("div",{className:dn},m?o.createElement(Uo,null):null!==c&&(c.length>0?c.map((e=>o.createElement(cn,{className:"post-card",key:e.id,post:e}))):o.createElement(rn,{message:a("profilePanel.emptyPostMess.content",{name:(null==r?void 0:r.name)||(null==r?void 0:r.username)})})))},pn=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}))};pn.defaultProps={size:24,color:y.colors.gray600};var un="KsWg8i6",gn="_9tS0EUN",hn="kyyRKlb",vn="-Uqqka-";const fn=a=>{var{post:n,onSkip:r,siteType:s,btnText:c}=a,m=t(a,["post","onSkip","siteType","btnText"]);const{t:p}=w(),{data:{locale:u},action:{pushNotifications:g}}=i(S),[f,b]=l(!1),[x,C]=l(!1),E=d((()=>e(void 0,void 0,void 0,(function*(){var e;C(!0);const t=yield Q(j(B.USER.SKIP_QUESTION,{_locale:u,id:null==n?void 0:n.id}),"PUT");1===(null==t?void 0:t.status)?(null==r||r({id:(null==n?void 0:n.id)||"",communityId:(null===(e=null==n?void 0:n.community)||void 0===e?void 0:e.id)||""}),b(!1),g({title:"",message:"Skip success",type:"success"})):g({title:"",message:null==t?void 0:t.messages,type:"danger"}),C(!1)}))),[]);return o.createElement(h,{width:327,withArrow:!0,shadow:"md",opened:f},o.createElement(h.Target,null,o.createElement("div",Object.assign({className:`${un} ${(null==m?void 0:m.className)||""}`,onClick:()=>b(!0)},m),c||p("profilePanel.questionNotClear"))),o.createElement(h.Dropdown,null,o.createElement("div",null,o.createElement("div",{className:gn},p("profilePanel.skipQuestion.heading")),o.createElement("div",{className:hn},p("profilePanel.skipQuestion.content")),o.createElement("div",{className:vn},o.createElement(v,{theme:s,size:"md",color:"secondary",icon:o.createElement(ke,{color:y.colors.primaryBase,size:24}),onClick:()=>b(!1)}),o.createElement(v,{theme:s,size:"md",icon:o.createElement(Ne,{color:"white",size:24}),onClick:E,isLoading:x})))))};var bn="toEutn7",wn="drdisHs",xn="HNlhOdx";const yn=e=>{var a,n,l,r,{post:s,onSkip:c}=e,d=t(e,["post","onSkip"]);const{data:{env:{togetherBasePath:m}}}=i(S),{showSkipQuestionTag:p}=i(Zo);return o.createElement(o.Fragment,null,o.createElement("div",Object.assign({},d,{className:`${bn} ${(null==d?void 0:d.className)||""}`}),o.createElement(aa,{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(aa.SubTextRow,null,o.createElement(aa.SubText,null,null==s?void 0:s.createdTime))}),o.createElement("a",{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:wn,rel:"noreferrer"},null==s?void 0:s.title),p&&o.createElement(fn,{className:xn,post:s,onSkip:c})))};var Cn={accordion:"I-uIJ6E",header:"_41WRsj2",heading:"AcOGL93",headingIcon:"JD3dWJN",panel:"dKAgnS8",chevron:"L2Q9T6m"};const En=()=>{var t,a;const{t:n}=w(),{data:{locale:r,userInfo:c}}=i(S),{onSkipQuestion:d,countValues:m,setCountValues:p}=i(Zo),[u,h]=l(),[v,f]=l([]),[b,x]=l(!1),C=null==c?void 0:c.id;s((()=>{C&&e(void 0,void 0,void 0,(function*(){var e;x(!0);const t=yield Q(j(B.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(ie),delete e.question,a.push(se(e))})),f(a),h(o),x(!1)}))}),[]);const E=({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)),h(a),p(Object.assign(Object.assign({},m),{total_question:o})),null==d||d(o)}};return o.createElement("div",{className:Cn.container},b?o.createElement(Uo,null):(null==m?void 0:m.total_question)>0?v.length>0&&o.createElement(g,{className:Cn.accordion,defaultValue:String((null===(a=v[null===(t=Object.keys(v))||void 0===t?void 0:t[0]])||void 0===a?void 0:a.id)||""),styles:{control:{padding:"16px",border:`1px solid ${y.colors.neutral100}`,borderTopLeftRadius:"8px",borderTopRightRadius:"8px",'&[aria-expanded="false"]':{borderBottom:0}},chevron:{width:"32px",height:"32px"},content:{padding:0,border:`1px solid ${y.colors.neutral100}`,borderTop:0,borderBottom:0},item:{marginBottom:"16px"}},chevron:o.createElement("div",{className:Cn.chevron},o.createElement(pn,{color:y.colors.gray600,size:20}))},v.map((e=>{const t=u&&(null==u?void 0:u[e.id])||[];return t.length>0&&o.createElement(g.Item,{key:e.id,value:String(e.id)},o.createElement(g.Control,null,o.createElement("div",{className:Cn.header},o.createElement("div",{className:Cn.headingIcon},o.createElement("img",{src:e.thumbnail})),o.createElement("div",{className:Cn.heading},e.name))),o.createElement(g.Panel,null,o.createElement("div",{className:Cn.body},t.map((e=>o.createElement(yn,{className:"question-card",key:e.id,post:e,onSkip:E}))))))}))):o.createElement(rn,{message:n("profilePanel.emptyCareMess.content"),imgSrc:I.getAssetPath("questions.svg")}))};var kn="GA-zc-O",Nn="A18McWD",An="IB049vj",Ln="_8I--vEV";const Tn=({post:e,className:t=""})=>{var a;const{data:{userInfo:n,env:{togetherBasePath:l}}}=i(S),{authActionWrapper:r,authorProps:s}=i(Zo),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:`${kn} ${t}`},o.createElement("div",{className:An},o.createElement("a",{className:Ln,href:c,onClick:e=>{(null==n?void 0:n.id)||(e.preventDefault(),null==r||r((()=>window.location.href=c)))}}),o.createElement(Et,{className:"card-author",avatarProps:{avatar:null==s?void 0:s.avatar,size:32}},o.createElement(aa.MainText,{className:Nn},null==e?void 0:e.title),o.createElement(aa.SubTextRow,null,o.createElement(aa.SubText,null,null==e?void 0:e.createdTime))),o.createElement(vo,{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 In="TSMHoEM";const Sn=()=>{const{t:t}=w(),{data:{locale:a}}=i(S),{authorId:n,authorProps:r,isAuthorLogin:c,onCloseFromPost:d}=i(Zo),[m,p]=l(null),[u,g]=l(!1);return s((()=>{n&&e(void 0,void 0,void 0,(function*(){var e;g(!0);const t=yield z(j(B.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(ie);p(o),g(!1)}))}),[n]),o.createElement("div",{className:In},u?o.createElement(Uo,null):null!==m&&(m.length>0?m.map((e=>o.createElement(Tn,{className:"post-card",key:e.id,post:e}))):o.createElement(rn,{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 Pn="_4Vekw96",Mn="DIJdGcB",zn="aQSt4-Q";const jn=e=>e?{title:null==e?void 0:e.title,organization:null==e?void 0:e.organization,duration:e.duration}:{},Bn=e=>e?{completedYear:null==e?void 0:e.completed_year,schoolName:e.school_name,study:e.study}:{};var Fn,On;!function(e){e[e.About=0]="About",e[e.Care=1]="Care",e[e.Answer=2]="Answer",e[e.Posts=3]="Posts"}(Fn||(Fn={})),function(e){e[e.Expert=0]="Expert",e[e.User=1]="User"}(On||(On={}));const Vn=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:x,userInfo:y,env:{isMarryBaby:C}}}=i(S),{t:E}=w(),k=null==c?void 0:c.role,N=null==y?void 0:y.role,A=String(null==c?void 0:c.userId),[L,T]=l(),[I,P]=l(!1),[M,F]=l(),O=(null==y?void 0:y._togetherUserId)===(null==c?void 0:c.userId),V=[...-1!==f.indexOf(k)?[{key:Fn.About,name:E("profilePanel.tabs.highlight"),component:o.createElement(an,{id:A,info:M})}]:[{key:Fn.Posts,name:E("profilePanel.tabs.posts"),component:o.createElement(Sn,null),hasCountResult:!0,keyOfCountApi:"post",keyOfResult:"total_post"}],...g||-1===f.indexOf(N)||(null==y?void 0:y._togetherUserId)!==(null==c?void 0:c.userId)?[]:[{key:Fn.Care,name:`${E("profilePanel.tabs.care")}`,component:o.createElement(En,null),hasCountResult:!0,keyOfCountApi:"question",keyOfResult:"total_question"}],...h||-1===f.indexOf(k)?[]:[{key:Fn.Answer,name:`${E("profilePanel.tabs.expertAnswer")}`,component:o.createElement(mn,{id:A}),hasCountResult:!0,keyOfCountApi:"reply",keyOfResult:"total_reply"}]],[R,D]=l(null),[U,H]=l(null),W={initialTab:U,tabContent:R,onChange:e=>H(e)},Z=null==V?void 0:V.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;P(!0);const c=yield Promise.all([z(j(B.USER.DETAIL,{_locale:x,id:A}),"GET"),...Z.map((e=>z(j(B.USER.COUNT_TABS,{_locale:x,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(jn),relatedPosts:((null===(a=null==m?void 0:m.data)||void 0===a?void 0:a.related_post)||[]).map((e=>ce(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(Bn),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)&&F(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=Z.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!==[Fn.Care,Fn.Posts].indexOf(e.key)?e:void 0})).filter(Boolean).map((e=>e.key)),w=V.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===Fn.About?v&&t:t})).filter(Boolean);D(w),H((()=>{if(!d)return 0;const e=null==w?void 0:w.findIndex((e=>e.key===d));return-1!==e?e:0})()),T(f),P(!1)}))}),[]);const q=null==M?void 0:M.data;return o.createElement(Zo.Provider,{value:{isMarryBaby:C,siteType:C?"marryBaby":"helloSites",authorId:String((null==c?void 0:c.userId)||""),authActionWrapper:m,onSkipQuestion:p,info:M,authorProps:c,onCloseFromPost:u,countValues:L,setCountValues:T,isAuthorLogin:O,showSkipQuestionTag:v}},o.createElement("div",Object.assign({},b,{className:`${Pn} ${(null==b?void 0:b.className)||""}`,"data-is-marrybaby":C}),I?o.createElement(Uo,null):o.createElement(o.Fragment,null,o.createElement(aa,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(aa.SubTextRow,null,(null==q?void 0:q.specialty)&&o.createElement(o.Fragment,null,o.createElement(aa.SubText,null,null==q?void 0:q.specialty),o.createElement(aa.SubDivider,null)),o.createElement(aa.SubText,null,null==q?void 0:q.organisation)):(null==q?void 0:q.created_at)&&o.createElement(aa.SubTextRow,null,o.createElement(aa.SubText,null,E("profilePanel.joined")," ",Le(null==q?void 0:q.created_at).toNow(!0)))})),"expert"===k&&o.createElement("div",{className:Mn,dangerouslySetInnerHTML:{__html:null===(n=null==M?void 0:M.data)||void 0===n?void 0:n.description}}),null!==R&&null!==U&&(R.length>0?o.createElement("div",{className:zn},o.createElement(ae,Object.assign({},W,{className:"feature-tabs"})),null===(r=null==R?void 0:R[U])||void 0===r?void 0:r.component):o.createElement(rn,{message:E("profilePanel.emptyPostMess.content",{name:(null==c?void 0:c.name)||(null==c?void 0:c.username)||""})})))))};var Rn=Object.freeze({__proto__:null,get TabName(){return Fn},get UserType(){return On},TabDataInit:{experiences:[],relatedPosts:[],educations:[],awards:[],contact:{},data:{}},ProfileDetail:Vn}),Dn="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",Un="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",Hn="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 Wn=({onDeleteComment:t,commentId:a,className:n="",popoverClassName:r=""})=>{const{data:{env:{isMarryBaby:s},locale:c},action:{pushNotifications:d}}=i(S),{t:m}=w(),[p,u]=l(!1),{authActionWrapper:g}=Be();return o.createElement("div",{className:n,onClick:e=>{e.preventDefault(),e.stopPropagation()}},p&&o.createElement(ao,{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})=>Q(j(B.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(rt,{position:"bottom",align:"end",data:{isShowheader:!1,type:"list",list:[{icon:Hn,label:m("actionPopover.delete"),onClick:()=>{g((()=>{u(!0)}))}}]},className:r,toggleButtonContent:o.createElement("img",{src:s?Dn:Un}),buttonProps:{}}))},Zn=xe.a`
2683
2683
  padding: 12px 0;
2684
2684
  display: flex;
2685
2685
  flex-direction: column;
@@ -2934,7 +2934,7 @@ import{a as e,_ as t}from"./tslib.es6-d8037a1a.js";import*as a from"react";impor
2934
2934
  `,ri=xe(ii)`
2935
2935
  margin-top: 12px;
2936
2936
  padding: 0.5rem 1rem 1rem;
2937
- `;var si="-dzIuHr";const ci=({userId:e,avatar:t,name:a,role:n,title:i,className:r})=>{const{t:s}=w(),[c,d]=l(!1);return o.createElement(o.Fragment,null,o.createElement(v,{className:`${si} ${r}`,color:"success",size:"xs",onClick:()=>d(!0),style:{padding:"5px 8px",marginBottom:"12px",borderRadius:"4px"}},o.createElement("span",{className:"text"},o.createElement(Ee.Endorse,{isSolid:!0,size:18,color:y.colors.green800,className:"icon"}),s("cardReply.verifyBy",{name:`${a||""}`}))),o.createElement(Kt,{open:c,onClose:()=>d(!1),profileModalProps:{zIndex:1e3}},o.createElement(Vn,{authorProps:{userId:e,avatar:t,name:a,role:n,title:i},hideQuestionTab:!0})))},di=({className:t,style:a,comment:n,type:r="comment",level:d=0,replyingId:m,onPostCommentSuccess:p,post:u,onDeleteComment:g,refetchComment:h,hasQuickBookingEnable:f,handleMakeAppointment:b,cardAuthorProps:x,maxChars:y=600,disableShortenContent:C})=>{var E,k,N,A,L,T,I,P,M,F,O,V;const{data:{locale:U,userInfo:H,env:{isMarryBaby:W}}}=i(S),{t:Z}=w(),[q,G]=l(n||null),{id:_,countReplies:X,countLikes:K,content:$,createdAt:Y,replies:J=[],images:ee=[],author:te,liked:ae,link:ne,mentionedUser:ie,mentions:le}=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:""}})($),{authActionWrapper:ce}=Be({_joinCommunityIds:[null===(E=null==u?void 0:u.community)||void 0===E?void 0:E.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==H?void 0:H.id)&&(null==J?void 0:J.some((e=>e.author.id===H.id))),ue=e=>{G((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==H?void 0:H.email)&&String(null==te?void 0:te.email)===String(null==H?void 0:H.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,Ce=(null==u?void 0:u.isAnonymous)||null==te?void 0:te.role,Ee=[...(null==u?void 0:u.isAnonymous)?[{id:(null===(N=null==u?void 0:u.author)||void 0===N?void 0:N.id)||0,name:Z("cardPost.anonymous")}]:[],...le||[]],[ke,Ne]=l(null),[Ae,Te]=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 z(R(D.GET_HOSPITAL_INFO,{hospital_branch_id:t,website_url:Le[U]}),"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 z(R(D.GET_DOCTOR_INFO,{doctorId:t,website_url:Le[U]}),"get");(null===(e=null==a?void 0:a._data)||void 0===e?void 0:e.doctor)&&Te(null==a?void 0:a._data.doctor)}));t(te.doctorId)}}),[te.hospitalId,te.doctorId]);const Ie=(null==Ae?void 0:Ae.valid_outpatient)||(null==Ae?void 0:Ae.valid_telemedicine),Se=((null==ke?void 0:ke.total_available_service)||(null==ke?void 0:ke.total_available_doctor))>0,Pe=f&&(Ie||Se),Me="chatbot"===(null===(A=null==q?void 0:q.author)||void 0===A?void 0:A.type);return o.createElement(je,{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(li,{className:t,style:a,"data-is-reply":!!d,"data-is-marrybaby":W,"data-has-booking":Pe},"reply"===r&&o.createElement(oe,{className:"top-divider",type:"solid"}),o.createElement("div",{style:{padding:"16px 16px 0"}},o.createElement(aa,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:Ce,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:b,isAnonymous:!!(null==u?void 0:u.isAnonymous),hideBackground:Me,userType:null==te?void 0:te.type},x)),Boolean(null==q?void 0:q.isVerify)&&!Boolean(null==q?void 0:q.isOppose)&&o.createElement(ci,{title:null===(I=null==q?void 0:q.userVerify)||void 0===I?void 0:I.title,name:null===(P=null==q?void 0:q.userVerify)||void 0===P?void 0:P.name,userId:null===(M=null==q?void 0:q.userVerify)||void 0===M?void 0:M.id,role:null===(F=null==q?void 0:q.userVerify)||void 0===F?void 0:F.role,avatar:null===(O=null==q?void 0:q.userVerify)||void 0===O?void 0:O.avatar,className:"verify-tag"})),o.createElement(vo,{className:"post-content-wrapper",replyingTo:se,mentionedUser:ie,description:re,mentions:Ee,maxChars:y,disableShortenContent:C}),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(Oo,{images:ee,authorName:null==te?void 0:te.username})):null,ee&&0!==ee.length||!ne?null:o.createElement("div",{key:"link-preview",className:"link-preview-wrapper","data-is-reply":!0},o.createElement(De,{url:ne})),"most-engaging"!==r?o.createElement(o.Fragment,null,Me&&o.createElement(ri,{listUrl:null==q?void 0:q.source,categorySlug:null==q?void 0:q.categorySlug}),o.createElement(Ye,{type:Ge.reply,loveCount:K,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(_){const t=yield(({commentId:t,setLike:a=!1,locale:o})=>e(void 0,void 0,void 0,(function*(){return Q(j(a?B.COMMENT.LIKE:B.COMMENT.UNLIKE,{_locale:o,id:t}),"GET")})))({commentId:_,setLike:!ae,locale:U});1===t.status&&G((e=>Object.assign(Object.assign({},e),{liked:!ae,countLikes:e.countLikes+(ae?-1:1)})))}}))))}),ge&&o.createElement(io,{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===(V=null==ve?void 0:ve.slice(0,de))||void 0===V?void 0:V.map((e=>o.createElement(di,{key:e.id,comment:e,type:"reply",className:"comment-reply-item",level:d+1,replyingId:_,onPostCommentSuccess:ue,post:u,onDeleteComment:()=>{G((t=>Object.assign(Object.assign({},t),{replies:t.replies.filter((t=>t.id!==e.id)),countReplies:t.countReplies-1})))},handleMakeAppointment:b,hasQuickBookingEnable:f}))),fe>de&&o.createElement(o.Fragment,null,o.createElement(oe,{className:"top-divider",type:"solid"}),o.createElement(v,{className:"more-cmt",size:"lg",color:"ghost",onClick:()=>me((e=>e+4))},Z("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(Wn,{onDeleteComment:g,className:"popover",commentId:q.id})))};var mi="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",pi="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",ui="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 gi=({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(S),{t:b}=w(),[x,y]=l(!1),[C,E]=l(!1),[k,N]=l(!1),{authActionWrapper:A}=Be(),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(co,{url:n,text:null==r?void 0:r.title,onClose:()=>N(!1)}),C&&o.createElement(ao,{thumbnail:I.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)&&!x){y(!0);try{const t=yield(({id:t,locale:a})=>e(void 0,void 0,void 0,(function*(){if(t)return yield Q(j(B.POST.DELETE,{id:t,_locale:a}),"DELETE")})))({id:r.id,locale:u});1===(null==t?void 0:t.status)&&(null==a||a())}catch(e){}y(!1)}})),onClose:()=>E(!1)}),o.createElement(rt,{className:c,toggleButtonContent:o.createElement("img",{src:v?Dn:Un}),position:"bottom",align:"end",buttonProps:{isLoading:x},data:L?{isShowheader:!1,type:"list",list:[{icon:ui,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:Hn,label:b("actionPopover.delete"),onClick:()=>{A((()=>E(!0)))}}]}:{isShowheader:!1,type:"list",list:[{icon:ui,label:b("morePopover.share"),onClick:()=>N(!0)},{icon:(null==r?void 0:r.bookmarked)?mi:pi,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 Q(j(B.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:pi}),m&&m()):f({title:"",message:"Remove failed",type:"danger",displayIcon:pi})}else{const e=yield Q(j(B.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:mi}),d&&d()):f({title:"",message:"Post saved failed",type:"danger",displayIcon:pi})}}))))}},{icon:po,label:b("morePopover.report"),subTree:{title:b("morePopover.report.title"),description:b("morePopover.report.description"),isShowheader:!0,type:"list",list:Object.keys(Y).map((e=>({label:Y[e].label,reason:Y[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(go,{reason:e.reasonValue,reasonText:b(e.reason),postId:null==r?void 0:r.id,onClose:()=>t&&t(!1)})}})))}}]}}))},hi=xe.div`
2937
+ `;var si="-dzIuHr";const ci=({userId:e,avatar:t,name:a,role:n,title:i,className:r})=>{const{t:s}=w(),[c,d]=l(!1);return o.createElement(o.Fragment,null,o.createElement(v,{className:`${si} ${r}`,color:"success",size:"xs",onClick:()=>d(!0),style:{padding:"5px 8px",marginBottom:"12px",borderRadius:"4px"}},o.createElement("span",{className:"text"},o.createElement(Ee.Endorse,{isSolid:!0,size:18,color:y.colors.green800,className:"icon"}),s("cardReply.verifyBy",{name:`${a||""}`}))),o.createElement(Kt,{open:c,onClose:()=>d(!1),profileModalProps:{zIndex:1e3}},o.createElement(Vn,{authorProps:{userId:e,avatar:t,name:a,role:n,title:i},hideQuestionTab:!0})))},di=({className:t,style:a,comment:n,type:r="comment",level:d=0,replyingId:m,onPostCommentSuccess:p,post:u,onDeleteComment:g,refetchComment:h,hasQuickBookingEnable:f,handleMakeAppointment:b,cardAuthorProps:x,maxChars:y=600,disableShortenContent:C})=>{var E,k,N,A,L,T,I,P,M,F,O,V;const{data:{locale:U,userInfo:H,env:{isMarryBaby:W}}}=i(S),{t:Z}=w(),[q,G]=l(n||null),{id:_,countReplies:X,countLikes:K,content:$,createdAt:Y,replies:J=[],images:ee=[],author:te,liked:ae,link:ne,mentionedUser:ie,mentions:le}=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:""}})($),{authActionWrapper:ce}=Be({_joinCommunityIds:[null===(E=null==u?void 0:u.community)||void 0===E?void 0:E.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==H?void 0:H.id)&&(null==J?void 0:J.some((e=>e.author.id===H.id))),ue=e=>{G((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==H?void 0:H.email)&&String(null==te?void 0:te.email)===String(null==H?void 0:H.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,Ce=(null==u?void 0:u.isAnonymous)||null==te?void 0:te.role,Ee=[...(null==u?void 0:u.isAnonymous)?[{id:(null===(N=null==u?void 0:u.author)||void 0===N?void 0:N.id)||0,name:Z("cardPost.anonymous")}]:[],...le||[]],[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 z(R(D.GET_HOSPITAL_INFO,{hospital_branch_id:t,website_url:Te[U]}),"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 z(R(D.GET_DOCTOR_INFO,{doctorId:t,website_url:Te[U]}),"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 Ie=(null==Ae?void 0:Ae.valid_outpatient)||(null==Ae?void 0:Ae.valid_telemedicine),Se=((null==ke?void 0:ke.total_available_service)||(null==ke?void 0:ke.total_available_doctor))>0,Pe=f&&(Ie||Se),Me="chatbot"===(null===(A=null==q?void 0:q.author)||void 0===A?void 0:A.type);return o.createElement(je,{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(li,{className:t,style:a,"data-is-reply":!!d,"data-is-marrybaby":W,"data-has-booking":Pe},"reply"===r&&o.createElement(oe,{className:"top-divider",type:"solid"}),o.createElement("div",{style:{padding:"16px 16px 0"}},o.createElement(aa,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:Ce,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:b,isAnonymous:!!(null==u?void 0:u.isAnonymous),hideBackground:Me,userType:null==te?void 0:te.type},x)),Boolean(null==q?void 0:q.isVerify)&&!Boolean(null==q?void 0:q.isOppose)&&o.createElement(ci,{title:null===(I=null==q?void 0:q.userVerify)||void 0===I?void 0:I.title,name:null===(P=null==q?void 0:q.userVerify)||void 0===P?void 0:P.name,userId:null===(M=null==q?void 0:q.userVerify)||void 0===M?void 0:M.id,role:null===(F=null==q?void 0:q.userVerify)||void 0===F?void 0:F.role,avatar:null===(O=null==q?void 0:q.userVerify)||void 0===O?void 0:O.avatar,className:"verify-tag"})),o.createElement(vo,{className:"post-content-wrapper",replyingTo:se,mentionedUser:ie,description:re,mentions:Ee,maxChars:y,disableShortenContent:C}),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(Oo,{images:ee,authorName:null==te?void 0:te.username})):null,ee&&0!==ee.length||!ne?null:o.createElement("div",{key:"link-preview",className:"link-preview-wrapper","data-is-reply":!0},o.createElement(De,{url:ne})),"most-engaging"!==r?o.createElement(o.Fragment,null,Me&&o.createElement(ri,{listUrl:null==q?void 0:q.source,categorySlug:null==q?void 0:q.categorySlug}),o.createElement(Ye,{type:Ge.reply,loveCount:K,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(_){const t=yield(({commentId:t,setLike:a=!1,locale:o})=>e(void 0,void 0,void 0,(function*(){return Q(j(a?B.COMMENT.LIKE:B.COMMENT.UNLIKE,{_locale:o,id:t}),"GET")})))({commentId:_,setLike:!ae,locale:U});1===t.status&&G((e=>Object.assign(Object.assign({},e),{liked:!ae,countLikes:e.countLikes+(ae?-1:1)})))}}))))}),ge&&o.createElement(io,{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===(V=null==ve?void 0:ve.slice(0,de))||void 0===V?void 0:V.map((e=>o.createElement(di,{key:e.id,comment:e,type:"reply",className:"comment-reply-item",level:d+1,replyingId:_,onPostCommentSuccess:ue,post:u,onDeleteComment:()=>{G((t=>Object.assign(Object.assign({},t),{replies:t.replies.filter((t=>t.id!==e.id)),countReplies:t.countReplies-1})))},handleMakeAppointment:b,hasQuickBookingEnable:f}))),fe>de&&o.createElement(o.Fragment,null,o.createElement(oe,{className:"top-divider",type:"solid"}),o.createElement(v,{className:"more-cmt",size:"lg",color:"ghost",onClick:()=>me((e=>e+4))},Z("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(Wn,{onDeleteComment:g,className:"popover",commentId:q.id})))};var mi="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",pi="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",ui="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 gi=({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(S),{t:b}=w(),[x,y]=l(!1),[C,E]=l(!1),[k,N]=l(!1),{authActionWrapper:A}=Be(),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(co,{url:n,text:null==r?void 0:r.title,onClose:()=>N(!1)}),C&&o.createElement(ao,{thumbnail:I.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)&&!x){y(!0);try{const t=yield(({id:t,locale:a})=>e(void 0,void 0,void 0,(function*(){if(t)return yield Q(j(B.POST.DELETE,{id:t,_locale:a}),"DELETE")})))({id:r.id,locale:u});1===(null==t?void 0:t.status)&&(null==a||a())}catch(e){}y(!1)}})),onClose:()=>E(!1)}),o.createElement(rt,{className:c,toggleButtonContent:o.createElement("img",{src:v?Dn:Un}),position:"bottom",align:"end",buttonProps:{isLoading:x},data:L?{isShowheader:!1,type:"list",list:[{icon:ui,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:Hn,label:b("actionPopover.delete"),onClick:()=>{A((()=>E(!0)))}}]}:{isShowheader:!1,type:"list",list:[{icon:ui,label:b("morePopover.share"),onClick:()=>N(!0)},{icon:(null==r?void 0:r.bookmarked)?mi:pi,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 Q(j(B.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:pi}),m&&m()):f({title:"",message:"Remove failed",type:"danger",displayIcon:pi})}else{const e=yield Q(j(B.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:mi}),d&&d()):f({title:"",message:"Post saved failed",type:"danger",displayIcon:pi})}}))))}},{icon:po,label:b("morePopover.report"),subTree:{title:b("morePopover.report.title"),description:b("morePopover.report.description"),isShowheader:!0,type:"list",list:Object.keys(Y).map((e=>({label:Y[e].label,reason:Y[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(go,{reason:e.reasonValue,reasonText:b(e.reason),postId:null==r?void 0:r.id,onClose:()=>t&&t(!1)})}})))}}]}}))},hi=xe.div`
2938
2938
  position: relative;
2939
2939
  margin-bottom: 24px;
2940
2940
  background: white;
@@ -1 +1 @@
1
- export{a as BabyGrowthChartDuration,B as BabyGrowthChartType,b as BabyGrowthResultTab,G as Gender,L as LOCALE}from"./Locale-0bac887d.js";
1
+ export{a as BabyGrowthChartDuration,B as BabyGrowthChartType,b as BabyGrowthResultTab,G as Gender,L as LOCALE}from"./Locale-0d80aa32.js";
@@ -0,0 +1 @@
1
+ import{a as o}from"./tslib.es6-0162b9b0.js";import{useState as t,useEffect as i,useCallback as a}from"react";import{a as e}from"./getDynamicHealthTool-d60dea5c.js";const l=l=>{const[n,r]=t([]);i((()=>{o(void 0,void 0,void 0,(function*(){const o=yield e(l);r(o)}))}),[e,l]);const s=a((o=>{var t;return(null===(t=n.find((t=>t.template===o)))||void 0===t?void 0:t.link)||""}),[n]);return{allTools:n,getHealthToolLink:s}};export{l as u};
@@ -1 +1 @@
1
- import{a as e}from"./tslib.es6-d8037a1a.js";import{useRef as t,useEffect as n,useState as r,useCallback as i}from"react";import{g as o}from"./cookieHelper-c31f3870.js";import{u as a}from"./useUniqueId-8a9c20ea.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-0162b9b0.js";import{useRef as t,useEffect as n,useState as r,useCallback as i}from"react";import{g as o}from"./cookieHelper-20a76375.js";import{u as a}from"./useUniqueId-10476383.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{useContext as o,useMemo as a}from"react";import{T as e,d as r}from"./translationsContext-e145f09f.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};
1
+ import{useContext as o,useMemo as a}from"react";import{T as e,d as r}from"./translationsContext-60ea7170.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};
package/build/footer.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("./index-1a72d2c6.js"),a=require("./index-414bbf33.js"),l=require("./index-e39e19b6.js"),n=require("./index-15930b05.js"),o=require("./theme-150c2e5b.js"),r=require("./useTranslations-49f91025.js"),i=require("./index-7bdfc4ca.js"),d=require("./index-6bb7c07c.js");function c(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}require("./tslib.es6-d5a85038.js"),require("./utils-8ad5cd46.js"),require("styled-components"),require("./gAssets.js"),require("./isProduction-443c6670.js"),require("./Locale-895e9c58.js"),require("./translationsContext-2f751431.js"),require("string-format"),require("./index.styled-e09774b3.js");var s=c(e),u="Lj0qoTD",m="OO-qFWT";const v=({url:e,isMobile:t,dataEventCategory:a,dataEventAction:l,dataEventLabel:n})=>s.default.createElement("div",{className:m,"data-is-mobile":t},s.default.createElement("img",{loading:"lazy",className:"country-flag",src:e,alt:"Country Flag","data-event-category":a,"data-event-action":l,"data-content-label":n})),f=({className:e,type:i="main",footerInfo:d,isMobile:c,locale:m})=>{var f,y,E,g,b,p,N,h,k,x,T,F,$,z,q,C,L,j,M,w,B,_,A,H,I,G,S,D;const{t:O}=r.useTranslations(),P=null==d?void 0:d.menu,J=(null===(y=null===(f=null==d?void 0:d.general)||void 0===f?void 0:f.verified)||void 0===y?void 0:y.filter(Boolean))||[];return s.default.createElement("footer",{className:`${u} ${e||""}`,style:"mini"===i?{backgroundColor:o.theme.colors.neutral50}:{}},s.default.createElement(a.Container,null,s.default.createElement("div",{className:"inner","data-type":i},"main"===i?s.default.createElement(s.default.Fragment,null,s.default.createElement("a",{href:"/"},s.default.createElement("img",{loading:"lazy",className:"footer-logo",src:null===(E=null==d?void 0:d.general)||void 0===E?void 0:E.logo,alt:"Logo","data-is-sehat":"id-ID"===m})),s.default.createElement("div",{className:"columns"},s.default.createElement("div",{className:"newsletter"},s.default.createElement(l.Text,{size:"p1",type:"bold"},null===(g=null==d?void 0:d.general)||void 0===g?void 0:g.content),s.default.createElement(t.Button,{className:"signupButton",color:"primary",size:"lg"},O("footer.signUp")),s.default.createElement("div",{className:"social"},s.default.createElement(l.Text,{size:"sm",type:"regular"},null===(b=null==d?void 0:d.social)||void 0===b?void 0:b.title),s.default.createElement("div",{className:"icons"},null===(N=null===(p=null==d?void 0:d.social)||void 0===p?void 0:p.socials)||void 0===N?void 0:N.map(((e,t)=>s.default.createElement("a",{key:t,"data-event-category":"Footer","data-event-action":`Follow us - ${e.name}`,"data-content-label":e.url,href:e.url},s.default.createElement("img",{loading:"lazy","data-event-category":"Footer","data-event-action":`Follow us - ${e.name}`,"data-content-label":e.url,src:e.icon,alt:"Logo Social",className:"social-icon"}))))),s.default.createElement("hr",{className:"hrMobile"}))),s.default.createElement("div",null,P&&s.default.createElement(s.default.Fragment,null,s.default.createElement("div",{className:"biglinks"},null===(k=null===(h=P[0])||void 0===h?void 0:h.items)||void 0===k?void 0:k.map(((e,t)=>s.default.createElement("a",{"data-event-category":"Footer","data-event-action":e.title,"data-event-label":`https://${n.domainLocales[m]}${e.url}`,className:"bigLink",key:t,href:e.url},e.title)))),s.default.createElement("hr",{className:"hrMobile"}),s.default.createElement("div",{className:"mHalf"},s.default.createElement(l.Text,{type:"regular",size:"sm",className:"linkTitle"},null===(x=P[1])||void 0===x?void 0:x.menu_title),null===(F=null===(T=P[1])||void 0===T?void 0:T.items)||void 0===F?void 0:F.map(((e,t)=>s.default.createElement("a",{"data-event-category":"Footer","data-event-action":e.title,"data-event-label":`https://${n.domainLocales[m]}${e.url}`,className:"link",href:e.url,key:t},s.default.createElement(l.Text,{size:"sm",type:"regular",dataEventCategory:"Footer",dataEventAction:e.title,dataEventLabel:`https://${n.domainLocales[m]}${e.url}`},e.title))))),s.default.createElement("div",{className:"mHalf"},s.default.createElement(l.Text,{type:"regular",size:"sm",className:"linkTitle"},null===($=P[2])||void 0===$?void 0:$.menu_title),null===(q=null===(z=P[2])||void 0===z?void 0:z.items)||void 0===q?void 0:q.map(((e,t)=>e.url&&s.default.createElement("a",{"data-event-category":"Footer","data-event-action":e.title,"data-event-label":e.url,className:"link",href:e.url,key:t},s.default.createElement(l.Text,{size:"sm",type:"regular",dataEventCategory:"Footer",dataEventAction:e.title,dataEventLabel:e.url},e.title)))))),s.default.createElement("hr",{className:"hrMobile"}),s.default.createElement("div",{className:"otherSites"},s.default.createElement(l.Text,{type:"regular",size:"sm",className:"linkTitle"},null===(C=null==d?void 0:d.branch)||void 0===C?void 0:C.title),s.default.createElement("div",{className:"flags"},null===(j=null===(L=null==d?void 0:d.branch)||void 0===L?void 0:L.branch)||void 0===j?void 0:j.map(((e,t)=>s.default.createElement("a",{className:"link",href:e.url,key:t,"data-event-category":"Footer","data-event-action":e.name,"data-event-label":e.url},s.default.createElement(v,{url:e.flag,isMobile:c,dataEventCategory:"Footer",dataEventAction:e.name,dataEventLabel:e.url})))))))),s.default.createElement("hr",null),s.default.createElement("div",{className:"copyright"},s.default.createElement("div",{className:"copyright-image-wrapper"},J.length?J.map(((e,t)=>s.default.createElement("a",{href:e.url,key:t,className:"copyright-image"},s.default.createElement("img",{loading:"lazy",src:e.image,alt:"DMCA Icon"})))):null),s.default.createElement(l.Text,{size:"xs",type:"regular",className:"copyright-content"},null===(M=null==d?void 0:d.general)||void 0===M?void 0:M.copyright)),"vi-VN"===m&&s.default.createElement(l.Text,{className:"copyright-certificate",size:"xs",type:"regular",color:"white"},"Giấy xác nhận cung cấp dịch vụ mạng xã hội trực tuyến số 529/GP-BTTTT, HN ngày 03/12/2019")):s.default.createElement(s.default.Fragment,null,(null==d?void 0:d.menu)&&s.default.createElement("div",{className:"columns"},s.default.createElement("div",{className:"mHalf"},s.default.createElement(l.Text,{type:"regular",size:"sm",className:"linkTitle"},null===(w=null==d?void 0:d.menu[1])||void 0===w?void 0:w.menu_title),null===(_=null===(B=null==d?void 0:d.menu[1])||void 0===B?void 0:B.items)||void 0===_?void 0:_.map((e=>s.default.createElement("a",{className:"link",href:e.url,key:e.title,"data-list-type":"Footer","data-content-type":"Navigate","data-content-topic":"Information","data-content-title":e.title,"data-content-id":`https://${n.domainLocales[m]}${e.url}`,"data-event-category":"Footer","data-event-action":e.title,"data-event-label":`https://${n.domainLocales[m]}${e.url}`},s.default.createElement(l.Text,{dataEventCategory:"Footer",dataEventAction:e.title,dataEventLabel:`https://${n.domainLocales[m]}${e.url}`,size:"sm",type:"regular",style:{color:o.theme.colors.gray800}},e.title))))),s.default.createElement("div",{className:"mHalf"},s.default.createElement(l.Text,{type:"regular",size:"sm",className:"linkTitle"},null===(A=null==d?void 0:d.menu[2])||void 0===A?void 0:A.menu_title),null===(I=null===(H=null==d?void 0:d.menu[2])||void 0===H?void 0:H.items)||void 0===I?void 0:I.map(((e,t)=>s.default.createElement("a",{className:"link",href:e.url,key:t,"data-list-type":"Footer","data-content-type":"Navigate","data-content-topic":"Hello Health","data-content-title":e.title,"data-content-id":e.url,"data-event-category":"Footer","data-event-action":e.title,"data-event-label":e.url},s.default.createElement(l.Text,{size:"sm",type:"regular",style:{color:o.theme.colors.gray800},dataEventCategory:"Footer",dataEventAction:e.title,dataEventLabel:e.url},e.title))))),"mini"!==i&&s.default.createElement("hr",{className:"hrMobile"}),s.default.createElement("div",{className:"newsletter"},s.default.createElement("div",{className:"social"},s.default.createElement(l.Text,{size:"sm",type:"regular"},null===(G=null==d?void 0:d.social)||void 0===G?void 0:G.title),s.default.createElement("div",{className:"icons"},null===(D=null===(S=null==d?void 0:d.social)||void 0===S?void 0:S.socials)||void 0===D?void 0:D.map(((e,t)=>s.default.createElement("a",{key:t,"data-event-category":"Footer","data-event-action":`Follow us - ${e.name}`,"data-content-label":e.url,href:e.url},s.default.createElement("img",{"data-event-category":"Footer","data-event-action":`Follow us - ${e.name}`,"data-content-label":e.url,src:e.icon,alt:"Logo Social",loading:"lazy",className:"social-icon"}))))))))))))};var y="B6-KmWK",E="GS-7mbG",g="qc5bEb3",b="CQGVeuT",p="_6JMoel-",N="_8eUT8Jr",h="cjDwoLi";const k=({logoType:e="marryBaby",footerMenu:t,background:l})=>{var n;if(!t)return null;const{general:r,menu:c,socials:u}=t;return s.default.createElement("footer",{className:y,style:{backgroundColor:l||"none"}},s.default.createElement("div",{className:h},s.default.createElement(a.Container,null,s.default.createElement("div",{className:E},null==c?void 0:c.map((({menu_title:e,items:t},a)=>s.default.createElement("div",{className:g,key:`mbf${a}`},s.default.createElement(d.MarryBabyText,{className:"title",type:"subtitle-1",color:o.theme.mbColors.pink},e),null==t?void 0:t.map((({title:e,url:t},a)=>s.default.createElement("a",{"data-event-category":"Footer","data-event-action":"Click","data-event-label":`${t}`,className:"link",href:t,key:`footer-links-${a}`},s.default.createElement("div",{className:b,key:`mbitem${a}`},s.default.createElement(d.MarryBabyText,{type:"bodytext-2",color:o.theme.mbColors.gray},e)))))))))),s.default.createElement(a.Container,null,s.default.createElement("div",{className:p},s.default.createElement(i.Logo,{className:"logo",type:e}),s.default.createElement("div",{className:"content"},s.default.createElement(d.MarryBabyText,{type:"bodytext-2",color:o.theme.mbColors.gray},null==r?void 0:r.content)),s.default.createElement("div",{className:"social-link"},null==u?void 0:u.map((({icon:e,name:t,url:a},l)=>s.default.createElement("a",{key:`social${l}`,target:"_blank",rel:"noreferrer","data-event-category":"Footer","data-event-action":`Follow us - ${t}`,"data-content-label":t,href:a},s.default.createElement("img",{loading:"lazy",src:e,alt:t}))))))),s.default.createElement("div",{className:N},s.default.createElement(a.Container,null,s.default.createElement("div",{className:"content"},s.default.createElement(d.MarryBabyText,{type:"bodytext-3",color:o.theme.colors.white},null==r?void 0:r.copyright),s.default.createElement("div",{className:"verify"},null===(n=null==r?void 0:r.verified)||void 0===n?void 0:n.map((({image:e,url:t},a)=>s.default.createElement("img",{loading:"lazy",key:`imgMbFt${a}`,src:e,alt:t})))))))))};exports.Footer=({type:e,isMobile:t=!0,locale:a,footerInfo:l,siteType:n,background:o})=>"helloSites"===n?s.default.createElement(f,{isMobile:t,type:e,locale:a,footerInfo:l||{}}):s.default.createElement(k,{footerMenu:l,background:o});
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("./index-128a6789.js"),a=require("./index-1e892386.js"),l=require("./index-b6efb8fb.js"),n=require("./index-522ced61.js"),o=require("./theme-dfe443d6.js"),r=require("./useTranslations-82cb6000.js"),i=require("./index-4e824542.js"),d=require("./index-43171e19.js");function c(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}require("./tslib.es6-d7a88a93.js"),require("./utils-17648495.js"),require("styled-components"),require("./gAssets.js"),require("./isProduction-0dffc430.js"),require("./Locale-efa66a0f.js"),require("./translationsContext-81fe8793.js"),require("string-format"),require("./index.styled-a46cbe49.js");var s=c(e),u="Lj0qoTD",m="OO-qFWT";const v=({url:e,isMobile:t,dataEventCategory:a,dataEventAction:l,dataEventLabel:n})=>s.default.createElement("div",{className:m,"data-is-mobile":t},s.default.createElement("img",{loading:"lazy",className:"country-flag",src:e,alt:"Country Flag","data-event-category":a,"data-event-action":l,"data-content-label":n})),f=({className:e,type:i="main",footerInfo:d,isMobile:c,locale:m})=>{var f,y,E,g,p,b,N,h,k,x,T,F,$,z,q,C,L,j,M,w,B,_,A,H,I,G,S,D;const{t:O}=r.useTranslations(),P=null==d?void 0:d.menu,J=(null===(y=null===(f=null==d?void 0:d.general)||void 0===f?void 0:f.verified)||void 0===y?void 0:y.filter(Boolean))||[];return s.default.createElement("footer",{className:`${u} ${e||""}`,style:"mini"===i?{backgroundColor:o.theme.colors.neutral50}:{}},s.default.createElement(a.Container,null,s.default.createElement("div",{className:"inner","data-type":i},"main"===i?s.default.createElement(s.default.Fragment,null,s.default.createElement("a",{href:"/"},s.default.createElement("img",{loading:"lazy",className:"footer-logo",src:null===(E=null==d?void 0:d.general)||void 0===E?void 0:E.logo,alt:"Logo","data-is-sehat":"id-ID"===m})),s.default.createElement("div",{className:"columns"},s.default.createElement("div",{className:"newsletter"},s.default.createElement(l.Text,{size:"p1",type:"bold"},null===(g=null==d?void 0:d.general)||void 0===g?void 0:g.content),s.default.createElement(t.Button,{className:"signupButton",color:"primary",size:"lg"},O("footer.signUp")),s.default.createElement("div",{className:"social"},s.default.createElement(l.Text,{size:"sm",type:"regular"},null===(p=null==d?void 0:d.social)||void 0===p?void 0:p.title),s.default.createElement("div",{className:"icons"},null===(N=null===(b=null==d?void 0:d.social)||void 0===b?void 0:b.socials)||void 0===N?void 0:N.map(((e,t)=>s.default.createElement("a",{key:t,"data-event-category":"Footer","data-event-action":`Follow us - ${e.name}`,"data-content-label":e.url,href:e.url},s.default.createElement("img",{loading:"lazy","data-event-category":"Footer","data-event-action":`Follow us - ${e.name}`,"data-content-label":e.url,src:e.icon,alt:"Logo Social",className:"social-icon"}))))),s.default.createElement("hr",{className:"hrMobile"}))),s.default.createElement("div",null,P&&s.default.createElement(s.default.Fragment,null,s.default.createElement("div",{className:"biglinks"},null===(k=null===(h=P[0])||void 0===h?void 0:h.items)||void 0===k?void 0:k.map(((e,t)=>s.default.createElement("a",{"data-event-category":"Footer","data-event-action":e.title,"data-event-label":`https://${n.domainLocales[m]}${e.url}`,className:"bigLink",key:t,href:e.url},e.title)))),s.default.createElement("hr",{className:"hrMobile"}),s.default.createElement("div",{className:"mHalf"},s.default.createElement(l.Text,{type:"regular",size:"sm",className:"linkTitle"},null===(x=P[1])||void 0===x?void 0:x.menu_title),null===(F=null===(T=P[1])||void 0===T?void 0:T.items)||void 0===F?void 0:F.map(((e,t)=>s.default.createElement("a",{"data-event-category":"Footer","data-event-action":e.title,"data-event-label":`https://${n.domainLocales[m]}${e.url}`,className:"link",href:e.url,key:t},s.default.createElement(l.Text,{size:"sm",type:"regular",dataEventCategory:"Footer",dataEventAction:e.title,dataEventLabel:`https://${n.domainLocales[m]}${e.url}`},e.title))))),s.default.createElement("div",{className:"mHalf"},s.default.createElement(l.Text,{type:"regular",size:"sm",className:"linkTitle"},null===($=P[2])||void 0===$?void 0:$.menu_title),null===(q=null===(z=P[2])||void 0===z?void 0:z.items)||void 0===q?void 0:q.map(((e,t)=>e.url&&s.default.createElement("a",{"data-event-category":"Footer","data-event-action":e.title,"data-event-label":e.url,className:"link",href:e.url,key:t},s.default.createElement(l.Text,{size:"sm",type:"regular",dataEventCategory:"Footer",dataEventAction:e.title,dataEventLabel:e.url},e.title)))))),s.default.createElement("hr",{className:"hrMobile"}),s.default.createElement("div",{className:"otherSites"},s.default.createElement(l.Text,{type:"regular",size:"sm",className:"linkTitle"},null===(C=null==d?void 0:d.branch)||void 0===C?void 0:C.title),s.default.createElement("div",{className:"flags"},null===(j=null===(L=null==d?void 0:d.branch)||void 0===L?void 0:L.branch)||void 0===j?void 0:j.map(((e,t)=>s.default.createElement("a",{className:"link",href:e.url,key:t,"data-event-category":"Footer","data-event-action":e.name,"data-event-label":e.url},s.default.createElement(v,{url:e.flag,isMobile:c,dataEventCategory:"Footer",dataEventAction:e.name,dataEventLabel:e.url})))))))),s.default.createElement("hr",null),s.default.createElement("div",{className:"copyright"},s.default.createElement("div",{className:"copyright-image-wrapper"},J.length?J.map(((e,t)=>s.default.createElement("a",{href:e.url,key:t,className:"copyright-image"},s.default.createElement("img",{loading:"lazy",src:e.image,alt:"DMCA Icon"})))):null),s.default.createElement(l.Text,{size:"xs",type:"regular",className:"copyright-content"},null===(M=null==d?void 0:d.general)||void 0===M?void 0:M.copyright)),"vi-VN"===m&&s.default.createElement(l.Text,{className:"copyright-certificate",size:"xs",type:"regular",color:"white"},"Giấy xác nhận cung cấp dịch vụ mạng xã hội trực tuyến số 529/GP-BTTTT, HN ngày 03/12/2019")):s.default.createElement(s.default.Fragment,null,(null==d?void 0:d.menu)&&s.default.createElement("div",{className:"columns"},s.default.createElement("div",{className:"mHalf"},s.default.createElement(l.Text,{type:"regular",size:"sm",className:"linkTitle"},null===(w=null==d?void 0:d.menu[1])||void 0===w?void 0:w.menu_title),null===(_=null===(B=null==d?void 0:d.menu[1])||void 0===B?void 0:B.items)||void 0===_?void 0:_.map((e=>s.default.createElement("a",{className:"link",href:e.url,key:e.title,"data-list-type":"Footer","data-content-type":"Navigate","data-content-topic":"Information","data-content-title":e.title,"data-content-id":`https://${n.domainLocales[m]}${e.url}`,"data-event-category":"Footer","data-event-action":e.title,"data-event-label":`https://${n.domainLocales[m]}${e.url}`},s.default.createElement(l.Text,{dataEventCategory:"Footer",dataEventAction:e.title,dataEventLabel:`https://${n.domainLocales[m]}${e.url}`,size:"sm",type:"regular",style:{color:o.theme.colors.gray800}},e.title))))),s.default.createElement("div",{className:"mHalf"},s.default.createElement(l.Text,{type:"regular",size:"sm",className:"linkTitle"},null===(A=null==d?void 0:d.menu[2])||void 0===A?void 0:A.menu_title),null===(I=null===(H=null==d?void 0:d.menu[2])||void 0===H?void 0:H.items)||void 0===I?void 0:I.map(((e,t)=>s.default.createElement("a",{className:"link",href:e.url,key:t,"data-list-type":"Footer","data-content-type":"Navigate","data-content-topic":"Hello Health","data-content-title":e.title,"data-content-id":e.url,"data-event-category":"Footer","data-event-action":e.title,"data-event-label":e.url},s.default.createElement(l.Text,{size:"sm",type:"regular",style:{color:o.theme.colors.gray800},dataEventCategory:"Footer",dataEventAction:e.title,dataEventLabel:e.url},e.title))))),"mini"!==i&&s.default.createElement("hr",{className:"hrMobile"}),s.default.createElement("div",{className:"newsletter"},s.default.createElement("div",{className:"social"},s.default.createElement(l.Text,{size:"sm",type:"regular"},null===(G=null==d?void 0:d.social)||void 0===G?void 0:G.title),s.default.createElement("div",{className:"icons"},null===(D=null===(S=null==d?void 0:d.social)||void 0===S?void 0:S.socials)||void 0===D?void 0:D.map(((e,t)=>s.default.createElement("a",{key:t,"data-event-category":"Footer","data-event-action":`Follow us - ${e.name}`,"data-content-label":e.url,href:e.url},s.default.createElement("img",{"data-event-category":"Footer","data-event-action":`Follow us - ${e.name}`,"data-content-label":e.url,src:e.icon,alt:"Logo Social",loading:"lazy",className:"social-icon"}))))))))))))};var y="B6-KmWK",E="GS-7mbG",g="qc5bEb3",p="CQGVeuT",b="_6JMoel-",N="_8eUT8Jr",h="cjDwoLi";const k=({logoType:e="marryBaby",footerMenu:t,background:l})=>{var n;if(!t)return null;const{general:r,menu:c,socials:u}=t;return s.default.createElement("footer",{className:y,style:{backgroundColor:l||"none"}},s.default.createElement("div",{className:h},s.default.createElement(a.Container,null,s.default.createElement("div",{className:E},null==c?void 0:c.map((({menu_title:e,items:t},a)=>s.default.createElement("div",{className:g,key:`mbf${a}`},s.default.createElement(d.MarryBabyText,{className:"title",type:"subtitle-1",color:o.theme.mbColors.pink},e),null==t?void 0:t.map((({title:e,url:t},a)=>s.default.createElement("a",{"data-event-category":"Footer","data-event-action":"Click","data-event-label":`${t}`,className:"link",href:t,key:`footer-links-${a}`},s.default.createElement("div",{className:p,key:`mbitem${a}`},s.default.createElement(d.MarryBabyText,{type:"bodytext-2",color:o.theme.mbColors.gray},e)))))))))),s.default.createElement(a.Container,null,s.default.createElement("div",{className:b},s.default.createElement(i.Logo,{className:"logo",type:e}),s.default.createElement("div",{className:"content"},s.default.createElement(d.MarryBabyText,{type:"bodytext-2",color:o.theme.mbColors.gray},null==r?void 0:r.content)),s.default.createElement("div",{className:"social-link"},null==u?void 0:u.map((({icon:e,name:t,url:a},l)=>s.default.createElement("a",{key:`social${l}`,target:"_blank",rel:"noreferrer","data-event-category":"Footer","data-event-action":`Follow us - ${t}`,"data-content-label":t,href:a},s.default.createElement("img",{loading:"lazy",src:e,alt:t}))))))),s.default.createElement("div",{className:N},s.default.createElement(a.Container,null,s.default.createElement("div",{className:"content"},s.default.createElement(d.MarryBabyText,{type:"bodytext-3",color:o.theme.colors.white},null==r?void 0:r.copyright),s.default.createElement("div",{className:"verify"},null===(n=null==r?void 0:r.verified)||void 0===n?void 0:n.map((({image:e,url:t},a)=>s.default.createElement("img",{loading:"lazy",key:`imgMbFt${a}`,src:e,alt:t})))))))))};exports.Footer=({type:e,isMobile:t=!0,locale:a,footerInfo:l,siteType:n,background:o})=>"helloSites"===n?s.default.createElement(f,{isMobile:t,type:e,locale:a,footerInfo:l||{}}):s.default.createElement(k,{footerMenu:l,background:o});
package/build/gAssets.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./index-15930b05.js"),s=require("./isProduction-443c6670.js");require("./Locale-895e9c58.js");const o="hellosehat.com";class t{constructor(){this.baseDomain="",this.subPath="",this.getAssetPath=(e,o,t)=>{const i="https://hhg-common."+[o||this.getBaseDomain(),t||this.subPath,e].join("/");return s.isProduction||process.env.JEST_WORKER_ID?i:i+"?v="+Math.floor((new Date).getTime()/1e3/60/3)}}getBaseDomain(){if(this.baseDomain)return this.baseDomain;if("undefined"!=typeof window){const{host:s}=window.location,t=s.split("."),i=e.domainLocales[Object.keys(e.domainLocales).find((o=>s.includes(e.domainLocales[o])))];return t.includes("localhost")||t.includes("hellohealthgroup")||t.every((e=>{return s=e,!isNaN(parseFloat(s))&&isFinite(s);var s}))||!i?o:i}return o}}const i=new t;i.subPath="common",process.env.NEXT_PUBLIC_DEPLOY_LOCALE&&(i.baseDomain=e.domainLocales[process.env.NEXT_PUBLIC_DEPLOY_LOCALE]),exports.CommonGAssets=i,exports.GAssets=t;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./index-522ced61.js"),s=require("./isProduction-0dffc430.js");require("./Locale-efa66a0f.js");const o="hellosehat.com";class t{constructor(){this.baseDomain="",this.subPath="",this.getAssetPath=(e,o,t)=>{const i="https://hhg-common."+[o||this.getBaseDomain(),t||this.subPath,e].join("/");return s.isProduction||process.env.JEST_WORKER_ID?i:i+"?v="+Math.floor((new Date).getTime()/1e3/60/3)}}getBaseDomain(){if(this.baseDomain)return this.baseDomain;if("undefined"!=typeof window){const{host:s}=window.location,t=s.split("."),i=e.domainLocales[Object.keys(e.domainLocales).find((o=>s.includes(e.domainLocales[o])))];return t.includes("localhost")||t.includes("hellohealthgroup")||t.every((e=>{return s=e,!isNaN(parseFloat(s))&&isFinite(s);var s}))||!i?o:i}return o}}const i=new t;i.subPath="common",process.env.NEXT_PUBLIC_DEPLOY_LOCALE&&(i.baseDomain=e.domainLocales[process.env.NEXT_PUBLIC_DEPLOY_LOCALE]),exports.CommonGAssets=i,exports.GAssets=t;
@@ -1 +1 @@
1
- "use strict";var t=require("./tslib.es6-d5a85038.js"),e=require("./core-5d4bb62a.js"),i=require("./normalizeLink-307d4e7a.js"),o=require("./routing-c6121b5c.js");const l=(t,e)=>{var i,o;if(!t)return{};const l="tl-PH"===e?"/fil":"";return{id:t.id,isSubot:t.is_subot,template:t.template,icon:t.icon,link:(null===(i=t.link)||void 0===i?void 0:i.startsWith("http"))?t.link:`${l}/health-tools`+(null===(o=t.link)||void 0===o?void 0:o.replace(`${l}/`,"/")),subtitle:t.subtitle,title:t.title}},n=e=>t.__awaiter(void 0,void 0,void 0,(function*(){var t,n;try{let a;a="undefined"!=typeof window?window.fetch:yield require("node-fetch");const r="tl-PH"===e?"lang=fil":"";let s=[];try{const d=yield a(i.normalizeLinkSlash(`${o.getDiscoverApiDomain(e)}/wp-json/api/healthtools?ismenu=0${r?"&"+r:""}`)).then((t=>t.json()));s=(null===(n=null===(t=null==d?void 0:d.data)||void 0===t?void 0:t.map)||void 0===n?void 0:n.call(t,(t=>l(t,e))))||[]}catch(t){}return s}catch(t){console.error(t)}}));exports.formatHealthTool=l,exports.getDynamicHealthTool=n,exports.getDynamicHealthToolWithCache=i=>t.__awaiter(void 0,void 0,void 0,(function*(){return(yield e.getDataWithCache("all-health-tools",(()=>n(i||"en-PH")),(t=>!!(null==t?void 0:t.length)),6e4))||[]}));
1
+ "use strict";var t=require("./tslib.es6-d7a88a93.js"),e=require("./core-44b6fd33.js"),i=require("./normalizeLink-a75e2e0f.js"),o=require("./routing-0d2fb020.js");const l=(t,e)=>{var i,o;if(!t)return{};const l="tl-PH"===e?"/fil":"";return{id:t.id,isSubot:t.is_subot,template:t.template,icon:t.icon,link:(null===(i=t.link)||void 0===i?void 0:i.startsWith("http"))?t.link:`${l}/health-tools`+(null===(o=t.link)||void 0===o?void 0:o.replace(`${l}/`,"/")),subtitle:t.subtitle,title:t.title}},n=e=>t.__awaiter(void 0,void 0,void 0,(function*(){var t,n;try{let a;a="undefined"!=typeof window?window.fetch:yield require("node-fetch");const r="tl-PH"===e?"lang=fil":"";let s=[];try{const d=yield a(i.normalizeLinkSlash(`${o.getDiscoverApiDomain(e)}/wp-json/api/healthtools?ismenu=0${r?"&"+r:""}`)).then((t=>t.json()));s=(null===(n=null===(t=null==d?void 0:d.data)||void 0===t?void 0:t.map)||void 0===n?void 0:n.call(t,(t=>l(t,e))))||[]}catch(t){}return s}catch(t){console.error(t)}}));exports.formatHealthTool=l,exports.getDynamicHealthTool=n,exports.getDynamicHealthToolWithCache=i=>t.__awaiter(void 0,void 0,void 0,(function*(){return(yield e.getDataWithCache("all-health-tools",(()=>n(i||"en-PH")),(t=>!!(null==t?void 0:t.length)),6e4))||[]}));
@@ -1 +1 @@
1
- "use strict";var e=require("react"),t=require("./Locale-895e9c58.js"),l=require("./gAssets.js");function C(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var a=C(e);exports.getSocialList=e=>[{icon:a.default.createElement("svg",{width:"33",height:"32",viewBox:"0 0 33 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a.default.createElement("path",{d:"M27.5 0H5.5C2.73858 0 0.5 2.23858 0.5 5V27C0.5 29.7614 2.73858 32 5.5 32H27.5C30.2614 32 32.5 29.7614 32.5 27V5C32.5 2.23858 30.2614 0 27.5 0Z",fill:"#1778F2"}),a.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.814 32V19.499H24.069L24.5 15.19H20.814L20.82 13.034C20.82 11.911 20.92 11.309 22.443 11.309H24.477V7H21.222C17.312 7 15.937 9.09 15.937 12.604V15.191H13.5V19.499H15.937V32H20.814Z",fill:"white"})),name:"Facebook",href:`https://www.facebook.com/sharer/sharer.php?u=${e}`},{icon:a.default.createElement("img",{src:l.CommonGAssets.getAssetPath("zalo-mini.png"),alt:"Zalo",style:{width:32,height:32}}),name:"Zalo",href:`https://sp.zalo.me/share?href=${e}`,allowedLocales:[t.LOCALE.Vietnam]},{icon:a.default.createElement("svg",{width:"33",height:"32",viewBox:"0 0 33 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a.default.createElement("rect",{x:"0.5",width:"32",height:"32",rx:"4",fill:"#1FA1F3"}),a.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.2304 13.2349L16.2708 13.8692L15.5964 13.7916C13.1417 13.4938 10.9972 12.484 9.17631 10.788L8.2861 9.94646L8.05683 10.5679C7.57124 11.9532 7.88149 13.4161 8.89305 14.4001C9.43257 14.9438 9.31116 15.0215 8.38052 14.6978C8.05683 14.5943 7.77357 14.5166 7.74658 14.5554C7.65216 14.646 7.97591 15.8241 8.23218 16.2902C8.58286 16.9376 9.29766 17.5719 10.08 17.9474L10.7409 18.2452L9.9586 18.2581C9.20324 18.2581 9.17631 18.271 9.25723 18.5429C9.52699 19.3844 10.5925 20.2777 11.7794 20.6661L12.6157 20.938L11.8873 21.3523C10.8083 21.9478 9.54049 22.2844 8.2726 22.3103C7.66566 22.3232 7.16663 22.375 7.16663 22.4139C7.16663 22.5433 8.81213 23.2684 9.76976 23.5531C12.6427 24.3947 16.055 24.0322 18.6177 22.5951C20.4385 21.5724 22.2593 19.5398 23.1091 17.5719C23.5677 16.5232 24.0263 14.6072 24.0263 13.688C24.0263 13.0925 24.0667 13.0148 24.822 12.3027C25.2671 11.8885 25.6853 11.4353 25.7662 11.3059C25.901 11.0598 25.8875 11.0598 25.1997 11.28C24.0532 11.6683 23.8913 11.6166 24.4579 11.034C24.876 10.6197 25.375 9.86879 25.375 9.64873C25.375 9.60987 25.1727 9.67458 24.9434 9.79112C24.7006 9.92061 24.1611 10.1148 23.7565 10.2313L23.0281 10.4514L22.3673 10.0241C22.0031 9.79112 21.4905 9.53219 21.2208 9.45452C20.5329 9.27327 19.4809 9.29918 18.8605 9.50628C17.1745 10.0889 16.1089 11.5907 16.2304 13.2349Z",fill:"white"})),name:"Twitter",href:`https://twitter.com/intent/tweet?url=${e}`},{icon:a.default.createElement("svg",{width:"33",height:"32",viewBox:"0 0 33 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a.default.createElement("g",{clipPath:"url(#clip0_687_88944)"},a.default.createElement("path",{d:"M29.5309 0H3.46909C1.82931 0 0.5 1.32931 0.5 2.96909V29.0309C0.5 30.6707 1.82931 32 3.46909 32H29.5309C31.1707 32 32.5 30.6707 32.5 29.0309V2.96909C32.5 1.32931 31.1707 0 29.5309 0Z",fill:"url(#paint0_linear_687_88944)"}),a.default.createElement("path",{d:"M23.5545 8.94548C21.8898 7.2642 19.6792 6.23313 17.3212 6.03825C14.9633 5.84336 12.6134 6.49749 10.6953 7.88265C8.77715 9.2678 7.41716 11.2928 6.86059 13.5924C6.30403 15.8919 6.58753 18.3147 7.65997 20.4237L6.60724 25.5346C6.59632 25.5854 6.59601 25.638 6.60633 25.689C6.61665 25.74 6.63739 25.7883 6.66724 25.8309C6.71097 25.8956 6.77338 25.9454 6.84616 25.9737C6.91893 26.0019 6.99859 26.0073 7.07451 25.9891L12.0836 24.8018C14.1866 25.8471 16.5923 26.1124 18.8725 25.5505C21.1528 24.9885 23.1597 23.6358 24.5362 21.7331C25.9128 19.8303 26.5696 17.5009 26.3898 15.1593C26.21 12.8177 25.2053 10.6158 23.5545 8.94548ZM21.9927 21.4109C20.8409 22.5595 19.3578 23.3176 17.7523 23.5786C16.1468 23.8395 14.4998 23.5901 13.0436 22.8655L12.3454 22.52L9.27451 23.2473L9.2836 23.2091L9.91997 20.1182L9.57815 19.4437C8.83408 17.9823 8.57159 16.323 8.82831 14.7034C9.08502 13.0837 9.84775 11.5869 11.0072 10.4273C12.4642 8.97083 14.4399 8.15263 16.5 8.15263C18.56 8.15263 20.5358 8.97083 21.9927 10.4273C22.0051 10.4415 22.0185 10.4549 22.0327 10.4673C23.4716 11.9275 24.2748 13.8974 24.2673 15.9474C24.2598 17.9974 23.4422 19.9613 21.9927 21.4109Z",fill:"white"}),a.default.createElement("path",{d:"M21.7199 19.1436C21.3436 19.7364 20.749 20.4618 20.0017 20.6418C18.6926 20.9582 16.6836 20.6527 14.1836 18.3218L14.1526 18.2946C11.9545 16.2564 11.3836 14.56 11.5217 13.2146C11.5981 12.4509 12.2345 11.76 12.7708 11.3091C12.8556 11.2367 12.9562 11.1852 13.0645 11.1586C13.1727 11.1321 13.2857 11.1312 13.3944 11.1561C13.503 11.181 13.6044 11.231 13.6903 11.3021C13.7761 11.3732 13.8442 11.4634 13.889 11.5655L14.6981 13.3836C14.7507 13.5015 14.7702 13.6315 14.7545 13.7596C14.7388 13.8878 14.6885 14.0092 14.609 14.1109L14.1999 14.6418C14.1121 14.7515 14.0592 14.8848 14.0478 15.0248C14.0365 15.1648 14.0673 15.305 14.1363 15.4273C14.3654 15.8291 14.9145 16.42 15.5236 16.9673C16.2072 17.5855 16.9654 18.1509 17.4454 18.3436C17.5738 18.3961 17.715 18.4089 17.8508 18.3804C17.9866 18.3519 18.1107 18.2834 18.2072 18.1836L18.6817 17.7055C18.7733 17.6152 18.8872 17.5508 19.0117 17.5188C19.1363 17.4869 19.2671 17.4886 19.3908 17.5236L21.3126 18.0691C21.4187 18.1016 21.5158 18.158 21.5967 18.2338C21.6776 18.3096 21.7401 18.4029 21.7794 18.5066C21.8187 18.6103 21.8338 18.7216 21.8235 18.832C21.8132 18.9424 21.7777 19.049 21.7199 19.1436Z",fill:"white"})),a.default.createElement("defs",null,a.default.createElement("linearGradient",{id:"paint0_linear_687_88944",x1:"16.5",y1:"0.130909",x2:"16.5",y2:"30.4509",gradientUnits:"userSpaceOnUse"},a.default.createElement("stop",{stopColor:"#36F46C"}),a.default.createElement("stop",{offset:"1",stopColor:"#03D749"})),a.default.createElement("clipPath",{id:"clip0_687_88944"},a.default.createElement("rect",{width:"32",height:"32",fill:"white",transform:"translate(0.5)"})))),name:"WhatsApp",href:`https://wa.me/?text=${e}`},{icon:a.default.createElement("svg",{width:"33",height:"32",viewBox:"0 0 33 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a.default.createElement("rect",{x:"0.5",width:"32",height:"32",rx:"4",fill:"#0077B5"}),a.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.3571 9.07077C11.3349 7.97643 10.6126 7.14288 9.43969 7.14288C8.26679 7.14288 7.5 7.97643 7.5 9.07077C7.5 10.1425 8.24415 11 9.39516 11H9.4171C10.6126 11 11.3571 10.1425 11.3571 9.07077ZM11.3571 12.286H7.5V23.8574H11.3571V12.286ZM20.651 12.286C23.4224 12.286 25.5 13.9022 25.5 17.3748L25.4999 23.8571H21.2885V17.8086C21.2885 16.2894 20.6791 15.2526 19.1545 15.2526C17.991 15.2526 17.2979 15.9515 16.9935 16.6265C16.8822 16.8685 16.8548 17.2056 16.8548 17.5435V23.8574H12.6429C12.6429 23.8574 12.6984 13.6127 12.6429 12.5518H16.8548V14.1531C17.4138 13.3834 18.415 12.286 20.651 12.286Z",fill:"white"})),name:"LinkedIn",href:`https://www.linkedin.com/sharing/share-offsite/?url=${e}`},{icon:a.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32px",height:"32px",viewBox:"0 0 32 32",version:"1.1"},a.default.createElement("g",{id:"surface1"},a.default.createElement("path",{fill:"#00cf2e",d:"M 26.398438 32 L 5.601562 32 C 2.507812 32 0 29.492188 0 26.398438 L 0 5.601562 C 0 2.507812 2.507812 0 5.601562 0 L 26.398438 0 C 29.492188 0 32 2.507812 32 5.601562 L 32 26.398438 C 32 29.492188 29.492188 32 26.398438 32 Z M 26.398438 32 "}),a.default.createElement("path",{fill:"#fff",d:"M 28.199219 14.199219 C 28.199219 9.800781 23 5 16.199219 5 C 9.574219 5 4.199219 8.898438 4.199219 14.199219 C 4.199219 19.089844 8.390625 23.128906 14.285156 23.726562 C 14.648438 23.753906 14.980469 23.949219 15.179688 24.253906 C 15.320312 24.476562 15.398438 24.734375 15.398438 25 C 15.386719 25.542969 15.324219 26.082031 15.21875 26.613281 C 15.1875 26.761719 15.238281 26.914062 15.355469 27.011719 C 15.472656 27.109375 15.632812 27.128906 15.769531 27.070312 C 18.59375 25.820312 28.199219 20.679688 28.199219 14.199219 Z M 28.199219 14.199219 "}),a.default.createElement("path",{fill:"#00cf2e",d:"M 11.800781 16.398438 L 10 16.398438 L 10 12.199219 C 10 11.867188 9.730469 11.601562 9.398438 11.601562 C 9.070312 11.601562 8.800781 11.867188 8.800781 12.199219 L 8.800781 17 C 8.800781 17.332031 9.070312 17.601562 9.398438 17.601562 L 11.800781 17.601562 C 12.132812 17.601562 12.398438 17.332031 12.398438 17 C 12.398438 16.667969 12.132812 16.398438 11.800781 16.398438 Z M 11.800781 16.398438 "}),a.default.createElement("path",{fill:"#00cf2e",d:"M 13.398438 11.601562 C 13.070312 11.601562 12.800781 11.867188 12.800781 12.199219 L 12.800781 17 C 12.800781 17.332031 13.070312 17.601562 13.398438 17.601562 C 13.730469 17.601562 14 17.332031 14 17 L 14 12.199219 C 14 11.867188 13.730469 11.601562 13.398438 11.601562 Z M 13.398438 11.601562 "}),a.default.createElement("path",{fill:"#00cf2e",d:"M 19 11.601562 C 18.667969 11.601562 18.398438 11.867188 18.398438 12.199219 L 18.398438 15.199219 L 15.898438 11.839844 C 15.746094 11.632812 15.476562 11.550781 15.230469 11.628906 C 14.984375 11.710938 14.820312 11.941406 14.820312 12.199219 L 14.820312 17 C 14.871094 17.285156 15.121094 17.492188 15.410156 17.492188 C 15.699219 17.492188 15.949219 17.285156 16 17 L 16 14 L 18.5 17.359375 C 18.617188 17.515625 18.804688 17.605469 19 17.601562 C 19.066406 17.601562 19.128906 17.589844 19.191406 17.570312 C 19.433594 17.488281 19.601562 17.257812 19.601562 17 L 19.601562 12.199219 C 19.601562 11.867188 19.332031 11.601562 19 11.601562 Z M 19 11.601562 "}),a.default.createElement("path",{fill:"#00cf2e",d:"M 23.398438 15.199219 C 23.730469 15.199219 24 14.929688 24 14.601562 C 24 14.269531 23.730469 14 23.398438 14 L 21.601562 14 L 21.601562 12.800781 L 23.398438 12.800781 C 23.730469 12.800781 24 12.53125 24 12.199219 C 24 11.867188 23.730469 11.601562 23.398438 11.601562 L 21 11.601562 C 20.667969 11.601562 20.398438 11.867188 20.398438 12.199219 L 20.398438 17 C 20.398438 17.332031 20.667969 17.601562 21 17.601562 L 23.398438 17.601562 C 23.730469 17.601562 24 17.332031 24 17 C 24 16.667969 23.730469 16.398438 23.398438 16.398438 L 21.601562 16.398438 L 21.601562 15.199219 Z M 23.398438 15.199219 "}))),name:"Line",href:`http://line.me/R/msg/text/?${e}`,allowedLocales:[t.LOCALE.Taiwan]}];
1
+ "use strict";var e=require("react"),t=require("./Locale-efa66a0f.js"),l=require("./gAssets.js");function C(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var a=C(e);exports.getSocialList=e=>[{icon:a.default.createElement("svg",{width:"33",height:"32",viewBox:"0 0 33 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a.default.createElement("path",{d:"M27.5 0H5.5C2.73858 0 0.5 2.23858 0.5 5V27C0.5 29.7614 2.73858 32 5.5 32H27.5C30.2614 32 32.5 29.7614 32.5 27V5C32.5 2.23858 30.2614 0 27.5 0Z",fill:"#1778F2"}),a.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.814 32V19.499H24.069L24.5 15.19H20.814L20.82 13.034C20.82 11.911 20.92 11.309 22.443 11.309H24.477V7H21.222C17.312 7 15.937 9.09 15.937 12.604V15.191H13.5V19.499H15.937V32H20.814Z",fill:"white"})),name:"Facebook",href:`https://www.facebook.com/sharer/sharer.php?u=${e}`},{icon:a.default.createElement("img",{src:l.CommonGAssets.getAssetPath("zalo-mini.png"),alt:"Zalo",style:{width:32,height:32}}),name:"Zalo",href:`https://sp.zalo.me/share?href=${e}`,allowedLocales:[t.LOCALE.Vietnam]},{icon:a.default.createElement("svg",{width:"33",height:"32",viewBox:"0 0 33 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a.default.createElement("rect",{x:"0.5",width:"32",height:"32",rx:"4",fill:"#1FA1F3"}),a.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.2304 13.2349L16.2708 13.8692L15.5964 13.7916C13.1417 13.4938 10.9972 12.484 9.17631 10.788L8.2861 9.94646L8.05683 10.5679C7.57124 11.9532 7.88149 13.4161 8.89305 14.4001C9.43257 14.9438 9.31116 15.0215 8.38052 14.6978C8.05683 14.5943 7.77357 14.5166 7.74658 14.5554C7.65216 14.646 7.97591 15.8241 8.23218 16.2902C8.58286 16.9376 9.29766 17.5719 10.08 17.9474L10.7409 18.2452L9.9586 18.2581C9.20324 18.2581 9.17631 18.271 9.25723 18.5429C9.52699 19.3844 10.5925 20.2777 11.7794 20.6661L12.6157 20.938L11.8873 21.3523C10.8083 21.9478 9.54049 22.2844 8.2726 22.3103C7.66566 22.3232 7.16663 22.375 7.16663 22.4139C7.16663 22.5433 8.81213 23.2684 9.76976 23.5531C12.6427 24.3947 16.055 24.0322 18.6177 22.5951C20.4385 21.5724 22.2593 19.5398 23.1091 17.5719C23.5677 16.5232 24.0263 14.6072 24.0263 13.688C24.0263 13.0925 24.0667 13.0148 24.822 12.3027C25.2671 11.8885 25.6853 11.4353 25.7662 11.3059C25.901 11.0598 25.8875 11.0598 25.1997 11.28C24.0532 11.6683 23.8913 11.6166 24.4579 11.034C24.876 10.6197 25.375 9.86879 25.375 9.64873C25.375 9.60987 25.1727 9.67458 24.9434 9.79112C24.7006 9.92061 24.1611 10.1148 23.7565 10.2313L23.0281 10.4514L22.3673 10.0241C22.0031 9.79112 21.4905 9.53219 21.2208 9.45452C20.5329 9.27327 19.4809 9.29918 18.8605 9.50628C17.1745 10.0889 16.1089 11.5907 16.2304 13.2349Z",fill:"white"})),name:"Twitter",href:`https://twitter.com/intent/tweet?url=${e}`},{icon:a.default.createElement("svg",{width:"33",height:"32",viewBox:"0 0 33 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a.default.createElement("g",{clipPath:"url(#clip0_687_88944)"},a.default.createElement("path",{d:"M29.5309 0H3.46909C1.82931 0 0.5 1.32931 0.5 2.96909V29.0309C0.5 30.6707 1.82931 32 3.46909 32H29.5309C31.1707 32 32.5 30.6707 32.5 29.0309V2.96909C32.5 1.32931 31.1707 0 29.5309 0Z",fill:"url(#paint0_linear_687_88944)"}),a.default.createElement("path",{d:"M23.5545 8.94548C21.8898 7.2642 19.6792 6.23313 17.3212 6.03825C14.9633 5.84336 12.6134 6.49749 10.6953 7.88265C8.77715 9.2678 7.41716 11.2928 6.86059 13.5924C6.30403 15.8919 6.58753 18.3147 7.65997 20.4237L6.60724 25.5346C6.59632 25.5854 6.59601 25.638 6.60633 25.689C6.61665 25.74 6.63739 25.7883 6.66724 25.8309C6.71097 25.8956 6.77338 25.9454 6.84616 25.9737C6.91893 26.0019 6.99859 26.0073 7.07451 25.9891L12.0836 24.8018C14.1866 25.8471 16.5923 26.1124 18.8725 25.5505C21.1528 24.9885 23.1597 23.6358 24.5362 21.7331C25.9128 19.8303 26.5696 17.5009 26.3898 15.1593C26.21 12.8177 25.2053 10.6158 23.5545 8.94548ZM21.9927 21.4109C20.8409 22.5595 19.3578 23.3176 17.7523 23.5786C16.1468 23.8395 14.4998 23.5901 13.0436 22.8655L12.3454 22.52L9.27451 23.2473L9.2836 23.2091L9.91997 20.1182L9.57815 19.4437C8.83408 17.9823 8.57159 16.323 8.82831 14.7034C9.08502 13.0837 9.84775 11.5869 11.0072 10.4273C12.4642 8.97083 14.4399 8.15263 16.5 8.15263C18.56 8.15263 20.5358 8.97083 21.9927 10.4273C22.0051 10.4415 22.0185 10.4549 22.0327 10.4673C23.4716 11.9275 24.2748 13.8974 24.2673 15.9474C24.2598 17.9974 23.4422 19.9613 21.9927 21.4109Z",fill:"white"}),a.default.createElement("path",{d:"M21.7199 19.1436C21.3436 19.7364 20.749 20.4618 20.0017 20.6418C18.6926 20.9582 16.6836 20.6527 14.1836 18.3218L14.1526 18.2946C11.9545 16.2564 11.3836 14.56 11.5217 13.2146C11.5981 12.4509 12.2345 11.76 12.7708 11.3091C12.8556 11.2367 12.9562 11.1852 13.0645 11.1586C13.1727 11.1321 13.2857 11.1312 13.3944 11.1561C13.503 11.181 13.6044 11.231 13.6903 11.3021C13.7761 11.3732 13.8442 11.4634 13.889 11.5655L14.6981 13.3836C14.7507 13.5015 14.7702 13.6315 14.7545 13.7596C14.7388 13.8878 14.6885 14.0092 14.609 14.1109L14.1999 14.6418C14.1121 14.7515 14.0592 14.8848 14.0478 15.0248C14.0365 15.1648 14.0673 15.305 14.1363 15.4273C14.3654 15.8291 14.9145 16.42 15.5236 16.9673C16.2072 17.5855 16.9654 18.1509 17.4454 18.3436C17.5738 18.3961 17.715 18.4089 17.8508 18.3804C17.9866 18.3519 18.1107 18.2834 18.2072 18.1836L18.6817 17.7055C18.7733 17.6152 18.8872 17.5508 19.0117 17.5188C19.1363 17.4869 19.2671 17.4886 19.3908 17.5236L21.3126 18.0691C21.4187 18.1016 21.5158 18.158 21.5967 18.2338C21.6776 18.3096 21.7401 18.4029 21.7794 18.5066C21.8187 18.6103 21.8338 18.7216 21.8235 18.832C21.8132 18.9424 21.7777 19.049 21.7199 19.1436Z",fill:"white"})),a.default.createElement("defs",null,a.default.createElement("linearGradient",{id:"paint0_linear_687_88944",x1:"16.5",y1:"0.130909",x2:"16.5",y2:"30.4509",gradientUnits:"userSpaceOnUse"},a.default.createElement("stop",{stopColor:"#36F46C"}),a.default.createElement("stop",{offset:"1",stopColor:"#03D749"})),a.default.createElement("clipPath",{id:"clip0_687_88944"},a.default.createElement("rect",{width:"32",height:"32",fill:"white",transform:"translate(0.5)"})))),name:"WhatsApp",href:`https://wa.me/?text=${e}`},{icon:a.default.createElement("svg",{width:"33",height:"32",viewBox:"0 0 33 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a.default.createElement("rect",{x:"0.5",width:"32",height:"32",rx:"4",fill:"#0077B5"}),a.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.3571 9.07077C11.3349 7.97643 10.6126 7.14288 9.43969 7.14288C8.26679 7.14288 7.5 7.97643 7.5 9.07077C7.5 10.1425 8.24415 11 9.39516 11H9.4171C10.6126 11 11.3571 10.1425 11.3571 9.07077ZM11.3571 12.286H7.5V23.8574H11.3571V12.286ZM20.651 12.286C23.4224 12.286 25.5 13.9022 25.5 17.3748L25.4999 23.8571H21.2885V17.8086C21.2885 16.2894 20.6791 15.2526 19.1545 15.2526C17.991 15.2526 17.2979 15.9515 16.9935 16.6265C16.8822 16.8685 16.8548 17.2056 16.8548 17.5435V23.8574H12.6429C12.6429 23.8574 12.6984 13.6127 12.6429 12.5518H16.8548V14.1531C17.4138 13.3834 18.415 12.286 20.651 12.286Z",fill:"white"})),name:"LinkedIn",href:`https://www.linkedin.com/sharing/share-offsite/?url=${e}`},{icon:a.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32px",height:"32px",viewBox:"0 0 32 32",version:"1.1"},a.default.createElement("g",{id:"surface1"},a.default.createElement("path",{fill:"#00cf2e",d:"M 26.398438 32 L 5.601562 32 C 2.507812 32 0 29.492188 0 26.398438 L 0 5.601562 C 0 2.507812 2.507812 0 5.601562 0 L 26.398438 0 C 29.492188 0 32 2.507812 32 5.601562 L 32 26.398438 C 32 29.492188 29.492188 32 26.398438 32 Z M 26.398438 32 "}),a.default.createElement("path",{fill:"#fff",d:"M 28.199219 14.199219 C 28.199219 9.800781 23 5 16.199219 5 C 9.574219 5 4.199219 8.898438 4.199219 14.199219 C 4.199219 19.089844 8.390625 23.128906 14.285156 23.726562 C 14.648438 23.753906 14.980469 23.949219 15.179688 24.253906 C 15.320312 24.476562 15.398438 24.734375 15.398438 25 C 15.386719 25.542969 15.324219 26.082031 15.21875 26.613281 C 15.1875 26.761719 15.238281 26.914062 15.355469 27.011719 C 15.472656 27.109375 15.632812 27.128906 15.769531 27.070312 C 18.59375 25.820312 28.199219 20.679688 28.199219 14.199219 Z M 28.199219 14.199219 "}),a.default.createElement("path",{fill:"#00cf2e",d:"M 11.800781 16.398438 L 10 16.398438 L 10 12.199219 C 10 11.867188 9.730469 11.601562 9.398438 11.601562 C 9.070312 11.601562 8.800781 11.867188 8.800781 12.199219 L 8.800781 17 C 8.800781 17.332031 9.070312 17.601562 9.398438 17.601562 L 11.800781 17.601562 C 12.132812 17.601562 12.398438 17.332031 12.398438 17 C 12.398438 16.667969 12.132812 16.398438 11.800781 16.398438 Z M 11.800781 16.398438 "}),a.default.createElement("path",{fill:"#00cf2e",d:"M 13.398438 11.601562 C 13.070312 11.601562 12.800781 11.867188 12.800781 12.199219 L 12.800781 17 C 12.800781 17.332031 13.070312 17.601562 13.398438 17.601562 C 13.730469 17.601562 14 17.332031 14 17 L 14 12.199219 C 14 11.867188 13.730469 11.601562 13.398438 11.601562 Z M 13.398438 11.601562 "}),a.default.createElement("path",{fill:"#00cf2e",d:"M 19 11.601562 C 18.667969 11.601562 18.398438 11.867188 18.398438 12.199219 L 18.398438 15.199219 L 15.898438 11.839844 C 15.746094 11.632812 15.476562 11.550781 15.230469 11.628906 C 14.984375 11.710938 14.820312 11.941406 14.820312 12.199219 L 14.820312 17 C 14.871094 17.285156 15.121094 17.492188 15.410156 17.492188 C 15.699219 17.492188 15.949219 17.285156 16 17 L 16 14 L 18.5 17.359375 C 18.617188 17.515625 18.804688 17.605469 19 17.601562 C 19.066406 17.601562 19.128906 17.589844 19.191406 17.570312 C 19.433594 17.488281 19.601562 17.257812 19.601562 17 L 19.601562 12.199219 C 19.601562 11.867188 19.332031 11.601562 19 11.601562 Z M 19 11.601562 "}),a.default.createElement("path",{fill:"#00cf2e",d:"M 23.398438 15.199219 C 23.730469 15.199219 24 14.929688 24 14.601562 C 24 14.269531 23.730469 14 23.398438 14 L 21.601562 14 L 21.601562 12.800781 L 23.398438 12.800781 C 23.730469 12.800781 24 12.53125 24 12.199219 C 24 11.867188 23.730469 11.601562 23.398438 11.601562 L 21 11.601562 C 20.667969 11.601562 20.398438 11.867188 20.398438 12.199219 L 20.398438 17 C 20.398438 17.332031 20.667969 17.601562 21 17.601562 L 23.398438 17.601562 C 23.730469 17.601562 24 17.332031 24 17 C 24 16.667969 23.730469 16.398438 23.398438 16.398438 L 21.601562 16.398438 L 21.601562 15.199219 Z M 23.398438 15.199219 "}))),name:"Line",href:`http://line.me/R/msg/text/?${e}`,allowedLocales:[t.LOCALE.Taiwan]}];
package/build/hooks.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./useTranslations-49f91025.js"),s=require("./useScrollbarSize-f2df5c9e.js"),r=require("./useRafState-40b43458.js"),i=require("./useHealthToolCache-44234ce1.js"),u=require("./useIsInit-dddb7f1d.js"),t=require("./useOutsideClick-0dabc1bd.js"),a=require("./useUniqueId-ef38060f.js");require("react"),require("./translationsContext-2f751431.js"),require("string-format"),require("lodash/debounce"),require("./tslib.es6-d5a85038.js"),require("./cookieHelper-5f14cb79.js"),require("./getDynamicHealthTool-b966c91e.js"),require("./core-5d4bb62a.js"),require("./isProduction-443c6670.js"),require("./normalizeLink-307d4e7a.js"),require("./routing-c6121b5c.js"),require("./index-15930b05.js"),require("./Locale-895e9c58.js"),exports.useTranslations=e.useTranslations,exports.MEASURE_ELEMENT_CLASS=s.MEASURE_ELEMENT_CLASS,exports.useScrollbarSize=s.useScrollbarSize,exports.useFbDataLayer=r.useFbDataLayer,exports.usePrevious=r.usePrevious,exports.useRafState=r.useRafState,exports.useHealthToolsCache=i.useHealthToolsCache,exports.useIsInit=u.useIsInit,exports.initSharedOutSideClickListener=t.initSharedOutSideClickListener,exports.useOutsideClick=t.useOutsideClick,exports.useSharedOutsideClick=t.useSharedOutsideClick,exports.useInitialMount=a.useInitialMount,exports.useUniqueId=a.useUniqueId;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./useTranslations-82cb6000.js"),s=require("./useScrollbarSize-a12042ae.js"),r=require("./useRafState-45c04634.js"),i=require("./useHealthToolCache-40cc782f.js"),u=require("./useIsInit-d6b0a168.js"),t=require("./useOutsideClick-2cdcb752.js"),a=require("./useUniqueId-e8bf8833.js");require("react"),require("./translationsContext-81fe8793.js"),require("string-format"),require("lodash/debounce"),require("./tslib.es6-d7a88a93.js"),require("./cookieHelper-80099e46.js"),require("./getDynamicHealthTool-4230a626.js"),require("./core-44b6fd33.js"),require("./isProduction-0dffc430.js"),require("./normalizeLink-a75e2e0f.js"),require("./routing-0d2fb020.js"),require("./index-522ced61.js"),require("./Locale-efa66a0f.js"),exports.useTranslations=e.useTranslations,exports.MEASURE_ELEMENT_CLASS=s.MEASURE_ELEMENT_CLASS,exports.useScrollbarSize=s.useScrollbarSize,exports.useFbDataLayer=r.useFbDataLayer,exports.usePrevious=r.usePrevious,exports.useRafState=r.useRafState,exports.useHealthToolsCache=i.useHealthToolsCache,exports.useIsInit=u.useIsInit,exports.initSharedOutSideClickListener=t.initSharedOutSideClickListener,exports.useOutsideClick=t.useOutsideClick,exports.useSharedOutsideClick=t.useSharedOutsideClick,exports.useInitialMount=a.useInitialMount,exports.useUniqueId=a.useUniqueId;
package/build/i18n.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var r=require("./translationsProvider-22982438.js"),t=require("./translationsContext-2f751431.js");require("react"),exports.TranslationsProvider=r.TranslationsProvider,exports.translationsMap=r.translationsMap,exports.TranslationsContext=t.TranslationsContext,exports.defaultTranslations=t.defaultTranslations;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var r=require("./translationsProvider-9a211600.js"),t=require("./translationsContext-81fe8793.js");require("react"),exports.TranslationsProvider=r.TranslationsProvider,exports.translationsMap=r.translationsMap,exports.TranslationsContext=t.TranslationsContext,exports.defaultTranslations=t.defaultTranslations;