@hhgtech/hhg-components 1.28.32 → 1.28.34

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 (338) hide show
  1. package/build/babyGrowth.js +2 -2
  2. package/build/cache.js +1 -1
  3. package/build/care/components/organisms/bookingSearchBar/searchInputs/index.styled.d.ts +0 -1
  4. package/build/care/components/organisms/bookingSearchBarV2/searchSpecialty/index.styled.d.ts +0 -5
  5. package/build/care.js +1 -1
  6. package/build/components/babyGrowth/babyGrowthForm/index.styled.d.ts +0 -1
  7. package/build/components/molecules/bmiForm/index.styled.d.ts +0 -1
  8. package/build/components/molecules/bmrForm/index.styled.d.ts +0 -1
  9. package/build/components/molecules/thrForm/index.styled.d.ts +0 -2
  10. package/build/components/molecules/toolBannerCard/index.styled.d.ts +0 -8
  11. package/build/components/molecules/weightGainForm/index.styled.d.ts +0 -14
  12. package/build/components/navigationV2/components/molecules/menuCareList/index.styled.d.ts +0 -1
  13. package/build/components/navigationV2/components/molecules/menuCategoriesList/index.styled.d.ts +0 -2
  14. package/build/components/navigationV2/components/molecules/menuCommunitiesList/index.styled.d.ts +0 -2
  15. package/build/components/navigationV2/components/molecules/menuEcomList/index.styled.d.ts +0 -1
  16. package/build/components/navigationV2/components/molecules/menuHealthToolsList/index.styled.d.ts +0 -1
  17. package/build/components/navigationV2/components/molecules/menuServiceList/index.styled.d.ts +3 -23
  18. package/build/components/navigationV2/constants.d.ts +0 -28
  19. package/build/components/navigationV2/index.styled.d.ts +0 -2
  20. package/build/components/navigationV2/utils.d.ts +1 -21
  21. package/build/components/vaccination/vaccineCard/index.styled.d.ts +0 -2
  22. package/build/components/vaccination/vaccineRecordsByAgeGroup/index.styled.d.ts +0 -4
  23. package/build/components.js +1 -1
  24. package/build/{constants-46a78a26.js → constants-40d8e654.js} +1 -1
  25. package/build/{constants-f296dce7.js → constants-e39882d7.js} +1 -1
  26. package/build/constants.js +1 -1
  27. package/build/{core-3214ed3a.js → core-1e09b2f5.js} +1 -1
  28. package/build/ecom.js +1 -1
  29. package/build/esm/babyGrowth.js +4 -4
  30. package/build/esm/cache.js +1 -1
  31. package/build/esm/care/components/organisms/bookingSearchBar/searchInputs/index.styled.d.ts +0 -1
  32. package/build/esm/care/components/organisms/bookingSearchBarV2/searchSpecialty/index.styled.d.ts +0 -5
  33. package/build/esm/care.js +1 -1
  34. package/build/esm/components/babyGrowth/babyGrowthForm/index.styled.d.ts +0 -1
  35. package/build/esm/components/molecules/bmiForm/index.styled.d.ts +0 -1
  36. package/build/esm/components/molecules/bmrForm/index.styled.d.ts +0 -1
  37. package/build/esm/components/molecules/thrForm/index.styled.d.ts +0 -2
  38. package/build/esm/components/molecules/toolBannerCard/index.styled.d.ts +0 -8
  39. package/build/esm/components/molecules/weightGainForm/index.styled.d.ts +0 -14
  40. package/build/esm/components/navigationV2/components/molecules/menuCareList/index.styled.d.ts +0 -1
  41. package/build/esm/components/navigationV2/components/molecules/menuCategoriesList/index.styled.d.ts +0 -2
  42. package/build/esm/components/navigationV2/components/molecules/menuCommunitiesList/index.styled.d.ts +0 -2
  43. package/build/esm/components/navigationV2/components/molecules/menuEcomList/index.styled.d.ts +0 -1
  44. package/build/esm/components/navigationV2/components/molecules/menuHealthToolsList/index.styled.d.ts +0 -1
  45. package/build/esm/components/navigationV2/components/molecules/menuServiceList/index.styled.d.ts +3 -23
  46. package/build/esm/components/navigationV2/constants.d.ts +0 -28
  47. package/build/esm/components/navigationV2/index.styled.d.ts +0 -2
  48. package/build/esm/components/navigationV2/utils.d.ts +1 -21
  49. package/build/esm/components/vaccination/vaccineCard/index.styled.d.ts +0 -2
  50. package/build/esm/components/vaccination/vaccineRecordsByAgeGroup/index.styled.d.ts +0 -4
  51. package/build/esm/components.js +1 -1
  52. package/build/esm/{constants-824d6eab.js → constants-9cbd1b11.js} +1 -1
  53. package/build/esm/{constants-0aedebdd.js → constants-eaf6c51c.js} +1 -1
  54. package/build/esm/constants.js +1 -1
  55. package/build/esm/{core-d38e4a94.js → core-887f9a5d.js} +1 -1
  56. package/build/esm/ecom.js +1 -1
  57. package/build/esm/footer.js +1 -1
  58. package/build/esm/gAssets.js +1 -1
  59. package/build/esm/getDynamicHealthTool-f08feeaf.js +1 -0
  60. package/build/esm/{getSocialList-c4481080.js → getSocialList-48723f32.js} +1 -1
  61. package/build/esm/hooks.js +1 -1
  62. package/build/esm/i18n.js +1 -1
  63. package/build/esm/i18nV2.js +1 -1
  64. package/build/esm/index-02bce746.js +1 -0
  65. package/build/esm/{index-d5e2281f.js → index-0bc6ed09.js} +1 -1
  66. package/build/esm/index-0e19b1ab.js +1 -0
  67. package/build/esm/{index-f9199d94.js → index-2f08d8b2.js} +1 -1
  68. package/build/esm/{index-acf707dc.js → index-301f2dee.js} +1 -1
  69. package/build/esm/{index-8f74efa8.js → index-3182f4c8.js} +180 -588
  70. package/build/esm/{index-dbd4d0d0.js → index-40c22fc9.js} +1 -1
  71. package/build/esm/{index-433ed9d1.js → index-456e07e9.js} +1 -1
  72. package/build/esm/{index-bf9e0b72.js → index-5856050d.js} +1 -1
  73. package/build/esm/{index-ef4add24.js → index-67f13f4c.js} +1 -1
  74. package/build/esm/{index-2ed1a0df.js → index-68163270.js} +1 -1
  75. package/build/esm/{index-45df75aa.js → index-76f80354.js} +1 -1
  76. package/build/esm/{index-1fce3c4b.js → index-79f993e1.js} +1 -1
  77. package/build/esm/{index-14a32878.js → index-7e96cd7e.js} +1 -1
  78. package/build/esm/{index-b7b7c082.js → index-905a68a4.js} +1 -1
  79. package/build/esm/{index-72df3a4a.js → index-a0ed112f.js} +1 -1
  80. package/build/esm/{index-ea1fd97a.js → index-b7b39aa3.js} +1 -1
  81. package/build/esm/{index-7e7e0b00.js → index-c8b8773c.js} +1 -1
  82. package/build/esm/{index-3b95d129.js → index-ca22339d.js} +5 -5
  83. package/build/esm/{index-a8cbe2d5.js → index-cca1a97c.js} +1 -1
  84. package/build/esm/{index-eecda03f.js → index-dcd77e56.js} +1 -1
  85. package/build/esm/{index-210a5fde.js → index-f851ab1f.js} +1 -1
  86. package/build/esm/index.js +1 -1
  87. package/build/esm/{index.styled-e4fb4eb9.js → index.styled-80c60a9e.js} +74 -400
  88. package/build/esm/index.styled-a3e34614.js +50 -0
  89. package/build/esm/{index.styled-75ef0353.js → index.styled-d8252a1f.js} +19 -74
  90. package/build/esm/{index.styled-2687f379.js → index.styled-f34b713c.js} +1 -1
  91. package/build/esm/{index.styles-6e0ab079.js → index.styles-5d09f3e9.js} +2 -2
  92. package/build/esm/lead.js +1 -1
  93. package/build/esm/mantine.js +1 -1
  94. package/build/esm/misc.js +1 -1
  95. package/build/esm/navigation.js +1 -1
  96. package/build/esm/onboardingV2.js +1 -1
  97. package/build/esm/pwg.js +5 -5
  98. package/build/esm/{routing-f346aa75.js → routing-7acb688f.js} +1 -1
  99. package/build/esm/subot/subotInlineRevamp/subotInlineAction/SubotInlineActionTextChoice/constants.d.ts +1 -0
  100. package/build/esm/subot/subotInlineRevamp/subotInlineAction/SubotInlineActionTextChoice/index.d.ts +0 -1
  101. package/build/esm/subot/subotInlineRevamp/subotInlineNode/subotInlineNodeSSO/constants.d.ts +1 -0
  102. package/build/esm/subot/subotInlineRevamp/subotInlineNode/subotInlineNodeSSO/index.d.ts +0 -1
  103. package/build/esm/subot.js +456 -456
  104. package/build/esm/together/components/molecules/popupDoctor/index.styled.d.ts +0 -3
  105. package/build/esm/together/components/molecules/popupExpert/index.styled.d.ts +0 -2
  106. package/build/esm/together/components/molecules/popupHospital/index.styled.d.ts +0 -3
  107. package/build/esm/together.js +1 -1
  108. package/build/esm/{types-b9d49c5a.js → types-41075c37.js} +1 -1
  109. package/build/esm/{types-fe5cbd4d.js → types-87783fd3.js} +2 -5
  110. package/build/esm/types.js +1 -1
  111. package/build/esm/{useCategory-cf913417.js → useCategory-dfd51998.js} +1 -1
  112. package/build/esm/useHealthToolCache-94b80796.js +1 -0
  113. package/build/esm/usePlacesAutocomplete-c740d776.js +1 -0
  114. package/build/esm/{useRafState-8b208a24.js → useRafState-2ebb1185.js} +1 -1
  115. package/build/esm/{useTranslations-ddcfe90d.js → useTranslations-1416cdcc.js} +1 -1
  116. package/build/esm/{utils-e02f4d1b.js → utils-0e7436d5.js} +1 -1
  117. package/build/esm/{utils-5a768f97.js → utils-563dbd48.js} +1 -1
  118. package/build/esm/vaccination.js +6 -68
  119. package/build/footer.js +1 -1
  120. package/build/gAssets.js +1 -1
  121. package/build/getDynamicHealthTool-c1365649.js +1 -0
  122. package/build/{getSocialList-d4cd6464.js → getSocialList-34d66f28.js} +1 -1
  123. package/build/hooks.js +1 -1
  124. package/build/i18n.js +1 -1
  125. package/build/i18nV2.js +1 -1
  126. package/build/{index-42801526.js → index-0c939a95.js} +1 -1
  127. package/build/{index-c7032bfb.js → index-16272593.js} +1 -1
  128. package/build/{index-cbc613ac.js → index-17dfa7a9.js} +1 -1
  129. package/build/{index-809349d3.js → index-1b728b12.js} +1 -1
  130. package/build/{index-a70b7f44.js → index-45b4b3e9.js} +1 -1
  131. package/build/{index-130d72cc.js → index-5846d58b.js} +1 -1
  132. package/build/index-6fd6134a.js +1 -0
  133. package/build/{index-bf096b0a.js → index-854f1e36.js} +1 -1
  134. package/build/{index-09d5490e.js → index-992d38d2.js} +1 -1
  135. package/build/{index-c5dd71b5.js → index-99f21fc5.js} +1 -1
  136. package/build/{index-fc2f7195.js → index-a0f049ef.js} +1 -1
  137. package/build/index-acfb0ce9.js +1 -0
  138. package/build/{index-75076f13.js → index-b15a75d9.js} +1 -1
  139. package/build/{index-988ba990.js → index-c7f012bf.js} +1 -1
  140. package/build/{index-4ab5c838.js → index-c85ab594.js} +190 -598
  141. package/build/index-caefb49b.js +1 -0
  142. package/build/{index-1b913131.js → index-ccefd6eb.js} +1 -1
  143. package/build/{index-789abdeb.js → index-d1eeaaef.js} +1 -1
  144. package/build/{index-ded4220b.js → index-d1fd4d52.js} +1 -1
  145. package/build/{index-f9464f63.js → index-dad777d8.js} +1 -1
  146. package/build/{index-b356a7af.js → index-e43cc32d.js} +1 -1
  147. package/build/{index-38cc50c2.js → index-f137af39.js} +1 -1
  148. package/build/index.js +1 -1
  149. package/build/index.styled-086a71a8.js +50 -0
  150. package/build/{index.styled-7e7a6232.js → index.styled-245eaa42.js} +1 -1
  151. package/build/{index.styled-0aa317a5.js → index.styled-c3edb2b9.js} +90 -416
  152. package/build/{index.styled-294f421a.js → index.styled-f695d1b6.js} +11 -66
  153. package/build/{index.styles-0cae737d.js → index.styles-bc0acea0.js} +5 -5
  154. package/build/lead.js +1 -1
  155. package/build/mantine.js +1 -1
  156. package/build/misc.js +1 -1
  157. package/build/navigation.js +1 -1
  158. package/build/onboardingV2.js +1 -1
  159. package/build/pwg.js +1 -1
  160. package/build/{routing-4db6e2aa.js → routing-a3a546b6.js} +1 -1
  161. package/build/subot/subotInlineRevamp/subotInlineAction/SubotInlineActionTextChoice/constants.d.ts +1 -0
  162. package/build/subot/subotInlineRevamp/subotInlineAction/SubotInlineActionTextChoice/index.d.ts +0 -1
  163. package/build/subot/subotInlineRevamp/subotInlineNode/subotInlineNodeSSO/constants.d.ts +1 -0
  164. package/build/subot/subotInlineRevamp/subotInlineNode/subotInlineNodeSSO/index.d.ts +0 -1
  165. package/build/subot.js +456 -456
  166. package/build/together/components/molecules/popupDoctor/index.styled.d.ts +0 -3
  167. package/build/together/components/molecules/popupExpert/index.styled.d.ts +0 -2
  168. package/build/together/components/molecules/popupHospital/index.styled.d.ts +0 -3
  169. package/build/together.js +1 -1
  170. package/build/{types-d467d91b.js → types-a3e9e643.js} +2 -5
  171. package/build/{types-ea4d6fcb.js → types-f6913792.js} +1 -1
  172. package/build/types.js +1 -1
  173. package/build/{useCategory-a73a56b5.js → useCategory-78ec9de7.js} +1 -1
  174. package/build/useHealthToolCache-b53abfff.js +1 -0
  175. package/build/{usePlacesAutocomplete-3c7fd14e.js → usePlacesAutocomplete-c93a598a.js} +1 -1
  176. package/build/{useRafState-c412ef13.js → useRafState-2d73039f.js} +1 -1
  177. package/build/{useTranslations-c7c26b81.js → useTranslations-eb6e3a4e.js} +1 -1
  178. package/build/{utils-f0b79e40.js → utils-86177cc2.js} +1 -1
  179. package/build/utils-b5dfd4e1.js +1 -0
  180. package/build/vaccination.js +7 -69
  181. package/package.json +1 -1
  182. package/build/components/navigationV2/components/atoms/ArrowLeftPopupIcon.d.ts +0 -2
  183. package/build/components/onboardingV2/personalInfoForm/index.styled.d.ts +0 -1
  184. package/build/components/organisms/heroBannerHealthTool/index.styled.d.ts +0 -10
  185. package/build/esm/components/navigationV2/components/atoms/ArrowLeftPopupIcon.d.ts +0 -2
  186. package/build/esm/components/onboardingV2/personalInfoForm/index.styled.d.ts +0 -1
  187. package/build/esm/components/organisms/heroBannerHealthTool/index.styled.d.ts +0 -10
  188. package/build/esm/getDynamicHealthTool-e517bc3f.js +0 -1
  189. package/build/esm/index-3df787db.js +0 -1
  190. package/build/esm/index-66d2f793.js +0 -1
  191. package/build/esm/index.styled-185beec0.js +0 -50
  192. package/build/esm/useHealthToolCache-09101b2b.js +0 -1
  193. package/build/esm/usePlacesAutocomplete-5dddac92.js +0 -1
  194. package/build/getDynamicHealthTool-82c36838.js +0 -1
  195. package/build/index-13c4cc74.js +0 -1
  196. package/build/index-9082a3a1.js +0 -1
  197. package/build/index-a5f9d0df.js +0 -1
  198. package/build/index.styled-8be7adef.js +0 -50
  199. package/build/useHealthToolCache-6f812d40.js +0 -1
  200. package/build/utils-aa1fab0d.js +0 -1
  201. /package/build/{BMI_BOYS.percentile.monthly-a5d268e1.js → BMI_BOYS.percentile.monthly-f2d6dfe0.js} +0 -0
  202. /package/build/{BMI_BOYS.percentile.weekly-e86b499e.js → BMI_BOYS.percentile.weekly-af266ffa.js} +0 -0
  203. /package/build/{BMI_BOYS.percentile.yearly-d9ee6e41.js → BMI_BOYS.percentile.yearly-3197405f.js} +0 -0
  204. /package/build/{BMI_BOYS.zscore.monthly-79949324.js → BMI_BOYS.zscore.monthly-d5f610e1.js} +0 -0
  205. /package/build/{BMI_BOYS.zscore.weekly-ea09dc17.js → BMI_BOYS.zscore.weekly-6f8488f2.js} +0 -0
  206. /package/build/{BMI_BOYS.zscore.yearly-7e23c2e0.js → BMI_BOYS.zscore.yearly-91349a66.js} +0 -0
  207. /package/build/{BMI_GIRLS.percentile.monthly-76aab60f.js → BMI_GIRLS.percentile.monthly-c7e89fd9.js} +0 -0
  208. /package/build/{BMI_GIRLS.percentile.weekly-f9f16173.js → BMI_GIRLS.percentile.weekly-8e6b805d.js} +0 -0
  209. /package/build/{BMI_GIRLS.percentile.yearly-a08acaad.js → BMI_GIRLS.percentile.yearly-1705eb83.js} +0 -0
  210. /package/build/{BMI_GIRLS.zscore.monthly-95bd48dc.js → BMI_GIRLS.zscore.monthly-10ce2285.js} +0 -0
  211. /package/build/{BMI_GIRLS.zscore.weekly-7d3a074d.js → BMI_GIRLS.zscore.weekly-509ac723.js} +0 -0
  212. /package/build/{BMI_GIRLS.zscore.yearly-51d02c77.js → BMI_GIRLS.zscore.yearly-30bfdb96.js} +0 -0
  213. /package/build/{ChevronDown-98d0a573.js → ChevronDown-26ca1544.js} +0 -0
  214. /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-59193308.js → HEAD CIRCUM_BOYS.percentile.monthly-4d09785a.js} +0 -0
  215. /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-ae16a8fb.js → HEAD CIRCUM_BOYS.percentile.weekly-f2a3683b.js} +0 -0
  216. /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-cc5c9a5d.js → HEAD CIRCUM_BOYS.percentile.yearly-325de807.js} +0 -0
  217. /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-0a22c691.js → HEAD CIRCUM_BOYS.zscore.monthly-c3653189.js} +0 -0
  218. /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-7f009934.js → HEAD CIRCUM_BOYS.zscore.weekly-64715859.js} +0 -0
  219. /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-32179b09.js → HEAD CIRCUM_BOYS.zscore.yearly-8d5d4104.js} +0 -0
  220. /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-f6030365.js → HEAD CIRCUM_GIRLS.percentile.monthly-91394406.js} +0 -0
  221. /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-6a562b21.js → HEAD CIRCUM_GIRLS.percentile.weekly-dfecd4bb.js} +0 -0
  222. /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-063f80e0.js → HEAD CIRCUM_GIRLS.percentile.yearly-60f7fc20.js} +0 -0
  223. /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-0194d8e3.js → HEAD CIRCUM_GIRLS.zscore.monthly-0adfc823.js} +0 -0
  224. /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-d160548d.js → HEAD CIRCUM_GIRLS.zscore.weekly-2ca5ea36.js} +0 -0
  225. /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-e3575040.js → HEAD CIRCUM_GIRLS.zscore.yearly-eabc2711.js} +0 -0
  226. /package/build/{HEIGHT_BOYS.percentile.monthly-b69cf718.js → HEIGHT_BOYS.percentile.monthly-c30c7db8.js} +0 -0
  227. /package/build/{HEIGHT_BOYS.percentile.weekly-6590e215.js → HEIGHT_BOYS.percentile.weekly-1b7c68af.js} +0 -0
  228. /package/build/{HEIGHT_BOYS.percentile.yearly-93eec8b2.js → HEIGHT_BOYS.percentile.yearly-7654ea26.js} +0 -0
  229. /package/build/{HEIGHT_BOYS.zscore.monthly-f24fe289.js → HEIGHT_BOYS.zscore.monthly-100631d7.js} +0 -0
  230. /package/build/{HEIGHT_BOYS.zscore.weekly-ed0597e2.js → HEIGHT_BOYS.zscore.weekly-3fb8192a.js} +0 -0
  231. /package/build/{HEIGHT_BOYS.zscore.yearly-22fec940.js → HEIGHT_BOYS.zscore.yearly-cfc53fb4.js} +0 -0
  232. /package/build/{HEIGHT_GIRLS.percentile.monthly-38f388e5.js → HEIGHT_GIRLS.percentile.monthly-36a38507.js} +0 -0
  233. /package/build/{HEIGHT_GIRLS.percentile.weekly-fe30f0ec.js → HEIGHT_GIRLS.percentile.weekly-d7cc3e36.js} +0 -0
  234. /package/build/{HEIGHT_GIRLS.percentile.yearly-324b86fe.js → HEIGHT_GIRLS.percentile.yearly-6e9eb89d.js} +0 -0
  235. /package/build/{HEIGHT_GIRLS.zscore.monthly-5b11c1fd.js → HEIGHT_GIRLS.zscore.monthly-9ef69581.js} +0 -0
  236. /package/build/{HEIGHT_GIRLS.zscore.weekly-4189c00c.js → HEIGHT_GIRLS.zscore.weekly-a5a438a7.js} +0 -0
  237. /package/build/{HEIGHT_GIRLS.zscore.yearly-f5e7745c.js → HEIGHT_GIRLS.zscore.yearly-aa9b3de3.js} +0 -0
  238. /package/build/{Subot-9ac3ab38.js → Subot-5e3788b9.js} +0 -0
  239. /package/build/{Visible-68d62535.js → Visible-c561d877.js} +0 -0
  240. /package/build/{WEIGHT_BOYS.percentile.monthly-9d66b6ac.js → WEIGHT_BOYS.percentile.monthly-7b0b5579.js} +0 -0
  241. /package/build/{WEIGHT_BOYS.percentile.weekly-eeb718ed.js → WEIGHT_BOYS.percentile.weekly-650a1141.js} +0 -0
  242. /package/build/{WEIGHT_BOYS.percentile.yearly-699442c5.js → WEIGHT_BOYS.percentile.yearly-ef733c0a.js} +0 -0
  243. /package/build/{WEIGHT_BOYS.zscore.monthly-54dc19ea.js → WEIGHT_BOYS.zscore.monthly-baa0cef6.js} +0 -0
  244. /package/build/{WEIGHT_BOYS.zscore.weekly-7dcc3c00.js → WEIGHT_BOYS.zscore.weekly-e7080454.js} +0 -0
  245. /package/build/{WEIGHT_BOYS.zscore.yearly-4ccc404d.js → WEIGHT_BOYS.zscore.yearly-c51dfe8a.js} +0 -0
  246. /package/build/{WEIGHT_GIRLS.percentile.monthly-0a9891a8.js → WEIGHT_GIRLS.percentile.monthly-78b66e11.js} +0 -0
  247. /package/build/{WEIGHT_GIRLS.percentile.weekly-b93204f3.js → WEIGHT_GIRLS.percentile.weekly-5df91708.js} +0 -0
  248. /package/build/{WEIGHT_GIRLS.percentile.yearly-636a376e.js → WEIGHT_GIRLS.percentile.yearly-a7ad83a0.js} +0 -0
  249. /package/build/{WEIGHT_GIRLS.zscore.monthly-bef91b50.js → WEIGHT_GIRLS.zscore.monthly-37aeb739.js} +0 -0
  250. /package/build/{WEIGHT_GIRLS.zscore.weekly-ebe47795.js → WEIGHT_GIRLS.zscore.weekly-cdb5a619.js} +0 -0
  251. /package/build/{WEIGHT_GIRLS.zscore.yearly-76c65b8b.js → WEIGHT_GIRLS.zscore.yearly-10f7b113.js} +0 -0
  252. /package/build/{cookieHelper-22f17888.js → cookieHelper-faead274.js} +0 -0
  253. /package/build/{dataTransform-6a6fcfcf.js → dataTransform-4e01afe7.js} +0 -0
  254. /package/build/esm/{BMI_BOYS.percentile.monthly-aa32249b.js → BMI_BOYS.percentile.monthly-237c26c1.js} +0 -0
  255. /package/build/esm/{BMI_BOYS.percentile.weekly-41269772.js → BMI_BOYS.percentile.weekly-5e217121.js} +0 -0
  256. /package/build/esm/{BMI_BOYS.percentile.yearly-0a8be67a.js → BMI_BOYS.percentile.yearly-b7c24b07.js} +0 -0
  257. /package/build/esm/{BMI_BOYS.zscore.monthly-443faede.js → BMI_BOYS.zscore.monthly-caee541a.js} +0 -0
  258. /package/build/esm/{BMI_BOYS.zscore.weekly-0bcfd9b3.js → BMI_BOYS.zscore.weekly-248bd6a3.js} +0 -0
  259. /package/build/esm/{BMI_BOYS.zscore.yearly-c590954d.js → BMI_BOYS.zscore.yearly-c4c5bebc.js} +0 -0
  260. /package/build/esm/{BMI_GIRLS.percentile.monthly-280e79d8.js → BMI_GIRLS.percentile.monthly-7cf5b7a8.js} +0 -0
  261. /package/build/esm/{BMI_GIRLS.percentile.weekly-306e20f9.js → BMI_GIRLS.percentile.weekly-2c920355.js} +0 -0
  262. /package/build/esm/{BMI_GIRLS.percentile.yearly-00538e48.js → BMI_GIRLS.percentile.yearly-2913ce0d.js} +0 -0
  263. /package/build/esm/{BMI_GIRLS.zscore.monthly-ca69afb1.js → BMI_GIRLS.zscore.monthly-a9ca6049.js} +0 -0
  264. /package/build/esm/{BMI_GIRLS.zscore.weekly-ccabf66a.js → BMI_GIRLS.zscore.weekly-7686cd52.js} +0 -0
  265. /package/build/esm/{BMI_GIRLS.zscore.yearly-557a4088.js → BMI_GIRLS.zscore.yearly-0fe95249.js} +0 -0
  266. /package/build/esm/{ChevronDown-4e539027.js → ChevronDown-2b150c99.js} +0 -0
  267. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-24eedf32.js → HEAD CIRCUM_BOYS.percentile.monthly-9ab3e376.js} +0 -0
  268. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-5d5cea65.js → HEAD CIRCUM_BOYS.percentile.weekly-b419210c.js} +0 -0
  269. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-8bf2ddb1.js → HEAD CIRCUM_BOYS.percentile.yearly-47c58312.js} +0 -0
  270. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-f9a8110e.js → HEAD CIRCUM_BOYS.zscore.monthly-573a0db9.js} +0 -0
  271. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-b86fcbcb.js → HEAD CIRCUM_BOYS.zscore.weekly-6d69c852.js} +0 -0
  272. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-13d93d3a.js → HEAD CIRCUM_BOYS.zscore.yearly-22f44323.js} +0 -0
  273. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-72ca91c2.js → HEAD CIRCUM_GIRLS.percentile.monthly-484fc054.js} +0 -0
  274. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-ab23f729.js → HEAD CIRCUM_GIRLS.percentile.weekly-ce9ad0ad.js} +0 -0
  275. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-e5b20255.js → HEAD CIRCUM_GIRLS.percentile.yearly-5ba8609b.js} +0 -0
  276. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-3d79c916.js → HEAD CIRCUM_GIRLS.zscore.monthly-09f228c4.js} +0 -0
  277. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-bce12395.js → HEAD CIRCUM_GIRLS.zscore.weekly-0d16214e.js} +0 -0
  278. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-ef264905.js → HEAD CIRCUM_GIRLS.zscore.yearly-69196152.js} +0 -0
  279. /package/build/esm/{HEIGHT_BOYS.percentile.monthly-8fd62064.js → HEIGHT_BOYS.percentile.monthly-73475699.js} +0 -0
  280. /package/build/esm/{HEIGHT_BOYS.percentile.weekly-e6e5a9bf.js → HEIGHT_BOYS.percentile.weekly-aaa9c5d2.js} +0 -0
  281. /package/build/esm/{HEIGHT_BOYS.percentile.yearly-dce479a5.js → HEIGHT_BOYS.percentile.yearly-19ed1ac7.js} +0 -0
  282. /package/build/esm/{HEIGHT_BOYS.zscore.monthly-9fff1041.js → HEIGHT_BOYS.zscore.monthly-6af8892b.js} +0 -0
  283. /package/build/esm/{HEIGHT_BOYS.zscore.weekly-de386a18.js → HEIGHT_BOYS.zscore.weekly-344ab143.js} +0 -0
  284. /package/build/esm/{HEIGHT_BOYS.zscore.yearly-71777dfe.js → HEIGHT_BOYS.zscore.yearly-eb3a4e83.js} +0 -0
  285. /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-e350a917.js → HEIGHT_GIRLS.percentile.monthly-8b6c42e4.js} +0 -0
  286. /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-00830a21.js → HEIGHT_GIRLS.percentile.weekly-74469212.js} +0 -0
  287. /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-63ab2aee.js → HEIGHT_GIRLS.percentile.yearly-3f9ee629.js} +0 -0
  288. /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-61b445a3.js → HEIGHT_GIRLS.zscore.monthly-c6a7dc2d.js} +0 -0
  289. /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-811cbf19.js → HEIGHT_GIRLS.zscore.weekly-e27c7b61.js} +0 -0
  290. /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-d512b489.js → HEIGHT_GIRLS.zscore.yearly-72d00068.js} +0 -0
  291. /package/build/esm/{Subot-e35888a1.js → Subot-0c4dab43.js} +0 -0
  292. /package/build/esm/{Visible-a54b07a5.js → Visible-c68224a8.js} +0 -0
  293. /package/build/esm/{WEIGHT_BOYS.percentile.monthly-c617f747.js → WEIGHT_BOYS.percentile.monthly-38ddd06a.js} +0 -0
  294. /package/build/esm/{WEIGHT_BOYS.percentile.weekly-a835e518.js → WEIGHT_BOYS.percentile.weekly-a0349b82.js} +0 -0
  295. /package/build/esm/{WEIGHT_BOYS.percentile.yearly-96e9b6cc.js → WEIGHT_BOYS.percentile.yearly-4aa28c2a.js} +0 -0
  296. /package/build/esm/{WEIGHT_BOYS.zscore.monthly-818bd5dc.js → WEIGHT_BOYS.zscore.monthly-285f7f43.js} +0 -0
  297. /package/build/esm/{WEIGHT_BOYS.zscore.weekly-8c3a3354.js → WEIGHT_BOYS.zscore.weekly-7fdcfb45.js} +0 -0
  298. /package/build/esm/{WEIGHT_BOYS.zscore.yearly-03efd18a.js → WEIGHT_BOYS.zscore.yearly-67512a08.js} +0 -0
  299. /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-43a931c8.js → WEIGHT_GIRLS.percentile.monthly-687fcbb9.js} +0 -0
  300. /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-1ce3f4fa.js → WEIGHT_GIRLS.percentile.weekly-9c8ebcfb.js} +0 -0
  301. /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-19635d95.js → WEIGHT_GIRLS.percentile.yearly-bb43d716.js} +0 -0
  302. /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-5dc5e380.js → WEIGHT_GIRLS.zscore.monthly-6ea1cc38.js} +0 -0
  303. /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-74fcd92a.js → WEIGHT_GIRLS.zscore.weekly-589c96d0.js} +0 -0
  304. /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-34b68693.js → WEIGHT_GIRLS.zscore.yearly-293c72b6.js} +0 -0
  305. /package/build/esm/{cookieHelper-932cba5b.js → cookieHelper-f205b169.js} +0 -0
  306. /package/build/esm/{dataTransform-61b0924c.js → dataTransform-4b79e9fc.js} +0 -0
  307. /package/build/esm/{index-747aa373.js → index-bb150c0d.js} +0 -0
  308. /package/build/esm/{index-a25c8866.js → index-bc96f01d.js} +0 -0
  309. /package/build/esm/{index-ce11a530.js → index-ebc484da.js} +0 -0
  310. /package/build/esm/{isProduction-a0cadcf8.js → isProduction-095ab64f.js} +0 -0
  311. /package/build/esm/{localizeNumberFormat-ef58bc2e.js → localizeNumberFormat-6ec4b13f.js} +0 -0
  312. /package/build/esm/{normalizeLink-3e0e0e6d.js → normalizeLink-730f7beb.js} +0 -0
  313. /package/build/esm/{number-1d1a47f7.js → number-6d1e5da0.js} +0 -0
  314. /package/build/esm/{paths-815836e1.js → paths-d8c26a48.js} +0 -0
  315. /package/build/esm/{screenSizeContext-3261648b.js → screenSizeContext-268f62ee.js} +0 -0
  316. /package/build/esm/{theme-d45596e4.js → theme-c91f8447.js} +0 -0
  317. /package/build/esm/{translationsContext-de4e722d.js → translationsContext-8d25a828.js} +0 -0
  318. /package/build/esm/{tslib.es6-ce2c140c.js → tslib.es6-89288f42.js} +0 -0
  319. /package/build/esm/{types-df0d0071.js → types-4b3c5426.js} +0 -0
  320. /package/build/esm/{useIsInit-2717e433.js → useIsInit-6890e3ae.js} +0 -0
  321. /package/build/esm/{useOutsideClick-4ff6bd1e.js → useOutsideClick-fcf2d8f9.js} +0 -0
  322. /package/build/esm/{useScrollbarSize-b8a70e15.js → useScrollbarSize-53042c16.js} +0 -0
  323. /package/build/{index-771ab8f5.js → index-65b4e1df.js} +0 -0
  324. /package/build/{index-efbee76a.js → index-87fb4741.js} +0 -0
  325. /package/build/{index-fd3cae06.js → index-dd93f3f7.js} +0 -0
  326. /package/build/{isProduction-233baa6b.js → isProduction-a6dab3b8.js} +0 -0
  327. /package/build/{localizeNumberFormat-2f7b0b5a.js → localizeNumberFormat-68c605b4.js} +0 -0
  328. /package/build/{normalizeLink-c87b11a1.js → normalizeLink-b08e7017.js} +0 -0
  329. /package/build/{number-2b954627.js → number-824f5e2e.js} +0 -0
  330. /package/build/{paths-902c5f54.js → paths-cb533948.js} +0 -0
  331. /package/build/{screenSizeContext-0219d755.js → screenSizeContext-d1f3171e.js} +0 -0
  332. /package/build/{theme-87326f2f.js → theme-9886c9e0.js} +0 -0
  333. /package/build/{translationsContext-a48a19a4.js → translationsContext-510e154b.js} +0 -0
  334. /package/build/{tslib.es6-82d276fa.js → tslib.es6-5d58d708.js} +0 -0
  335. /package/build/{types-25ffa9b6.js → types-16b33149.js} +0 -0
  336. /package/build/{useIsInit-124b88fa.js → useIsInit-10070617.js} +0 -0
  337. /package/build/{useOutsideClick-c3c3676d.js → useOutsideClick-d814cc9a.js} +0 -0
  338. /package/build/{useScrollbarSize-f694e765.js → useScrollbarSize-efc94491.js} +0 -0
@@ -1,4 +1,4 @@
1
- import*as e from"react";import t,{useState as a,useMemo as o,useCallback as i,createContext as r,useContext as n,useRef as l,useEffect as s}from"react";import{useMantineTheme as d,createStyles as c,Flex as p,Box as m,rem as u,Portal as g,Anchor as h,Accordion as v}from"@mantine/core";import{_ as b,a as f}from"./tslib.es6-ce2c140c.js";import{u as x,b as w}from"./useTranslations-ddcfe90d.js";import{T as y,H as E,I as C,P as k}from"./index-eecda03f.js";import{B as A,I as N,u as z,A as T,f as S,T as L}from"./index-3b95d129.js";import"@mantine/dates";import{d as V,D as P}from"./index-ea1fd97a.js";import{L as j}from"./Subot-e35888a1.js";import{CommonGAssets as F}from"./gAssets.js";import B from"dayjs";import{M as O,t as R}from"./screenSizeContext-3261648b.js";import M,{keyframes as I,css as U}from"styled-components";import{t as D}from"./theme-d45596e4.js";import{a as W}from"./number-1d1a47f7.js";import{i as H}from"./isProduction-a0cadcf8.js";import"@mantine/hooks";import{R as Z,U as q,V as G,b as X,W as Q,X as K,Y,H as $,Z as J,_,$ as ee,a0 as te,a1 as ae,a2 as oe,A as ie,a3 as re,B as ne,a4 as le,z as se,Q as de,a5 as ce}from"./index.styles-6e0ab079.js";import{format as pe}from"date-fns";import"./translationsContext-de4e722d.js";import"string-format";import{B as me}from"./index-7e7e0b00.js";import{I as ue}from"./index-d5e2281f.js";import{U as ge,P as he,a as ve,b as be,c as fe,e as xe}from"./index-45df75aa.js";import{g as we}from"./routing-f346aa75.js";import ye from"dayjs/plugin/relativeTime";import{P as Ee}from"./paths-815836e1.js";import{e as Ce}from"./constants-824d6eab.js";import ke from"lodash/debounce";import"./useCategory-cf913417.js";import{M as Ae}from"./index-a8cbe2d5.js";import"innertext";import{d as Ne,g as ze}from"./cookieHelper-932cba5b.js";import"react-contenteditable";import"react-dom";import"./utils-e02f4d1b.js";import"./index.styled-2687f379.js";import"./index-a25c8866.js";const Te=t=>e.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor"},t),e.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"})),Se={admin:"cardAuthor.admin",moderator:"cardAuthor.moderator",ambassador:"cardAuthor.ambassador",expert:"cardAuthor.expert",sponsor:"cardAuthor.sponsor",guide:"cardAuthor.guide",influencer:"cardAuthor.influencer"},Le=e=>{var{siteType:a,role:o,title:i,styles:r,className:n}=e,l=b(e,["siteType","role","title","styles","className"]);const{t:s}=x(),d=o?(e=>["admin","moderator","ambassador","expert","sponsor","guide","influencer"].find((t=>t===e)))(o):"",{classes:c,cx:p}=Z(void 0,{name:"AuthorBadge",styles:r});return d&&Se[d]?t.createElement("div",Object.assign({className:p(c.root,n),"data-label-type":d,"data-is-marrybaby":"marryBaby"===a},l),i||s(Se[d])):null},Ve=e=>{var{label:r,bookingId:n,bookingType:l="doctor",locale:s="vi-VN"}=e,d=b(e,["label","bookingId","bookingType","locale"]);const{t:c}=x(),[p,m]=a(!1),u=o((()=>"undefined"!=typeof window?window.location.href:""),[]),g=i((()=>f(void 0,void 0,void 0,(function*(){var e,t,a,o,i,r,d,c,p,u,g,h,v,b,f;const x="doctor"===l?Ee.GET_DOCTOR_DETAIL:"hospital"===l?Ee.GET_HOSPITAL_DETAIL:"service"===l?Ee.GET_SERVICE_DETAIL:"";try{m(!0);const w=yield q(G(x,{id:n,site:V[s]}),"get");if(1===(null==w?void 0:w._status)){const n="doctor"===l?{id:null===(t=null===(e=null==w?void 0:w._data)||void 0===e?void 0:e.doctor)||void 0===t?void 0:t.id,slug:null===(o=null===(a=null==w?void 0:w._data)||void 0===a?void 0:a.doctor)||void 0===o?void 0:o.slug,localSlug:null===(i=Ce[s])||void 0===i?void 0:i.DOCTOR}:"hospital"===l?{id:null===(d=null===(r=null==w?void 0:w._data)||void 0===r?void 0:r.branch)||void 0===d?void 0:d.id,slug:null===(p=null===(c=null==w?void 0:w._data)||void 0===c?void 0:c.branch)||void 0===p?void 0:p.slug,localSlug:null===(u=Ce[s])||void 0===u?void 0:u.HOSPITAL}:{id:null===(h=null===(g=null==w?void 0:w._data)||void 0===g?void 0:g.service)||void 0===h?void 0:h.id,slug:null===(b=null===(v=null==w?void 0:w._data)||void 0===v?void 0:v.service)||void 0===b?void 0:b.slug,localSlug:null===(f=Ce[s])||void 0===f?void 0:f.SERVICE};window.location.href=`https://${H?"":"discover."}${V[s]}/care/${n.localSlug}/${n.slug}-${n.id}/`}else m(!1)}catch(e){console.log(e),m(!1)}}))),[]);return n&&l?t.createElement(A,Object.assign({dataEventCategory:"Care",dataEventAction:"Comment - Quick Booking",dataEventLabel:u,onClick:g,loading:p},d),r||c("careBooking.bookAnAppointment")):null},Pe=M.div`
1
+ import*as e from"react";import t,{useState as a,useMemo as o,useCallback as i,createContext as r,useContext as n,useRef as l,useEffect as s}from"react";import{useMantineTheme as d,createStyles as c,Flex as p,Box as m,rem as u,Portal as g,Anchor as h,Accordion as v}from"@mantine/core";import{_ as b,a as f}from"./tslib.es6-89288f42.js";import{u as x,b as w}from"./useTranslations-1416cdcc.js";import{T as y,H as E,I as C,P as k}from"./index-dcd77e56.js";import{B as A,I as N,u as z,A as T,f as S,T as L}from"./index-ca22339d.js";import"@mantine/dates";import{d as V,D as P}from"./index-b7b39aa3.js";import{L as F}from"./Subot-0c4dab43.js";import{CommonGAssets as B}from"./gAssets.js";import j from"dayjs";import{M as O,t as R}from"./screenSizeContext-268f62ee.js";import M,{keyframes as I,css as U}from"styled-components";import{t as D}from"./theme-c91f8447.js";import{a as W}from"./number-6d1e5da0.js";import{i as H}from"./isProduction-095ab64f.js";import"@mantine/hooks";import{R as Z,U as q,V as G,b as X,W as Q,X as K,Y,H as $,Z as J,_,$ as ee,a0 as te,a1 as ae,a2 as oe,A as ie,a3 as re,B as ne,a4 as le,z as se,Q as de,a5 as ce}from"./index.styles-5d09f3e9.js";import{format as pe}from"date-fns";import"./translationsContext-8d25a828.js";import"string-format";import{B as me}from"./index-c8b8773c.js";import{I as ue}from"./index-0bc6ed09.js";import{U as ge,P as he,a as ve,b as be,c as fe,e as xe}from"./index-76f80354.js";import{g as we}from"./routing-7acb688f.js";import ye from"dayjs/plugin/relativeTime";import{P as Ee}from"./paths-d8c26a48.js";import{e as Ce}from"./constants-9cbd1b11.js";import ke from"lodash/debounce";import"./useCategory-dfd51998.js";import{M as Ae}from"./index-cca1a97c.js";import"innertext";import{d as Ne,g as ze}from"./cookieHelper-f205b169.js";import"react-contenteditable";import"react-dom";import"./utils-0e7436d5.js";import"./index.styled-f34b713c.js";import"./index-bc96f01d.js";const Te=t=>e.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor"},t),e.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"})),Se={admin:"cardAuthor.admin",moderator:"cardAuthor.moderator",ambassador:"cardAuthor.ambassador",expert:"cardAuthor.expert",sponsor:"cardAuthor.sponsor",guide:"cardAuthor.guide",influencer:"cardAuthor.influencer"},Le=e=>{var{siteType:a,role:o,title:i,styles:r,className:n}=e,l=b(e,["siteType","role","title","styles","className"]);const{t:s}=x(),d=o?(e=>["admin","moderator","ambassador","expert","sponsor","guide","influencer"].find((t=>t===e)))(o):"",{classes:c,cx:p}=Z(void 0,{name:"AuthorBadge",styles:r});return d&&Se[d]?t.createElement("div",Object.assign({className:p(c.root,n),"data-label-type":d,"data-is-marrybaby":"marryBaby"===a},l),i||s(Se[d])):null},Ve=e=>{var{label:r,bookingId:n,bookingType:l="doctor",locale:s="vi-VN"}=e,d=b(e,["label","bookingId","bookingType","locale"]);const{t:c}=x(),[p,m]=a(!1),u=o((()=>"undefined"!=typeof window?window.location.href:""),[]),g=i((()=>f(void 0,void 0,void 0,(function*(){var e,t,a,o,i,r,d,c,p,u,g,h,v,b,f;const x="doctor"===l?Ee.GET_DOCTOR_DETAIL:"hospital"===l?Ee.GET_HOSPITAL_DETAIL:"service"===l?Ee.GET_SERVICE_DETAIL:"";try{m(!0);const w=yield q(G(x,{id:n,site:V[s]}),"get");if(1===(null==w?void 0:w._status)){const n="doctor"===l?{id:null===(t=null===(e=null==w?void 0:w._data)||void 0===e?void 0:e.doctor)||void 0===t?void 0:t.id,slug:null===(o=null===(a=null==w?void 0:w._data)||void 0===a?void 0:a.doctor)||void 0===o?void 0:o.slug,localSlug:null===(i=Ce[s])||void 0===i?void 0:i.DOCTOR}:"hospital"===l?{id:null===(d=null===(r=null==w?void 0:w._data)||void 0===r?void 0:r.branch)||void 0===d?void 0:d.id,slug:null===(p=null===(c=null==w?void 0:w._data)||void 0===c?void 0:c.branch)||void 0===p?void 0:p.slug,localSlug:null===(u=Ce[s])||void 0===u?void 0:u.HOSPITAL}:{id:null===(h=null===(g=null==w?void 0:w._data)||void 0===g?void 0:g.service)||void 0===h?void 0:h.id,slug:null===(b=null===(v=null==w?void 0:w._data)||void 0===v?void 0:v.service)||void 0===b?void 0:b.slug,localSlug:null===(f=Ce[s])||void 0===f?void 0:f.SERVICE};window.location.href=`https://${H?"":"discover."}${V[s]}/care/${n.localSlug}/${n.slug}-${n.id}/`}else m(!1)}catch(e){console.log(e),m(!1)}}))),[]);return n&&l?t.createElement(A,Object.assign({dataEventCategory:"Care",dataEventAction:"Comment - Quick Booking",dataEventLabel:u,onClick:g,loading:p},d),r||c("careBooking.bookAnAppointment")):null},Pe=M.div`
2
2
  --dropdown-padding: 12px 18px 12px 16px;
3
3
  position: relative;
4
4
  box-sizing: border-box;
@@ -78,7 +78,7 @@ import*as e from"react";import t,{useState as a,useMemo as o,useCallback as i,cr
78
78
  box-shadow: 0px 0px 2px 2px ${e=>e.shadowColor};
79
79
  }
80
80
  }
81
- `,je=M.div`
81
+ `,Fe=M.div`
82
82
  padding: var(--dropdown-padding);
83
83
  cursor: pointer;
84
84
 
@@ -92,7 +92,7 @@ import*as e from"react";import t,{useState as a,useMemo as o,useCallback as i,cr
92
92
  border-radius: ${e=>e.theme.borderRadius};
93
93
  box-shadow: 0 0 2px 2px ${e=>e.shadowColor};
94
94
  }
95
- `,Fe=M.ul`
95
+ `,Be=M.ul`
96
96
  position: absolute;
97
97
  top: 100%;
98
98
  /* right: 0; */
@@ -112,7 +112,7 @@ import*as e from"react";import t,{useState as a,useMemo as o,useCallback as i,cr
112
112
  box-shadow: none;
113
113
  filter: drop-shadow(0px 10px 16px rgba(0, 0, 0, 0.04));
114
114
  }
115
- `,Be=M.li`
115
+ `,je=M.li`
116
116
  display: flex;
117
117
  padding: 12px 18px 12px 16px;
118
118
  &[data-disabled='true'] {
@@ -134,7 +134,7 @@ import*as e from"react";import t,{useState as a,useMemo as o,useCallback as i,cr
134
134
  top: 12px;
135
135
  left: 16px;
136
136
  pointer-events: none;
137
- `,Me=({className:e,value:a,options:o,onChange:i=(()=>{}),id:r,placeholderIcon:n,placeholder:l,style:s,size:c="lg",groupedWithLabel:p,disabled:m,dropdownLabelTrackingAttributes:u={},isNativeSelect:g=!1})=>{const h=d(),[v,b]=t.useState(!1),f=()=>!m&&b(!v);return g?t.createElement(Pe,{color:h.fn.primaryColor(),shadowColor:h.colors[h.primaryColor][2],as:"select","data-is-native":"true",value:(null==a?void 0:a.value)||void 0,disabled:m,onChange:e=>{if("string"==typeof e.target.value){const t=o.find((t=>t.value===e.target.value));t&&i(t)}}},l&&t.createElement("option",{value:l,disabled:!0,selected:!0},l),o.map((e=>t.createElement("option",{key:`${r}-${e.value}`,value:e.value,disabled:!!e.disabled&&e.disabled},e.label)))):t.createElement(Pe,{color:h.fn.primaryColor(),shadowColor:h.colors[h.primaryColor][2],className:e,"data-dropdown-open":v||void 0,"data-size":c,id:r,"data-has-icons":!!n,style:s,onBlur:()=>b(!1),tabIndex:0,"data-disabled":m},!!p&&t.createElement(Re,null,p),t.createElement(je,Object.assign({color:h.fn.primaryColor(),shadowColor:h.colors[h.primaryColor][2],onClick:f,className:p&&"with-label"},u),n," ",t.createElement("span",null,a&&a.value?a.label:l)),v&&t.createElement(Fe,{onClick:f,"data-has-icons":!!n},o.map((e=>t.createElement(Be,{key:`${r}-${e.value}`,"data-selected":a&&a.value===e.value||void 0,onClick:()=>!e.disabled&&!m&&(null==i?void 0:i(e)),"data-disabled":!!e.disabled&&e.disabled},e.icon&&t.createElement(Oe,null,e.icon),e.label)))))},Ie=r({}),Ue=({children:e,defaultParams:a})=>t.createElement(Ie.Provider,{value:{defaultParams:a}},e),De=e=>{const{data:{userInfo:t,env:{togetherBasePath:a}}}=n(X),{defaultParams:o}=n(Ie)||{},i=null==t?void 0:t.id,r=t&&"number"==typeof t.communities_interacted&&0===t.communities_interacted;return{authActionWrapper:(t,n)=>{const l=Object.assign(Object.assign(Object.assign({},o),e),n);if(!i||r){i||Ne(Q),(null==l?void 0:l._joinCommunityIds)&&(localStorage.setItem("to_join_community_ids",JSON.stringify(Array.from(new Set((JSON.parse(localStorage.getItem("to_join_community_ids")||"[]")||[]).concat(l._joinCommunityIds).filter(Boolean))))),null==l||delete l._joinCommunityIds),(null==l?void 0:l._joinTopicIds)&&(localStorage.setItem("to_join_topic_ids",JSON.stringify(Array.from(new Set((JSON.parse(localStorage.getItem("to_join_topic_ids")||"[]")||[]).concat(l._joinTopicIds).filter(Boolean))))),null==l||delete l._joinTopicIds);const e=(null==l?void 0:l._location)||window.location.href;return null==l||delete l._location,window.location.href=K(e,l,a),null}return t&&t()},params:Object.assign(Object.assign({},o),e)}},We=M.div`
137
+ `,Me=({className:e,value:a,options:o,onChange:i=(()=>{}),id:r,placeholderIcon:n,placeholder:l,style:s,size:c="lg",groupedWithLabel:p,disabled:m,dropdownLabelTrackingAttributes:u={},isNativeSelect:g=!1})=>{const h=d(),[v,b]=t.useState(!1),f=()=>!m&&b(!v);return g?t.createElement(Pe,{color:h.fn.primaryColor(),shadowColor:h.colors[h.primaryColor][2],as:"select","data-is-native":"true",value:(null==a?void 0:a.value)||void 0,disabled:m,onChange:e=>{if("string"==typeof e.target.value){const t=o.find((t=>t.value===e.target.value));t&&i(t)}}},l&&t.createElement("option",{value:l,disabled:!0,selected:!0},l),o.map((e=>t.createElement("option",{key:`${r}-${e.value}`,value:e.value,disabled:!!e.disabled&&e.disabled},e.label)))):t.createElement(Pe,{color:h.fn.primaryColor(),shadowColor:h.colors[h.primaryColor][2],className:e,"data-dropdown-open":v||void 0,"data-size":c,id:r,"data-has-icons":!!n,style:s,onBlur:()=>b(!1),tabIndex:0,"data-disabled":m},!!p&&t.createElement(Re,null,p),t.createElement(Fe,Object.assign({color:h.fn.primaryColor(),shadowColor:h.colors[h.primaryColor][2],onClick:f,className:p&&"with-label"},u),n," ",t.createElement("span",null,a&&a.value?a.label:l)),v&&t.createElement(Be,{onClick:f,"data-has-icons":!!n},o.map((e=>t.createElement(je,{key:`${r}-${e.value}`,"data-selected":a&&a.value===e.value||void 0,onClick:()=>!e.disabled&&!m&&(null==i?void 0:i(e)),"data-disabled":!!e.disabled&&e.disabled},e.icon&&t.createElement(Oe,null,e.icon),e.label)))))},Ie=r({}),Ue=({children:e,defaultParams:a})=>t.createElement(Ie.Provider,{value:{defaultParams:a}},e),De=e=>{const{data:{userInfo:t,env:{togetherBasePath:a}}}=n(X),{defaultParams:o}=n(Ie)||{},i=null==t?void 0:t.id,r=t&&"number"==typeof t.communities_interacted&&0===t.communities_interacted;return{authActionWrapper:(t,n)=>{const l=Object.assign(Object.assign(Object.assign({},o),e),n);if(!i||r){i||Ne(Q),(null==l?void 0:l._joinCommunityIds)&&(localStorage.setItem("to_join_community_ids",JSON.stringify(Array.from(new Set((JSON.parse(localStorage.getItem("to_join_community_ids")||"[]")||[]).concat(l._joinCommunityIds).filter(Boolean))))),null==l||delete l._joinCommunityIds),(null==l?void 0:l._joinTopicIds)&&(localStorage.setItem("to_join_topic_ids",JSON.stringify(Array.from(new Set((JSON.parse(localStorage.getItem("to_join_topic_ids")||"[]")||[]).concat(l._joinTopicIds).filter(Boolean))))),null==l||delete l._joinTopicIds);const e=(null==l?void 0:l._location)||window.location.href;return null==l||delete l._location,window.location.href=K(e,l,a),null}return t&&t()},params:Object.assign(Object.assign({},o),e)}},We=M.div`
138
138
  .link-info-container {
139
139
  padding: 0.5rem 1rem;
140
140
  background: ${e=>e.color||"#f4faff"};
@@ -194,7 +194,7 @@ import*as e from"react";import t,{useState as a,useMemo as o,useCallback as i,cr
194
194
  }
195
195
  }
196
196
  }
197
- `,He=r({});var Ze="vvR-m49";const qe=({children:e,className:a=""})=>{const{isReplied:o,trackingCategory:i,trackingLabel:r,onLikeClick:l}=n(He);return t.createElement("div",{className:`${Ze} ${a}`,"data-event-category":i,"data-event-action":o?"Like Comment Click":"Like Post Click","data-event-label":r,onClick:()=>{null==l||l()}},e)},Ge=({children:e,className:a=""})=>{const{trackingCategory:o,trackingLabel:i,onShareClick:r}=n(He);return t.createElement("div",{className:`${Ze} ${a}`,onClick:()=>{null==r||r()},"data-event-category":o,"data-event-action":"Share Icon Click","data-event-label":i},e)},Xe=({children:e,className:a=""})=>{const{isReplied:o,trackingCategory:i,trackingLabel:r,onCommentClick:l}=n(He);return t.createElement("div",{className:`${Ze} ${a}`,"data-event-category":i,"data-event-action":o?"Reply Comment Click":"Comment Text Click","data-event-label":r,onClick:e=>{e.preventDefault(),e.stopPropagation(),null==l||l()}},e)};var Qe,Ke="UhiT4m5",Ye="oEfeTkV",$e="OlbikxJ",Je="_9GXHCn3",_e="HCsrR0N",et="MV3lNuh";!function(e){e[e.post=1]="post",e[e.reply=2]="reply"}(Qe||(Qe={}));const tt=e=>{var{type:a,viewCount:o,loveCount:i=0,replyCount:r=0,replyPadding:l,liked:s,isReplied:d,onCommentClick:c,onLikeClick:p,onShareClick:m,className:u,style:g,hideCommentIcon:h,showingMostEngaging:v,isMarryBaby:f,hasShare:w=!0,hasCountLike:k=!0,trackingCategory:A="Together",trackingLabel:N="",children:z}=e,T=b(e,["type","viewCount","loveCount","replyCount","replyPadding","liked","isReplied","onCommentClick","onLikeClick","onShareClick","className","style","hideCommentIcon","showingMostEngaging","isMarryBaby","hasShare","hasCountLike","trackingCategory","trackingLabel","children"]);const{data:{env:{isMarryBaby:S}}}=n(X),L=Boolean(f)?f:S,{t:V}=x();return t.createElement(He.Provider,{value:{liked:s,loveCount:i,trackingCategory:A,trackingLabel:N,isReplied:d,onLikeClick:p,onShareClick:m,onCommentClick:c}},z||t.createElement("div",Object.assign({className:`${Ke} ${u}`,"data-show-most-engaging":v,"data-type":a===Qe.post?"post":"reply","data-reply-padding":a===Qe.reply&&l,"data-is-marrybaby":L,style:g},T),t.createElement("div",{className:Ye},t.createElement("div",{className:$e},t.createElement(qe,{className:_e},t.createElement(y,{className:Je,size:"p3",as:"div"},t.createElement(E,{className:"txt-icon",isMarryBaby:L,isSolid:s,color:s?L?D.mbColors.pink:D.colors.red800:"#737373"}),k&&t.createElement("div",{className:et},i))),w&&t.createElement(Ge,{className:_e},t.createElement(y,{size:"p3",className:Je,as:"div"},t.createElement(C.Share,{isMarryBaby:L}))),void 0!==o&&t.createElement(y,{size:"p3",className:Je,as:"div"},t.createElement(C.Eye,{isMarryBaby:L}),t.createElement("div",{className:et},W(o)))),!h&&t.createElement(Xe,{className:_e},t.createElement(y,{size:"p3",className:Je,as:"div"},d?t.createElement(C.Reply,{className:"txt-icon"}):t.createElement(C.Comment,{className:"txt-icon",isMarryBaby:L}),d?V("cardReactions.reply"):t.createElement("div",{className:et},V("post.commentCount",{count:r})))))))};tt.LikeWrapper=qe,tt.ShareWrapper=Ge,tt.CommentWrapper=Xe;const at=c((e=>({wrapper:{display:"flex",flexWrap:"wrap",width:"100%",padding:"0.5rem 0",gap:"0.5rem"},item:{position:"relative",whiteSpace:"nowrap",padding:"5px 12px",background:e.colors.gray[0],borderRadius:"2rem",cursor:"pointer","-webkit-user-drag":"none",userSelect:"none",textDecoration:"none","*":{pointerEvents:"none"},"&:first-child":{marginLeft:0}},text:{}}))),ot=e=>{var{topics:o=[],onClick:i,className:r,style:l,trackingCategory:s="Together",locale:d="vi-VN",classNames:c,styles:p,unstyled:m,shortenedNumber:u=3,shortenedStyle:g}=e,h=b(e,["topics","onClick","className","style","trackingCategory","locale","classNames","styles","unstyled","shortenedNumber","shortenedStyle"]);const{t:v}=x(),{classes:f}=at(void 0,{name:"TagTopic",classNames:c,styles:p,unstyled:m}),{data:{env:{togetherBasePath:w}},action:{sanitizeFunction:E}}=n(X),[C,k]=a(!g);return t.createElement("div",Object.assign({onClick:i,className:`${f.wrapper} ${r}`,style:l},h),(C?o:o.slice(0,u)).map(((e,a)=>{const o=(null==e?void 0:e.dueDateMonth)&&0!==(null==e?void 0:e.dueDateMonth)&&(null==e?void 0:e.dueDateYear)&&0!==(null==e?void 0:e.dueDateYear);return t.createElement("a",{className:f.item,key:a,"data-event-category":s,"data-event-action":"Topic in Post Click","data-event-label":`${Y(d)}${w}${e.url}`,href:e.isActive&&!e.isHidden?`${w}${e.url}/`:void 0},t.createElement(y,{size:"p4"},t.createElement("span",{style:Object.assign({},o&&{textTransform:"capitalize"}),dangerouslySetInnerHTML:{__html:o?`${pe(new Date(2020,Number(e.dueDateMonth)-1,1),"MMMM",{locale:P[d]})}${d===j.Vietnam?"/":" "}${null==e?void 0:e.dueDateYear}`:(null==E?void 0:E(e.name))||e.name}})))})),!C&&o.length>u&&t.createElement("a",{className:f.item,href:"#",onClick:e=>{e.preventDefault(),k(!0)}},t.createElement(y,{size:"p4"},"+",v("tagTopic.moreTopics",{number:o.length-u}))))},it=M.div`
197
+ `,He=r({});var Ze="vvR-m49";const qe=({children:e,className:a=""})=>{const{isReplied:o,trackingCategory:i,trackingLabel:r,onLikeClick:l}=n(He);return t.createElement("div",{className:`${Ze} ${a}`,"data-event-category":i,"data-event-action":o?"Like Comment Click":"Like Post Click","data-event-label":r,onClick:()=>{null==l||l()}},e)},Ge=({children:e,className:a=""})=>{const{trackingCategory:o,trackingLabel:i,onShareClick:r}=n(He);return t.createElement("div",{className:`${Ze} ${a}`,onClick:()=>{null==r||r()},"data-event-category":o,"data-event-action":"Share Icon Click","data-event-label":i},e)},Xe=({children:e,className:a=""})=>{const{isReplied:o,trackingCategory:i,trackingLabel:r,onCommentClick:l}=n(He);return t.createElement("div",{className:`${Ze} ${a}`,"data-event-category":i,"data-event-action":o?"Reply Comment Click":"Comment Text Click","data-event-label":r,onClick:e=>{e.preventDefault(),e.stopPropagation(),null==l||l()}},e)};var Qe,Ke="UhiT4m5",Ye="oEfeTkV",$e="OlbikxJ",Je="_9GXHCn3",_e="HCsrR0N",et="MV3lNuh";!function(e){e[e.post=1]="post",e[e.reply=2]="reply"}(Qe||(Qe={}));const tt=e=>{var{type:a,viewCount:o,loveCount:i=0,replyCount:r=0,replyPadding:l,liked:s,isReplied:d,onCommentClick:c,onLikeClick:p,onShareClick:m,className:u,style:g,hideCommentIcon:h,showingMostEngaging:v,isMarryBaby:f,hasShare:w=!0,hasCountLike:k=!0,trackingCategory:A="Together",trackingLabel:N="",children:z}=e,T=b(e,["type","viewCount","loveCount","replyCount","replyPadding","liked","isReplied","onCommentClick","onLikeClick","onShareClick","className","style","hideCommentIcon","showingMostEngaging","isMarryBaby","hasShare","hasCountLike","trackingCategory","trackingLabel","children"]);const{data:{env:{isMarryBaby:S}}}=n(X),L=Boolean(f)?f:S,{t:V}=x();return t.createElement(He.Provider,{value:{liked:s,loveCount:i,trackingCategory:A,trackingLabel:N,isReplied:d,onLikeClick:p,onShareClick:m,onCommentClick:c}},z||t.createElement("div",Object.assign({className:`${Ke} ${u}`,"data-show-most-engaging":v,"data-type":a===Qe.post?"post":"reply","data-reply-padding":a===Qe.reply&&l,"data-is-marrybaby":L,style:g},T),t.createElement("div",{className:Ye},t.createElement("div",{className:$e},t.createElement(qe,{className:_e},t.createElement(y,{className:Je,size:"p3",as:"div"},t.createElement(E,{className:"txt-icon",isMarryBaby:L,isSolid:s,color:s?L?D.mbColors.pink:D.colors.red800:"#737373"}),k&&t.createElement("div",{className:et},i))),w&&t.createElement(Ge,{className:_e},t.createElement(y,{size:"p3",className:Je,as:"div"},t.createElement(C.Share,{isMarryBaby:L}))),void 0!==o&&t.createElement(y,{size:"p3",className:Je,as:"div"},t.createElement(C.Eye,{isMarryBaby:L}),t.createElement("div",{className:et},W(o)))),!h&&t.createElement(Xe,{className:_e},t.createElement(y,{size:"p3",className:Je,as:"div"},d?t.createElement(C.Reply,{className:"txt-icon"}):t.createElement(C.Comment,{className:"txt-icon",isMarryBaby:L}),d?V("cardReactions.reply"):t.createElement("div",{className:et},V("post.commentCount",{count:r})))))))};tt.LikeWrapper=qe,tt.ShareWrapper=Ge,tt.CommentWrapper=Xe;const at=c((e=>({wrapper:{display:"flex",flexWrap:"wrap",width:"100%",padding:"0.5rem 0",gap:"0.5rem"},item:{position:"relative",whiteSpace:"nowrap",padding:"5px 12px",background:e.colors.gray[0],borderRadius:"2rem",cursor:"pointer","-webkit-user-drag":"none",userSelect:"none",textDecoration:"none","*":{pointerEvents:"none"},"&:first-child":{marginLeft:0}},text:{}}))),ot=e=>{var{topics:o=[],onClick:i,className:r,style:l,trackingCategory:s="Together",locale:d="vi-VN",classNames:c,styles:p,unstyled:m,shortenedNumber:u=3,shortenedStyle:g}=e,h=b(e,["topics","onClick","className","style","trackingCategory","locale","classNames","styles","unstyled","shortenedNumber","shortenedStyle"]);const{t:v}=x(),{classes:f}=at(void 0,{name:"TagTopic",classNames:c,styles:p,unstyled:m}),{data:{env:{togetherBasePath:w}},action:{sanitizeFunction:E}}=n(X),[C,k]=a(!g);return t.createElement("div",Object.assign({onClick:i,className:`${f.wrapper} ${r}`,style:l},h),(C?o:o.slice(0,u)).map(((e,a)=>{const o=(null==e?void 0:e.dueDateMonth)&&0!==(null==e?void 0:e.dueDateMonth)&&(null==e?void 0:e.dueDateYear)&&0!==(null==e?void 0:e.dueDateYear);return t.createElement("a",{className:f.item,key:a,"data-event-category":s,"data-event-action":"Topic in Post Click","data-event-label":`${Y(d)}${w}${e.url}`,href:e.isActive&&!e.isHidden?`${w}${e.url}/`:void 0},t.createElement(y,{size:"p4"},t.createElement("span",{style:Object.assign({},o&&{textTransform:"capitalize"}),dangerouslySetInnerHTML:{__html:o?`${pe(new Date(2020,Number(e.dueDateMonth)-1,1),"MMMM",{locale:P[d]})}${d===F.Vietnam?"/":" "}${null==e?void 0:e.dueDateYear}`:(null==E?void 0:E(e.name))||e.name}})))})),!C&&o.length>u&&t.createElement("a",{className:f.item,href:"#",onClick:e=>{e.preventDefault(),k(!0)}},t.createElement(y,{size:"p4"},"+",v("tagTopic.moreTopics",{number:o.length-u}))))},it=M.div`
198
198
  display: flex;
199
199
  align-items: center;
200
200
  justify-content: space-between;
@@ -715,33 +715,12 @@ import*as e from"react";import t,{useState as a,useMemo as o,useCallback as i,cr
715
715
  text-overflow: ellipsis;
716
716
  overflow: hidden;
717
717
  }
718
- `;M.span`
719
- display: flex;
720
- flex-direction: column;
721
- justify-content: center;
722
- margin: 0 0.4em;
723
- color: ${e=>e.theme.colors.neutral300};
724
- `,M.div`
725
- display: inline-block;
726
- width: 3px;
727
- height: 3px;
728
- margin: 0;
729
- background-color: ${e=>e.theme.colors.gray400};
730
- border-radius: 50%;
731
- `,M.div`
732
- display: flex;
733
- margin-top: 8px;
734
-
735
- .bullet-point {
736
- width: 24px;
737
- height: 24px;
738
- }
739
- `;const Pt=M.ul`
718
+ `,Pt=M.ul`
740
719
  padding-left: 18px;
741
720
  li {
742
721
  list-style-type: disc;
743
722
  }
744
- `;var jt="data:image/svg+xml,%3csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M18 6L6 18' stroke='%23262626' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M6 6L18 18' stroke='%23262626' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e",Ft="data:image/svg+xml,%3csvg width='18' height='18' viewBox='0 0 18 18' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M9 16.9998C13.4183 16.9998 17 13.418 17 8.99976C17 4.58148 13.4183 0.999756 9 0.999756C4.58172 0.999756 1 4.58148 1 8.99976C1 13.418 4.58172 16.9998 9 16.9998Z' fill='white' stroke='%23E4E8EC' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M10.3333 7.66679V5.00012H7.66667V7.66679H5V10.3335H7.66667V13.0001H10.3333V10.3335H13V7.66679H10.3333Z' fill='%23FF5331'/%3e%3c/svg%3e";const Bt=M.div`
723
+ `;var Ft="data:image/svg+xml,%3csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M18 6L6 18' stroke='%23262626' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M6 6L18 18' stroke='%23262626' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e",Bt="data:image/svg+xml,%3csvg width='18' height='18' viewBox='0 0 18 18' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M9 16.9998C13.4183 16.9998 17 13.418 17 8.99976C17 4.58148 13.4183 0.999756 9 0.999756C4.58172 0.999756 1 4.58148 1 8.99976C1 13.418 4.58172 16.9998 9 16.9998Z' fill='white' stroke='%23E4E8EC' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M10.3333 7.66679V5.00012H7.66667V7.66679H5V10.3335H7.66667V13.0001H10.3333V10.3335H13V7.66679H10.3333Z' fill='%23FF5331'/%3e%3c/svg%3e";const jt=M.div`
745
724
  display: flex;
746
725
  align-items: center;
747
726
  justify-content: center;
@@ -777,7 +756,7 @@ import*as e from"react";import t,{useState as a,useMemo as o,useCallback as i,cr
777
756
  &[data-is-marrybaby='true'] {
778
757
  box-shadow: none;
779
758
  }
780
- `;const Rt=({className:e,size:a="md"})=>{const{t:o}=x();return t.createElement(Bt,{className:e},t.createElement(me,{size:a,color:"transparent",isLoading:!0},o("loading")))},Mt=({isOpen:e=!0,onClose:o,enableAnimation:i=!0,doctorId:r,locale:n,isMobile:l,overwriteProfileProps:d,avatarFallback:c=F.getAssetPath("avatar.jpg"),trackingCategory:p="Together"})=>{var m,u,g;const{t:h}=x(),[v,b]=a(null),[f,w]=a(!1);s((()=>{if(e&&r&&String(null==v?void 0:v.id)!==String(r)){w(!0);try{b(null),q(G(J.GET_DOCTOR_INFO,{doctorId:r,website_url:_[n]}),"get").then((e=>{b(Object.assign(Object.assign({},null==e?void 0:e._data.doctor),d))}))}catch(e){console.error(e)}w(!1)}}),[e,r,null==v?void 0:v.id]);const E=(null==v?void 0:v.experiences)||[],C=((null==v?void 0:v.specialties)||[]).map((e=>(null==e?void 0:e.name)||e)).join(" • "),k=E.map((e=>{try{return JSON.parse(e.description)}catch(t){return e.description}})).filter((e=>e.content));return t.createElement(t.Fragment,null,t.createElement(Tt,{"data-open":e,"data-animation":i,onClick:e=>e.stopPropagation()},f||!v?t.createElement(Rt,null):t.createElement("div",{className:"popup-content"},t.createElement("div",{className:"close-button",onClick:o},t.createElement("img",{src:jt,style:{width:20,height:20},alt:"close-icon",loading:"lazy"})),t.createElement("div",{className:"main-info"},t.createElement("div",{className:"border-banner"}),t.createElement("div",{className:"avatar-title"},t.createElement(Lt,null,t.createElement("div",{className:"image-container"},t.createElement("div",{style:{position:"relative"}},t.createElement(N,{src:null==v?void 0:v.avatar,backupSrc:c,className:"profile-image",alt:"avatar"}),t.createElement("img",{className:"badge-avatar",src:Ft,alt:"badge",loading:"lazy"})))),t.createElement(Vt,null,t.createElement(y,{size:"s3",weight:"semiBold",className:"full-name"},null==v?void 0:v.name),t.createElement("div",{className:"specialty"},C&&t.createElement(t.Fragment,null,t.createElement(y,{size:"p4",color:D.colors.gray800},C," • ")),t.createElement("a",{href:ee({id:null===(m=null==v?void 0:v.organization)||void 0===m?void 0:m.id,name:null===(u=null==v?void 0:v.organization)||void 0===u?void 0:u.name,slug:null===(g=null==v?void 0:v.organization)||void 0===g?void 0:g.slug,locale:n}),className:"organisation",target:"_blank",rel:"noreferrer"},t.createElement(y,{size:"p4",className:"organisation",color:D.colors.gray800,style:{textDecoration:"underline"}},null==v?void 0:v.organization.name))))),!l&&t.createElement("div",{className:"btn-wrapper"},t.createElement("a",{href:te({name:v.name,id:v.id,locale:n})},t.createElement(me,{color:"primary",size:"md",className:"btn-booking"},h("careBooking.bookAnAppointment"))))),k&&t.createElement(Vt,null,t.createElement("div",{className:"experience"},t.createElement(y,{weight:"bold",size:"s3",color:D.colors.gray800,style:{paddingBottom:16}},h("expert.content.description").toUpperCase()),t.createElement(Pt,null,k.map(((e,a)=>t.createElement("li",{key:a},t.createElement(y,{size:"p2"},(e=>(null==e?void 0:e.year)?`${e.year} ${null==e?void 0:e.content}`:(null==e?void 0:e.content)?e.content:"string"==typeof e?e:"")(e)))))),l?t.createElement("div",{className:"btn-wrapper"},t.createElement("a",{href:te({name:v.name,id:v.id,locale:n})},t.createElement(me,{color:"primary",size:"md",className:"btn-booking"},h("careBooking.bookAnAppointment")))):t.createElement("a",{href:te({name:v.name,id:v.id,locale:n})},t.createElement(y,{size:"s4",color:"#2D87F3",style:{paddingTop:24},"data-event-category":p,"data-event-action":"See Full Doctor Profile","data-event-label":Y(n)+te({name:v.name,id:v.id,locale:n})},h("home.seeExpert"))))))),t.createElement(St,{"data-open":e,onClick:e=>{e.stopPropagation(),o()}}))},It=M.div`
759
+ `;const Rt=({className:e,size:a="md"})=>{const{t:o}=x();return t.createElement(jt,{className:e},t.createElement(me,{size:a,color:"transparent",isLoading:!0},o("loading")))},Mt=({isOpen:e=!0,onClose:o,enableAnimation:i=!0,doctorId:r,locale:n,isMobile:l,overwriteProfileProps:d,avatarFallback:c=B.getAssetPath("avatar.jpg"),trackingCategory:p="Together"})=>{var m,u,g;const{t:h}=x(),[v,b]=a(null),[f,w]=a(!1);s((()=>{if(e&&r&&String(null==v?void 0:v.id)!==String(r)){w(!0);try{b(null),q(G(J.GET_DOCTOR_INFO,{doctorId:r,website_url:_[n]}),"get").then((e=>{b(Object.assign(Object.assign({},null==e?void 0:e._data.doctor),d))}))}catch(e){console.error(e)}w(!1)}}),[e,r,null==v?void 0:v.id]);const E=(null==v?void 0:v.experiences)||[],C=((null==v?void 0:v.specialties)||[]).map((e=>(null==e?void 0:e.name)||e)).join(" • "),k=E.map((e=>{try{return JSON.parse(e.description)}catch(t){return e.description}})).filter((e=>e.content));return t.createElement(t.Fragment,null,t.createElement(Tt,{"data-open":e,"data-animation":i,onClick:e=>e.stopPropagation()},f||!v?t.createElement(Rt,null):t.createElement("div",{className:"popup-content"},t.createElement("div",{className:"close-button",onClick:o},t.createElement("img",{src:Ft,style:{width:20,height:20},alt:"close-icon",loading:"lazy"})),t.createElement("div",{className:"main-info"},t.createElement("div",{className:"border-banner"}),t.createElement("div",{className:"avatar-title"},t.createElement(Lt,null,t.createElement("div",{className:"image-container"},t.createElement("div",{style:{position:"relative"}},t.createElement(N,{src:null==v?void 0:v.avatar,backupSrc:c,className:"profile-image",alt:"avatar"}),t.createElement("img",{className:"badge-avatar",src:Bt,alt:"badge",loading:"lazy"})))),t.createElement(Vt,null,t.createElement(y,{size:"s3",weight:"semiBold",className:"full-name"},null==v?void 0:v.name),t.createElement("div",{className:"specialty"},C&&t.createElement(t.Fragment,null,t.createElement(y,{size:"p4",color:D.colors.gray800},C," • ")),t.createElement("a",{href:ee({id:null===(m=null==v?void 0:v.organization)||void 0===m?void 0:m.id,name:null===(u=null==v?void 0:v.organization)||void 0===u?void 0:u.name,slug:null===(g=null==v?void 0:v.organization)||void 0===g?void 0:g.slug,locale:n}),className:"organisation",target:"_blank",rel:"noreferrer"},t.createElement(y,{size:"p4",className:"organisation",color:D.colors.gray800,style:{textDecoration:"underline"}},null==v?void 0:v.organization.name))))),!l&&t.createElement("div",{className:"btn-wrapper"},t.createElement("a",{href:te({name:v.name,id:v.id,locale:n})},t.createElement(me,{color:"primary",size:"md",className:"btn-booking"},h("careBooking.bookAnAppointment"))))),k&&t.createElement(Vt,null,t.createElement("div",{className:"experience"},t.createElement(y,{weight:"bold",size:"s3",color:D.colors.gray800,style:{paddingBottom:16}},h("expert.content.description").toUpperCase()),t.createElement(Pt,null,k.map(((e,a)=>t.createElement("li",{key:a},t.createElement(y,{size:"p2"},(e=>(null==e?void 0:e.year)?`${e.year} ${null==e?void 0:e.content}`:(null==e?void 0:e.content)?e.content:"string"==typeof e?e:"")(e)))))),l?t.createElement("div",{className:"btn-wrapper"},t.createElement("a",{href:te({name:v.name,id:v.id,locale:n})},t.createElement(me,{color:"primary",size:"md",className:"btn-booking"},h("careBooking.bookAnAppointment")))):t.createElement("a",{href:te({name:v.name,id:v.id,locale:n})},t.createElement(y,{size:"s4",color:"#2D87F3",style:{paddingTop:24},"data-event-category":p,"data-event-action":"See Full Doctor Profile","data-event-label":Y(n)+te({name:v.name,id:v.id,locale:n})},h("home.seeExpert"))))))),t.createElement(St,{"data-open":e,onClick:e=>{e.stopPropagation(),o()}}))},It=M.div`
781
760
  position: fixed;
782
761
  left: 50%;
783
762
  width: 343px;
@@ -916,20 +895,7 @@ import*as e from"react";import t,{useState as a,useMemo as o,useCallback as i,cr
916
895
  text-overflow: ellipsis;
917
896
  overflow: hidden;
918
897
  }
919
- `;M.span`
920
- display: flex;
921
- flex-direction: column;
922
- justify-content: center;
923
- margin: 0 0.4em;
924
- color: ${e=>e.theme.colors.neutral300};
925
- `,M.div`
926
- display: inline-block;
927
- width: 3px;
928
- height: 3px;
929
- margin: 0;
930
- background-color: ${e=>e.theme.colors.gray400};
931
- border-radius: 50%;
932
- `;const Ht=M.div`
898
+ `,Ht=M.div`
933
899
  display: flex;
934
900
  margin-top: 8px;
935
901
 
@@ -937,7 +903,7 @@ import*as e from"react";import t,{useState as a,useMemo as o,useCallback as i,cr
937
903
  width: 24px;
938
904
  height: 24px;
939
905
  }
940
- `;var Zt="data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none'%3e%3cpath fill='%2345A4FF' d='M12 24c6.627 0 12-5.373 12-12S18.627 0 12 0 0 5.373 0 12s5.373 12 12 12Z'/%3e%3cpath fill='%232D87F3' d='M24 12a12.1 12.1 0 0 0-.128-1.758l-5.077-5.077L5.041 18.958l4.858 4.858c.682.12 1.384.184 2.1.184 6.628 0 12-5.373 12-12Z'/%3e%3cpath fill='white' d='M9.014 17.824 5.04 18.959l1.135-3.973 2.368.47.47 2.368Z'/%3e%3cpath fill='%23F7F9FC' d='M8.544 15.456 5.041 18.96l3.972-1.135-.469-2.368Z'/%3e%3cpath fill='%23E4E8EC' d='M6.467 18.552 5.45 17.533 5.04 18.96l1.426-.407Z'/%3e%3cpath fill='%23D2D6DC' d='m5.957 18.043-.916.916 1.426-.407-.51-.509Z'/%3e%3cpath fill='%23FFD658' d='m15.828 5.331 2.837 2.837-9.651 9.652-2.838-2.837 9.652-9.652Z'/%3e%3cpath fill='%23FFC326' d='m7.594 16.404 9.651-9.651 1.419 1.418-9.652 9.652-1.418-1.419Z'/%3e%3cpath fill='%23FF5331' d='m18.312 8.525-2.837-2.838 1.123-1.123c.44-.44 1.154-.44 1.595 0l1.243 1.243c.44.44.44 1.154 0 1.594l-1.124 1.124Z'/%3e%3cpath fill='%23F44D2C' d='m18.816 5.186-1.921 1.92 1.418 1.419 1.124-1.124c.44-.44.44-1.154 0-1.594l-.622-.621Z'/%3e%3c/svg%3e";const qt={author:Zt,edtior:Zt,expert:"data:image/svg+xml,%3csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='12' cy='12' r='12' fill='%23FFCB37'/%3e%3ccircle cx='12' cy='12' r='10.5' fill='%23FE921D'/%3e%3cpath d='M11.443 5.13654C11.6446 4.63466 12.355 4.63466 12.5566 5.13654L13.9931 8.71375C14.0789 8.92747 14.2795 9.0732 14.5093 9.08878L18.3553 9.34957C18.8949 9.38615 19.1145 10.0619 18.6994 10.4086L15.7412 12.8802C15.5645 13.0279 15.4878 13.2637 15.544 13.4871L16.4845 17.2254C16.6164 17.7499 16.0417 18.1676 15.5836 17.88L12.3188 15.8303C12.1238 15.7079 11.8758 15.7079 11.6808 15.8303L8.41599 17.88C7.95794 18.1676 7.38314 17.7499 7.51509 17.2254L8.45556 13.4871C8.51175 13.2637 8.43513 13.0279 8.25839 12.8802L5.30017 10.4086C4.88514 10.0619 5.10469 9.38615 5.64429 9.34957L9.49031 9.08878C9.7201 9.0732 9.92068 8.92747 10.0065 8.71375L11.443 5.13654Z' fill='white'/%3e%3c/svg%3e","fact-check":"data:image/svg+xml,%3csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M8 16C12.4183 16 16 12.4183 16 8C16 3.58172 12.4183 0 8 0C3.58172 0 0 3.58172 0 8C0 12.4183 3.58172 16 8 16Z' fill='%2300C076'/%3e%3cpath d='M11.9456 5.46631L6.66562 10.2663L4.26562 8.08449' stroke='white' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e",medical:Ft},Gt=({trackingCategory:e="Together",locale:o,isOpen:i=!0,onClose:r,enableAnimation:n=!0,expertId:l,overwriteProfileProps:d,avatarFallback:c=F.getAssetPath("avatar.jpg")})=>{const{t:p}=x(),[m,u]=a(null),[g,h]=a(!1);return s((()=>{if(i&&l&&String(null==m?void 0:m.user_id)!==String(l)){h(!0);try{u(null),q(ae(oe.GET_EXPERT_BY_ID,{id:l}),"get").then((e=>{u(Object.assign(Object.assign({},null==e?void 0:e.data),d))}))}catch(e){console.error(e)}h(!1)}}),[i,l,null==m?void 0:m.user_id]),t.createElement(t.Fragment,null,t.createElement(It,{"data-open":i,"data-animation":n,onClick:e=>e.stopPropagation()},g||!m?t.createElement(Rt,null):t.createElement("div",{className:"popup-content"},t.createElement("div",{className:"close-button",onClick:r},t.createElement("img",{src:jt,style:{width:20,height:20},alt:"close-icon",loading:"lazy"})),t.createElement("div",{className:"main-info"},t.createElement("div",{className:"border-banner"}),t.createElement("div",{className:"avatar-title"},t.createElement(Dt,null,t.createElement("div",{className:"image-container"},t.createElement("div",{style:{position:"relative"}},t.createElement(N,{src:null==m?void 0:m.avatar,className:"profile-image",alt:"avatar",backupSrc:c}),t.createElement("img",{className:"badge-avatar",src:qt[null==m?void 0:m.role],alt:"badge",loading:"lazy"})))),t.createElement(Wt,null,t.createElement(y,{size:"s3",className:"full-name",weight:"semiBold"},null==m?void 0:m.display_name),t.createElement("div",null,t.createElement(y,{size:"p4",color:D.colors.gray800},null==m?void 0:m.specialty," • "),t.createElement("a",{href:null==m?void 0:m.organisation_url,className:"organisation",target:"_blank",rel:"noreferrer"},t.createElement(y,{size:"p4",className:"organisation",color:D.colors.gray800,style:{textDecoration:"underline"}},null==m?void 0:m.organisation)))))),t.createElement(Wt,null,t.createElement("div",{className:"experience"},t.createElement(y,{weight:"bold",size:"p4",color:D.colors.gray800,style:{paddingBottom:16}},p("expert.content.description").toUpperCase()),t.createElement("div",{className:"list-items"},!!(null==m?void 0:m.experiences)&&m.experiences.filter((e=>!(!e||!e.title&&!e.organization))).slice(0,3).map(((e,a)=>t.createElement(Ht,{key:a},t.createElement("img",{className:"bullet-point",src:"data:image/svg+xml,%3csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='12' cy='12' r='2' fill='%232D87F3'/%3e%3c/svg%3e",alt:"point",loading:"lazy"}),t.createElement("div",{className:"text-contain"},t.createElement($,{tag:"h6",color:D.colors.gray800},null==e?void 0:e.title),t.createElement(y,{size:"p2",color:D.colors.gray500},null==e?void 0:e.organization)))))),t.createElement("a",{href:null==m?void 0:m.profile_url,style:{display:"inline-block",paddingTop:24}},t.createElement(y,{as:"span",size:"s4",color:"#2D87F3","data-event-category":e,"data-event-action":"See Full Doctor Profile","data-event-label":Y(o)+(null==m?void 0:m.profile_url)},p("home.seeExpert"))))))),t.createElement(Ut,{"data-open":i,onClick:e=>{e.stopPropagation(),r()}}))},Xt=M.div`
906
+ `;var Zt="data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none'%3e%3cpath fill='%2345A4FF' d='M12 24c6.627 0 12-5.373 12-12S18.627 0 12 0 0 5.373 0 12s5.373 12 12 12Z'/%3e%3cpath fill='%232D87F3' d='M24 12a12.1 12.1 0 0 0-.128-1.758l-5.077-5.077L5.041 18.958l4.858 4.858c.682.12 1.384.184 2.1.184 6.628 0 12-5.373 12-12Z'/%3e%3cpath fill='white' d='M9.014 17.824 5.04 18.959l1.135-3.973 2.368.47.47 2.368Z'/%3e%3cpath fill='%23F7F9FC' d='M8.544 15.456 5.041 18.96l3.972-1.135-.469-2.368Z'/%3e%3cpath fill='%23E4E8EC' d='M6.467 18.552 5.45 17.533 5.04 18.96l1.426-.407Z'/%3e%3cpath fill='%23D2D6DC' d='m5.957 18.043-.916.916 1.426-.407-.51-.509Z'/%3e%3cpath fill='%23FFD658' d='m15.828 5.331 2.837 2.837-9.651 9.652-2.838-2.837 9.652-9.652Z'/%3e%3cpath fill='%23FFC326' d='m7.594 16.404 9.651-9.651 1.419 1.418-9.652 9.652-1.418-1.419Z'/%3e%3cpath fill='%23FF5331' d='m18.312 8.525-2.837-2.838 1.123-1.123c.44-.44 1.154-.44 1.595 0l1.243 1.243c.44.44.44 1.154 0 1.594l-1.124 1.124Z'/%3e%3cpath fill='%23F44D2C' d='m18.816 5.186-1.921 1.92 1.418 1.419 1.124-1.124c.44-.44.44-1.154 0-1.594l-.622-.621Z'/%3e%3c/svg%3e";const qt={author:Zt,edtior:Zt,expert:"data:image/svg+xml,%3csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='12' cy='12' r='12' fill='%23FFCB37'/%3e%3ccircle cx='12' cy='12' r='10.5' fill='%23FE921D'/%3e%3cpath d='M11.443 5.13654C11.6446 4.63466 12.355 4.63466 12.5566 5.13654L13.9931 8.71375C14.0789 8.92747 14.2795 9.0732 14.5093 9.08878L18.3553 9.34957C18.8949 9.38615 19.1145 10.0619 18.6994 10.4086L15.7412 12.8802C15.5645 13.0279 15.4878 13.2637 15.544 13.4871L16.4845 17.2254C16.6164 17.7499 16.0417 18.1676 15.5836 17.88L12.3188 15.8303C12.1238 15.7079 11.8758 15.7079 11.6808 15.8303L8.41599 17.88C7.95794 18.1676 7.38314 17.7499 7.51509 17.2254L8.45556 13.4871C8.51175 13.2637 8.43513 13.0279 8.25839 12.8802L5.30017 10.4086C4.88514 10.0619 5.10469 9.38615 5.64429 9.34957L9.49031 9.08878C9.7201 9.0732 9.92068 8.92747 10.0065 8.71375L11.443 5.13654Z' fill='white'/%3e%3c/svg%3e","fact-check":"data:image/svg+xml,%3csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M8 16C12.4183 16 16 12.4183 16 8C16 3.58172 12.4183 0 8 0C3.58172 0 0 3.58172 0 8C0 12.4183 3.58172 16 8 16Z' fill='%2300C076'/%3e%3cpath d='M11.9456 5.46631L6.66562 10.2663L4.26562 8.08449' stroke='white' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e",medical:Bt},Gt=({trackingCategory:e="Together",locale:o,isOpen:i=!0,onClose:r,enableAnimation:n=!0,expertId:l,overwriteProfileProps:d,avatarFallback:c=B.getAssetPath("avatar.jpg")})=>{const{t:p}=x(),[m,u]=a(null),[g,h]=a(!1);return s((()=>{if(i&&l&&String(null==m?void 0:m.user_id)!==String(l)){h(!0);try{u(null),q(ae(oe.GET_EXPERT_BY_ID,{id:l}),"get").then((e=>{u(Object.assign(Object.assign({},null==e?void 0:e.data),d))}))}catch(e){console.error(e)}h(!1)}}),[i,l,null==m?void 0:m.user_id]),t.createElement(t.Fragment,null,t.createElement(It,{"data-open":i,"data-animation":n,onClick:e=>e.stopPropagation()},g||!m?t.createElement(Rt,null):t.createElement("div",{className:"popup-content"},t.createElement("div",{className:"close-button",onClick:r},t.createElement("img",{src:Ft,style:{width:20,height:20},alt:"close-icon",loading:"lazy"})),t.createElement("div",{className:"main-info"},t.createElement("div",{className:"border-banner"}),t.createElement("div",{className:"avatar-title"},t.createElement(Dt,null,t.createElement("div",{className:"image-container"},t.createElement("div",{style:{position:"relative"}},t.createElement(N,{src:null==m?void 0:m.avatar,className:"profile-image",alt:"avatar",backupSrc:c}),t.createElement("img",{className:"badge-avatar",src:qt[null==m?void 0:m.role],alt:"badge",loading:"lazy"})))),t.createElement(Wt,null,t.createElement(y,{size:"s3",className:"full-name",weight:"semiBold"},null==m?void 0:m.display_name),t.createElement("div",null,t.createElement(y,{size:"p4",color:D.colors.gray800},null==m?void 0:m.specialty," • "),t.createElement("a",{href:null==m?void 0:m.organisation_url,className:"organisation",target:"_blank",rel:"noreferrer"},t.createElement(y,{size:"p4",className:"organisation",color:D.colors.gray800,style:{textDecoration:"underline"}},null==m?void 0:m.organisation)))))),t.createElement(Wt,null,t.createElement("div",{className:"experience"},t.createElement(y,{weight:"bold",size:"p4",color:D.colors.gray800,style:{paddingBottom:16}},p("expert.content.description").toUpperCase()),t.createElement("div",{className:"list-items"},!!(null==m?void 0:m.experiences)&&m.experiences.filter((e=>!(!e||!e.title&&!e.organization))).slice(0,3).map(((e,a)=>t.createElement(Ht,{key:a},t.createElement("img",{className:"bullet-point",src:"data:image/svg+xml,%3csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='12' cy='12' r='2' fill='%232D87F3'/%3e%3c/svg%3e",alt:"point",loading:"lazy"}),t.createElement("div",{className:"text-contain"},t.createElement($,{tag:"h6",color:D.colors.gray800},null==e?void 0:e.title),t.createElement(y,{size:"p2",color:D.colors.gray500},null==e?void 0:e.organization)))))),t.createElement("a",{href:null==m?void 0:m.profile_url,style:{display:"inline-block",paddingTop:24}},t.createElement(y,{as:"span",size:"s4",color:"#2D87F3","data-event-category":e,"data-event-action":"See Full Doctor Profile","data-event-label":Y(o)+(null==m?void 0:m.profile_url)},p("home.seeExpert"))))))),t.createElement(Ut,{"data-open":i,onClick:e=>{e.stopPropagation(),r()}}))},Xt=M.div`
941
907
  position: fixed;
942
908
  left: 50%;
943
909
  width: 343px;
@@ -1074,28 +1040,7 @@ import*as e from"react";import t,{useState as a,useMemo as o,useCallback as i,cr
1074
1040
  p {
1075
1041
  max-width: 100%;
1076
1042
  }
1077
- `;M.span`
1078
- display: flex;
1079
- flex-direction: column;
1080
- justify-content: center;
1081
- margin: 0 0.4em;
1082
- color: ${e=>e.theme.colors.neutral300};
1083
- `,M.div`
1084
- display: inline-block;
1085
- width: 3px;
1086
- height: 3px;
1087
- margin: 0;
1088
- background-color: ${e=>e.theme.colors.gray400};
1089
- border-radius: 50%;
1090
- `,M.div`
1091
- display: flex;
1092
- margin-top: 8px;
1093
-
1094
- .bullet-point {
1095
- width: 24px;
1096
- height: 24px;
1097
- }
1098
- `;const $t=({isOpen:e=!0,onClose:i,enableAnimation:r=!0,hospitalId:n,locale:l,isMobile:d,overwriteProfileProps:c,avatarFallback:p=F.getAssetPath("avatar.jpg"),trackingCategory:m="Together"})=>{const{t:u}=x(),[g,h]=a(null),[v,b]=a(!1);s((()=>{if(e&&n&&String(null==g?void 0:g.id)!==String(n)){b(!0);try{h(null),q(G(J.GET_HOSPITAL_INFO,{hospital_branch_id:n,website_url:_[l]}),"get").then((e=>{h(Object.assign(Object.assign({},null==e?void 0:e._data.branch),c))}))}catch(e){console.error(e)}b(!1)}}),[e,n,null==g?void 0:g.id]);const f=(null==g?void 0:g.specialties)||[],w=o((()=>f.map((e=>e.name))),[f]);return t.createElement(t.Fragment,null,t.createElement(Xt,{"data-open":e,"data-animation":r,onClick:e=>e.stopPropagation()},v||!g?t.createElement(Rt,null):t.createElement("div",{className:"popup-content"},t.createElement("div",{className:"close-button",onClick:i},t.createElement("img",{src:jt,style:{width:20,height:20},alt:"close-icon",loading:"lazy"})),t.createElement("div",{className:"main-info"},t.createElement("div",{className:"border-banner"}),t.createElement("div",{className:"avatar-title"},t.createElement(Kt,null,t.createElement("div",{className:"image-container"},t.createElement("div",{style:{position:"relative"}},t.createElement(N,{src:null==g?void 0:g.logo,className:"profile-image",alt:"avatar",backupSrc:p}),t.createElement("img",{className:"badge-avatar",src:Ft,alt:"badge",loading:"lazy"})))),t.createElement(Yt,null,t.createElement(y,{size:"s3",weight:"semiBold",className:"full-name"},null==g?void 0:g.name),t.createElement("div",{className:"specialty"},f&&t.createElement(y,{size:"p4",color:D.colors.gray800},w.join(" • "),"•"),t.createElement("a",{href:ee({id:g.id,name:g.name,slug:g.slug,locale:l}),className:"organisation",target:"_blank",rel:"noreferrer"},t.createElement(y,{size:"p4",className:"organisation",color:D.colors.gray800,style:{textDecoration:"underline"}},null==g?void 0:g.name))))),!d&&t.createElement("a",{href:ee({id:g.id,name:g.name,slug:g.slug,locale:l})},t.createElement("div",{className:"btn-wrapper"},t.createElement(me,{color:"primary",size:"md",className:"btn-booking"},u("careBooking.bookAnAppointment"))))),t.createElement(Yt,null,t.createElement("div",{className:"experience"},t.createElement(y,{weight:"bold",size:"s3",color:D.colors.gray800,style:{paddingBottom:16}},u("hospital.content.description").toUpperCase()),t.createElement(y,{size:"p2",color:D.colors.gray500},g.about),d?t.createElement("a",{href:ee({id:g.id,name:g.name,slug:g.slug,locale:l})},t.createElement("div",{className:"btn-wrapper"},t.createElement(me,{color:"primary",size:"md",className:"btn-booking"},u("careBooking.bookAnAppointment")))):t.createElement("a",{href:ee({id:g.id,name:g.name,slug:g.slug,locale:l})},t.createElement(y,{size:"s4",color:"#2D87F3",as:"span","data-event-category":m,"data-event-action":"See Full Hospital Profile","data-event-label":Y(l)+ee({id:g.id,name:g.name,slug:g.slug,locale:l})},u("home.seeHospital"))))))),t.createElement(Qt,{"data-open":e,onClick:e=>{e.stopPropagation(),i()}}))};var Jt="_2UKyiK1",_t="E5ga-tI",ea="_8Y2nWXX",ta="d0T7kSP";const aa=({open:e,onClose:a,children:o,profileModalProps:i})=>{const{t:r}=x();return t.createElement(Ae,Object.assign({className:Jt,opened:e,onClose:a,overlayOpacity:.2,overflow:"inside",styles:{inner:{padding:0,justifyContent:"flex-end"},modal:{height:"100%",borderRadius:0},body:{padding:"24px",maxHeight:"100%"},content:{maxHeight:"100%",height:"100%",borderRadius:0}},title:"Profile"},i),t.createElement("div",{className:_t},t.createElement("div",{className:ea},r("profilePanel.modal.heading")),t.createElement("div",{className:ta,onClick:a},t.createElement(Te,null))),o)};B.extend(ye);const oa=r({}),ia=e=>{const{className:o="",community:i,name:r,username:l,url:d,avatar:c,role:g,title:h,userType:v="user",expertId:b,specialty:f,organisation:w,isMarryBaby:y,doctorId:E,hospitalId:C,hasQuickBooking:k,handleMakeAppointment:A,communityTrackingAttr:N,isAnonymous:T,showDetailPopup:S,subLine:L,authActionWrapper:P,profileProps:j,profileModalProps:B,extendEle:O,avatarProps:M,hideInfo:I,timeText:U,onCloseFromPost:W,avatarIcon:H,badgeIconSize:Z,hideBackground:q,children:G,styles:Q,dataEventCategory:K,dataEventAction:Y,dataEventLabel:$}=e,{data:{locale:J,router:_,env:{isMarryBaby:ee,togetherBasePath:te}}}=n(X),{isMobile:ae}=z(),{t:oe}=x(),{classes:ie}=zt(void 0,{name:"CardAuthor",styles:Q}),re="boolean"==typeof y?y:ee,ne=re?"marryBaby":"helloSites",le=T?oe("cardPost.anonymous"):r||l||"",se=T?F.getAssetPath("avatar.jpg"):c,de=T?void 0:g,[ce,pe]=a(!1),{asPath:me}=_||{},ue=`https://${V[J]}${me}`,ge=()=>{if(T||"chatbot"===v)return!1;S?ve(!0):d&&(window.location.href=d)};s((()=>{R(ce)}),[ce]);const[he,ve]=a(!1),be="expert"===(null==e?void 0:e.role),fe=Boolean(E||C),xe=["expert"===de&&w&&t.createElement("span",null,w),"expert"===de&&f&&t.createElement("span",null,f),!("expert"===de&&f&&w)&&(null==i?void 0:i.name)&&t.createElement("a",Object.assign({href:(null==i?void 0:i.slug)&&i.isActive&&!i.isHidden?`${te}/${null==i?void 0:i.slug}/`:void 0,className:"author-community-name"},N),`${null==i?void 0:i.name}`),U&&t.createElement("span",null,U)].filter(Boolean),[we,ye]=a(null);return s((()=>{he&&!we&&Promise.resolve().then((function(){return ui})).then((e=>{ye((()=>e.ProfileDetail))}))}),[he]),t.createElement(oa.Provider,{value:{handleMakeAppointment:A,doctorId:E,hospitalId:C,currentUrl:ue}},t.createElement(aa,{open:he,onClose:()=>ve(!1),profileModalProps:B},we&&t.createElement(we,Object.assign({currentPageUrl:$,authActionWrapper:P,onCloseFromPost:()=>{ve(!1),null==W||W()}},j,{authorProps:Object.assign({userId:null==e?void 0:e.userId,avatar:se,name:null==e?void 0:e.name,role:null==e?void 0:e.role,title:null==e?void 0:e.title,doctorId:E,hospitalId:C,hasQuickBooking:k},null==j?void 0:j.authorProps)}))),"expert"===de&&b?t.createElement(Gt,{isOpen:ce,onClose:()=>pe(!1),expertId:b}):null,"expert"===de&&E?t.createElement(Mt,{isOpen:ce,onClose:()=>pe(!1),doctorId:E,locale:J}):null,"expert"===de&&C?t.createElement($t,{isOpen:ce,onClose:()=>pe(!1),hospitalId:C,locale:J}):null,t.createElement("div",{className:`hhg-card-author ${ie.root} ${o} ${be?"expert-author":""}`,"data-background":!q&&be,"data-is-marrybaby":re},t.createElement(Nt,{dataEventCategory:K,dataEventAction:Y,dataEventLabel:$,onAvatarClick:ge,avatarProps:Object.assign(Object.assign({avatar:T?F.getAssetPath(re?"anomyous-avatar-1.svg":"anomyous-avatar.svg"):se,username:le},M),{style:{cursor:T||!d&&!S?"default":"pointer"}}),avatarIcon:H||be&&t.createElement(ut,{size:Z||15})},G?t.createElement("div",{onClick:ge},G):!I&&t.createElement(Nt.Row,null,t.createElement(Nt.ColLeft,null,t.createElement(p,{align:"center",onClick:ge},t.createElement(Nt.MainText,{onClick:ge},le,"chatbot"===v?t.createElement(t.Fragment,null," ",t.createElement(gt,{color:D.colors.primaryBase,size:16,style:{display:"inline-block",transform:"translate(0, 2px)"}})):de&&t.createElement(Le,{className:ie.authorBadge,siteType:ne,role:de,title:h,style:{verticalAlign:"bottom"}}))),L||t.createElement(Nt.SubTextRow,{style:k?{position:"relative"}:{}},xe.map(((e,a)=>t.createElement(t.Fragment,null,0!==a&&t.createElement(Nt.SubDivider,null),t.createElement(Nt.SubText,null,e)))),k&&fe&&t.createElement(m,{sx:{marginTop:u(5)}},t.createElement(Ve,{bookingId:E||C,bookingType:E?"doctor":C?"hospital":void 0,size:ae?"xs":"sm"})))))),O&&O))};ia.MainText=Nt.MainText,ia.SubText=Nt.SubText,ia.SubTextRow=Nt.SubTextRow,ia.SubDivider=Nt.SubDivider;const ra=M.div`
1043
+ `,$t=({isOpen:e=!0,onClose:i,enableAnimation:r=!0,hospitalId:n,locale:l,isMobile:d,overwriteProfileProps:c,avatarFallback:p=B.getAssetPath("avatar.jpg"),trackingCategory:m="Together"})=>{const{t:u}=x(),[g,h]=a(null),[v,b]=a(!1);s((()=>{if(e&&n&&String(null==g?void 0:g.id)!==String(n)){b(!0);try{h(null),q(G(J.GET_HOSPITAL_INFO,{hospital_branch_id:n,website_url:_[l]}),"get").then((e=>{h(Object.assign(Object.assign({},null==e?void 0:e._data.branch),c))}))}catch(e){console.error(e)}b(!1)}}),[e,n,null==g?void 0:g.id]);const f=(null==g?void 0:g.specialties)||[],w=o((()=>f.map((e=>e.name))),[f]);return t.createElement(t.Fragment,null,t.createElement(Xt,{"data-open":e,"data-animation":r,onClick:e=>e.stopPropagation()},v||!g?t.createElement(Rt,null):t.createElement("div",{className:"popup-content"},t.createElement("div",{className:"close-button",onClick:i},t.createElement("img",{src:Ft,style:{width:20,height:20},alt:"close-icon",loading:"lazy"})),t.createElement("div",{className:"main-info"},t.createElement("div",{className:"border-banner"}),t.createElement("div",{className:"avatar-title"},t.createElement(Kt,null,t.createElement("div",{className:"image-container"},t.createElement("div",{style:{position:"relative"}},t.createElement(N,{src:null==g?void 0:g.logo,className:"profile-image",alt:"avatar",backupSrc:p}),t.createElement("img",{className:"badge-avatar",src:Bt,alt:"badge",loading:"lazy"})))),t.createElement(Yt,null,t.createElement(y,{size:"s3",weight:"semiBold",className:"full-name"},null==g?void 0:g.name),t.createElement("div",{className:"specialty"},f&&t.createElement(y,{size:"p4",color:D.colors.gray800},w.join(" • "),"•"),t.createElement("a",{href:ee({id:g.id,name:g.name,slug:g.slug,locale:l}),className:"organisation",target:"_blank",rel:"noreferrer"},t.createElement(y,{size:"p4",className:"organisation",color:D.colors.gray800,style:{textDecoration:"underline"}},null==g?void 0:g.name))))),!d&&t.createElement("a",{href:ee({id:g.id,name:g.name,slug:g.slug,locale:l})},t.createElement("div",{className:"btn-wrapper"},t.createElement(me,{color:"primary",size:"md",className:"btn-booking"},u("careBooking.bookAnAppointment"))))),t.createElement(Yt,null,t.createElement("div",{className:"experience"},t.createElement(y,{weight:"bold",size:"s3",color:D.colors.gray800,style:{paddingBottom:16}},u("hospital.content.description").toUpperCase()),t.createElement(y,{size:"p2",color:D.colors.gray500},g.about),d?t.createElement("a",{href:ee({id:g.id,name:g.name,slug:g.slug,locale:l})},t.createElement("div",{className:"btn-wrapper"},t.createElement(me,{color:"primary",size:"md",className:"btn-booking"},u("careBooking.bookAnAppointment")))):t.createElement("a",{href:ee({id:g.id,name:g.name,slug:g.slug,locale:l})},t.createElement(y,{size:"s4",color:"#2D87F3",as:"span","data-event-category":m,"data-event-action":"See Full Hospital Profile","data-event-label":Y(l)+ee({id:g.id,name:g.name,slug:g.slug,locale:l})},u("home.seeHospital"))))))),t.createElement(Qt,{"data-open":e,onClick:e=>{e.stopPropagation(),i()}}))};var Jt="_2UKyiK1",_t="E5ga-tI",ea="_8Y2nWXX",ta="d0T7kSP";const aa=({open:e,onClose:a,children:o,profileModalProps:i})=>{const{t:r}=x();return t.createElement(Ae,Object.assign({className:Jt,opened:e,onClose:a,overlayOpacity:.2,overflow:"inside",styles:{inner:{padding:0,justifyContent:"flex-end"},modal:{height:"100%",borderRadius:0},body:{padding:"24px",maxHeight:"100%"},content:{maxHeight:"100%",height:"100%",borderRadius:0}},title:"Profile"},i),t.createElement("div",{className:_t},t.createElement("div",{className:ea},r("profilePanel.modal.heading")),t.createElement("div",{className:ta,onClick:a},t.createElement(Te,null))),o)};j.extend(ye);const oa=r({}),ia=e=>{const{className:o="",community:i,name:r,username:l,url:d,avatar:c,role:g,title:h,userType:v="user",expertId:b,specialty:f,organisation:w,isMarryBaby:y,doctorId:E,hospitalId:C,hasQuickBooking:k,handleMakeAppointment:A,communityTrackingAttr:N,isAnonymous:T,showDetailPopup:S,subLine:L,authActionWrapper:P,profileProps:F,profileModalProps:j,extendEle:O,avatarProps:M,hideInfo:I,timeText:U,onCloseFromPost:W,avatarIcon:H,badgeIconSize:Z,hideBackground:q,children:G,styles:Q,dataEventCategory:K,dataEventAction:Y,dataEventLabel:$}=e,{data:{locale:J,router:_,env:{isMarryBaby:ee,togetherBasePath:te}}}=n(X),{isMobile:ae}=z(),{t:oe}=x(),{classes:ie}=zt(void 0,{name:"CardAuthor",styles:Q}),re="boolean"==typeof y?y:ee,ne=re?"marryBaby":"helloSites",le=T?oe("cardPost.anonymous"):r||l||"",se=T?B.getAssetPath("avatar.jpg"):c,de=T?void 0:g,[ce,pe]=a(!1),{asPath:me}=_||{},ue=`https://${V[J]}${me}`,ge=()=>{if(T||"chatbot"===v)return!1;S?ve(!0):d&&(window.location.href=d)};s((()=>{R(ce)}),[ce]);const[he,ve]=a(!1),be="expert"===(null==e?void 0:e.role),fe=Boolean(E||C),xe=["expert"===de&&w&&t.createElement("span",null,w),"expert"===de&&f&&t.createElement("span",null,f),!("expert"===de&&f&&w)&&(null==i?void 0:i.name)&&t.createElement("a",Object.assign({href:(null==i?void 0:i.slug)&&i.isActive&&!i.isHidden?`${te}/${null==i?void 0:i.slug}/`:void 0,className:"author-community-name"},N),`${null==i?void 0:i.name}`),U&&t.createElement("span",null,U)].filter(Boolean),[we,ye]=a(null);return s((()=>{he&&!we&&Promise.resolve().then((function(){return ui})).then((e=>{ye((()=>e.ProfileDetail))}))}),[he]),t.createElement(oa.Provider,{value:{handleMakeAppointment:A,doctorId:E,hospitalId:C,currentUrl:ue}},t.createElement(aa,{open:he,onClose:()=>ve(!1),profileModalProps:j},we&&t.createElement(we,Object.assign({currentPageUrl:$,authActionWrapper:P,onCloseFromPost:()=>{ve(!1),null==W||W()}},F,{authorProps:Object.assign({userId:null==e?void 0:e.userId,avatar:se,name:null==e?void 0:e.name,role:null==e?void 0:e.role,title:null==e?void 0:e.title,doctorId:E,hospitalId:C,hasQuickBooking:k},null==F?void 0:F.authorProps)}))),"expert"===de&&b?t.createElement(Gt,{isOpen:ce,onClose:()=>pe(!1),expertId:b}):null,"expert"===de&&E?t.createElement(Mt,{isOpen:ce,onClose:()=>pe(!1),doctorId:E,locale:J}):null,"expert"===de&&C?t.createElement($t,{isOpen:ce,onClose:()=>pe(!1),hospitalId:C,locale:J}):null,t.createElement("div",{className:`hhg-card-author ${ie.root} ${o} ${be?"expert-author":""}`,"data-background":!q&&be,"data-is-marrybaby":re},t.createElement(Nt,{dataEventCategory:K,dataEventAction:Y,dataEventLabel:$,onAvatarClick:ge,avatarProps:Object.assign(Object.assign({avatar:T?B.getAssetPath(re?"anomyous-avatar-1.svg":"anomyous-avatar.svg"):se,username:le},M),{style:{cursor:T||!d&&!S?"default":"pointer"}}),avatarIcon:H||be&&t.createElement(ut,{size:Z||15})},G?t.createElement("div",{onClick:ge},G):!I&&t.createElement(Nt.Row,null,t.createElement(Nt.ColLeft,null,t.createElement(p,{align:"center",onClick:ge},t.createElement(Nt.MainText,{onClick:ge},le,"chatbot"===v?t.createElement(t.Fragment,null," ",t.createElement(gt,{color:D.colors.primaryBase,size:16,style:{display:"inline-block",transform:"translate(0, 2px)"}})):de&&t.createElement(Le,{className:ie.authorBadge,siteType:ne,role:de,title:h,style:{verticalAlign:"bottom"}}))),L||t.createElement(Nt.SubTextRow,{style:k?{position:"relative"}:{}},xe.map(((e,a)=>t.createElement(t.Fragment,null,0!==a&&t.createElement(Nt.SubDivider,null),t.createElement(Nt.SubText,null,e)))),k&&fe&&t.createElement(m,{sx:{marginTop:u(5)}},t.createElement(Ve,{bookingId:E||C,bookingType:E?"doctor":C?"hospital":void 0,size:ae?"xs":"sm"})))))),O&&O))};ia.MainText=Nt.MainText,ia.SubText=Nt.SubText,ia.SubTextRow=Nt.SubTextRow,ia.SubDivider=Nt.SubDivider;const ra=M.div`
1099
1044
  position: relative;
1100
1045
  display: flex;
1101
1046
  height: 100%;
@@ -1547,7 +1492,7 @@ import*as e from"react";import t,{useState as a,useMemo as o,useCallback as i,cr
1547
1492
  }
1548
1493
  }
1549
1494
  }
1550
- `;let ja=null;function Fa(e){var t,a;let o=-1;if(void 0!==window.getSelection){const i=window.getSelection();if((null==i?void 0:i.rangeCount)&&(null==i?void 0:i.rangeCount)>0){const i=null===(t=window.getSelection())||void 0===t?void 0:t.getRangeAt(0);if(i){const t=i.cloneRange();t.selectNodeContents(e),t.setEnd(i.endContainer,i.endOffset),o=Ba(t.cloneContents().childNodes,o);const r=null===(a=i.endContainer.parentElement)||void 0===a?void 0:a.closest("mocka"),n=i.endContainer.nodeValue||i.endContainer.outerHTML;r&&(null==n?void 0:n.length)&&(o=o-i.endOffset+(r.outerHTML.length-(null==r?void 0:r.outerHTML.lastIndexOf(n))))}}}return o}function Ba(e,t){return e.forEach(((a,o)=>{const i=o+1===e.length;if(a.nodeType===Node.ELEMENT_NODE){const e=a.outerHTML;if(!i)return void(t+=e.length);t+=e.indexOf(">")+1,t=Ba(a.childNodes,t)}else a.nodeType===Node.TEXT_NODE&&(t+=(a.nodeValue||"").replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#039;").length)})),t}f(void 0,void 0,void 0,(function*(){if("undefined"==typeof window)return;const e=yield import("react-quill");ja=e.default;const t=e.Quill||ja.Quill;t.register("modules/preserveWhiteSpace",class{constructor(e,t){this.quill=e,this.options=t,e.container.style.whiteSpace="pre-line"}});const a=t.import("blots/inline");class o extends a{static create(e){if(!e)return super.create(!1);const t=super.create(e);return o.setNodeConfigurations(t,e),t}static formats(e){return!(!e.innerText||!(e.getAttribute("data-href")||e.getAttribute("data-url")||e.getAttribute("data-error")||e.getAttribute("data-bad-word")))&&{"data-bad-word":e.getAttribute("data-bad-word"),"data-error":e.getAttribute("data-error"),"data-href":e.getAttribute("data-href"),"data-url":e.getAttribute("data-url"),"data-text":e.innerText||e.getAttribute("data-href")}}static setNodeConfigurations(e,t){var a,o;t&&(null===(o=null===(a=null==t?void 0:t["data-text"])||void 0===a?void 0:a.replace(/(\&nbsp;)+/g," "))||void 0===o?void 0:o.replace(/(\u200c|&zwnj;)+/g,""))&&(t["data-bad-word"]&&e.setAttribute("data-bad-word",t["data-bad-word"]),t["data-href"]&&e.setAttribute("data-href",t["data-href"]),t["data-error"]&&e.setAttribute("data-error",t["data-error"]),t["data-url"]&&e.setAttribute("data-url",t["data-url"]))}}o.blotName="mocka1",o.tagName="mocka",t.register(o);class i extends a{static create(e){if(!e)return super.create(!1);const t=super.create(e);return i.setNodeConfigurations(t,e),t}static formats(e){return!(!e.getAttribute("data-name")||!e.getAttribute("data-id"))&&{"data-name":e.getAttribute("data-name"),"data-id":e.getAttribute("data-id")}}static setNodeConfigurations(e,t){var a,o;t&&t["data-id"]&&(null===(o=null===(a=null==t?void 0:t["data-name"])||void 0===a?void 0:a.replace(/(\&nbsp;)+/g," "))||void 0===o?void 0:o.replace(/(\u200c|&zwnj;)+/g,""))&&(t["data-id"]&&e.setAttribute("data-id",t["data-id"]),t["data-name"]&&e.setAttribute("data-name",t["data-name"]))}}i.blotName="mention",i.tagName="mention",t.register(i)}));const Oa=(e,t)=>{var a;const{formatUrl:o,bannedWords:i=[]}=t||{},r=e.replace(/<font [^\>]*>(.+)<\/font>/gim,((e,t)=>t.replace(/<u[^\>]*>(.+)<\/u>/gim,"$1"))).replace(ma,((e,t,a,o)=>{if(o!==a){const e=a.split(" "),i=e.findIndex(((t,a)=>{const i=e.slice(0,a+1).join(" ");return!o.startsWith(i)}));if(0===i)return`@${o}`;{const a=(i<0?e:e.slice(0,i)).join(" "),r=o.slice(a.length).trim();return console.log(i,a,r),`<mention data-id="${t}" data-name="${a}">${a}</mention> ${r} `}}return e}));if(!o)return{value:Ta(r,i)};let n=(e=>e.replace(ba,((e,t)=>{const a=document.createElement("div");a.innerHTML=e;const o=a.firstChild;return(null==o?void 0:o.innerText)!==(null==o?void 0:o.getAttribute("data-bad-word"))?t:e})))((e=>{var t,a;return null===(a=null===(t=e.replace(/(\&nbsp;)+/g," "))||void 0===t?void 0:t.replace(/(\u200c|&zwnj;)+/g,""))||void 0===a?void 0:a.replace(sa,((e,t,a)=>{var o;const i=null===(o=t.match(/data-href="([^"]*)"/im))||void 0===o?void 0:o[1];return!i||i===a||a.match(ga)?a:i?`<a href="${i}">${a}</a>`:`<a href="${a}">${a}</a>`})).replace(da,((e,t,a)=>{if('="'!==t&&'data-url="true">'!==t){const e=a.toLowerCase(),t=`${e.startsWith("http")?"":" https://"}${e}`;return fa({text:t,url:t,method:"edit"})}return e})).replace(va,((e,t,a)=>fa({text:a||t,url:t,method:"edit"})))})(r));const l=(e=>{var t;return[...ya(e),...(null===(t=e.match(sa))||void 0===t?void 0:t.map((e=>{var t,a;const o=null===(t=e.match(/data-href="([^"]*)"/im))||void 0===t?void 0:t[1],i=null===(a=e.match(/>(.*?)<\/mocka>/im))||void 0===a?void 0:a[1];return o||i})))||[]].filter((e=>!!e))})(r);if(l){const e=[];let t="";return l.forEach((t=>{if(t)try{const a=new URL(t);Na.some((e=>a.origin.endsWith(e)))||e.push(t)}catch(a){e.push(t)}})),e.length>0&&(n=n.replace(new RegExp(`data-url="true">(${e.map(Ca).join("|")})<`,"gi"),'data-error="true" data-url="true">$1<').replace(new RegExp(`data-href="(${e.map(Ca).join("|")})" data-url="true">`,"gi"),'data-href="$1" data-error="true" data-url="true">')),t=null===(a=l.filter((t=>-1===e.indexOf(t))))||void 0===a?void 0:a[0],{invalidUrls:e,previewUrl:t,value:Ta(n,i)}}return{value:Ta(n,i)}},Ra=({html:e,onChange:o,className:r,style:d,onImagePickerClick:c,bannedWords:p=[],onInvalidUrlsChange:m,onPreviewUrlChange:u,setEditorRef:g,isReplying:h})=>{var v,b,x,E;const C=l([]);C.current=p;const[k,A]=a([]),[N,z]=a(null),{data:{locale:T}}=n(X),S=(null==p?void 0:p.join(","))||"";s((()=>{var e,t;const a=null===(t=null===(e=R.current)||void 0===e?void 0:e.getEditor())||void 0===t?void 0:t.root.innerHTML;P(a)}),[S]);const L=e=>{N&&N.url===e||(z({url:e,isFetching:!0}),q(ie(ne.FETCH_PREVIEW,{_locale:T}),"POST",{data:{link:e}}).then((t=>{var a,o,i,r;z({title:null===(a=null==t?void 0:t.data)||void 0===a?void 0:a.title,description:null===(o=null==t?void 0:t.data)||void 0===o?void 0:o.description,image:(null===(i=null==t?void 0:t.data)||void 0===i?void 0:i.image)||(null===(r=null==t?void 0:t.data)||void 0===r?void 0:r.logo),url:e})})).catch((()=>{z(null)})))},V=l(L);V.current=L;const P=i(ke((e=>{if(e){const t=Oa(e,{bannedWords:C.current,formatUrl:!0}),{invalidUrls:a,previewUrl:i,value:r}=t;a&&A(a),i?V.current(i):z(null),r!==e&&(null==o||o(r))}}),500),[]);s((()=>{m&&m(k)}),[k]),s((()=>{u&&((null==N?void 0:N.url)?u({title:N.title||"",url:N.url||"",image:N.image||"",description:N.description||""}):u(null))}),[N]);const j=l(c);j.current=c;const F=w(),B=l({toolbar:{handlers:{image:()=>{var e;return null===(e=j.current)||void 0===e?void 0:e.call(j)},link:()=>!1},container:"#toolbar-"+F},preserveWhiteSpace:!0}),O=l(-1),R=l(null);g&&(null===(b=null===(v=R.current)||void 0===v?void 0:v.getEditor())||void 0===b?void 0:b.root)&&g(null===(E=null===(x=R.current)||void 0===x?void 0:x.getEditor())||void 0===E?void 0:E.root);const M=()=>{var e,t,a,o,i,r,n,l;if(null===(t=null===(e=R.current)||void 0===e?void 0:e.getEditor())||void 0===t?void 0:t.root){const e=Fa(null===(o=null===(a=R.current)||void 0===a?void 0:a.getEditor())||void 0===o?void 0:o.root),t=null===(r=null===(i=R.current)||void 0===i?void 0:i.getEditor())||void 0===r?void 0:r.root.innerHTML;if(e>=0&&e<t.length){if(Ea(t,!0).length<30-(h?1:0)){const e=function(e){var t,a;let o=null;if(void 0!==window.getSelection){const i=window.getSelection();if((null==i?void 0:i.rangeCount)&&(null==i?void 0:i.rangeCount)>0){const i=null===(t=window.getSelection())||void 0===t?void 0:t.getRangeAt(0);if(i){const t=i.cloneRange();t.selectNodeContents(e),t.setEnd(i.endContainer,i.endOffset);const r=(t.endContainer.nodeValue||"").substring(0,i.endOffset),n=r.lastIndexOf("@");if(n+1<r.length&&(0===n||" @"===r.slice(n-1,n+1))){const e=null===(a=r.slice(n+1))||void 0===a?void 0:a.trim();if(e){t.setStart(i.endContainer,n);const a=t.cloneRange();a.setStart(a.endContainer,n),o={name:e,rect:t.getBoundingClientRect(),replaceRange:a}}}}}}return o}(null===(l=null===(n=R.current)||void 0===n?void 0:n.getEditor())||void 0===l?void 0:l.root);e?(H(e.name,e.rect),K.current=e.replaceRange):(K.current=null,H("",null))}else K.current=null,H("",null);O.current=e}}else U([])},[I,U]=a([]),[D,W]=a({top:0,left:0}),H=i(ke(((e,t,a)=>f(void 0,void 0,void 0,(function*(){var o,i,r,n;if(!e||!DOMRect)return U([]);const l=yield((null===(o=ze(Q))||void 0===o?void 0:o.length)||0)>0?se(ie(ne.SEARCH_USER,{_locale:T,name:e}),"get"):le(ie(re.SEARCH_USER,{_locale:T,name:e}),"get");J(0),U(null===(r=null===(i=null==l?void 0:l.data)||void 0===i?void 0:i.users)||void 0===r?void 0:r.filter((e=>!(null==a?void 0:a.includes(String(e.id))))));const s=t,d=null===(n=G.current)||void 0===n?void 0:n.getBoundingClientRect();if(s&&d){const e=343,t=256,a={top:s.bottom-d.top,width:"min(343px, 100%)",maxHeight:t};d.width-(s.left-d.left)<e?a.right=0:a.left=s.left-d.left,W(a)}}))),500),[]),Z=(e,t)=>{var a,o,i;if(K.current){K.current.deleteContents();const r=document.createElement("mention");r.setAttribute("data-id",e),r.setAttribute("data-name",t),r.innerText=t;const n=document.createTextNode(" ");K.current.insertNode(n),K.current.insertNode(r);(null===(o=null===(a=R.current)||void 0===a?void 0:a.getEditor())||void 0===o?void 0:o.root).focus();const l=null===(i=window.getSelection())||void 0===i?void 0:i.getRangeAt(0);null==l||l.setStart(K.current.endContainer,K.current.endOffset),null==l||l.setEnd(K.current.endContainer,K.current.endOffset)}U([])},G=l(null),K=l(null),Y=l(null),[$,J]=a(0);return s((()=>{if(Y.current){const e=Y.current,t=e.children.item($);if(t){const a=e.getBoundingClientRect(),o=t.getBoundingClientRect();t.offsetTop<e.scrollTop?e.scrollTop=t.offsetTop:t.offsetTop+o.height>e.scrollTop+a.height&&(e.scrollTop=t.offsetTop-a.height+o.height)}}}),[$]),s((()=>{const e=function(e){var t;(null===(t=G.current)||void 0===t?void 0:t.contains(e.target))||U([])};return window.addEventListener("click",e,{passive:!0}),()=>{window.removeEventListener("click",e)}}),[]),t.createElement(Pa,{ref:G,className:r,style:d,onKeyDownCapture:e=>{if(null==I?void 0:I.length){let t=!1;if("ArrowDown"===e.key)t=!0,J((e=>e+1>=I.length?0:e+1));else if("Escape"===e.key)t=!0,J(0),U([]);else if("ArrowUp"===e.key)t=!0,J((e=>e-1<0?I.length-1:e-1));else if("Enter"===e.key||"Tab"===e.key){const e=I[$];e&&(t=!0,Z(e.id,e.name))}if(t)return e.preventDefault(),!1}}},t.createElement(Ma,{id:F,onAddLink:(e,t)=>{var a,i;const r=O.current+1,n=null===(i=null===(a=R.current)||void 0===a?void 0:a.getEditor())||void 0===i?void 0:i.root.innerHTML,l=((null==n?void 0:n.substring(0,r))||"")+`<mocka data-href="${t}" data-url="true">${e}</mocka> `+((null==n?void 0:n.substring(r))||"");null==o||o(l),P(l)}}),ja&&t.createElement(ja,{ref:R,theme:"snow",value:e,onChange:e=>{null==o||o(e),P(e),M()},onChangeSelection:()=>{M()},modules:B.current,formats:["mocka1","mention","id","key","bold","italic","underline","list","bullet"]}),!!(null==I?void 0:I.length)&&t.createElement("div",{ref:Y,className:"mention-search-container",style:D},I.map(((e,a)=>t.createElement("div",{className:"mention-search-item "+($===a?"item-selected":""),key:e.id,onClick:t=>{t.preventDefault(),t.stopPropagation(),Z(e.id,e.name)},onMouseEnter:()=>{J(a)}},t.createElement(ge,{className:"search-avatar",username:e.name,avatar:e.avatar}),t.createElement("div",null,t.createElement(y,{size:"p2"},e.name),t.createElement(y,{size:"p4",color:"#595959"},"@",e.username)))))))},Ma=({onAddLink:e,id:a})=>t.createElement("div",{id:"toolbar-"+a,onClick:e=>{e.preventDefault(),e.stopPropagation()}},t.createElement("span",{className:"ql-formats"},t.createElement("button",{className:"ql-bold",type:"button"}),t.createElement("button",{className:"ql-italic",type:"button"}),t.createElement("button",{className:"ql-underline",type:"button"})),t.createElement("span",{className:"ql-formats"},t.createElement("button",{className:"ql-list",value:"ordered",type:"button"}),t.createElement("button",{className:"ql-list",value:"bullet",type:"button"})),t.createElement("span",{className:"ql-formats"},t.createElement("button",{className:"ql-image",type:"button"}),e&&t.createElement(st,{className:"link-tool-wrapper",toggleButtonContent:t.createElement("img",{className:"link-icon",src:"data:image/svg+xml,%3csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M9.54545 16H7.09091C6.55368 16 6.02172 15.8965 5.52539 15.6955C5.02905 15.4945 4.57808 15.1999 4.1982 14.8284C3.43101 14.0783 3 13.0609 3 12C3 10.9391 3.43101 9.92172 4.1982 9.17157C4.96539 8.42143 6.00593 8 7.09091 8H9.54545M13.9256 8H16.9091C17.4463 8 17.9783 8.10346 18.4746 8.30448C18.9709 8.5055 19.4219 8.80014 19.8018 9.17157C20.1817 9.54301 20.483 9.98396 20.6886 10.4693C20.8942 10.9546 21 11.4747 21 12C21 12.5253 20.8942 13.0454 20.6886 13.5307C20.483 14.016 20.1817 14.457 19.8018 14.8284C19.4219 15.1999 18.9709 15.4945 18.4746 15.6955C17.9783 15.8965 17.4463 16 16.9091 16H13.9256' stroke='%23737373' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M9 12H15' stroke='%23737373' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e",loading:"lazy"}),buttonProps:{size:"md",color:"transparent"},align:"end"},(({setShow:a})=>t.createElement(Ua,{onAddUrl:e,setShow:a}))))),Ia=["notification.limitUrlDomain","notification.urlWrongFormat"],Ua=({onAddUrl:e,setShow:o})=>{const{data:{env:{isMarryBaby:i}}}=n(X),{t:r}=x(),[l,s]=a(""),[d,c]=a(""),[p,m]=a(-1),u=l.trim()&&d.trim()&&p<0;return t.createElement("div",{className:"link-tool-popover"},t.createElement(ue,{name:"url",value:l,size:"md",label:"URL",placeholder:r("placeholder.enterUrlHere"),type:"text",className:"link-input-url",onChange:e=>{s(e),(e=>{const t=za(e.trim());try{const e=new URL(t);return e.protocol.startsWith("http")?Na.some((t=>e.origin.endsWith("/"+t)||e.origin.endsWith("."+t)))?(m(-1),!0):(m(0),!1):(m(1),!1)}catch(e){return m(1),!1}})(e)}}),p>=0&&t.createElement(y,{size:"c2",className:"error-text"},r(Ia[p])),t.createElement(ue,{name:"text",value:d,size:"md",label:r("createPost.urlText"),placeholder:r("placeholder.enterUrlTextHere"),type:"text",className:"link-input-text",onChange:e=>c(e)}),t.createElement("div",{"data-is-marrybaby":i,className:"link-input-button-wrapper"},t.createElement(me,{theme:i?"marryBaby":"helloSites",size:"sm",color:"primary",className:"link-input-button",onClick:()=>{u&&(e(d.trim(),za(l.trim())),o&&o(!1))},isDisabled:!u},r("insert"))))},Da=M.div`
1495
+ `;let Fa=null;function Ba(e){var t,a;let o=-1;if(void 0!==window.getSelection){const i=window.getSelection();if((null==i?void 0:i.rangeCount)&&(null==i?void 0:i.rangeCount)>0){const i=null===(t=window.getSelection())||void 0===t?void 0:t.getRangeAt(0);if(i){const t=i.cloneRange();t.selectNodeContents(e),t.setEnd(i.endContainer,i.endOffset),o=ja(t.cloneContents().childNodes,o);const r=null===(a=i.endContainer.parentElement)||void 0===a?void 0:a.closest("mocka"),n=i.endContainer.nodeValue||i.endContainer.outerHTML;r&&(null==n?void 0:n.length)&&(o=o-i.endOffset+(r.outerHTML.length-(null==r?void 0:r.outerHTML.lastIndexOf(n))))}}}return o}function ja(e,t){return e.forEach(((a,o)=>{const i=o+1===e.length;if(a.nodeType===Node.ELEMENT_NODE){const e=a.outerHTML;if(!i)return void(t+=e.length);t+=e.indexOf(">")+1,t=ja(a.childNodes,t)}else a.nodeType===Node.TEXT_NODE&&(t+=(a.nodeValue||"").replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#039;").length)})),t}f(void 0,void 0,void 0,(function*(){if("undefined"==typeof window)return;const e=yield import("react-quill");Fa=e.default;const t=e.Quill||Fa.Quill;t.register("modules/preserveWhiteSpace",class{constructor(e,t){this.quill=e,this.options=t,e.container.style.whiteSpace="pre-line"}});const a=t.import("blots/inline");class o extends a{static create(e){if(!e)return super.create(!1);const t=super.create(e);return o.setNodeConfigurations(t,e),t}static formats(e){return!(!e.innerText||!(e.getAttribute("data-href")||e.getAttribute("data-url")||e.getAttribute("data-error")||e.getAttribute("data-bad-word")))&&{"data-bad-word":e.getAttribute("data-bad-word"),"data-error":e.getAttribute("data-error"),"data-href":e.getAttribute("data-href"),"data-url":e.getAttribute("data-url"),"data-text":e.innerText||e.getAttribute("data-href")}}static setNodeConfigurations(e,t){var a,o;t&&(null===(o=null===(a=null==t?void 0:t["data-text"])||void 0===a?void 0:a.replace(/(\&nbsp;)+/g," "))||void 0===o?void 0:o.replace(/(\u200c|&zwnj;)+/g,""))&&(t["data-bad-word"]&&e.setAttribute("data-bad-word",t["data-bad-word"]),t["data-href"]&&e.setAttribute("data-href",t["data-href"]),t["data-error"]&&e.setAttribute("data-error",t["data-error"]),t["data-url"]&&e.setAttribute("data-url",t["data-url"]))}}o.blotName="mocka1",o.tagName="mocka",t.register(o);class i extends a{static create(e){if(!e)return super.create(!1);const t=super.create(e);return i.setNodeConfigurations(t,e),t}static formats(e){return!(!e.getAttribute("data-name")||!e.getAttribute("data-id"))&&{"data-name":e.getAttribute("data-name"),"data-id":e.getAttribute("data-id")}}static setNodeConfigurations(e,t){var a,o;t&&t["data-id"]&&(null===(o=null===(a=null==t?void 0:t["data-name"])||void 0===a?void 0:a.replace(/(\&nbsp;)+/g," "))||void 0===o?void 0:o.replace(/(\u200c|&zwnj;)+/g,""))&&(t["data-id"]&&e.setAttribute("data-id",t["data-id"]),t["data-name"]&&e.setAttribute("data-name",t["data-name"]))}}i.blotName="mention",i.tagName="mention",t.register(i)}));const Oa=(e,t)=>{var a;const{formatUrl:o,bannedWords:i=[]}=t||{},r=e.replace(/<font [^\>]*>(.+)<\/font>/gim,((e,t)=>t.replace(/<u[^\>]*>(.+)<\/u>/gim,"$1"))).replace(ma,((e,t,a,o)=>{if(o!==a){const e=a.split(" "),i=e.findIndex(((t,a)=>{const i=e.slice(0,a+1).join(" ");return!o.startsWith(i)}));if(0===i)return`@${o}`;{const a=(i<0?e:e.slice(0,i)).join(" "),r=o.slice(a.length).trim();return console.log(i,a,r),`<mention data-id="${t}" data-name="${a}">${a}</mention> ${r} `}}return e}));if(!o)return{value:Ta(r,i)};let n=(e=>e.replace(ba,((e,t)=>{const a=document.createElement("div");a.innerHTML=e;const o=a.firstChild;return(null==o?void 0:o.innerText)!==(null==o?void 0:o.getAttribute("data-bad-word"))?t:e})))((e=>{var t,a;return null===(a=null===(t=e.replace(/(\&nbsp;)+/g," "))||void 0===t?void 0:t.replace(/(\u200c|&zwnj;)+/g,""))||void 0===a?void 0:a.replace(sa,((e,t,a)=>{var o;const i=null===(o=t.match(/data-href="([^"]*)"/im))||void 0===o?void 0:o[1];return!i||i===a||a.match(ga)?a:i?`<a href="${i}">${a}</a>`:`<a href="${a}">${a}</a>`})).replace(da,((e,t,a)=>{if('="'!==t&&'data-url="true">'!==t){const e=a.toLowerCase(),t=`${e.startsWith("http")?"":" https://"}${e}`;return fa({text:t,url:t,method:"edit"})}return e})).replace(va,((e,t,a)=>fa({text:a||t,url:t,method:"edit"})))})(r));const l=(e=>{var t;return[...ya(e),...(null===(t=e.match(sa))||void 0===t?void 0:t.map((e=>{var t,a;const o=null===(t=e.match(/data-href="([^"]*)"/im))||void 0===t?void 0:t[1],i=null===(a=e.match(/>(.*?)<\/mocka>/im))||void 0===a?void 0:a[1];return o||i})))||[]].filter((e=>!!e))})(r);if(l){const e=[];let t="";return l.forEach((t=>{if(t)try{const a=new URL(t);Na.some((e=>a.origin.endsWith(e)))||e.push(t)}catch(a){e.push(t)}})),e.length>0&&(n=n.replace(new RegExp(`data-url="true">(${e.map(Ca).join("|")})<`,"gi"),'data-error="true" data-url="true">$1<').replace(new RegExp(`data-href="(${e.map(Ca).join("|")})" data-url="true">`,"gi"),'data-href="$1" data-error="true" data-url="true">')),t=null===(a=l.filter((t=>-1===e.indexOf(t))))||void 0===a?void 0:a[0],{invalidUrls:e,previewUrl:t,value:Ta(n,i)}}return{value:Ta(n,i)}},Ra=({html:e,onChange:o,className:r,style:d,onImagePickerClick:c,bannedWords:p=[],onInvalidUrlsChange:m,onPreviewUrlChange:u,setEditorRef:g,isReplying:h})=>{var v,b,x,E;const C=l([]);C.current=p;const[k,A]=a([]),[N,z]=a(null),{data:{locale:T}}=n(X),S=(null==p?void 0:p.join(","))||"";s((()=>{var e,t;const a=null===(t=null===(e=R.current)||void 0===e?void 0:e.getEditor())||void 0===t?void 0:t.root.innerHTML;P(a)}),[S]);const L=e=>{N&&N.url===e||(z({url:e,isFetching:!0}),q(ie(ne.FETCH_PREVIEW,{_locale:T}),"POST",{data:{link:e}}).then((t=>{var a,o,i,r;z({title:null===(a=null==t?void 0:t.data)||void 0===a?void 0:a.title,description:null===(o=null==t?void 0:t.data)||void 0===o?void 0:o.description,image:(null===(i=null==t?void 0:t.data)||void 0===i?void 0:i.image)||(null===(r=null==t?void 0:t.data)||void 0===r?void 0:r.logo),url:e})})).catch((()=>{z(null)})))},V=l(L);V.current=L;const P=i(ke((e=>{if(e){const t=Oa(e,{bannedWords:C.current,formatUrl:!0}),{invalidUrls:a,previewUrl:i,value:r}=t;a&&A(a),i?V.current(i):z(null),r!==e&&(null==o||o(r))}}),500),[]);s((()=>{m&&m(k)}),[k]),s((()=>{u&&((null==N?void 0:N.url)?u({title:N.title||"",url:N.url||"",image:N.image||"",description:N.description||""}):u(null))}),[N]);const F=l(c);F.current=c;const B=w(),j=l({toolbar:{handlers:{image:()=>{var e;return null===(e=F.current)||void 0===e?void 0:e.call(F)},link:()=>!1},container:"#toolbar-"+B},preserveWhiteSpace:!0}),O=l(-1),R=l(null);g&&(null===(b=null===(v=R.current)||void 0===v?void 0:v.getEditor())||void 0===b?void 0:b.root)&&g(null===(E=null===(x=R.current)||void 0===x?void 0:x.getEditor())||void 0===E?void 0:E.root);const M=()=>{var e,t,a,o,i,r,n,l;if(null===(t=null===(e=R.current)||void 0===e?void 0:e.getEditor())||void 0===t?void 0:t.root){const e=Ba(null===(o=null===(a=R.current)||void 0===a?void 0:a.getEditor())||void 0===o?void 0:o.root),t=null===(r=null===(i=R.current)||void 0===i?void 0:i.getEditor())||void 0===r?void 0:r.root.innerHTML;if(e>=0&&e<t.length){if(Ea(t,!0).length<30-(h?1:0)){const e=function(e){var t,a;let o=null;if(void 0!==window.getSelection){const i=window.getSelection();if((null==i?void 0:i.rangeCount)&&(null==i?void 0:i.rangeCount)>0){const i=null===(t=window.getSelection())||void 0===t?void 0:t.getRangeAt(0);if(i){const t=i.cloneRange();t.selectNodeContents(e),t.setEnd(i.endContainer,i.endOffset);const r=(t.endContainer.nodeValue||"").substring(0,i.endOffset),n=r.lastIndexOf("@");if(n+1<r.length&&(0===n||" @"===r.slice(n-1,n+1))){const e=null===(a=r.slice(n+1))||void 0===a?void 0:a.trim();if(e){t.setStart(i.endContainer,n);const a=t.cloneRange();a.setStart(a.endContainer,n),o={name:e,rect:t.getBoundingClientRect(),replaceRange:a}}}}}}return o}(null===(l=null===(n=R.current)||void 0===n?void 0:n.getEditor())||void 0===l?void 0:l.root);e?(H(e.name,e.rect),K.current=e.replaceRange):(K.current=null,H("",null))}else K.current=null,H("",null);O.current=e}}else U([])},[I,U]=a([]),[D,W]=a({top:0,left:0}),H=i(ke(((e,t,a)=>f(void 0,void 0,void 0,(function*(){var o,i,r,n;if(!e||!DOMRect)return U([]);const l=yield((null===(o=ze(Q))||void 0===o?void 0:o.length)||0)>0?se(ie(ne.SEARCH_USER,{_locale:T,name:e}),"get"):le(ie(re.SEARCH_USER,{_locale:T,name:e}),"get");J(0),U(null===(r=null===(i=null==l?void 0:l.data)||void 0===i?void 0:i.users)||void 0===r?void 0:r.filter((e=>!(null==a?void 0:a.includes(String(e.id))))));const s=t,d=null===(n=G.current)||void 0===n?void 0:n.getBoundingClientRect();if(s&&d){const e=343,t=256,a={top:s.bottom-d.top,width:"min(343px, 100%)",maxHeight:t};d.width-(s.left-d.left)<e?a.right=0:a.left=s.left-d.left,W(a)}}))),500),[]),Z=(e,t)=>{var a,o,i;if(K.current){K.current.deleteContents();const r=document.createElement("mention");r.setAttribute("data-id",e),r.setAttribute("data-name",t),r.innerText=t;const n=document.createTextNode(" ");K.current.insertNode(n),K.current.insertNode(r);(null===(o=null===(a=R.current)||void 0===a?void 0:a.getEditor())||void 0===o?void 0:o.root).focus();const l=null===(i=window.getSelection())||void 0===i?void 0:i.getRangeAt(0);null==l||l.setStart(K.current.endContainer,K.current.endOffset),null==l||l.setEnd(K.current.endContainer,K.current.endOffset)}U([])},G=l(null),K=l(null),Y=l(null),[$,J]=a(0);return s((()=>{if(Y.current){const e=Y.current,t=e.children.item($);if(t){const a=e.getBoundingClientRect(),o=t.getBoundingClientRect();t.offsetTop<e.scrollTop?e.scrollTop=t.offsetTop:t.offsetTop+o.height>e.scrollTop+a.height&&(e.scrollTop=t.offsetTop-a.height+o.height)}}}),[$]),s((()=>{const e=function(e){var t;(null===(t=G.current)||void 0===t?void 0:t.contains(e.target))||U([])};return window.addEventListener("click",e,{passive:!0}),()=>{window.removeEventListener("click",e)}}),[]),t.createElement(Pa,{ref:G,className:r,style:d,onKeyDownCapture:e=>{if(null==I?void 0:I.length){let t=!1;if("ArrowDown"===e.key)t=!0,J((e=>e+1>=I.length?0:e+1));else if("Escape"===e.key)t=!0,J(0),U([]);else if("ArrowUp"===e.key)t=!0,J((e=>e-1<0?I.length-1:e-1));else if("Enter"===e.key||"Tab"===e.key){const e=I[$];e&&(t=!0,Z(e.id,e.name))}if(t)return e.preventDefault(),!1}}},t.createElement(Ma,{id:B,onAddLink:(e,t)=>{var a,i;const r=O.current+1,n=null===(i=null===(a=R.current)||void 0===a?void 0:a.getEditor())||void 0===i?void 0:i.root.innerHTML,l=((null==n?void 0:n.substring(0,r))||"")+`<mocka data-href="${t}" data-url="true">${e}</mocka> `+((null==n?void 0:n.substring(r))||"");null==o||o(l),P(l)}}),Fa&&t.createElement(Fa,{ref:R,theme:"snow",value:e,onChange:e=>{null==o||o(e),P(e),M()},onChangeSelection:()=>{M()},modules:j.current,formats:["mocka1","mention","id","key","bold","italic","underline","list","bullet"]}),!!(null==I?void 0:I.length)&&t.createElement("div",{ref:Y,className:"mention-search-container",style:D},I.map(((e,a)=>t.createElement("div",{className:"mention-search-item "+($===a?"item-selected":""),key:e.id,onClick:t=>{t.preventDefault(),t.stopPropagation(),Z(e.id,e.name)},onMouseEnter:()=>{J(a)}},t.createElement(ge,{className:"search-avatar",username:e.name,avatar:e.avatar}),t.createElement("div",null,t.createElement(y,{size:"p2"},e.name),t.createElement(y,{size:"p4",color:"#595959"},"@",e.username)))))))},Ma=({onAddLink:e,id:a})=>t.createElement("div",{id:"toolbar-"+a,onClick:e=>{e.preventDefault(),e.stopPropagation()}},t.createElement("span",{className:"ql-formats"},t.createElement("button",{className:"ql-bold",type:"button"}),t.createElement("button",{className:"ql-italic",type:"button"}),t.createElement("button",{className:"ql-underline",type:"button"})),t.createElement("span",{className:"ql-formats"},t.createElement("button",{className:"ql-list",value:"ordered",type:"button"}),t.createElement("button",{className:"ql-list",value:"bullet",type:"button"})),t.createElement("span",{className:"ql-formats"},t.createElement("button",{className:"ql-image",type:"button"}),e&&t.createElement(st,{className:"link-tool-wrapper",toggleButtonContent:t.createElement("img",{className:"link-icon",src:"data:image/svg+xml,%3csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M9.54545 16H7.09091C6.55368 16 6.02172 15.8965 5.52539 15.6955C5.02905 15.4945 4.57808 15.1999 4.1982 14.8284C3.43101 14.0783 3 13.0609 3 12C3 10.9391 3.43101 9.92172 4.1982 9.17157C4.96539 8.42143 6.00593 8 7.09091 8H9.54545M13.9256 8H16.9091C17.4463 8 17.9783 8.10346 18.4746 8.30448C18.9709 8.5055 19.4219 8.80014 19.8018 9.17157C20.1817 9.54301 20.483 9.98396 20.6886 10.4693C20.8942 10.9546 21 11.4747 21 12C21 12.5253 20.8942 13.0454 20.6886 13.5307C20.483 14.016 20.1817 14.457 19.8018 14.8284C19.4219 15.1999 18.9709 15.4945 18.4746 15.6955C17.9783 15.8965 17.4463 16 16.9091 16H13.9256' stroke='%23737373' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M9 12H15' stroke='%23737373' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e",loading:"lazy"}),buttonProps:{size:"md",color:"transparent"},align:"end"},(({setShow:a})=>t.createElement(Ua,{onAddUrl:e,setShow:a}))))),Ia=["notification.limitUrlDomain","notification.urlWrongFormat"],Ua=({onAddUrl:e,setShow:o})=>{const{data:{env:{isMarryBaby:i}}}=n(X),{t:r}=x(),[l,s]=a(""),[d,c]=a(""),[p,m]=a(-1),u=l.trim()&&d.trim()&&p<0;return t.createElement("div",{className:"link-tool-popover"},t.createElement(ue,{name:"url",value:l,size:"md",label:"URL",placeholder:r("placeholder.enterUrlHere"),type:"text",className:"link-input-url",onChange:e=>{s(e),(e=>{const t=za(e.trim());try{const e=new URL(t);return e.protocol.startsWith("http")?Na.some((t=>e.origin.endsWith("/"+t)||e.origin.endsWith("."+t)))?(m(-1),!0):(m(0),!1):(m(1),!1)}catch(e){return m(1),!1}})(e)}}),p>=0&&t.createElement(y,{size:"c2",className:"error-text"},r(Ia[p])),t.createElement(ue,{name:"text",value:d,size:"md",label:r("createPost.urlText"),placeholder:r("placeholder.enterUrlTextHere"),type:"text",className:"link-input-text",onChange:e=>c(e)}),t.createElement("div",{"data-is-marrybaby":i,className:"link-input-button-wrapper"},t.createElement(me,{theme:i?"marryBaby":"helloSites",size:"sm",color:"primary",className:"link-input-button",onClick:()=>{u&&(e(d.trim(),za(l.trim())),o&&o(!1))},isDisabled:!u},r("insert"))))},Da=M.div`
1551
1496
  input:focus,
1552
1497
  textarea:focus,
1553
1498
  [contenteditable='true'] {
@@ -2425,7 +2370,7 @@ import*as e from"react";import t,{useState as a,useMemo as o,useCallback as i,cr
2425
2370
  }
2426
2371
  }
2427
2372
  }
2428
- `;var io=c((e=>({root:{mention:{color:e.fn.primaryColor()},a:{"&,&:visited,&:focus":{color:e.fn.primaryColor()}},".create-post-link":{display:"inline",color:e.fn.primaryColor(),cursor:"pointer"}}})));const ro=e=>{var{trackingCategory:i,url:r,className:d,style:c,replyingTo:p,mentionedUser:m,description:u,disableShortenContent:g,mentions:v=[],maxChars:f=1e3,hideShowAllBtn:w,styles:y,onClickCreatePostLink:E}=e,C=b(e,["trackingCategory","url","className","style","replyingTo","mentionedUser","description","disableShortenContent","mentions","maxChars","hideShowAllBtn","styles","onClickCreatePostLink"]);const{classes:k,theme:A}=io(void 0,{name:"PostContent",styles:y}),[N,z]=a(!1),{t:T}=x(),{authActionWrapper:S}=De(),[L,V]=a(!1),P=wa(xa(u||"","display"),v),{action:{sanitizeFunction:j}}=n(X),F=o((()=>{const e=j(P||"");if(g||N)return{showContent:e,hasSeeMore:!1};const t=e.slice(0,f),a=f-27*((t.match(/<\/div>/g)||[]).length-1),o=(t||"").slice(0,a<40?40:a),i=j(o.replace(/(<|<\/)( +|[a-zA-Z]*)$/gi,"")),r=i.length<e.length-10;return{showContent:r?i:e,hasSeeMore:r}}),[g,N,P]),B=(null==m?void 0:m.name)||p,O="expert"===(null==m?void 0:m.role)&&!!(null==m?void 0:m.partnerId),R=l(null),M=e=>{e.preventDefault(),null==E||E()};return s((()=>{var e;return null===(e=null==R?void 0:R.current)||void 0===e||e.querySelectorAll("[data-create-post]").forEach((e=>{e.addEventListener("click",M,{passive:!0})})),()=>{var e;null===(e=null==R?void 0:R.current)||void 0===e||e.querySelectorAll("[data-create-post]").forEach((e=>{e.removeEventListener("click",M,!1)}))}}),[g,N,P]),t.createElement(t.Fragment,null,O&&t.createElement(Gt,{isOpen:L,onClose:()=>V(!1),expertId:String(null==m?void 0:m.partnerId)}),t.createElement(oo,Object.assign({ref:R,className:`${k.root} ${d} no-replace-click`,style:c,mentionColor:A.fn.primaryColor()},C),B&&t.createElement(h,{onClick:()=>O&&V(!0),className:"post-content-replying"},"@",B),(null==u?void 0:u.startsWith("[mention+id="))&&t.createElement("span",{className:"post-content-replying tag-only",style:{color:A.fn.primaryColor()}},"@"),t.createElement("span",{dangerouslySetInnerHTML:{__html:F.showContent},className:"post-content "+(F.hasSeeMore?"has-see-more":"")}),F.hasSeeMore&&!N&&t.createElement("span",null,"... ",!w&&t.createElement(h,Object.assign({onClick:e=>{e.preventDefault(),e.stopPropagation(),S((()=>z(!0)))},className:"see-more-text"},i?{"data-event-category":i,"data-event-action":"See More Post Click","data-event-label":r}:{}),T("post.seeMore")))))},no=M.div`
2373
+ `;var io=c((e=>({root:{mention:{color:e.fn.primaryColor()},a:{"&,&:visited,&:focus":{color:e.fn.primaryColor()}},".create-post-link":{display:"inline",color:e.fn.primaryColor(),cursor:"pointer"}}})));const ro=e=>{var{trackingCategory:i,url:r,className:d,style:c,replyingTo:p,mentionedUser:m,description:u,disableShortenContent:g,mentions:v=[],maxChars:f=1e3,hideShowAllBtn:w,styles:y,onClickCreatePostLink:E}=e,C=b(e,["trackingCategory","url","className","style","replyingTo","mentionedUser","description","disableShortenContent","mentions","maxChars","hideShowAllBtn","styles","onClickCreatePostLink"]);const{classes:k,theme:A}=io(void 0,{name:"PostContent",styles:y}),[N,z]=a(!1),{t:T}=x(),{authActionWrapper:S}=De(),[L,V]=a(!1),P=wa(xa(u||"","display"),v),{action:{sanitizeFunction:F}}=n(X),B=o((()=>{const e=F(P||"");if(g||N)return{showContent:e,hasSeeMore:!1};const t=e.slice(0,f),a=f-27*((t.match(/<\/div>/g)||[]).length-1),o=(t||"").slice(0,a<40?40:a),i=F(o.replace(/(<|<\/)( +|[a-zA-Z]*)$/gi,"")),r=i.length<e.length-10;return{showContent:r?i:e,hasSeeMore:r}}),[g,N,P]),j=(null==m?void 0:m.name)||p,O="expert"===(null==m?void 0:m.role)&&!!(null==m?void 0:m.partnerId),R=l(null),M=e=>{e.preventDefault(),null==E||E()};return s((()=>{var e;return null===(e=null==R?void 0:R.current)||void 0===e||e.querySelectorAll("[data-create-post]").forEach((e=>{e.addEventListener("click",M,{passive:!0})})),()=>{var e;null===(e=null==R?void 0:R.current)||void 0===e||e.querySelectorAll("[data-create-post]").forEach((e=>{e.removeEventListener("click",M,!1)}))}}),[g,N,P]),t.createElement(t.Fragment,null,O&&t.createElement(Gt,{isOpen:L,onClose:()=>V(!1),expertId:String(null==m?void 0:m.partnerId)}),t.createElement(oo,Object.assign({ref:R,className:`${k.root} ${d} no-replace-click`,style:c,mentionColor:A.fn.primaryColor()},C),j&&t.createElement(h,{onClick:()=>O&&V(!0),className:"post-content-replying"},"@",j),(null==u?void 0:u.startsWith("[mention+id="))&&t.createElement("span",{className:"post-content-replying tag-only",style:{color:A.fn.primaryColor()}},"@"),t.createElement("span",{dangerouslySetInnerHTML:{__html:B.showContent},className:"post-content "+(B.hasSeeMore?"has-see-more":"")}),B.hasSeeMore&&!N&&t.createElement("span",null,"... ",!w&&t.createElement(h,Object.assign({onClick:e=>{e.preventDefault(),e.stopPropagation(),S((()=>z(!0)))},className:"see-more-text"},i?{"data-event-category":i,"data-event-action":"See More Post Click","data-event-label":r}:{}),T("post.seeMore")))))},no=M.div`
2429
2374
  padding: 14px 16px 14px 17px;
2430
2375
  background: ${e=>e.bgColor};
2431
2376
  border-left: 3px solid ${e=>e.highlight};
@@ -2770,7 +2715,7 @@ import*as e from"react";import t,{useState as a,useMemo as o,useCallback as i,cr
2770
2715
  overflow: hidden;
2771
2716
  border-radius: 1rem;
2772
2717
  }
2773
- `;var ko="PD6nRZX";const Ao=({className:e,size:a="md"})=>{const{t:o}=x();return t.createElement("div",{className:`${ko} ${e}`},t.createElement(me,{size:a,color:"transparent",isLoading:!0},o("loading")))},No=r({});var zo="l5fL1xL",To="L-aGKo7";const So=({children:e,className:a=""})=>t.createElement("div",{className:`${zo} ${a}`},e),Lo=({children:e,className:a=""})=>t.createElement("div",{className:`${To} ${a}`},e);var Vo="eaR8ATZ",Po="xM-7K0a",jo="DZmf3s7";const Fo=({src:e,defaultSrc:a=F.getAssetPath("logo/logomark.png"),ratio:o=1,size:i=80,radius:r=8,alt:n,className:l=""})=>t.createElement("div",{className:l},t.createElement("div",{className:jo,style:{width:`${i}px`,height:i*o+"px",borderRadius:`${r}px`}},t.createElement(N,{src:e,backupSrc:a,alt:n}))),Bo=({category:e,title:a,src:o,children:i,className:r=""})=>t.createElement("div",{className:`${Vo} ${r}`},t.createElement(Fo,{src:o}),t.createElement("div",{className:Po},i||t.createElement("div",null,e&&t.createElement(So,null,e),a&&t.createElement(Lo,null,a))));Bo.CategoryText=So,Bo.Title=Lo;const Oo=({featureImage:e,postTitle:a,author:o,categories:i,isReview:r,className:n=""})=>{var l;const s=r?"Medically reviewed by Jobelle Ann Dela Cruz Bigalbal, MD":"Written by Jobelle Ann Dela Cruz Bigalbal, MD";return t.createElement(Bo,{src:e,className:n},t.createElement(t.Fragment,null,t.createElement(Bo.CategoryText,null,null===(l=null==i?void 0:i[0])||void 0===l?void 0:l.name),t.createElement(Bo.Title,null,a),t.createElement(Nt,{avatarProps:Object.assign(Object.assign({},o),{size:32}),subTitle:t.createElement(t.Fragment,null,s,t.createElement(Nt.SubDivider,null),"Dec 12, 2022")})))};var Ro={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 Mo=({className:e=""})=>{var a,o,i,r,l;const{t:s}=x(),{info:d,isMarryBaby:c,currentPageUrl:m}=n(No),u=null==d?void 0:d.data,g=[{type:"linkedin",icon:F.getAssetPath("linkedin.svg"),url:null===(a=null==d?void 0:d.contact)||void 0===a?void 0:a.linkedin,eventAction:"Doctor Profile - Linkedin"},{type:"instagram",icon:F.getAssetPath("instagram.svg"),url:null===(o=null==d?void 0:d.contact)||void 0===o?void 0:o.instagram,eventAction:"Doctor Profile - Instagram"},{type:"facebook",icon:F.getAssetPath("facebook.svg"),url:null===(i=null==d?void 0:d.contact)||void 0===i?void 0:i.facebook,eventAction:"Doctor Profile - Facebook"},{type:"youtube",icon:F.getAssetPath("youtube.svg"),url:null===(r=null==d?void 0:d.contact)||void 0===r?void 0:r.youtube,eventAction:"Doctor Profile - Youtube"},{type:"tiktok",icon:F.getAssetPath("tiktok.svg"),url:null===(l=null==d?void 0:d.contact)||void 0===l?void 0:l.tiktok,eventAction:"Doctor Profile - TikTok"}],h=[...((null==d?void 0:d.experiences)||[]).length>0?[{key:"experience",heading:s("profilePanel.experience"),iconSrc:F.getAssetPath(c?"award-doc-mb.svg":"award-doc.svg"),eventAction:"Doctor Experience Click",panel:t.createElement("div",{className:Ro.accBodyGroup},null==d?void 0:d.experiences.map(((e,a)=>t.createElement("div",{className:Ro.accBodyGroupItem,key:String(a)},t.createElement("div",{className:Ro.accBodyGroupTitle},e.title),t.createElement("div",{className:Ro.accBodyGroupDesc},t.createElement("p",null,e.organization),t.createElement("p",null,e.duration))))))}]:[],...((null==d?void 0:d.educations)||[]).length>0?[{key:"education",heading:s("profilePanel.education"),iconSrc:F.getAssetPath(c?"book-mb.svg":"book.svg"),eventAction:"Doctor Degree Click",panel:t.createElement("div",{className:Ro.accBodyGroup},null==d?void 0:d.educations.map(((e,a)=>t.createElement("div",{className:Ro.accBodyGroupItem,key:String(a)},t.createElement("div",{className:Ro.accBodyGroupTitle},e.schoolName),t.createElement("div",{className:Ro.accBodyGroupDesc},t.createElement("p",null,e.study),t.createElement("p",null,e.completedYear))))))}]:[],...((null==d?void 0:d.awards)||[]).length>0?[{key:"awards",heading:s("profilePanel.awards"),iconSrc:F.getAssetPath(c?"award-mb.svg":"award.svg"),eventAction:"Doctor Award Click",panel:t.createElement("div",{className:Ro.accBodyGroup},null==d?void 0:d.awards.map(((e,a)=>t.createElement("div",{className:Ro.accBodyGroupTitle,key:a},e.title))))}]:[]],b=(null==d?void 0:d.relatedPosts)||[],f=g.filter((e=>e.url));return t.createElement("div",{className:`${Ro.container} ${e}`,"data-is-marrybaby":c},h.length>0&&t.createElement(v,{defaultValue:h[0].key,chevron:c?t.createElement("div",{className:Ro.mbChevronWrapper},t.createElement(k,{size:12,color:D.mbColors.midGray})):t.createElement(k,{color:D.colors.gray400}),styles:{chevron:{"&[data-rotate]":{".minus-path":{display:"block"},".plus-path":{display:"none"}}},content:{display:"flex",flexDirection:"column",gap:"16px",padding:"0"},item:{border:0},control:{paddingLeft:0,"&:hover":{background:"transparent"},"*":{pointerEvents:"none"}}}},h.map((e=>t.createElement(v.Item,{key:e.key,value:e.key},t.createElement(v.Control,{"data-event-category":"Together","data-event-action":e.eventAction,"data-event-label":m},t.createElement("div",{className:Ro.header},t.createElement("div",{className:Ro.headingIcon},t.createElement("img",{src:e.iconSrc,loading:"lazy"})),t.createElement("div",{className:Ro.heading},e.heading))),t.createElement(v.Panel,null,e.panel))))),b.length>0&&t.createElement("div",{className:Ro.group},t.createElement("div",{className:Ro.subTitle},t.createElement("img",{className:Ro.subIcon,src:F.getAssetPath(c?"mb-logo.svg":"logo/circle-solid.svg"),loading:"lazy"}),s("profilePanel.publishedArticles")),t.createElement("div",{className:`${Ro.relatedList}`},null==d?void 0:d.relatedPosts.map((e=>t.createElement("a",{key:String(e.id),href:`${window.location.origin}${null==e?void 0:e.permalink}`,className:Ro.articleCardLink},t.createElement(Oo,Object.assign({className:"article-card"},Object.assign(Object.assign({},e),!e.author&&{author:{displayName:null==u?void 0:u.name,avatar:null==u?void 0:u.avatar}}),{isReview:!0}))))))),f.length>0&&t.createElement("div",{className:Ro.group},t.createElement("div",{className:Ro.subTitle},t.createElement("img",{className:Ro.subIcon,src:F.getAssetPath(c?"social-mb.svg":"social.svg"),loading:"lazy"}),s("profilePanel.socialLinks")),t.createElement("div",{className:Ro.groupBody},t.createElement(p,null,g.map(((e,a)=>e.url&&t.createElement("div",{className:Ro.socialItem,key:a},t.createElement("a",{href:e.url,target:"_blank",rel:"noreferrer"},t.createElement("img",{src:e.icon,loading:"lazy",width:"32px","data-event-category":"Together","data-event-action":e.eventAction,"data-event-label":m})))))))))};var Io={container:"GYUElSy",question:"_3C6QpT1",questionTitle:"_9M9VYL6",community:"_1RuSyv3",questionCard:"_1IG-eEp"};const Uo=({post:e,className:a=""})=>{var o,i,r,l,s,d,c,p;const{t:m}=x(),{data:{userInfo:u,env:{togetherBasePath:g}}}=n(X),{authActionWrapper:h,authorProps:v,currentPageUrl:b}=n(No),f=`${window.location.origin}${g}/${null===(o=null==e?void 0:e.community)||void 0===o?void 0:o.slug}/${null==e?void 0:e.slug}/`;return t.createElement("div",{className:`${Io.container} ${a}`},t.createElement("div",{className:Io.header},t.createElement("div",{className:Io.question},m("profilePanel.question")," ",t.createElement(T,{className:Io.questionTitle,href:"#",onClick:()=>{(null==u?void 0:u.id)||null==h||h((()=>window.location.href=f))}},"#",null==e?void 0:e.title)),t.createElement("div",{className:Io.community},null===(i=null==e?void 0:e.community)||void 0===i?void 0:i.name," - ",null==e?void 0:e.createdTime)),t.createElement("div",{className:Io.questionCard},t.createElement(ia,Object.assign({className:"card-author"},v,{role:"user",avatarIcon:t.createElement(ut,null),subLine:t.createElement(ia.SubTextRow,null,t.createElement(ia.SubText,null,null===(s=null===(l=null===(r=null==e?void 0:e.expertAnswer)||void 0===r?void 0:r.answer)||void 0===l?void 0:l[0])||void 0===s?void 0:s.createdTime))})),t.createElement(ro,{className:"post-content-wrapper",description:(null===(p=null===(c=null===(d=null==e?void 0:e.expertAnswer)||void 0===d?void 0:d.answer)||void 0===c?void 0:c[0])||void 0===p?void 0:p.content)||"",mentions:null==e?void 0:e.mentions,"data-testid":"Content of the Post"})),t.createElement(A,{variant:"secondary","data-event-category":"Together","data-event-action":"Doctor Reply Click","data-event-label":b,size:"md",onClick:()=>{(null==u?void 0:u.id)?window.location.href=f:null==h||h((()=>window.location.href=f))}},m("profilePanel.anserwing.viewFull")))};var Do="MrdoES3",Wo="_8fd7YMs",Ho="DomiQfw",Zo="-b2qnfL";const qo=({message:e,buttonTxt:a,imgSrc:o,onBtnClick:i})=>{const{siteType:r,isMarryBaby:l}=n(No);return t.createElement("div",{className:Wo},t.createElement("div",{className:Ho},t.createElement("img",{src:o||F.getAssetPath(l?"comments-mb.svg":"comments.svg"),loading:"lazy"})),e&&t.createElement("div",{className:Zo},e),a&&t.createElement(me,{size:"md",theme:r,color:"secondary",onClick:i},a))},Go=({id:e})=>{const{t:o}=x(),{data:{locale:i}}=n(X),{authorProps:r}=n(No),[l,d]=a(null),[c,p]=a(!1);return s((()=>{e&&f(void 0,void 0,void 0,(function*(){var t;p(!0);const a=yield q(ie(ne.USER.LIST_ANSWERS,{_locale:i,id:e}),"GET"),o=((null===(t=null==a?void 0:a.data)||void 0===t?void 0:t.replies)||[]).map(ve);d(o),p(!1)}))}),[]),t.createElement("div",{className:Do},c?t.createElement(Ao,null):null!==l&&(l.length>0?l.map((e=>t.createElement(Uo,{className:"post-card",key:e.id,post:e}))):t.createElement(qo,{message:o("profilePanel.emptyPostMess.content",{name:(null==r?void 0:r.name)||(null==r?void 0:r.username)})})))};var Xo="toEutn7",Qo="drdisHs";const Ko=e=>{var a,o,i,r,{post:l}=e,s=b(e,["post"]);const{data:{env:{togetherBasePath:d}}}=n(X);return t.createElement(t.Fragment,null,t.createElement("div",Object.assign({},s,{className:`${Xo} ${(null==s?void 0:s.className)||""}`}),t.createElement(ia,{className:"card-author",avatar:null===(a=null==l?void 0:l.author)||void 0===a?void 0:a.avatar,name:(null===(o=null==l?void 0:l.author)||void 0===o?void 0:o.name)||(null===(i=null==l?void 0:l.author)||void 0===i?void 0:i.username),isAnonymous:Boolean(null==l?void 0:l.isAnonymous),subLine:t.createElement(ia.SubTextRow,null,t.createElement(ia.SubText,null,null==l?void 0:l.createdTime))}),t.createElement(T,{href:`${window.location.origin}${d}/${null===(r=null==l?void 0:l.community)||void 0===r?void 0:r.slug}/${null==l?void 0:l.slug}/`,className:Qo,rel:"noreferrer"},null==l?void 0:l.title)))};var Yo={accordion:"I-uIJ6E",header:"_41WRsj2",heading:"AcOGL93",headingIcon:"JD3dWJN",panel:"dKAgnS8",chevron:"L2Q9T6m",container:"h-pSmhX"};const $o=()=>{var e,o;const{t:i}=x(),{data:{locale:r,userInfo:l}}=n(X),{onSkipQuestion:d,countValues:c,setCountValues:p}=n(No),[m,u]=a(),[g,h]=a([]),[b,w]=a(!1),y=null==l?void 0:l.id;s((()=>{y&&f(void 0,void 0,void 0,(function*(){var e;w(!0);const t=yield se(ie(ne.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(ve),delete e.question,a.push(be(e))})),h(a),u(o),w(!1)}))}),[]);const E=({id:e,communityId:t})=>{if(e&&t&&m){const a=Object.assign(Object.assign({},m),{[t]:[...((null==m?void 0:m[t])||[]).filter((t=>t.id!==e))]});let o=0;Object.keys(a).map((e=>o+=a[e].length||0)),u(a),p(Object.assign(Object.assign({},c),{total_question:o})),null==d||d(o)}};return t.createElement("div",{className:Yo.container},b?t.createElement(Ao,null):(null==c?void 0:c.total_question)>0?g.length>0&&t.createElement(v,{className:Yo.accordion,defaultValue:String((null===(o=g[null===(e=Object.keys(g))||void 0===e?void 0:e[0]])||void 0===o?void 0:o.id)||""),styles:e=>({control:{padding:"16px",border:`1px solid ${e.colors.neutral[1]}`,borderTopLeftRadius:"8px",borderTopRightRadius:"8px",'&[aria-expanded="false"]':{borderBottom:0}},chevron:{width:"32px",height:"32px"},content:{padding:0,border:`1px solid ${e.colors.neutral[1]}`,borderTop:0,borderBottom:0},label:{padding:0},item:{marginBottom:"16px"}}),chevron:t.createElement("div",{className:Yo.chevron},t.createElement(S,{color:D.colors.gray600,size:20}))},g.map((e=>{const a=m&&(null==m?void 0:m[e.id])||[];return a.length>0&&t.createElement(v.Item,{key:e.id,value:String(e.id)},t.createElement(v.Control,null,t.createElement("div",{className:Yo.header},t.createElement("div",{className:Yo.headingIcon},t.createElement("img",{src:e.thumbnail,loading:"lazy"})),t.createElement("div",{className:Yo.heading},e.name))),t.createElement(v.Panel,null,t.createElement("div",{className:Yo.body},a.map((e=>t.createElement(Ko,{className:"question-card",key:e.id,post:e,onSkip:E}))))))}))):t.createElement(qo,{message:i("profilePanel.emptyCareMess.content"),imgSrc:F.getAssetPath("questions.svg")}))};var Jo="GA-zc-O",_o="A18McWD",ei="IB049vj",ti="_8I--vEV";const ai=({post:e,className:a=""})=>{var o;const{data:{userInfo:i,env:{togetherBasePath:r}}}=n(X),{t:l}=x(),s=d(),{authActionWrapper:c,authorProps:p}=n(No),m=`${window.location.origin}${r}/${null===(o=null==e?void 0:e.community)||void 0===o?void 0:o.slug}/${null==e?void 0:e.slug}/`;return t.createElement("div",{className:`${Jo} ${a}`},t.createElement("div",{className:ei},t.createElement("a",{"data-event-category":"Together","data-event-action":"Click Post","data-event-label":m,className:ti,href:m,onClick:e=>{(null==i?void 0:i.id)||(e.preventDefault(),null==c||c((()=>window.location.href=m)))}}),t.createElement(Nt,{className:"card-author",avatarProps:{avatar:null==p?void 0:p.avatar,size:32}},t.createElement(ia.MainText,{className:_o},null==e?void 0:e.title),t.createElement(ia.SubTextRow,null,t.createElement(ia.SubText,null,null==e?void 0:e.createdTime))),t.createElement(ro,{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",hideShowAllBtn:!0}),t.createElement(y,{size:"p3",color:s.fn.primaryColor()},l("post.seeMore"))))};var oi="TSMHoEM";const ii=()=>{const{t:e}=x(),{data:{locale:o}}=n(X),{authorId:i,authorProps:r,isAuthorLogin:l,onCloseFromPost:d}=n(No),[c,p]=a(null),[m,u]=a(!1);return s((()=>{i&&f(void 0,void 0,void 0,(function*(){var e;u(!0);const t=yield q(ie(ne.USER.LIST_POST,{_locale:o,id:i,isAnonymous:0}),"GET"),a=((null===(e=null==t?void 0:t.data)||void 0===e?void 0:e.posts)||[]).map(ve);p(a),u(!1)}))}),[i]),t.createElement("div",{className:oi},m?t.createElement(Ao,null):null!==c&&(c.length>0?c.map((e=>t.createElement(ai,{className:"post-card",key:e.id,post:e}))):t.createElement(qo,{message:e("profilePanel.emptyPostMess.content",{name:(null==r?void 0:r.name)||(null==r?void 0:r.username)||""}),buttonTxt:l&&e("profilePanel.createPost"),onBtnClick:()=>{null==d||d()}})))};var ri="_4Vekw96",ni="DIJdGcB",li="aQSt4-Q";const si=e=>e?{title:null==e?void 0:e.title,organization:null==e?void 0:e.organization,duration:e.duration}:{},di=e=>e?{completedYear:null==e?void 0:e.completed_year,schoolName:e.school_name,study:e.study}:{};var ci,pi;!function(e){e[e.About=0]="About",e[e.Care=1]="Care",e[e.Answer=2]="Answer",e[e.Posts=3]="Posts"}(ci||(ci={})),function(e){e[e.Expert=0]="Expert",e[e.User=1]="User"}(pi||(pi={}));const mi=e=>{var o,{authorProps:i,selectedTab:r,authActionWrapper:l,onSkipQuestion:d,onCloseFromPost:c,hideQuestionTab:p,hideAnswerTab:m,showSkipQuestionTag:u,rolesToShowQuestionsTab:g=["expert"],currentPageUrl:h}=e,v=b(e,["authorProps","selectedTab","authActionWrapper","onSkipQuestion","onCloseFromPost","hideQuestionTab","hideAnswerTab","showSkipQuestionTag","rolesToShowQuestionsTab","currentPageUrl"]);const{data:{locale:w,userInfo:y,env:{isMarryBaby:E}}}=n(X),{t:C}=x(),k=null==i?void 0:i.role,A=null==y?void 0:y.role,N=String(null==i?void 0:i.userId),[z,T]=a(),[S,V]=a(!1),[P,j]=a(),F=(null==y?void 0:y._togetherUserId)===(null==i?void 0:i.userId),O=[...-1!==g.indexOf(k)?[{value:ci.About,text:C("profilePanel.tabs.highlight"),content:t.createElement(Mo,{id:N,info:P}),dataEventCategory:"Together",dataEventAction:"Doctor Profile Click",dataEventLabel:h}]:[],{value:ci.Posts,text:C("profilePanel.tabs.posts"),content:t.createElement(ii,null),hasCountResult:!0,keyOfCountApi:"post",keyOfResult:"total_post"},...p||-1===g.indexOf(A)||(null==y?void 0:y._togetherUserId)!==(null==i?void 0:i.userId)?[]:[{value:ci.Care,text:`${C("profilePanel.tabs.care")}`,content:t.createElement($o,null),hasCountResult:!0,keyOfCountApi:"question",keyOfResult:"total_question",dataEventCategory:"Together",dataEventAction:"Doctor Questions Click",dataEventLabel:h}],...m||-1===g.indexOf(k)?[]:[{value:ci.Answer,text:`${C("profilePanel.tabs.expertAnswer")}`,content:t.createElement(Go,{id:N}),hasCountResult:!0,keyOfCountApi:"reply",keyOfResult:"total_reply",dataEventCategory:"Together",dataEventAction:"Doctor Reply Tab Click",dataEventLabel:h}]],[R,M]=a(null),[I,U]=a(null),D={value:String(I),dataList:R,onTabChange:e=>U(Number(e))},W=null==O?void 0:O.filter((e=>null==e?void 0:e.hasCountResult));s((()=>{f(void 0,void 0,void 0,(function*(){var e,t,a,o,i,n,l,s,d,c;V(!0);const p=yield Promise.all([q(ie(ne.USER.DETAIL,{_locale:w,id:N}),"GET"),...W.map((e=>q(ie(ne.USER.COUNT_TABS,{_locale:w,id:N,[e.keyOfCountApi]:1}),"GET")))]),[m]=p,u={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(si),relatedPosts:((null===(a=null==m?void 0:m.data)||void 0===a?void 0:a.related_post)||[]).map((e=>fe(e.post))),educations:((null===(i=null===(o=null==m?void 0:m.data)||void 0===o?void 0:o.fields)||void 0===i?void 0:i.educations)||[]).map(di),awards:(null===(l=null===(n=null==m?void 0:m.data)||void 0===n?void 0:n.fields)||void 0===l?void 0:l.awards_accreditations)||[],contact:(null===(d=null===(s=null==m?void 0:m.data)||void 0===s?void 0:s.fields)||void 0===d?void 0:d.contact)||{}};1===(null==m?void 0:m.status)&&j(u);const g=(null==u?void 0:u.relatedPosts)||[],h=Object.keys(u.contact).map((e=>{var t;return""!==(null===(t=null==u?void 0:u.contact)||void 0===t?void 0:t[e])})),v=[...(null==u?void 0:u.experiences)||[],...(null==u?void 0:u.educations)||[],...(null==u?void 0:u.awards)||[]],b=g.length>0||h.length>0||v.length>0,f={},x=W.map(((e,t)=>{var a,o,i;const r=(null===(i=null===(o=null===(a=p[t+1])||void 0===a?void 0:a.data)||void 0===o?void 0:o.counting)||void 0===i?void 0:i[e.keyOfResult])||0;return r>0?(f[e.keyOfResult]=r,e):-1!==[ci.Care,ci.Posts].indexOf(e.value)?e:void 0})).filter(Boolean).map((e=>e.value)),y=O.map((e=>{const t=Object.assign(Object.assign({},e),{text:e.text+(e.keyOfResult?` (${(null==f?void 0:f[e.keyOfResult])||"0"})`:"")});return t.hasCountResult?-1!==x.indexOf(t.value)?t:void 0:t.value===ci.About?b&&t:t})).filter(Boolean);M(y),U(r||(null===(c=null==y?void 0:y[0])||void 0===c?void 0:c.value)),T(f),V(!1)}))}),[]);const H=null==P?void 0:P.data;return t.createElement(No.Provider,{value:{isMarryBaby:E,siteType:E?"marryBaby":"helloSites",authorId:String((null==i?void 0:i.userId)||""),authActionWrapper:l,onSkipQuestion:d,info:P,authorProps:i,onCloseFromPost:c,countValues:z,setCountValues:T,isAuthorLogin:F,showSkipQuestionTag:u,currentPageUrl:h}},t.createElement("div",Object.assign({},v,{className:`${ri} ${(null==v?void 0:v.className)||""}`,"data-is-marrybaby":E}),S?t.createElement(Ao,null):t.createElement(t.Fragment,null,t.createElement(ia,Object.assign({},i,{className:"card-author",showDetailPopup:!1,subLine:"expert"===(null==i?void 0:i.role)?(null==H?void 0:H.specialty)&&(null==H?void 0:H.organisation)&&t.createElement(ia.SubTextRow,null,(null==H?void 0:H.specialty)&&t.createElement(t.Fragment,null,t.createElement(ia.SubText,null,null==H?void 0:H.specialty),t.createElement(ia.SubDivider,null)),t.createElement(ia.SubText,null,null==H?void 0:H.organisation)):(null==H?void 0:H.created_at)&&t.createElement(ia.SubTextRow,null,t.createElement(ia.SubText,null,C("profilePanel.joined")," ",B(null==H?void 0:H.created_at).toNow(!0)))})),"expert"===k&&t.createElement("div",{className:ni,dangerouslySetInnerHTML:{__html:null===(o=null==P?void 0:P.data)||void 0===o?void 0:o.description}}),null!==R&&null!==I&&(R.length>0?t.createElement("div",{className:li},t.createElement(L,Object.assign({},D))):t.createElement(qo,{message:C("profilePanel.emptyPostMess.content",{text:(null==i?void 0:i.name)||(null==i?void 0:i.username)||""})})))))};var ui=Object.freeze({__proto__:null,get TabName(){return ci},get UserType(){return pi},TabDataInit:{experiences:[],relatedPosts:[],educations:[],awards:[],contact:{},data:{}},ProfileDetail:mi});const gi=M.div`
2718
+ `;var ko="PD6nRZX";const Ao=({className:e,size:a="md"})=>{const{t:o}=x();return t.createElement("div",{className:`${ko} ${e}`},t.createElement(me,{size:a,color:"transparent",isLoading:!0},o("loading")))},No=r({});var zo="l5fL1xL",To="L-aGKo7";const So=({children:e,className:a=""})=>t.createElement("div",{className:`${zo} ${a}`},e),Lo=({children:e,className:a=""})=>t.createElement("div",{className:`${To} ${a}`},e);var Vo="eaR8ATZ",Po="xM-7K0a",Fo="DZmf3s7";const Bo=({src:e,defaultSrc:a=B.getAssetPath("logo/logomark.png"),ratio:o=1,size:i=80,radius:r=8,alt:n,className:l=""})=>t.createElement("div",{className:l},t.createElement("div",{className:Fo,style:{width:`${i}px`,height:i*o+"px",borderRadius:`${r}px`}},t.createElement(N,{src:e,backupSrc:a,alt:n}))),jo=({category:e,title:a,src:o,children:i,className:r=""})=>t.createElement("div",{className:`${Vo} ${r}`},t.createElement(Bo,{src:o}),t.createElement("div",{className:Po},i||t.createElement("div",null,e&&t.createElement(So,null,e),a&&t.createElement(Lo,null,a))));jo.CategoryText=So,jo.Title=Lo;const Oo=({featureImage:e,postTitle:a,author:o,categories:i,isReview:r,className:n=""})=>{var l;const s=r?"Medically reviewed by Jobelle Ann Dela Cruz Bigalbal, MD":"Written by Jobelle Ann Dela Cruz Bigalbal, MD";return t.createElement(jo,{src:e,className:n},t.createElement(t.Fragment,null,t.createElement(jo.CategoryText,null,null===(l=null==i?void 0:i[0])||void 0===l?void 0:l.name),t.createElement(jo.Title,null,a),t.createElement(Nt,{avatarProps:Object.assign(Object.assign({},o),{size:32}),subTitle:t.createElement(t.Fragment,null,s,t.createElement(Nt.SubDivider,null),"Dec 12, 2022")})))};var Ro={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 Mo=({className:e=""})=>{var a,o,i,r,l;const{t:s}=x(),{info:d,isMarryBaby:c,currentPageUrl:m}=n(No),u=null==d?void 0:d.data,g=[{type:"linkedin",icon:B.getAssetPath("linkedin.svg"),url:null===(a=null==d?void 0:d.contact)||void 0===a?void 0:a.linkedin,eventAction:"Doctor Profile - Linkedin"},{type:"instagram",icon:B.getAssetPath("instagram.svg"),url:null===(o=null==d?void 0:d.contact)||void 0===o?void 0:o.instagram,eventAction:"Doctor Profile - Instagram"},{type:"facebook",icon:B.getAssetPath("facebook.svg"),url:null===(i=null==d?void 0:d.contact)||void 0===i?void 0:i.facebook,eventAction:"Doctor Profile - Facebook"},{type:"youtube",icon:B.getAssetPath("youtube.svg"),url:null===(r=null==d?void 0:d.contact)||void 0===r?void 0:r.youtube,eventAction:"Doctor Profile - Youtube"},{type:"tiktok",icon:B.getAssetPath("tiktok.svg"),url:null===(l=null==d?void 0:d.contact)||void 0===l?void 0:l.tiktok,eventAction:"Doctor Profile - TikTok"}],h=[...((null==d?void 0:d.experiences)||[]).length>0?[{key:"experience",heading:s("profilePanel.experience"),iconSrc:B.getAssetPath(c?"award-doc-mb.svg":"award-doc.svg"),eventAction:"Doctor Experience Click",panel:t.createElement("div",{className:Ro.accBodyGroup},null==d?void 0:d.experiences.map(((e,a)=>t.createElement("div",{className:Ro.accBodyGroupItem,key:String(a)},t.createElement("div",{className:Ro.accBodyGroupTitle},e.title),t.createElement("div",{className:Ro.accBodyGroupDesc},t.createElement("p",null,e.organization),t.createElement("p",null,e.duration))))))}]:[],...((null==d?void 0:d.educations)||[]).length>0?[{key:"education",heading:s("profilePanel.education"),iconSrc:B.getAssetPath(c?"book-mb.svg":"book.svg"),eventAction:"Doctor Degree Click",panel:t.createElement("div",{className:Ro.accBodyGroup},null==d?void 0:d.educations.map(((e,a)=>t.createElement("div",{className:Ro.accBodyGroupItem,key:String(a)},t.createElement("div",{className:Ro.accBodyGroupTitle},e.schoolName),t.createElement("div",{className:Ro.accBodyGroupDesc},t.createElement("p",null,e.study),t.createElement("p",null,e.completedYear))))))}]:[],...((null==d?void 0:d.awards)||[]).length>0?[{key:"awards",heading:s("profilePanel.awards"),iconSrc:B.getAssetPath(c?"award-mb.svg":"award.svg"),eventAction:"Doctor Award Click",panel:t.createElement("div",{className:Ro.accBodyGroup},null==d?void 0:d.awards.map(((e,a)=>t.createElement("div",{className:Ro.accBodyGroupTitle,key:a},e.title))))}]:[]],b=(null==d?void 0:d.relatedPosts)||[],f=g.filter((e=>e.url));return t.createElement("div",{className:`${Ro.container} ${e}`,"data-is-marrybaby":c},h.length>0&&t.createElement(v,{defaultValue:h[0].key,chevron:c?t.createElement("div",{className:Ro.mbChevronWrapper},t.createElement(k,{size:12,color:D.mbColors.midGray})):t.createElement(k,{color:D.colors.gray400}),styles:{chevron:{"&[data-rotate]":{".minus-path":{display:"block"},".plus-path":{display:"none"}}},content:{display:"flex",flexDirection:"column",gap:"16px",padding:"0"},item:{border:0},control:{paddingLeft:0,"&:hover":{background:"transparent"},"*":{pointerEvents:"none"}}}},h.map((e=>t.createElement(v.Item,{key:e.key,value:e.key},t.createElement(v.Control,{"data-event-category":"Together","data-event-action":e.eventAction,"data-event-label":m},t.createElement("div",{className:Ro.header},t.createElement("div",{className:Ro.headingIcon},t.createElement("img",{src:e.iconSrc,loading:"lazy"})),t.createElement("div",{className:Ro.heading},e.heading))),t.createElement(v.Panel,null,e.panel))))),b.length>0&&t.createElement("div",{className:Ro.group},t.createElement("div",{className:Ro.subTitle},t.createElement("img",{className:Ro.subIcon,src:B.getAssetPath(c?"mb-logo.svg":"logo/circle-solid.svg"),loading:"lazy"}),s("profilePanel.publishedArticles")),t.createElement("div",{className:`${Ro.relatedList}`},null==d?void 0:d.relatedPosts.map((e=>t.createElement("a",{key:String(e.id),href:`${window.location.origin}${null==e?void 0:e.permalink}`,className:Ro.articleCardLink},t.createElement(Oo,Object.assign({className:"article-card"},Object.assign(Object.assign({},e),!e.author&&{author:{displayName:null==u?void 0:u.name,avatar:null==u?void 0:u.avatar}}),{isReview:!0}))))))),f.length>0&&t.createElement("div",{className:Ro.group},t.createElement("div",{className:Ro.subTitle},t.createElement("img",{className:Ro.subIcon,src:B.getAssetPath(c?"social-mb.svg":"social.svg"),loading:"lazy"}),s("profilePanel.socialLinks")),t.createElement("div",{className:Ro.groupBody},t.createElement(p,null,g.map(((e,a)=>e.url&&t.createElement("div",{className:Ro.socialItem,key:a},t.createElement("a",{href:e.url,target:"_blank",rel:"noreferrer"},t.createElement("img",{src:e.icon,loading:"lazy",width:"32px","data-event-category":"Together","data-event-action":e.eventAction,"data-event-label":m})))))))))};var Io={container:"GYUElSy",question:"_3C6QpT1",questionTitle:"_9M9VYL6",community:"_1RuSyv3",questionCard:"_1IG-eEp"};const Uo=({post:e,className:a=""})=>{var o,i,r,l,s,d,c,p;const{t:m}=x(),{data:{userInfo:u,env:{togetherBasePath:g}}}=n(X),{authActionWrapper:h,authorProps:v,currentPageUrl:b}=n(No),f=`${window.location.origin}${g}/${null===(o=null==e?void 0:e.community)||void 0===o?void 0:o.slug}/${null==e?void 0:e.slug}/`;return t.createElement("div",{className:`${Io.container} ${a}`},t.createElement("div",{className:Io.header},t.createElement("div",{className:Io.question},m("profilePanel.question")," ",t.createElement(T,{className:Io.questionTitle,href:"#",onClick:()=>{(null==u?void 0:u.id)||null==h||h((()=>window.location.href=f))}},"#",null==e?void 0:e.title)),t.createElement("div",{className:Io.community},null===(i=null==e?void 0:e.community)||void 0===i?void 0:i.name," - ",null==e?void 0:e.createdTime)),t.createElement("div",{className:Io.questionCard},t.createElement(ia,Object.assign({className:"card-author"},v,{role:"user",avatarIcon:t.createElement(ut,null),subLine:t.createElement(ia.SubTextRow,null,t.createElement(ia.SubText,null,null===(s=null===(l=null===(r=null==e?void 0:e.expertAnswer)||void 0===r?void 0:r.answer)||void 0===l?void 0:l[0])||void 0===s?void 0:s.createdTime))})),t.createElement(ro,{className:"post-content-wrapper",description:(null===(p=null===(c=null===(d=null==e?void 0:e.expertAnswer)||void 0===d?void 0:d.answer)||void 0===c?void 0:c[0])||void 0===p?void 0:p.content)||"",mentions:null==e?void 0:e.mentions,"data-testid":"Content of the Post"})),t.createElement(A,{variant:"secondary","data-event-category":"Together","data-event-action":"Doctor Reply Click","data-event-label":b,size:"md",onClick:()=>{(null==u?void 0:u.id)?window.location.href=f:null==h||h((()=>window.location.href=f))}},m("profilePanel.anserwing.viewFull")))};var Do="MrdoES3",Wo="_8fd7YMs",Ho="DomiQfw",Zo="-b2qnfL";const qo=({message:e,buttonTxt:a,imgSrc:o,onBtnClick:i})=>{const{siteType:r,isMarryBaby:l}=n(No);return t.createElement("div",{className:Wo},t.createElement("div",{className:Ho},t.createElement("img",{src:o||B.getAssetPath(l?"comments-mb.svg":"comments.svg"),loading:"lazy"})),e&&t.createElement("div",{className:Zo},e),a&&t.createElement(me,{size:"md",theme:r,color:"secondary",onClick:i},a))},Go=({id:e})=>{const{t:o}=x(),{data:{locale:i}}=n(X),{authorProps:r}=n(No),[l,d]=a(null),[c,p]=a(!1);return s((()=>{e&&f(void 0,void 0,void 0,(function*(){var t;p(!0);const a=yield q(ie(ne.USER.LIST_ANSWERS,{_locale:i,id:e}),"GET"),o=((null===(t=null==a?void 0:a.data)||void 0===t?void 0:t.replies)||[]).map(ve);d(o),p(!1)}))}),[]),t.createElement("div",{className:Do},c?t.createElement(Ao,null):null!==l&&(l.length>0?l.map((e=>t.createElement(Uo,{className:"post-card",key:e.id,post:e}))):t.createElement(qo,{message:o("profilePanel.emptyPostMess.content",{name:(null==r?void 0:r.name)||(null==r?void 0:r.username)})})))};var Xo="toEutn7",Qo="drdisHs";const Ko=e=>{var a,o,i,r,{post:l}=e,s=b(e,["post"]);const{data:{env:{togetherBasePath:d}}}=n(X);return t.createElement(t.Fragment,null,t.createElement("div",Object.assign({},s,{className:`${Xo} ${(null==s?void 0:s.className)||""}`}),t.createElement(ia,{className:"card-author",avatar:null===(a=null==l?void 0:l.author)||void 0===a?void 0:a.avatar,name:(null===(o=null==l?void 0:l.author)||void 0===o?void 0:o.name)||(null===(i=null==l?void 0:l.author)||void 0===i?void 0:i.username),isAnonymous:Boolean(null==l?void 0:l.isAnonymous),subLine:t.createElement(ia.SubTextRow,null,t.createElement(ia.SubText,null,null==l?void 0:l.createdTime))}),t.createElement(T,{href:`${window.location.origin}${d}/${null===(r=null==l?void 0:l.community)||void 0===r?void 0:r.slug}/${null==l?void 0:l.slug}/`,className:Qo,rel:"noreferrer"},null==l?void 0:l.title)))};var Yo={accordion:"I-uIJ6E",header:"_41WRsj2",heading:"AcOGL93",headingIcon:"JD3dWJN",panel:"dKAgnS8",chevron:"L2Q9T6m",container:"h-pSmhX"};const $o=()=>{var e,o;const{t:i}=x(),{data:{locale:r,userInfo:l}}=n(X),{onSkipQuestion:d,countValues:c,setCountValues:p}=n(No),[m,u]=a(),[g,h]=a([]),[b,w]=a(!1),y=null==l?void 0:l.id;s((()=>{y&&f(void 0,void 0,void 0,(function*(){var e;w(!0);const t=yield se(ie(ne.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(ve),delete e.question,a.push(be(e))})),h(a),u(o),w(!1)}))}),[]);const E=({id:e,communityId:t})=>{if(e&&t&&m){const a=Object.assign(Object.assign({},m),{[t]:[...((null==m?void 0:m[t])||[]).filter((t=>t.id!==e))]});let o=0;Object.keys(a).map((e=>o+=a[e].length||0)),u(a),p(Object.assign(Object.assign({},c),{total_question:o})),null==d||d(o)}};return t.createElement("div",{className:Yo.container},b?t.createElement(Ao,null):(null==c?void 0:c.total_question)>0?g.length>0&&t.createElement(v,{className:Yo.accordion,defaultValue:String((null===(o=g[null===(e=Object.keys(g))||void 0===e?void 0:e[0]])||void 0===o?void 0:o.id)||""),styles:e=>({control:{padding:"16px",border:`1px solid ${e.colors.neutral[1]}`,borderTopLeftRadius:"8px",borderTopRightRadius:"8px",'&[aria-expanded="false"]':{borderBottom:0}},chevron:{width:"32px",height:"32px"},content:{padding:0,border:`1px solid ${e.colors.neutral[1]}`,borderTop:0,borderBottom:0},label:{padding:0},item:{marginBottom:"16px"}}),chevron:t.createElement("div",{className:Yo.chevron},t.createElement(S,{color:D.colors.gray600,size:20}))},g.map((e=>{const a=m&&(null==m?void 0:m[e.id])||[];return a.length>0&&t.createElement(v.Item,{key:e.id,value:String(e.id)},t.createElement(v.Control,null,t.createElement("div",{className:Yo.header},t.createElement("div",{className:Yo.headingIcon},t.createElement("img",{src:e.thumbnail,loading:"lazy"})),t.createElement("div",{className:Yo.heading},e.name))),t.createElement(v.Panel,null,t.createElement("div",{className:Yo.body},a.map((e=>t.createElement(Ko,{className:"question-card",key:e.id,post:e,onSkip:E}))))))}))):t.createElement(qo,{message:i("profilePanel.emptyCareMess.content"),imgSrc:B.getAssetPath("questions.svg")}))};var Jo="GA-zc-O",_o="A18McWD",ei="IB049vj",ti="_8I--vEV";const ai=({post:e,className:a=""})=>{var o;const{data:{userInfo:i,env:{togetherBasePath:r}}}=n(X),{t:l}=x(),s=d(),{authActionWrapper:c,authorProps:p}=n(No),m=`${window.location.origin}${r}/${null===(o=null==e?void 0:e.community)||void 0===o?void 0:o.slug}/${null==e?void 0:e.slug}/`;return t.createElement("div",{className:`${Jo} ${a}`},t.createElement("div",{className:ei},t.createElement("a",{"data-event-category":"Together","data-event-action":"Click Post","data-event-label":m,className:ti,href:m,onClick:e=>{(null==i?void 0:i.id)||(e.preventDefault(),null==c||c((()=>window.location.href=m)))}}),t.createElement(Nt,{className:"card-author",avatarProps:{avatar:null==p?void 0:p.avatar,size:32}},t.createElement(ia.MainText,{className:_o},null==e?void 0:e.title),t.createElement(ia.SubTextRow,null,t.createElement(ia.SubText,null,null==e?void 0:e.createdTime))),t.createElement(ro,{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",hideShowAllBtn:!0}),t.createElement(y,{size:"p3",color:s.fn.primaryColor()},l("post.seeMore"))))};var oi="TSMHoEM";const ii=()=>{const{t:e}=x(),{data:{locale:o}}=n(X),{authorId:i,authorProps:r,isAuthorLogin:l,onCloseFromPost:d}=n(No),[c,p]=a(null),[m,u]=a(!1);return s((()=>{i&&f(void 0,void 0,void 0,(function*(){var e;u(!0);const t=yield q(ie(ne.USER.LIST_POST,{_locale:o,id:i,isAnonymous:0}),"GET"),a=((null===(e=null==t?void 0:t.data)||void 0===e?void 0:e.posts)||[]).map(ve);p(a),u(!1)}))}),[i]),t.createElement("div",{className:oi},m?t.createElement(Ao,null):null!==c&&(c.length>0?c.map((e=>t.createElement(ai,{className:"post-card",key:e.id,post:e}))):t.createElement(qo,{message:e("profilePanel.emptyPostMess.content",{name:(null==r?void 0:r.name)||(null==r?void 0:r.username)||""}),buttonTxt:l&&e("profilePanel.createPost"),onBtnClick:()=>{null==d||d()}})))};var ri="_4Vekw96",ni="DIJdGcB",li="aQSt4-Q";const si=e=>e?{title:null==e?void 0:e.title,organization:null==e?void 0:e.organization,duration:e.duration}:{},di=e=>e?{completedYear:null==e?void 0:e.completed_year,schoolName:e.school_name,study:e.study}:{};var ci,pi;!function(e){e[e.About=0]="About",e[e.Care=1]="Care",e[e.Answer=2]="Answer",e[e.Posts=3]="Posts"}(ci||(ci={})),function(e){e[e.Expert=0]="Expert",e[e.User=1]="User"}(pi||(pi={}));const mi=e=>{var o,{authorProps:i,selectedTab:r,authActionWrapper:l,onSkipQuestion:d,onCloseFromPost:c,hideQuestionTab:p,hideAnswerTab:m,showSkipQuestionTag:u,rolesToShowQuestionsTab:g=["expert"],currentPageUrl:h}=e,v=b(e,["authorProps","selectedTab","authActionWrapper","onSkipQuestion","onCloseFromPost","hideQuestionTab","hideAnswerTab","showSkipQuestionTag","rolesToShowQuestionsTab","currentPageUrl"]);const{data:{locale:w,userInfo:y,env:{isMarryBaby:E}}}=n(X),{t:C}=x(),k=null==i?void 0:i.role,A=null==y?void 0:y.role,N=String(null==i?void 0:i.userId),[z,T]=a(),[S,V]=a(!1),[P,F]=a(),B=(null==y?void 0:y._togetherUserId)===(null==i?void 0:i.userId),O=[...-1!==g.indexOf(k)?[{value:ci.About,text:C("profilePanel.tabs.highlight"),content:t.createElement(Mo,{id:N,info:P}),dataEventCategory:"Together",dataEventAction:"Doctor Profile Click",dataEventLabel:h}]:[],{value:ci.Posts,text:C("profilePanel.tabs.posts"),content:t.createElement(ii,null),hasCountResult:!0,keyOfCountApi:"post",keyOfResult:"total_post"},...p||-1===g.indexOf(A)||(null==y?void 0:y._togetherUserId)!==(null==i?void 0:i.userId)?[]:[{value:ci.Care,text:`${C("profilePanel.tabs.care")}`,content:t.createElement($o,null),hasCountResult:!0,keyOfCountApi:"question",keyOfResult:"total_question",dataEventCategory:"Together",dataEventAction:"Doctor Questions Click",dataEventLabel:h}],...m||-1===g.indexOf(k)?[]:[{value:ci.Answer,text:`${C("profilePanel.tabs.expertAnswer")}`,content:t.createElement(Go,{id:N}),hasCountResult:!0,keyOfCountApi:"reply",keyOfResult:"total_reply",dataEventCategory:"Together",dataEventAction:"Doctor Reply Tab Click",dataEventLabel:h}]],[R,M]=a(null),[I,U]=a(null),D={value:String(I),dataList:R,onTabChange:e=>U(Number(e))},W=null==O?void 0:O.filter((e=>null==e?void 0:e.hasCountResult));s((()=>{f(void 0,void 0,void 0,(function*(){var e,t,a,o,i,n,l,s,d,c;V(!0);const p=yield Promise.all([q(ie(ne.USER.DETAIL,{_locale:w,id:N}),"GET"),...W.map((e=>q(ie(ne.USER.COUNT_TABS,{_locale:w,id:N,[e.keyOfCountApi]:1}),"GET")))]),[m]=p,u={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(si),relatedPosts:((null===(a=null==m?void 0:m.data)||void 0===a?void 0:a.related_post)||[]).map((e=>fe(e.post))),educations:((null===(i=null===(o=null==m?void 0:m.data)||void 0===o?void 0:o.fields)||void 0===i?void 0:i.educations)||[]).map(di),awards:(null===(l=null===(n=null==m?void 0:m.data)||void 0===n?void 0:n.fields)||void 0===l?void 0:l.awards_accreditations)||[],contact:(null===(d=null===(s=null==m?void 0:m.data)||void 0===s?void 0:s.fields)||void 0===d?void 0:d.contact)||{}};1===(null==m?void 0:m.status)&&F(u);const g=(null==u?void 0:u.relatedPosts)||[],h=Object.keys(u.contact).map((e=>{var t;return""!==(null===(t=null==u?void 0:u.contact)||void 0===t?void 0:t[e])})),v=[...(null==u?void 0:u.experiences)||[],...(null==u?void 0:u.educations)||[],...(null==u?void 0:u.awards)||[]],b=g.length>0||h.length>0||v.length>0,f={},x=W.map(((e,t)=>{var a,o,i;const r=(null===(i=null===(o=null===(a=p[t+1])||void 0===a?void 0:a.data)||void 0===o?void 0:o.counting)||void 0===i?void 0:i[e.keyOfResult])||0;return r>0?(f[e.keyOfResult]=r,e):-1!==[ci.Care,ci.Posts].indexOf(e.value)?e:void 0})).filter(Boolean).map((e=>e.value)),y=O.map((e=>{const t=Object.assign(Object.assign({},e),{text:e.text+(e.keyOfResult?` (${(null==f?void 0:f[e.keyOfResult])||"0"})`:"")});return t.hasCountResult?-1!==x.indexOf(t.value)?t:void 0:t.value===ci.About?b&&t:t})).filter(Boolean);M(y),U(r||(null===(c=null==y?void 0:y[0])||void 0===c?void 0:c.value)),T(f),V(!1)}))}),[]);const H=null==P?void 0:P.data;return t.createElement(No.Provider,{value:{isMarryBaby:E,siteType:E?"marryBaby":"helloSites",authorId:String((null==i?void 0:i.userId)||""),authActionWrapper:l,onSkipQuestion:d,info:P,authorProps:i,onCloseFromPost:c,countValues:z,setCountValues:T,isAuthorLogin:B,showSkipQuestionTag:u,currentPageUrl:h}},t.createElement("div",Object.assign({},v,{className:`${ri} ${(null==v?void 0:v.className)||""}`,"data-is-marrybaby":E}),S?t.createElement(Ao,null):t.createElement(t.Fragment,null,t.createElement(ia,Object.assign({},i,{className:"card-author",showDetailPopup:!1,subLine:"expert"===(null==i?void 0:i.role)?(null==H?void 0:H.specialty)&&(null==H?void 0:H.organisation)&&t.createElement(ia.SubTextRow,null,(null==H?void 0:H.specialty)&&t.createElement(t.Fragment,null,t.createElement(ia.SubText,null,null==H?void 0:H.specialty),t.createElement(ia.SubDivider,null)),t.createElement(ia.SubText,null,null==H?void 0:H.organisation)):(null==H?void 0:H.created_at)&&t.createElement(ia.SubTextRow,null,t.createElement(ia.SubText,null,C("profilePanel.joined")," ",j(null==H?void 0:H.created_at).toNow(!0)))})),"expert"===k&&t.createElement("div",{className:ni,dangerouslySetInnerHTML:{__html:null===(o=null==P?void 0:P.data)||void 0===o?void 0:o.description}}),null!==R&&null!==I&&(R.length>0?t.createElement("div",{className:li},t.createElement(L,Object.assign({},D))):t.createElement(qo,{message:C("profilePanel.emptyPostMess.content",{text:(null==i?void 0:i.name)||(null==i?void 0:i.username)||""})})))))};var ui=Object.freeze({__proto__:null,get TabName(){return ci},get UserType(){return pi},TabDataInit:{experiences:[],relatedPosts:[],educations:[],awards:[],contact:{},data:{}},ProfileDetail:mi});const gi=M.div`
2774
2719
  position: relative;
2775
2720
  margin-bottom: 24px;
2776
2721
  background: white;
@@ -3001,7 +2946,7 @@ import*as e from"react";import t,{useState as a,useMemo as o,useCallback as i,cr
3001
2946
  width: 100%;
3002
2947
  height: 100%;
3003
2948
  }
3004
- `,Ni=({categories:e})=>{const{t:a}=x(),{data:{locale:o,env:{isMarryBaby:i}}}=n(X),r=we(o,i);return t.createElement(wi,null,t.createElement(yi,null,t.createElement($,{tag:"h6",as:"h5"},a("cardReply.recommentCategories.heading"))),t.createElement(Ei,null,e.map((e=>t.createElement(Ci,{href:r+e.permalink,key:String(e.termId),target:"_blank"},t.createElement(ki,null,t.createElement(Ai,null,t.createElement("img",{src:e.featureImage||F.getAssetPath(i?"mb-logo.svg":"/logo/logomark.png"),alt:e.displayName,loading:"lazy"})),t.createElement(y,{size:"s3",weight:"bold"},e.displayName)),t.createElement(C.ArrowRight,{size:20,color:D.colors.gray400}))))))},zi=M.a`
2949
+ `,Ni=({categories:e})=>{const{t:a}=x(),{data:{locale:o,env:{isMarryBaby:i}}}=n(X),r=we(o,i);return t.createElement(wi,null,t.createElement(yi,null,t.createElement($,{tag:"h6",as:"h5"},a("cardReply.recommentCategories.heading"))),t.createElement(Ei,null,e.map((e=>t.createElement(Ci,{href:r+e.permalink,key:String(e.termId),target:"_blank"},t.createElement(ki,null,t.createElement(Ai,null,t.createElement("img",{src:e.featureImage||B.getAssetPath(i?"mb-logo.svg":"/logo/logomark.png"),alt:e.displayName,loading:"lazy"})),t.createElement(y,{size:"s3",weight:"bold"},e.displayName)),t.createElement(C.ArrowRight,{size:20,color:D.colors.gray400}))))))},zi=M.a`
3005
2950
  padding: 12px 0;
3006
2951
  display: flex;
3007
2952
  flex-direction: column;
@@ -3012,7 +2957,7 @@ import*as e from"react";import t,{useState as a,useMemo as o,useCallback as i,cr
3012
2957
  &:first-child {
3013
2958
  border-top: 0;
3014
2959
  }
3015
- `,Ti=M.div``,Si=({postTitle:e,articleReviewed:a,modifiedTime:o,href:i})=>{const{t:r}=x(),n=(()=>{const{expert:e,editor:t,is_author:o}=a;if(e){const t={name:e.display_name,role:"expert",avatar:e.avatar};return o?Object.assign({title:r("articleAuthor.title.written-by")},t):"expert"===e.role?Object.assign({title:r("articleAuthor.title.expert")},t):Object.assign({title:r("articleAuthor.title.medical")},t)}if(t)return{title:r("articleAuthor.title.fact-check"),name:t.display_name,avatar:t.avatar}})();return t.createElement(zi,{href:i,title:e,target:"_blank"},t.createElement(y,{size:"s3",as:"h5",weight:"bold"},e),t.createElement(Ti,null,t.createElement(ia,{avatar:null==n?void 0:n.avatar,avatarProps:{size:32},name:null==n?void 0:n.name,role:null==n?void 0:n.role,hideBackground:!0},t.createElement(ia.SubTextRow,null,t.createElement(ia.SubText,null,null==n?void 0:n.title," ",t.createElement("span",{style:{color:D.colors.gray800}},null==n?void 0:n.name)),t.createElement(ia.SubDivider,null),t.createElement(ia.SubText,null,o)))))};var Li="F4mmgSy",Vi="A7QrQ7A";const Pi=e=>{var{listUrl:o,categorySlug:i,editMode:r,onListChange:n,isMarryBaby:l}=e,d=b(e,["listUrl","categorySlug","editMode","onListChange","isMarryBaby"]);const{t:c}=x(),[p,m]=a(o||[]),[u,g]=a([]),[h,w]=a([]),[E,k]=a(!1);s((()=>{f(void 0,void 0,void 0,(function*(){k(!0);const e=p.map((e=>{const t=new URL(e),a=String(t.pathname).split("/").filter((e=>""!=e));return{isMarrySite:-1!==t.origin.search("marrybaby.vn"),path:a[a.length-1],href:e}})),t=[...e.map((e=>q(e.isMarrySite?ce(oe.GET_PREVIEW_ARTICLE,{fullSlug:e.path},!0):ae(oe.GET_PREVIEW_ARTICLE,{fullSlug:e.path},!0),"GET")))],a=yield Promise.all(t);g(a.map(((t,a)=>{var o,i;return(null===(o=null==t?void 0:t.data)||void 0===o?void 0:o.post)&&Object.assign(Object.assign({},fe(null===(i=null==t?void 0:t.data)||void 0===i?void 0:i.post)),{href:e[a].href})})).filter(Boolean)),k(!1)}))}),[]),s((()=>{0===(null==u?void 0:u.length)&&i&&f(void 0,void 0,void 0,(function*(){var e;const t=yield q(l?ce(oe.GET_CATEGORY_OR_ARTICLE_DETAIL,{fullSlug:i},!0):ae(oe.GET_CATEGORY_OR_ARTICLE_DETAIL,{fullSlug:i},!0),"GET");(null==t?void 0:t.data)&&w([xe(null===(e=null==t?void 0:t.data)||void 0===e?void 0:e.category)])}))}),[u]);return s((()=>{null==n||n(p)}),[p]),t.createElement("div",Object.assign({},d),!r&&t.createElement(vi,null,t.createElement("img",{className:"icon",src:F.getAssetPath("warning.svg"),alt:"warning",style:{marginBottom:"3px",width:"18px"},loading:"lazy"}),t.createElement(y,{size:"s3",as:"span",dangerouslySetInnerHTML:{__html:c("cardReply.disclaimer")}})),E?t.createElement(Rt,null):u.length>0||r?t.createElement(hi,null,t.createElement(v,{defaultValue:"accordion",styles:{control:{border:`1px solid ${D.colors.neutral100}`,borderTopLeftRadius:"8px",borderTopRightRadius:"8px",'&[aria-expanded="false"]':{borderBottom:0}},chevron:{width:"32px",height:"32px"},content:{padding:0,border:`1px solid ${D.colors.neutral100}`,borderTop:0,borderBottom:0},item:{marginBottom:"16px"}},chevron:t.createElement("div",{className:Vi},t.createElement(S,{color:D.colors.gray600,size:20}))},t.createElement(v.Item,{value:"accordion"},t.createElement(v.Control,null,t.createElement("div",{className:Li},t.createElement($,{as:"h4",tag:"h6"},c("cardReply.source")))),t.createElement(v.Panel,null,t.createElement(fi,null,(u||[]).map(((e,a)=>t.createElement(bi,{key:String(a)},"object"==typeof e?t.createElement(Si,Object.assign({},e)):t.createElement(xi,null,t.createElement(ue,{style:{width:"100%"},name:"source-list",value:e||"",size:"sm",onChange:e=>{m((t=>{const o=[...t];return o[a]=e,o})),g((t=>{const o=[...t];return o[a]=e,o}))}})),r&&t.createElement(me,{size:"md",color:"transparent",icon:t.createElement(C.Trash,null),onClick:()=>(e=>{m((t=>{const a=[...t];return a.splice(e,1),a})),g((t=>{const a=[...t];return a.splice(e,1),a}))})(a)})))),r&&t.createElement(me,{className:"add-link",color:"transparent",size:"md",icon:t.createElement(C.Plus,{color:D.colors.primaryBase,size:18}),onClick:()=>{m((e=>[...e,""])),g((e=>[...e,""]))}},"Add source")))))):t.createElement(Ni,{categories:h}))},ji=M.div`
2960
+ `,Ti=M.div``,Si=({postTitle:e,articleReviewed:a,modifiedTime:o,href:i})=>{const{t:r}=x(),n=(()=>{const{expert:e,editor:t,is_author:o}=a;if(e){const t={name:e.display_name,role:"expert",avatar:e.avatar};return o?Object.assign({title:r("articleAuthor.title.written-by")},t):"expert"===e.role?Object.assign({title:r("articleAuthor.title.expert")},t):Object.assign({title:r("articleAuthor.title.medical")},t)}if(t)return{title:r("articleAuthor.title.fact-check"),name:t.display_name,avatar:t.avatar}})();return t.createElement(zi,{href:i,title:e,target:"_blank"},t.createElement(y,{size:"s3",as:"h5",weight:"bold"},e),t.createElement(Ti,null,t.createElement(ia,{avatar:null==n?void 0:n.avatar,avatarProps:{size:32},name:null==n?void 0:n.name,role:null==n?void 0:n.role,hideBackground:!0},t.createElement(ia.SubTextRow,null,t.createElement(ia.SubText,null,null==n?void 0:n.title," ",t.createElement("span",{style:{color:D.colors.gray800}},null==n?void 0:n.name)),t.createElement(ia.SubDivider,null),t.createElement(ia.SubText,null,o)))))};var Li="F4mmgSy",Vi="A7QrQ7A";const Pi=e=>{var{listUrl:o,categorySlug:i,editMode:r,onListChange:n,isMarryBaby:l}=e,d=b(e,["listUrl","categorySlug","editMode","onListChange","isMarryBaby"]);const{t:c}=x(),[p,m]=a(o||[]),[u,g]=a([]),[h,w]=a([]),[E,k]=a(!1);s((()=>{f(void 0,void 0,void 0,(function*(){k(!0);const e=p.map((e=>{const t=new URL(e),a=String(t.pathname).split("/").filter((e=>""!=e));return{isMarrySite:-1!==t.origin.search("marrybaby.vn"),path:a[a.length-1],href:e}})),t=[...e.map((e=>q(e.isMarrySite?ce(oe.GET_PREVIEW_ARTICLE,{fullSlug:e.path},!0):ae(oe.GET_PREVIEW_ARTICLE,{fullSlug:e.path},!0),"GET")))],a=yield Promise.all(t);g(a.map(((t,a)=>{var o,i;return(null===(o=null==t?void 0:t.data)||void 0===o?void 0:o.post)&&Object.assign(Object.assign({},fe(null===(i=null==t?void 0:t.data)||void 0===i?void 0:i.post)),{href:e[a].href})})).filter(Boolean)),k(!1)}))}),[]),s((()=>{0===(null==u?void 0:u.length)&&i&&f(void 0,void 0,void 0,(function*(){var e;const t=yield q(l?ce(oe.GET_CATEGORY_OR_ARTICLE_DETAIL,{fullSlug:i},!0):ae(oe.GET_CATEGORY_OR_ARTICLE_DETAIL,{fullSlug:i},!0),"GET");(null==t?void 0:t.data)&&w([xe(null===(e=null==t?void 0:t.data)||void 0===e?void 0:e.category)])}))}),[u]);return s((()=>{null==n||n(p)}),[p]),t.createElement("div",Object.assign({},d),!r&&t.createElement(vi,null,t.createElement("img",{className:"icon",src:B.getAssetPath("warning.svg"),alt:"warning",style:{marginBottom:"3px",width:"18px"},loading:"lazy"}),t.createElement(y,{size:"s3",as:"span",dangerouslySetInnerHTML:{__html:c("cardReply.disclaimer")}})),E?t.createElement(Rt,null):u.length>0||r?t.createElement(hi,null,t.createElement(v,{defaultValue:"accordion",styles:{control:{border:`1px solid ${D.colors.neutral100}`,borderTopLeftRadius:"8px",borderTopRightRadius:"8px",'&[aria-expanded="false"]':{borderBottom:0}},chevron:{width:"32px",height:"32px"},content:{padding:0,border:`1px solid ${D.colors.neutral100}`,borderTop:0,borderBottom:0},item:{marginBottom:"16px"}},chevron:t.createElement("div",{className:Vi},t.createElement(S,{color:D.colors.gray600,size:20}))},t.createElement(v.Item,{value:"accordion"},t.createElement(v.Control,null,t.createElement("div",{className:Li},t.createElement($,{as:"h4",tag:"h6"},c("cardReply.source")))),t.createElement(v.Panel,null,t.createElement(fi,null,(u||[]).map(((e,a)=>t.createElement(bi,{key:String(a)},"object"==typeof e?t.createElement(Si,Object.assign({},e)):t.createElement(xi,null,t.createElement(ue,{style:{width:"100%"},name:"source-list",value:e||"",size:"sm",onChange:e=>{m((t=>{const o=[...t];return o[a]=e,o})),g((t=>{const o=[...t];return o[a]=e,o}))}})),r&&t.createElement(me,{size:"md",color:"transparent",icon:t.createElement(C.Trash,null),onClick:()=>(e=>{m((t=>{const a=[...t];return a.splice(e,1),a})),g((t=>{const a=[...t];return a.splice(e,1),a}))})(a)})))),r&&t.createElement(me,{className:"add-link",color:"transparent",size:"md",icon:t.createElement(C.Plus,{color:D.colors.primaryBase,size:18}),onClick:()=>{m((e=>[...e,""])),g((e=>[...e,""]))}},"Add source")))))):t.createElement(Ni,{categories:h}))},Fi=M.div`
3016
2961
  position: relative;
3017
2962
  margin-bottom: 0;
3018
2963
  background: white;
@@ -3208,7 +3153,7 @@ import*as e from"react";import t,{useState as a,useMemo as o,useCallback as i,cr
3208
3153
  margin-bottom: 12px;
3209
3154
  }
3210
3155
  }
3211
- `,Fi=M(Pi)`
3156
+ `,Bi=M(Pi)`
3212
3157
  margin-top: 12px;
3213
3158
  padding: 0.5rem 1rem 1rem;
3214
- `;export{yo as $,Le as A,Ve as B,tt as C,Me as D,wa as E,xa as F,ra as G,la as H,na as I,Ha as J,Ka as K,rt as L,Ya as M,ao as N,mo as O,Gt as P,go as Q,Ra as R,eo as S,Ie as T,ho as U,Xa as V,vo as W,bo as X,fo as Y,Eo as Z,wo as _,Ue as a,uo as a0,po as a1,Sa as a2,Co as a3,dt as a4,ji as a5,Fi as a6,Qe as a7,gi as a8,ot as b,mt as c,ia as d,Mt as e,$t as f,Qa as g,_a as h,ro as i,aa as j,mi as k,ci as l,st as m,Pi as n,Te as o,We as p,Ea as q,ka as r,Aa as s,La as t,De as u,Va as v,Rt as w,Ta as x,Da as y,Wa as z};
3159
+ `;export{yo as $,Le as A,Ve as B,tt as C,Me as D,wa as E,xa as F,ra as G,la as H,na as I,Ha as J,Ka as K,rt as L,Ya as M,ao as N,mo as O,Gt as P,go as Q,Ra as R,eo as S,Ie as T,ho as U,Xa as V,vo as W,bo as X,fo as Y,Eo as Z,wo as _,Ue as a,uo as a0,po as a1,Sa as a2,Co as a3,dt as a4,Fi as a5,Bi as a6,Qe as a7,gi as a8,ot as b,mt as c,ia as d,Mt as e,$t as f,Qa as g,_a as h,ro as i,aa as j,mi as k,ci as l,st as m,Pi as n,Te as o,We as p,Ea as q,ka as r,Aa as s,La as t,De as u,Va as v,Rt as w,Ta as x,Da as y,Wa as z};
@@ -1,4 +1,4 @@
1
- import{_ as t}from"./tslib.es6-ce2c140c.js";import e from"react";import i from"styled-components";const p=i((i=>{var{type:p}=i,n=t(i,["type"]);return e.createElement(p,n)}))`
1
+ import{_ as t}from"./tslib.es6-89288f42.js";import e from"react";import i from"styled-components";const p=i((i=>{var{type:p}=i,n=t(i,["type"]);return e.createElement(p,n)}))`
2
2
  color: var(--text-color, ${t=>t.theme.mbColors.dark});
3
3
  font-family: Krub;
4
4
  font-weight: 600;