@hhgtech/hhg-components 1.29.81 → 1.29.82

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 (353) hide show
  1. package/build/{WhatsApp-82018096.js → WhatsApp-46f4f408.js} +1 -1
  2. package/build/adapters.js +16 -16
  3. package/build/atoms.js +53 -51
  4. package/build/babyGrowth.js +79 -79
  5. package/build/cache.js +3 -3
  6. package/build/care.js +17 -17
  7. package/build/components.js +108 -106
  8. package/build/{constants-3a475a22.js → constants-223c01fc.js} +2 -2
  9. package/build/{constants-dd16fb4d.js → constants-f182fc32.js} +5 -5
  10. package/build/constants.js +3 -3
  11. package/build/{core-9e44ee99.js → core-9d69a722.js} +2 -2
  12. package/build/{dataTransform-c1701cbd.js → dataTransform-ded2692d.js} +1 -1
  13. package/build/{dataTransform-6b4d7a4e.js → dataTransform-e39297c1.js} +3 -3
  14. package/build/ecom.js +5 -5
  15. package/build/esm/{WhatsApp-7d3732e2.js → WhatsApp-c599b715.js} +1 -1
  16. package/build/esm/adapters.js +16 -16
  17. package/build/esm/atoms.js +47 -45
  18. package/build/esm/babyGrowth.js +80 -80
  19. package/build/esm/cache.js +3 -3
  20. package/build/esm/care.js +17 -17
  21. package/build/esm/components.js +79 -77
  22. package/build/esm/{constants-ebf80e5f.js → constants-bb470362.js} +2 -2
  23. package/build/esm/{constants-6bdb97a8.js → constants-fa475b0f.js} +5 -5
  24. package/build/esm/constants.js +3 -3
  25. package/build/esm/{core-c72e0ff5.js → core-80bfe8b7.js} +2 -2
  26. package/build/esm/{dataTransform-6c032113.js → dataTransform-55f67eed.js} +1 -1
  27. package/build/esm/{dataTransform-3e8e25ba.js → dataTransform-623716c3.js} +4 -4
  28. package/build/esm/ecom.js +5 -5
  29. package/build/esm/{fixedBottomAdBlock-13ed4a34.js → fixedBottomAdBlock-60a5d48f.js} +27 -27
  30. package/build/esm/footer.js +18 -18
  31. package/build/esm/gAssets.js +4 -4
  32. package/build/esm/{getDynamicHealthTool-7681e43a.js → getDynamicHealthTool-82855adc.js} +4 -4
  33. package/build/esm/{getSocialList-e8142513.js → getSocialList-7d2cf48d.js} +5 -5
  34. package/build/esm/healthToolsForm.js +24 -24
  35. package/build/esm/hooks.js +17 -17
  36. package/build/esm/i18n.js +2 -2
  37. package/build/esm/i18nV2.js +2 -2
  38. package/build/esm/{index-7cbe2a10.js → index-01405723.js} +12 -12
  39. package/build/esm/{index-8952ceac.js → index-01b5d2e9.js} +4 -4
  40. package/build/esm/{index-88ad2ca3.js → index-02d3f05b.js} +19 -19
  41. package/build/esm/{index-73301602.js → index-046778af.js} +2 -2
  42. package/build/esm/{index-69248434.js → index-049e0270.js} +3 -3
  43. package/build/esm/{index-29d04985.js → index-07f3f47e.js} +2 -2
  44. package/build/esm/index-0b745f46.js +1349 -0
  45. package/build/esm/{index-780a08de.js → index-0ca9b175.js} +2 -2
  46. package/build/esm/{index-2774583d.js → index-0cd3523c.js} +31 -31
  47. package/build/esm/{index-42ad7763.js → index-0ee66974.js} +2 -2
  48. package/build/esm/index-10ab6596.js +489 -0
  49. package/build/esm/{index-cb4afb33.js → index-13d8dd4b.js} +6 -6
  50. package/build/esm/{index-87a2ea8c.js → index-1c9b481b.js} +2 -2
  51. package/build/esm/{index-2b9213cf.js → index-1d3c6ce7.js} +1 -1
  52. package/build/esm/{index-cf6beac8.js → index-21256394.js} +1 -1
  53. package/build/esm/{index-7e756cb8.js → index-219e3a35.js} +11 -11
  54. package/build/esm/{index-cdac57da.js → index-29908d2c.js} +1 -1
  55. package/build/esm/{index-1ecbcf21.js → index-2dc7803d.js} +5 -5
  56. package/build/esm/{index-c200bff6.js → index-5723381f.js} +2 -2
  57. package/build/esm/{index-bef3c9bd.js → index-6210f454.js} +2 -2
  58. package/build/esm/{index-76d20d3f.js → index-7a1ea734.js} +3 -3
  59. package/build/esm/{index-598ab51b.js → index-7c384ae6.js} +5 -5
  60. package/build/esm/{index-f27edf45.js → index-8eb04f36.js} +11 -11
  61. package/build/esm/{index-e104ad21.js → index-8fcf671c.js} +8 -8
  62. package/build/esm/{index-78255d6c.js → index-9471fca1.js} +2 -2
  63. package/build/esm/{index-21eac858.js → index-9b3a8b6d.js} +10 -10
  64. package/build/esm/{index-1da2ca0b.js → index-9b9c1499.js} +2 -2
  65. package/build/esm/{index-703205e3.js → index-9f99909b.js} +3 -3
  66. package/build/esm/{index-6ac73f00.js → index-ac2a8f95.js} +16 -16
  67. package/build/esm/{index-d6201fa4.js → index-acf8b60e.js} +2 -2
  68. package/build/esm/{index-c1af3a8e.js → index-bcedec73.js} +13 -13
  69. package/build/esm/{index-9f1899f2.js → index-c013ba1b.js} +4 -4
  70. package/build/esm/{index-e26514ee.js → index-c2584051.js} +4 -4
  71. package/build/esm/{types-2580132c.js → index-c430773c.js} +559 -3517
  72. package/build/esm/index-cdc50618.js +25 -0
  73. package/build/esm/{index-d218b94e.js → index-cfedca38.js} +2 -2
  74. package/build/esm/{index-38f50764.js → index-d6a5f5cf.js} +16 -16
  75. package/build/esm/{index-376bee14.js → index-e0b0d6a2.js} +7 -7
  76. package/build/esm/{index-996f7caf.js → index-ea63e0d2.js} +4 -4
  77. package/build/esm/{index-b1bb27aa.js → index-f22f6e6e.js} +10 -45
  78. package/build/esm/index-f4b938f2.js +18 -0
  79. package/build/esm/{index-16514f4d.js → index-f660abb7.js} +3 -3
  80. package/build/esm/index-fa67d66e.js +789 -0
  81. package/build/esm/index.js +91 -82
  82. package/build/esm/labelSorting-7351409a.js +47 -0
  83. package/build/esm/lead.js +21 -21
  84. package/build/esm/{logoIcon-d93bc56e.js → logoIcon-3a581efb.js} +2 -2
  85. package/build/esm/mantine.js +22 -22
  86. package/build/esm/misc.js +21 -21
  87. package/build/esm/molecules.js +56 -56
  88. package/build/esm/navigation.js +36 -36
  89. package/build/esm/onboardingV2.js +25 -25
  90. package/build/esm/organisms.js +40 -40
  91. package/build/esm/pwg.js +19 -19
  92. package/build/esm/{routing-bebdc8b7.js → routing-9e330438.js} +2 -2
  93. package/build/esm/subot.js +29 -29
  94. package/build/esm/surveyOrPremiumBanner.js +28 -28
  95. package/build/esm/surveyQuestionCard.js +10 -10
  96. package/build/esm/{surveyThankyouCard-bf6080eb.js → surveyThankyouCard-ec204631.js} +6 -6
  97. package/build/esm/together.js +51 -42
  98. package/build/esm/togetherAtoms.js +41 -0
  99. package/build/esm/togetherComponentGlobalContext.js +12 -0
  100. package/build/esm/togetherMolecules.js +53 -0
  101. package/build/esm/togetherOrganisms.js +57 -0
  102. package/build/esm/treePopoverMenu-cb214db6.js +332 -0
  103. package/build/esm/types-721e7a66.js +5 -0
  104. package/build/esm/{types-be952df2.js → types-ffcf5fb4.js} +13 -13
  105. package/build/esm/types.js +1 -1
  106. package/build/esm/{useCategory-8f109eb7.js → useCategory-553bee0b.js} +5 -5
  107. package/build/esm/{useHealthToolCache-d97dfa00.js → useHealthToolCache-6ce1724e.js} +2 -2
  108. package/build/esm/{useMantineLocale-4fb67342.js → useMantineLocale-453f8013.js} +3 -3
  109. package/build/esm/{usePlacesAutocomplete-fe2e4cbe.js → usePlacesAutocomplete-8925d4fb.js} +1 -1
  110. package/build/esm/useTogetherAuthRequiredAction.js +60 -0
  111. package/build/esm/{useTranslations-fbf6a6ab.js → useTranslations-b970f667.js} +1 -1
  112. package/build/esm/{utils-d5a0b58f.js → utils-3b29eb79.js} +6 -6
  113. package/build/esm/{utils-cef111b6.js → utils-6d45bdd1.js} +1 -1
  114. package/build/esm/vaccination.js +18 -18
  115. package/build/{fixedBottomAdBlock-0d4379d1.js → fixedBottomAdBlock-0129a006.js} +27 -27
  116. package/build/footer.js +18 -18
  117. package/build/gAssets.js +4 -4
  118. package/build/{getDynamicHealthTool-2a92e1a5.js → getDynamicHealthTool-f08b5fab.js} +4 -4
  119. package/build/{getSocialList-97e7bcc1.js → getSocialList-8cc32f7c.js} +5 -5
  120. package/build/healthToolsForm.js +24 -24
  121. package/build/hooks.js +17 -17
  122. package/build/i18n.js +1 -1
  123. package/build/i18nV2.js +1 -1
  124. package/build/{index-3d0d22b3.js → index-00a78d81.js} +16 -16
  125. package/build/index-077bf48f.js +803 -0
  126. package/build/{index-6bc3f8c3.js → index-0b727664.js} +5 -5
  127. package/build/{index-dcbd8bf3.js → index-10760994.js} +3 -3
  128. package/build/{index-247a9eb2.js → index-130e0f35.js} +33 -33
  129. package/build/{index-d5b4089d.js → index-16ed0d98.js} +12 -50
  130. package/build/{index-f1f4fbb9.js → index-1e1d8eb1.js} +13 -13
  131. package/build/{index-d34cd464.js → index-1fdf2f01.js} +2 -2
  132. package/build/{index-b773bc3d.js → index-206afefb.js} +4 -4
  133. package/build/{types-6c5643a2.js → index-2afbeb3d.js} +749 -3713
  134. package/build/{index-fe7345fa.js → index-2fd9063e.js} +2 -2
  135. package/build/{index-f10efb61.js → index-33432b02.js} +4 -4
  136. package/build/{index-a7de42d1.js → index-3eb666e6.js} +1 -1
  137. package/build/{index-264eeddd.js → index-405faafa.js} +2 -2
  138. package/build/{index-bef2bc73.js → index-4357a324.js} +11 -11
  139. package/build/index-466a2c32.js +1362 -0
  140. package/build/{index-73cde644.js → index-4b7d4b5b.js} +4 -4
  141. package/build/{index-77a2b9ee.js → index-4bc690c9.js} +1 -1
  142. package/build/index-4cdcdbbe.js +498 -0
  143. package/build/{index-06fa8444.js → index-53e14542.js} +2 -2
  144. package/build/{index-4af08ec2.js → index-54aeefca.js} +2 -2
  145. package/build/{index-058b3c0f.js → index-60f6d762.js} +16 -16
  146. package/build/{index-1efa7d84.js → index-64d8db08.js} +2 -2
  147. package/build/{index-cb0544e5.js → index-6aeb5ff5.js} +7 -7
  148. package/build/{index-3dcb9bc6.js → index-71843eb4.js} +4 -4
  149. package/build/{index-ee964d3c.js → index-765ed75d.js} +4 -4
  150. package/build/{index-dd1392e3.js → index-7953fb8e.js} +3 -3
  151. package/build/{index-7c1dc717.js → index-7ecc69af.js} +12 -12
  152. package/build/index-9e8877c0.js +25 -0
  153. package/build/{index-7da7b531.js → index-a2664204.js} +3 -3
  154. package/build/{index-f28c47ce.js → index-a6a9855f.js} +1 -1
  155. package/build/{index-aa818139.js → index-a8680a58.js} +2 -2
  156. package/build/{index-def9867a.js → index-a9bbb5aa.js} +11 -11
  157. package/build/{index-c225ef22.js → index-a9bdf889.js} +5 -5
  158. package/build/{index-838b0f95.js → index-b66ae554.js} +6 -6
  159. package/build/{index-dba2e361.js → index-ca616373.js} +2 -2
  160. package/build/{index-6c27b627.js → index-d9919cd2.js} +32 -32
  161. package/build/index-dd074159.js +32 -0
  162. package/build/{index-05f106c2.js → index-dff7ee1b.js} +10 -10
  163. package/build/{index-a86ea1b6.js → index-e3bbd009.js} +2 -2
  164. package/build/{index-6acb08c0.js → index-ec34e358.js} +8 -8
  165. package/build/{index-c2900d8c.js → index-f222ee45.js} +2 -2
  166. package/build/{index-f6575703.js → index-fd3e1d16.js} +2 -2
  167. package/build/index.js +176 -167
  168. package/build/labelSorting-f86081b7.js +53 -0
  169. package/build/lead.js +21 -21
  170. package/build/{logoIcon-ee9a5501.js → logoIcon-21a16853.js} +2 -2
  171. package/build/mantine.js +18 -18
  172. package/build/misc.js +21 -21
  173. package/build/molecules.js +56 -56
  174. package/build/navigation.js +36 -36
  175. package/build/onboardingV2.js +24 -24
  176. package/build/organisms.js +40 -40
  177. package/build/pwg.js +19 -19
  178. package/build/{routing-f6d54205.js → routing-d6c9099a.js} +2 -2
  179. package/build/subot.js +100 -100
  180. package/build/surveyOrPremiumBanner.js +28 -28
  181. package/build/surveyQuestionCard.js +10 -10
  182. package/build/{surveyThankyouCard-ead6b355.js → surveyThankyouCard-5b23b8f6.js} +6 -6
  183. package/build/together.js +99 -90
  184. package/build/togetherAtoms.js +55 -0
  185. package/build/togetherComponentGlobalContext.js +26 -0
  186. package/build/togetherMolecules.js +86 -0
  187. package/build/togetherOrganisms.js +71 -0
  188. package/build/treePopoverMenu-c0cb395f.js +343 -0
  189. package/build/{types-4ba4268f.js → types-8d9c5f21.js} +13 -13
  190. package/build/types-b25ffde0.js +7 -0
  191. package/build/types.js +1 -1
  192. package/build/{useCategory-e2c91f59.js → useCategory-b695fd3a.js} +5 -5
  193. package/build/{useHealthToolCache-2a53367b.js → useHealthToolCache-048807ea.js} +2 -2
  194. package/build/{useMantineLocale-a4f0c61d.js → useMantineLocale-0d63dfea.js} +3 -3
  195. package/build/{usePlacesAutocomplete-c76d0caf.js → usePlacesAutocomplete-9520e525.js} +1 -1
  196. package/build/useTogetherAuthRequiredAction.js +70 -0
  197. package/build/{useTranslations-200168a3.js → useTranslations-685f989b.js} +1 -1
  198. package/build/{utils-95d9832e.js → utils-169c6a7d.js} +6 -6
  199. package/build/{utils-af695515.js → utils-1a00c0f8.js} +1 -1
  200. package/build/vaccination.js +18 -18
  201. package/package.json +1 -1
  202. /package/build/{BMI_BOYS.percentile.monthly-71fb1c9f.js → BMI_BOYS.percentile.monthly-1aa95e30.js} +0 -0
  203. /package/build/{BMI_BOYS.percentile.weekly-b2b344a7.js → BMI_BOYS.percentile.weekly-61d78e1c.js} +0 -0
  204. /package/build/{BMI_BOYS.percentile.yearly-031ddade.js → BMI_BOYS.percentile.yearly-f80e040e.js} +0 -0
  205. /package/build/{BMI_BOYS.zscore.monthly-bb1f9962.js → BMI_BOYS.zscore.monthly-a6c7c8ff.js} +0 -0
  206. /package/build/{BMI_BOYS.zscore.weekly-d6198d53.js → BMI_BOYS.zscore.weekly-742f7028.js} +0 -0
  207. /package/build/{BMI_BOYS.zscore.yearly-48255337.js → BMI_BOYS.zscore.yearly-c19cccd5.js} +0 -0
  208. /package/build/{BMI_GIRLS.percentile.monthly-e3e284ee.js → BMI_GIRLS.percentile.monthly-089d3981.js} +0 -0
  209. /package/build/{BMI_GIRLS.percentile.weekly-9f2d3977.js → BMI_GIRLS.percentile.weekly-0cc52cda.js} +0 -0
  210. /package/build/{BMI_GIRLS.percentile.yearly-c79f34ce.js → BMI_GIRLS.percentile.yearly-10bc603f.js} +0 -0
  211. /package/build/{BMI_GIRLS.zscore.monthly-11092df0.js → BMI_GIRLS.zscore.monthly-c3fe57f3.js} +0 -0
  212. /package/build/{BMI_GIRLS.zscore.weekly-5c375d2b.js → BMI_GIRLS.zscore.weekly-b83a54db.js} +0 -0
  213. /package/build/{BMI_GIRLS.zscore.yearly-adbba8e3.js → BMI_GIRLS.zscore.yearly-5f13cda2.js} +0 -0
  214. /package/build/{ChevronDown-f7e25d61.js → ChevronDown-2fd86d66.js} +0 -0
  215. /package/build/{Close-36b0da99.js → Close-711196b0.js} +0 -0
  216. /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-163b99ad.js → HEAD CIRCUM_BOYS.percentile.monthly-03b8d7fb.js} +0 -0
  217. /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-c9882014.js → HEAD CIRCUM_BOYS.percentile.weekly-9ebd3eb6.js} +0 -0
  218. /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-9d2bc91e.js → HEAD CIRCUM_BOYS.percentile.yearly-8e97b738.js} +0 -0
  219. /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-1d2a215c.js → HEAD CIRCUM_BOYS.zscore.monthly-e7892261.js} +0 -0
  220. /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-1f139c91.js → HEAD CIRCUM_BOYS.zscore.weekly-47c5af84.js} +0 -0
  221. /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-ba15501b.js → HEAD CIRCUM_BOYS.zscore.yearly-9a1bc325.js} +0 -0
  222. /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-a546201a.js → HEAD CIRCUM_GIRLS.percentile.monthly-d84491d7.js} +0 -0
  223. /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-66cd5a7e.js → HEAD CIRCUM_GIRLS.percentile.weekly-a6f38c3e.js} +0 -0
  224. /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-9db3c653.js → HEAD CIRCUM_GIRLS.percentile.yearly-5771d277.js} +0 -0
  225. /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-0405e2cb.js → HEAD CIRCUM_GIRLS.zscore.monthly-e3633bcc.js} +0 -0
  226. /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-b2cc3ad2.js → HEAD CIRCUM_GIRLS.zscore.weekly-23b0ab1a.js} +0 -0
  227. /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-3115f993.js → HEAD CIRCUM_GIRLS.zscore.yearly-20f29cf1.js} +0 -0
  228. /package/build/{HEIGHT_BOYS.percentile.monthly-35138a98.js → HEIGHT_BOYS.percentile.monthly-57cc12ee.js} +0 -0
  229. /package/build/{HEIGHT_BOYS.percentile.weekly-0216c35b.js → HEIGHT_BOYS.percentile.weekly-c788506a.js} +0 -0
  230. /package/build/{HEIGHT_BOYS.percentile.yearly-f698e45d.js → HEIGHT_BOYS.percentile.yearly-ac56c1f2.js} +0 -0
  231. /package/build/{HEIGHT_BOYS.zscore.monthly-01195728.js → HEIGHT_BOYS.zscore.monthly-1bb78253.js} +0 -0
  232. /package/build/{HEIGHT_BOYS.zscore.weekly-993e9cf2.js → HEIGHT_BOYS.zscore.weekly-22737c43.js} +0 -0
  233. /package/build/{HEIGHT_BOYS.zscore.yearly-fee3ed69.js → HEIGHT_BOYS.zscore.yearly-90f6cd0a.js} +0 -0
  234. /package/build/{HEIGHT_GIRLS.percentile.monthly-27b2474a.js → HEIGHT_GIRLS.percentile.monthly-019f80d2.js} +0 -0
  235. /package/build/{HEIGHT_GIRLS.percentile.weekly-77bff236.js → HEIGHT_GIRLS.percentile.weekly-ceed9817.js} +0 -0
  236. /package/build/{HEIGHT_GIRLS.percentile.yearly-6200a720.js → HEIGHT_GIRLS.percentile.yearly-3e5192ac.js} +0 -0
  237. /package/build/{HEIGHT_GIRLS.zscore.monthly-94978e64.js → HEIGHT_GIRLS.zscore.monthly-f8fca0b6.js} +0 -0
  238. /package/build/{HEIGHT_GIRLS.zscore.weekly-7951beb1.js → HEIGHT_GIRLS.zscore.weekly-827b17e8.js} +0 -0
  239. /package/build/{HEIGHT_GIRLS.zscore.yearly-c2eca714.js → HEIGHT_GIRLS.zscore.yearly-3cdb483d.js} +0 -0
  240. /package/build/{Visible-eee51ba6.js → Visible-515a4eec.js} +0 -0
  241. /package/build/{WEIGHT_BOYS.percentile.monthly-6a6f901b.js → WEIGHT_BOYS.percentile.monthly-2ecbd498.js} +0 -0
  242. /package/build/{WEIGHT_BOYS.percentile.weekly-737fb867.js → WEIGHT_BOYS.percentile.weekly-75c9c25c.js} +0 -0
  243. /package/build/{WEIGHT_BOYS.percentile.yearly-7772b5e5.js → WEIGHT_BOYS.percentile.yearly-03e7cea6.js} +0 -0
  244. /package/build/{WEIGHT_BOYS.zscore.monthly-8db2e7d6.js → WEIGHT_BOYS.zscore.monthly-2ff9fb56.js} +0 -0
  245. /package/build/{WEIGHT_BOYS.zscore.weekly-ddd37c1a.js → WEIGHT_BOYS.zscore.weekly-e9f7fe2d.js} +0 -0
  246. /package/build/{WEIGHT_BOYS.zscore.yearly-332a8f7b.js → WEIGHT_BOYS.zscore.yearly-4a96f34f.js} +0 -0
  247. /package/build/{WEIGHT_GIRLS.percentile.monthly-3edad688.js → WEIGHT_GIRLS.percentile.monthly-5bf09e30.js} +0 -0
  248. /package/build/{WEIGHT_GIRLS.percentile.weekly-f113a82a.js → WEIGHT_GIRLS.percentile.weekly-f737ae23.js} +0 -0
  249. /package/build/{WEIGHT_GIRLS.percentile.yearly-95afbeaf.js → WEIGHT_GIRLS.percentile.yearly-56ebc8eb.js} +0 -0
  250. /package/build/{WEIGHT_GIRLS.zscore.monthly-d27c4bd4.js → WEIGHT_GIRLS.zscore.monthly-4697d3b5.js} +0 -0
  251. /package/build/{WEIGHT_GIRLS.zscore.weekly-2b113519.js → WEIGHT_GIRLS.zscore.weekly-3633820e.js} +0 -0
  252. /package/build/{WEIGHT_GIRLS.zscore.yearly-c82b04db.js → WEIGHT_GIRLS.zscore.yearly-a9a04790.js} +0 -0
  253. /package/build/{animation-e1375a3b.js → animation-85d012ee.js} +0 -0
  254. /package/build/{cart-67147d06.js → cart-8877bd63.js} +0 -0
  255. /package/build/{constants-936f45e9.js → constants-8743b014.js} +0 -0
  256. /package/build/{constants-513a9a41.js → constants-a78fa8b3.js} +0 -0
  257. /package/build/{cookieHelper-17491ce8.js → cookieHelper-86ae022e.js} +0 -0
  258. /package/build/{defaultClassWrapper-e87ca8ef.js → defaultClassWrapper-b7719693.js} +0 -0
  259. /package/build/{doctor-17b525f8.js → doctor-2c14fed1.js} +0 -0
  260. /package/build/esm/{BMI_BOYS.percentile.monthly-7c9d4923.js → BMI_BOYS.percentile.monthly-42ff2c64.js} +0 -0
  261. /package/build/esm/{BMI_BOYS.percentile.weekly-c410294a.js → BMI_BOYS.percentile.weekly-b4a6c521.js} +0 -0
  262. /package/build/esm/{BMI_BOYS.percentile.yearly-695a4fe2.js → BMI_BOYS.percentile.yearly-d3bc1a77.js} +0 -0
  263. /package/build/esm/{BMI_BOYS.zscore.monthly-9fb9f281.js → BMI_BOYS.zscore.monthly-c4506dfa.js} +0 -0
  264. /package/build/esm/{BMI_BOYS.zscore.weekly-d2109e4b.js → BMI_BOYS.zscore.weekly-ddf3b3f9.js} +0 -0
  265. /package/build/esm/{BMI_BOYS.zscore.yearly-bfa5361b.js → BMI_BOYS.zscore.yearly-e0e3139e.js} +0 -0
  266. /package/build/esm/{BMI_GIRLS.percentile.monthly-f5f60596.js → BMI_GIRLS.percentile.monthly-96686bcc.js} +0 -0
  267. /package/build/esm/{BMI_GIRLS.percentile.weekly-26e4e864.js → BMI_GIRLS.percentile.weekly-c3106a65.js} +0 -0
  268. /package/build/esm/{BMI_GIRLS.percentile.yearly-5a2b297d.js → BMI_GIRLS.percentile.yearly-b38c1f1f.js} +0 -0
  269. /package/build/esm/{BMI_GIRLS.zscore.monthly-4e80bed5.js → BMI_GIRLS.zscore.monthly-f8a7836f.js} +0 -0
  270. /package/build/esm/{BMI_GIRLS.zscore.weekly-03b79f0b.js → BMI_GIRLS.zscore.weekly-4c1fc771.js} +0 -0
  271. /package/build/esm/{BMI_GIRLS.zscore.yearly-822ed949.js → BMI_GIRLS.zscore.yearly-dce5e66a.js} +0 -0
  272. /package/build/esm/{ChevronDown-74267eb8.js → ChevronDown-31ea3e19.js} +0 -0
  273. /package/build/esm/{Close-372aa467.js → Close-40d598bc.js} +0 -0
  274. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-21b04c4c.js → HEAD CIRCUM_BOYS.percentile.monthly-34e3fa1c.js} +0 -0
  275. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-049a9d97.js → HEAD CIRCUM_BOYS.percentile.weekly-d3f3568f.js} +0 -0
  276. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-a4bbbaba.js → HEAD CIRCUM_BOYS.percentile.yearly-dfae3ad2.js} +0 -0
  277. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-7cb348c6.js → HEAD CIRCUM_BOYS.zscore.monthly-95840c2f.js} +0 -0
  278. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-678a1a52.js → HEAD CIRCUM_BOYS.zscore.weekly-8b198c1c.js} +0 -0
  279. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-db81b17e.js → HEAD CIRCUM_BOYS.zscore.yearly-b7d639ad.js} +0 -0
  280. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-cee33cd5.js → HEAD CIRCUM_GIRLS.percentile.monthly-47caa070.js} +0 -0
  281. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-2cec19c3.js → HEAD CIRCUM_GIRLS.percentile.weekly-bae46665.js} +0 -0
  282. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-5949e664.js → HEAD CIRCUM_GIRLS.percentile.yearly-81989cdd.js} +0 -0
  283. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-7c2bffab.js → HEAD CIRCUM_GIRLS.zscore.monthly-f2f7d985.js} +0 -0
  284. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-356dd00a.js → HEAD CIRCUM_GIRLS.zscore.weekly-e287ddb7.js} +0 -0
  285. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-e7b62215.js → HEAD CIRCUM_GIRLS.zscore.yearly-8790b62a.js} +0 -0
  286. /package/build/esm/{HEIGHT_BOYS.percentile.monthly-359c4335.js → HEIGHT_BOYS.percentile.monthly-5d2b6466.js} +0 -0
  287. /package/build/esm/{HEIGHT_BOYS.percentile.weekly-a4d4acd3.js → HEIGHT_BOYS.percentile.weekly-a38ad13e.js} +0 -0
  288. /package/build/esm/{HEIGHT_BOYS.percentile.yearly-ec9a7f9b.js → HEIGHT_BOYS.percentile.yearly-e4841712.js} +0 -0
  289. /package/build/esm/{HEIGHT_BOYS.zscore.monthly-12331258.js → HEIGHT_BOYS.zscore.monthly-d8e722f8.js} +0 -0
  290. /package/build/esm/{HEIGHT_BOYS.zscore.weekly-172054d3.js → HEIGHT_BOYS.zscore.weekly-a92ea3ca.js} +0 -0
  291. /package/build/esm/{HEIGHT_BOYS.zscore.yearly-bb47a3be.js → HEIGHT_BOYS.zscore.yearly-3af1adce.js} +0 -0
  292. /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-c93c0b34.js → HEIGHT_GIRLS.percentile.monthly-c5203801.js} +0 -0
  293. /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-f1f83097.js → HEIGHT_GIRLS.percentile.weekly-4c25d07f.js} +0 -0
  294. /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-ccee4e55.js → HEIGHT_GIRLS.percentile.yearly-f91e2e27.js} +0 -0
  295. /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-caf5410c.js → HEIGHT_GIRLS.zscore.monthly-b2a60aca.js} +0 -0
  296. /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-b1e28b0e.js → HEIGHT_GIRLS.zscore.weekly-0a98c520.js} +0 -0
  297. /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-c3af35d3.js → HEIGHT_GIRLS.zscore.yearly-8070d58f.js} +0 -0
  298. /package/build/esm/{Visible-3f9d7dca.js → Visible-e3e4fb6f.js} +0 -0
  299. /package/build/esm/{WEIGHT_BOYS.percentile.monthly-8a4647df.js → WEIGHT_BOYS.percentile.monthly-b262b97d.js} +0 -0
  300. /package/build/esm/{WEIGHT_BOYS.percentile.weekly-a2a6adf1.js → WEIGHT_BOYS.percentile.weekly-7e817f9f.js} +0 -0
  301. /package/build/esm/{WEIGHT_BOYS.percentile.yearly-073df8b7.js → WEIGHT_BOYS.percentile.yearly-b7f1786a.js} +0 -0
  302. /package/build/esm/{WEIGHT_BOYS.zscore.monthly-bb9e73d2.js → WEIGHT_BOYS.zscore.monthly-014af835.js} +0 -0
  303. /package/build/esm/{WEIGHT_BOYS.zscore.weekly-ef32ce7a.js → WEIGHT_BOYS.zscore.weekly-4577f724.js} +0 -0
  304. /package/build/esm/{WEIGHT_BOYS.zscore.yearly-6cc77688.js → WEIGHT_BOYS.zscore.yearly-08fd3f13.js} +0 -0
  305. /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-a4b518bc.js → WEIGHT_GIRLS.percentile.monthly-a6e1aa0d.js} +0 -0
  306. /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-dcedaebb.js → WEIGHT_GIRLS.percentile.weekly-4c0b6f94.js} +0 -0
  307. /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-9e66577e.js → WEIGHT_GIRLS.percentile.yearly-bf689a3a.js} +0 -0
  308. /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-c07cb81f.js → WEIGHT_GIRLS.zscore.monthly-f82fc3c8.js} +0 -0
  309. /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-9c5c3e8e.js → WEIGHT_GIRLS.zscore.weekly-854ce987.js} +0 -0
  310. /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-e99ce511.js → WEIGHT_GIRLS.zscore.yearly-2a3b869a.js} +0 -0
  311. /package/build/esm/{animation-0b2299dc.js → animation-85d9a0ed.js} +0 -0
  312. /package/build/esm/{cart-f961dadc.js → cart-1ac23ce7.js} +0 -0
  313. /package/build/esm/{constants-71d9f33b.js → constants-a5827634.js} +0 -0
  314. /package/build/esm/{constants-f77fc231.js → constants-f6b2e49d.js} +0 -0
  315. /package/build/esm/{cookieHelper-73ce3871.js → cookieHelper-6c3b4790.js} +0 -0
  316. /package/build/esm/{defaultClassWrapper-31caf23b.js → defaultClassWrapper-00903c00.js} +0 -0
  317. /package/build/esm/{doctor-8a07ca44.js → doctor-e0c2476d.js} +0 -0
  318. /package/build/esm/{index-e3787b20.js → index-189d7601.js} +0 -0
  319. /package/build/esm/{index-c3264b34.js → index-21bca818.js} +0 -0
  320. /package/build/esm/{index-782fed08.js → index-266a32ff.js} +0 -0
  321. /package/build/esm/{index-b65a8764.js → index-8684181f.js} +0 -0
  322. /package/build/esm/{index-3078acec.js → index-ad1c7c38.js} +0 -0
  323. /package/build/esm/{isProduction-5684a28c.js → isProduction-1937d355.js} +0 -0
  324. /package/build/esm/{localizeNumberFormat-42ae8d89.js → localizeNumberFormat-1f000110.js} +0 -0
  325. /package/build/esm/{normalizeLink-d6f57223.js → normalizeLink-7a93ebb9.js} +0 -0
  326. /package/build/esm/{number-13f075cf.js → number-1d1ba14a.js} +0 -0
  327. /package/build/esm/{paths-49a813e7.js → paths-b83be1a0.js} +0 -0
  328. /package/build/esm/{theme-f18c2351.js → theme-7dadf4a1.js} +0 -0
  329. /package/build/esm/{translationsContext-f3d1a7bd.js → translationsContext-42a1fa63.js} +0 -0
  330. /package/build/esm/{tslib.es6-761239c7.js → tslib.es6-06ba3978.js} +0 -0
  331. /package/build/esm/{useIsInit-ee864235.js → useIsInit-f4dec279.js} +0 -0
  332. /package/build/esm/{useOutsideClick-7451aa57.js → useOutsideClick-210c1134.js} +0 -0
  333. /package/build/esm/{useScrollbarSize-84bb5b47.js → useScrollbarSize-909ae7ec.js} +0 -0
  334. /package/build/esm/{useUniqueId-c23213b6.js → useUniqueId-5885911d.js} +0 -0
  335. /package/build/esm/{utils-f8761b9d.js → utils-d7bbdb52.js} +0 -0
  336. /package/build/{index-df5cd44b.js → index-1f3fc2e3.js} +0 -0
  337. /package/build/{index-bba97c2e.js → index-2de1eb4a.js} +0 -0
  338. /package/build/{index-ba3797bb.js → index-6fdcd09d.js} +0 -0
  339. /package/build/{index-e0bf03ac.js → index-82c85f9d.js} +0 -0
  340. /package/build/{index-97ebd7e1.js → index-bc9e8eae.js} +0 -0
  341. /package/build/{isProduction-aa963bf9.js → isProduction-20cd663d.js} +0 -0
  342. /package/build/{localizeNumberFormat-90d4f9d5.js → localizeNumberFormat-7ff6bd3a.js} +0 -0
  343. /package/build/{normalizeLink-451ae6d8.js → normalizeLink-d307f624.js} +0 -0
  344. /package/build/{number-c2338382.js → number-dddf656c.js} +0 -0
  345. /package/build/{paths-e0bbfce7.js → paths-7da79c64.js} +0 -0
  346. /package/build/{theme-e4f7f487.js → theme-be20929b.js} +0 -0
  347. /package/build/{translationsContext-39528d2f.js → translationsContext-00fdb62e.js} +0 -0
  348. /package/build/{tslib.es6-7e140b89.js → tslib.es6-bd3f8718.js} +0 -0
  349. /package/build/{useIsInit-38cec0c4.js → useIsInit-e06b96f5.js} +0 -0
  350. /package/build/{useOutsideClick-e579e1ac.js → useOutsideClick-d95a32b6.js} +0 -0
  351. /package/build/{useScrollbarSize-5a8be010.js → useScrollbarSize-1499b1c3.js} +0 -0
  352. /package/build/{useUniqueId-8929fe5f.js → useUniqueId-1af8848e.js} +0 -0
  353. /package/build/{utils-524bda7c.js → utils-15a9772e.js} +0 -0
@@ -1,993 +1,432 @@
1
- import React__default, { createContext, useContext, useState, useRef, useEffect, useMemo, useCallback } from 'react';
2
- import { T as Text } from './index-c200bff6.js';
3
- import './translationsContext-f3d1a7bd.js';
4
- import 'string-format';
5
- import { T as TogetherComponentGlobalContext, j as getUrlToSignUp, c as callApi, d as getApiPath, P as PATHS, k as getCurrentBaseUrl, g as getCarePath, C as CARE_PATHS, l as domainLocales, m as getCareHospitalUrl, n as getCareDoctorUrl, o as getDiscoverApiPath, p as DISCOVER_PATHS, A as ADMIN_PATHS, q as callApiWithAdminAuth, b as callApiWithAuth, r as getMarryBabyApiPath, s as callApiWithOptionalAuth } from './utils-d5a0b58f.js';
6
- import { a as __awaiter, _ as __rest } from './tslib.es6-761239c7.js';
7
- import { Heart, Reply, Comment, CrossLogo, ShieldCheck, Info, Ask, FullScreen, ArrowDown, ArrowRight, Trash, Endorse } from '@hhgtech/icons/other';
8
- import { useMantineTheme, Box, createStyles, Flex, rem, Checkbox, Portal, Anchor, Accordion, Popover } from '@mantine/core';
9
- import { D as Dropdown } from './index-cdac57da.js';
10
- import { u as useTranslations } from './useTranslations-fbf6a6ab.js';
11
- import innertext from 'innertext';
12
- import { t as theme } from './theme-f18c2351.js';
13
- import { I as ImageWrap, u as useScreenSize, A as Anchor$1, T as Tabs } from './index-21eac858.js';
14
- import '@mantine/dates';
15
- import { D as DATE_FNS_LOCALE, d as domainLocales$1 } from './index-bef3c9bd.js';
16
- import { L as LOCALE, S as SocialType } from './index-e3787b20.js';
17
- import { C as CommonGAssets } from './index-78255d6c.js';
18
- import './useMantineLocale-4fb67342.js';
19
- import { B as Button$1 } from './index-2b9213cf.js';
20
- import '@mantine/hooks';
21
- import { M as MediaQueries, t as toggleNoScroll, c as safeEncodeURI, a as getPopupWrapperDom } from './utils-f8761b9d.js';
22
- import { A as AuthorBadge, a as BookingBtn, B as BtnChoice, D as Divider } from './index-b1bb27aa.js';
23
- import { c as formatTopic, b as formatPost, P as Popup, e as formatComment, a as formatCommunity, g as formatArticle, h as formatCategory } from './dataTransform-3e8e25ba.js';
24
- import { B as BEARER_TOKEN_COOKIE, D as DEFAULT_IMG, M as MAX_IMAGE_UPLOADS, a as DEFAULT_AVATAR_IMG, R as REPORT_REASON_MAP } from './constants-71d9f33b.js';
25
- import { I as Input } from './index-16514f4d.js';
26
- import debounce from 'lodash/debounce';
27
- import ContentEditable from 'react-contenteditable';
28
- import { Plus, Close, Check } from '@hhgtech/icons/core';
29
- import { B as Button } from './index-1da2ca0b.js';
30
- import { H as Heading } from './index-73301602.js';
31
- import { d as deleteCookie, g as getCookie } from './cookieHelper-73ce3871.js';
1
+ import React__default, { createContext, useContext, useState, useEffect, useMemo, useRef, useCallback } from 'react';
2
+ import { B as Button } from './index-9b9c1499.js';
3
+ import { H as Heading } from './index-046778af.js';
4
+ import { T as Text } from './index-5723381f.js';
5
+ import { M as MediaQueries, t as toggleNoScroll, c as safeEncodeURI, a as getPopupWrapperDom } from './utils-d7bbdb52.js';
32
6
  import * as ReactDOM from 'react-dom';
7
+ import { c as callApi, g as getCarePath, C as CARE_PATHS, l as domainLocales, m as getCareHospitalUrl, n as getCareDoctorUrl, k as getCurrentBaseUrl, o as getDiscoverApiPath, p as DISCOVER_PATHS, T as TogetherComponentGlobalContext, d as getApiPath, A as ADMIN_PATHS, P as PATHS, q as callApiWithAdminAuth, b as callApiWithAuth } from './utils-3b29eb79.js';
33
8
  import styled from '@emotion/styled';
34
- import { s as setDefaultClass } from './defaultClassWrapper-31caf23b.js';
35
- import { I as Icon } from './index-69248434.js';
36
- import { a as abbreviateNumber } from './number-13f075cf.js';
37
- import { format } from 'date-fns';
9
+ import { t as theme } from './theme-7dadf4a1.js';
10
+ import { _ as __rest, a as __awaiter } from './tslib.es6-06ba3978.js';
11
+ import { I as Input } from './index-f660abb7.js';
12
+ import { u as useTranslations } from './useTranslations-b970f667.js';
13
+ import { P as Popup, c as formatComment, b as formatPost, a as formatCommunity, e as formatArticle } from './dataTransform-623716c3.js';
14
+ import { M as MAX_IMAGE_UPLOADS, B as BEARER_TOKEN_COOKIE, a as DEFAULT_AVATAR_IMG, D as DEFAULT_IMG } from './constants-a5827634.js';
15
+ import { P as PopoverMenu, C as CardLink } from './index-10ab6596.js';
16
+ import { U as UserAvatar } from './index-9f99909b.js';
17
+ import debounce from 'lodash/debounce';
18
+ import { g as getCookie } from './cookieHelper-6c3b4790.js';
19
+ import { a as useUniqueId } from './useUniqueId-5885911d.js';
20
+ import { createStyles, Box, Flex, rem, Portal, Anchor, useMantineTheme, Accordion } from '@mantine/core';
21
+ import { CrossLogo, ShieldCheck, FullScreen, ArrowDown } from '@hhgtech/icons/other';
22
+ import { I as ImageWrap, u as useScreenSize, A as Anchor$1, T as Tabs } from './index-9b3a8b6d.js';
23
+ import { s as setDefaultClass } from './defaultClassWrapper-00903c00.js';
38
24
  import dayjs from 'dayjs';
25
+ import { Plus } from '@hhgtech/icons/core';
26
+ import { C as CommonGAssets } from './index-9471fca1.js';
27
+ import { S as SocialType } from './index-189d7601.js';
28
+ import '@mantine/dates';
29
+ import { d as domainLocales$1 } from './index-6210f454.js';
30
+ import './useMantineLocale-453f8013.js';
31
+ import { B as Button$1 } from './index-1d3c6ce7.js';
32
+ import '@mantine/hooks';
39
33
  import relativeTime from 'dayjs/plugin/relativeTime';
40
- import { U as UserAvatar } from './index-703205e3.js';
34
+ import { A as AuthorBadge, B as BookingBtn } from './index-f22f6e6e.js';
41
35
  import { keyframes } from '@emotion/react';
42
- import { M as Modal } from './index-d218b94e.js';
43
- import { a as useUniqueId } from './useUniqueId-c23213b6.js';
44
- import { g as getCurrentBaseUrl$1 } from './routing-bebdc8b7.js';
45
-
46
- const TogetherAuthConfigContext = createContext({});
47
- const TogetherAuthConfigContextProvider = ({ children, defaultParams, }) => {
48
- return (React__default.createElement(TogetherAuthConfigContext.Provider, { value: {
49
- defaultParams,
50
- } }, children));
51
- };
52
- const useTogetherAuthRequiredAction = (propsParams) => {
53
- const { data: { userInfo, env: { togetherBasePath }, }, } = useContext(TogetherComponentGlobalContext);
54
- const { defaultParams } = useContext(TogetherAuthConfigContext) || {};
55
- const isLoggedIn = userInfo === null || userInfo === void 0 ? void 0 : userInfo.id;
56
- const isFirstInteract = userInfo &&
57
- typeof userInfo.communities_interacted === 'number' &&
58
- userInfo.communities_interacted === 0;
59
- const authActionWrapper = (func, extraParams) => {
60
- const params = Object.assign(Object.assign(Object.assign({}, defaultParams), propsParams), extraParams);
61
- if (!isLoggedIn || isFirstInteract) {
62
- if (!isLoggedIn) {
63
- deleteCookie(BEARER_TOKEN_COOKIE);
64
- }
65
- if (params === null || params === void 0 ? void 0 : params._joinCommunityIds) {
66
- localStorage.setItem('to_join_community_ids', JSON.stringify(Array.from(new Set((JSON.parse(localStorage.getItem('to_join_community_ids') || '[]') || [])
67
- .concat(params._joinCommunityIds)
68
- .filter(Boolean)))));
69
- params === null || params === void 0 ? true : delete params._joinCommunityIds;
70
- }
71
- if (params === null || params === void 0 ? void 0 : params._joinTopicIds) {
72
- localStorage.setItem('to_join_topic_ids', JSON.stringify(Array.from(new Set((JSON.parse(localStorage.getItem('to_join_topic_ids') || '[]') || [])
73
- .concat(params._joinTopicIds)
74
- .filter(Boolean)))));
75
- params === null || params === void 0 ? true : delete params._joinTopicIds;
76
- }
77
- const currentLocation = (params === null || params === void 0 ? void 0 : params._location) || window.location.href;
78
- params === null || params === void 0 ? true : delete params._location;
79
- window.location.href = getUrlToSignUp(currentLocation, params, togetherBasePath);
80
- return null;
81
- }
82
- else {
83
- return func && func();
84
- }
85
- };
86
- return {
87
- authActionWrapper,
88
- params: Object.assign(Object.assign({}, defaultParams), propsParams),
89
- };
90
- };
91
-
92
- const StyledCardLink = styled.div `
93
- .link-info-container {
94
- padding: 0.5rem 1rem;
95
- background: ${(props) => props.color || '#f4faff'};
96
- }
97
- .link-image-wrapper {
98
- position: relative;
99
- overflow: hidden;
100
- width: 100%;
101
- padding-top: min(280px, 56.25%);
102
- .link-image-blur {
103
- position: absolute;
104
- top: 50%;
105
- left: 50%;
106
- width: 110%;
107
- height: 110%;
108
- /* Add the blur effect */
109
- -webkit-filter: blur(8px);
110
- filter: blur(8px);
111
- object-fit: cover;
112
- object-position: center;
113
- opacity: 0.8;
114
- transform: translate(-50%, -50%);
115
- }
116
- .link-image {
117
- position: absolute;
118
- top: 0;
119
- left: 0;
120
- width: 100%;
121
- height: 100%;
122
- object-fit: contain;
123
- object-position: center;
124
- }
125
- }
126
- a {
127
- text-decoration: none;
128
- }
129
- &[data-is-marrybaby='true'] {
130
- overflow: hidden;
131
- border-radius: 1rem;
132
- .link-info-container {
133
- padding-bottom: 1rem;
134
- p {
135
- color: #2661ad;
136
- }
137
- .link-logo {
138
- max-width: 2rem;
139
- height: 13px;
140
- margin-right: 4px;
141
- object-fit: contain;
142
- vertical-align: middle;
143
- }
144
- }
145
- .link-image-wrapper {
146
- padding-top: min(360px, 56.25%);
147
- .link-image {
148
- object-fit: cover;
149
- }
150
- }
151
- }
152
- `;
153
-
154
- const CardLink = ({ title, url, image, logo, className, style, noRefetch, }) => {
155
- const { data: { locale, env: { isMarryBaby }, }, } = useContext(TogetherComponentGlobalContext);
156
- const [hideLogo, setHideLogo] = useState(false);
157
- const _theme = useMantineTheme();
158
- const noRefetchRef = useRef(noRefetch);
159
- noRefetchRef.current = noRefetch;
160
- const [previewData, setPreviewData] = useState(null);
161
- useEffect(() => {
162
- (() => __awaiter(void 0, void 0, void 0, function* () {
163
- if (noRefetchRef.current)
164
- return;
165
- if (!url)
166
- return setPreviewData(null);
167
- setPreviewData((_data) => (Object.assign(Object.assign({}, _data), { isFetching: true })));
168
- callApi(getApiPath(PATHS.FETCH_PREVIEW, {
169
- _locale: locale,
170
- }), 'POST', {
171
- data: {
172
- link: url,
173
- },
174
- headers: {
175
- 'Content-Type': 'application/json',
176
- },
177
- })
178
- .then((res) => {
179
- var _a, _b, _c;
180
- setHideLogo(false);
181
- setPreviewData({
182
- title: (_a = res === null || res === void 0 ? void 0 : res.data) === null || _a === void 0 ? void 0 : _a.title,
183
- url,
184
- image: ((_b = res === null || res === void 0 ? void 0 : res.data) === null || _b === void 0 ? void 0 : _b.image) || ((_c = res === null || res === void 0 ? void 0 : res.data) === null || _c === void 0 ? void 0 : _c.logo),
185
- // logo: meta.logo,
186
- });
187
- })
188
- .catch(() => {
189
- setPreviewData(null);
190
- });
191
- }))();
192
- }, [url]);
193
- const displayImage = (previewData === null || previewData === void 0 ? void 0 : previewData.image) || image;
194
- const displayTitle = (previewData === null || previewData === void 0 ? void 0 : previewData.title) || title;
195
- const displayLogo = (previewData === null || previewData === void 0 ? void 0 : previewData.logo) || logo;
196
- const displayUrl = (previewData === null || previewData === void 0 ? void 0 : previewData.url) || url;
197
- const urlParts = displayUrl
198
- .replace('http://', '')
199
- .replace('https://', '')
200
- .split(/[/?#]/);
201
- const domain = urlParts[0];
202
- const showDefaultRef = useRef(false);
203
- return (React__default.createElement(StyledCardLink, { "data-is-marrybaby": isMarryBaby, className: `${className} no-replace-click`, style: style, color: _theme.colors[_theme.primaryColor][0] },
204
- React__default.createElement("a", { href: displayUrl, target: "_blank", rel: "noreferrer" },
205
- displayImage && (React__default.createElement("div", { className: "link-image-wrapper" },
206
- !isMarryBaby && (React__default.createElement("img", { className: "link-image-blur", src: displayImage, onError: (e) => {
207
- if (!showDefaultRef.current) {
208
- showDefaultRef.current = true;
209
- e.currentTarget.src = DEFAULT_IMG;
210
- }
211
- }, loading: "lazy" })),
212
- React__default.createElement("img", { className: "link-image", src: displayImage, onError: (e) => {
213
- if (!showDefaultRef.current) {
214
- showDefaultRef.current = true;
215
- e.currentTarget.src = DEFAULT_IMG;
216
- }
217
- }, loading: "lazy" }))),
218
- React__default.createElement("div", { className: "link-info-container" },
219
- React__default.createElement(Text, { size: "n1" },
220
- isMarryBaby && displayLogo && !hideLogo && (React__default.createElement("img", { className: "link-logo", src: displayLogo, onError: () => setHideLogo(true), loading: "lazy" })),
221
- domain),
222
- React__default.createElement(Heading, { tag: "h6" }, displayTitle)))));
223
- };
224
-
225
- const CardReactionsContext = createContext({});
36
+ import { M as Modal } from './index-cfedca38.js';
37
+ import { useTogetherAuthRequiredAction } from './useTogetherAuthRequiredAction.js';
38
+ import './translationsContext-42a1fa63.js';
39
+ import 'string-format';
226
40
 
227
- var styles$k = {"wrapper":"vvR-m49"};
41
+ var styles$f = {"row":"dZWeHns","flex":"_8z2nszB","mainTxt":"tMiOKib","subTxt":"uDcqD-2","subTxtRow":"pDlsows","subDivider":"m-HVXw1"};
228
42
 
229
- const LikeWrapper = (_a) => {
230
- var { children, className = '' } = _a, boxProps = __rest(_a, ["children", "className"]);
231
- const { isReplied, trackingCategory, trackingLabel, onLikeClick } = useContext(CardReactionsContext);
232
- return (React__default.createElement(Box, Object.assign({ className: `${styles$k.wrapper} ${className}`, "data-event-category": trackingCategory, "data-event-action": isReplied ? 'Like Comment Click' : 'Like Post Click', "data-event-label": trackingLabel }, boxProps, { onClick: () => {
233
- onLikeClick === null || onLikeClick === void 0 ? void 0 : onLikeClick();
234
- } }), children));
43
+ const MainText = ({ children, className = '' }) => {
44
+ return React__default.createElement("div", { className: `${styles$f.mainTxt} ${className}` }, children);
45
+ };
46
+ const SubText = ({ children, className = '' }) => {
47
+ return React__default.createElement("div", { className: `${styles$f.subTxt} ${className}` }, children);
235
48
  };
236
- const ShareWrapper = (_a) => {
237
- var { children, className = '' } = _a, boxProps = __rest(_a, ["children", "className"]);
238
- const { trackingCategory, trackingLabel, onShareClick } = useContext(CardReactionsContext);
239
- return (React__default.createElement(Box, Object.assign({ className: `${styles$k.wrapper} ${className}`, "data-event-category": trackingCategory, "data-event-action": "Share Icon Click", "data-event-label": trackingLabel }, boxProps, { onClick: () => {
240
- onShareClick === null || onShareClick === void 0 ? void 0 : onShareClick();
241
- } }), children));
49
+ const SubTextRow = (_a) => {
50
+ var { children, className = '' } = _a, rest = __rest(_a, ["children", "className"]);
51
+ return (React__default.createElement("div", Object.assign({ className: `${styles$f.subTxtRow} ${className}` }, rest), children));
242
52
  };
243
- const CommentWrapper = (_a) => {
244
- var { children, className = '' } = _a, boxProps = __rest(_a, ["children", "className"]);
245
- const { isReplied, trackingCategory, trackingLabel, onCommentClick } = useContext(CardReactionsContext);
246
- return (React__default.createElement(Box, Object.assign({ className: `${styles$k.wrapper} ${className}`, "data-event-category": trackingCategory, "data-event-action": isReplied ? 'Reply Comment Click' : 'Comment Text Click', "data-event-label": trackingLabel }, boxProps, { onClick: (e) => {
247
- e.preventDefault();
248
- e.stopPropagation();
249
- onCommentClick === null || onCommentClick === void 0 ? void 0 : onCommentClick();
250
- } }), children));
53
+ const SubDivider = ({ className = '' }) => {
54
+ return React__default.createElement("span", { className: `${styles$f.subDivider} ${className}` });
55
+ };
56
+ const Row = ({ children, className = '' }) => {
57
+ return React__default.createElement("div", { className: `${styles$f.row} ${className} row` }, children);
58
+ };
59
+ const ColLeft = ({ children, className = '' }) => {
60
+ return React__default.createElement("div", { className: `${className} col-left` }, children);
61
+ };
62
+ const ColRight = ({ children, className = '' }) => {
63
+ return React__default.createElement("div", { className: `${className} col-right` }, children);
251
64
  };
252
65
 
253
- var styles$j = {"wrapper":"UhiT4m5","inner":"oEfeTkV","column":"OlbikxJ","iconTxt":"_9GXHCn3","clickableIcon":"HCsrR0N","count":"MV3lNuh"};
254
-
255
- var CardReactionType;
256
- (function (CardReactionType) {
257
- CardReactionType[CardReactionType["post"] = 1] = "post";
258
- CardReactionType[CardReactionType["reply"] = 2] = "reply";
259
- })(CardReactionType || (CardReactionType = {}));
260
- const CardReactions = (_a) => {
261
- var { type, viewCount, loveCount = 0, replyCount = 0, replyPadding, liked, isReplied, onCommentClick, onLikeClick, onShareClick, className, style, hideCommentIcon, showingMostEngaging, isMarryBaby: isMarryBabyInit, hasShare = true, hasCountLike = true, trackingCategory = 'Together', trackingLabel = '', children } = _a, rest = __rest(_a, ["type", "viewCount", "loveCount", "replyCount", "replyPadding", "liked", "isReplied", "onCommentClick", "onLikeClick", "onShareClick", "className", "style", "hideCommentIcon", "showingMostEngaging", "isMarryBaby", "hasShare", "hasCountLike", "trackingCategory", "trackingLabel", "children"]);
262
- const { data: { env: { isMarryBaby: isMarryBabyEnv }, }, } = useContext(TogetherComponentGlobalContext);
263
- const isMarryBaby = Boolean(isMarryBabyInit)
264
- ? isMarryBabyInit
265
- : isMarryBabyEnv;
266
- const { t } = useTranslations();
267
- // /api/v1/auth/post?post_slug=test-post-title-3607&website_url={{website_url}}
268
- return (React__default.createElement(CardReactionsContext.Provider, { value: {
269
- liked,
270
- loveCount,
271
- trackingCategory,
272
- trackingLabel,
273
- isReplied,
274
- onLikeClick,
275
- onShareClick,
276
- onCommentClick,
277
- } }, children || (React__default.createElement("div", Object.assign({ className: `${styles$j.wrapper} ${className}`, "data-show-most-engaging": showingMostEngaging, "data-type": type === CardReactionType.post ? 'post' : 'reply', "data-reply-padding": type === CardReactionType.reply && replyPadding, "data-is-marrybaby": isMarryBaby, style: style }, rest),
278
- React__default.createElement("div", { className: styles$j.inner },
279
- React__default.createElement("div", { className: styles$j.column },
280
- React__default.createElement(LikeWrapper, { className: styles$j.clickableIcon },
281
- React__default.createElement(Text, { className: styles$j.iconTxt, size: "p3", as: "div" },
282
- React__default.createElement(Heart, { className: "txt-icon", isMarryBaby: isMarryBaby, isSolid: liked, color: liked
283
- ? isMarryBaby
284
- ? theme.mbColors.pink
285
- : theme.colors.red800
286
- : '#737373' }),
287
- hasCountLike && (React__default.createElement("div", { className: styles$j.count }, loveCount)))),
288
- hasShare && (React__default.createElement(ShareWrapper, { className: styles$j.clickableIcon },
289
- React__default.createElement(Text, { size: "p3", className: styles$j.iconTxt, as: "div" },
290
- React__default.createElement(Icon.Share, { isMarryBaby: isMarryBaby })))),
291
- typeof viewCount !== 'undefined' && (React__default.createElement(Text, { size: "p3", className: styles$j.iconTxt, as: "div" },
292
- React__default.createElement(Icon.Eye, { isMarryBaby: isMarryBaby }),
293
- React__default.createElement("div", { className: styles$j.count }, abbreviateNumber(viewCount))))),
294
- !hideCommentIcon && (React__default.createElement(CommentWrapper, { className: styles$j.clickableIcon },
295
- React__default.createElement(Text, { size: "p3", className: styles$j.iconTxt, as: "div" },
296
- isReplied ? (React__default.createElement(Reply, { className: "txt-icon" })) : (React__default.createElement(Comment, { className: "txt-icon", isMarryBaby: isMarryBaby })),
297
- isReplied ? (t('cardReactions.reply')) : (React__default.createElement("div", { className: styles$j.count }, t('post.commentCount', {
298
- count: replyCount,
299
- })))))))))));
66
+ var styles$e = {"container":"sTU4T4I","info":"tCql9Je","avatarWrapper":"_3j7uYhH","avatarIcon":"PHABgoT"};
67
+
68
+ const CardAuthor$1 = ({ avatarProps, title, subTitle, children, className = '', style, onAvatarClick, avatarIcon, dataEventCategory, dataEventAction, dataEventLabel, }) => {
69
+ return (React__default.createElement("div", { className: `${styles$e.container} ${className}`, style: style },
70
+ React__default.createElement("div", { className: styles$e.avatarWrapper, onClick: onAvatarClick, "data-event-category": dataEventCategory, "data-event-action": dataEventAction, "data-event-label": dataEventLabel },
71
+ React__default.createElement(UserAvatar, Object.assign({}, avatarProps)),
72
+ avatarIcon && React__default.createElement("div", { className: styles$e.avatarIcon }, avatarIcon)),
73
+ React__default.createElement("div", { className: `${styles$e.info} ${className}`, style: { minHeight: `${(avatarProps === null || avatarProps === void 0 ? void 0 : avatarProps.size) || 40}px` } }, children || (React__default.createElement(React__default.Fragment, null,
74
+ title && React__default.createElement(MainText, null, title),
75
+ subTitle && React__default.createElement(SubText, null, subTitle))))));
300
76
  };
301
- CardReactions.LikeWrapper = LikeWrapper;
302
- CardReactions.ShareWrapper = ShareWrapper;
303
- CardReactions.CommentWrapper = CommentWrapper;
304
-
305
- const useStyles$3 = createStyles((theme) => ({
306
- wrapper: {
307
- display: 'flex',
308
- flexWrap: 'wrap',
309
- width: '100%',
310
- padding: '0.5rem 0',
311
- gap: '0.5rem',
312
- },
313
- item: {
314
- position: 'relative',
315
- whiteSpace: 'nowrap',
316
- padding: '5px 12px',
317
- // border: '1px solid #e4e8ec',
318
- background: theme.colors.gray[0],
319
- borderRadius: '2rem',
320
- cursor: 'pointer',
321
- '-webkit-user-drag': 'none',
322
- userSelect: 'none',
323
- textDecoration: 'none',
324
- '*': {
325
- pointerEvents: 'none',
326
- },
327
- '&:first-child': {
328
- marginLeft: 0,
77
+ CardAuthor$1.MainText = MainText;
78
+ CardAuthor$1.SubText = SubText;
79
+ CardAuthor$1.SubDivider = SubDivider;
80
+ CardAuthor$1.Row = Row;
81
+ CardAuthor$1.ColLeft = ColLeft;
82
+ CardAuthor$1.ColRight = ColRight;
83
+ CardAuthor$1.SubTextRow = SubTextRow;
84
+
85
+ var useStyles$2 = createStyles(() => {
86
+ return {
87
+ root: {
88
+ verticalAlign: 'bottom',
329
89
  },
330
- },
331
- text: {},
332
- }));
333
- const TagTopic = (_a) => {
334
- var { topics = [], onClick, className, style, trackingCategory = 'Together', locale = 'vi-VN', classNames, styles, unstyled, shortenedNumber = 3, shortenedStyle } = _a, rest = __rest(_a, ["topics", "onClick", "className", "style", "trackingCategory", "locale", "classNames", "styles", "unstyled", "shortenedNumber", "shortenedStyle"]);
335
- const { t } = useTranslations();
336
- const { classes } = useStyles$3(undefined, {
337
- name: 'TagTopic',
338
- classNames,
90
+ };
91
+ });
92
+
93
+ const CardAuthorContext = createContext({});
94
+
95
+ const AuthorBadgeItem = ({ styles, className, classNames, }) => {
96
+ const { role, siteType, title } = useContext(CardAuthorContext);
97
+ const { cx, classes } = useStyles$2(undefined, {
98
+ name: 'AuthorBadgeItem',
339
99
  styles,
340
- unstyled,
100
+ classNames,
341
101
  });
342
- const { data: { env: { togetherBasePath }, }, action: { sanitizeFunction }, } = useContext(TogetherComponentGlobalContext);
343
- const [showAll, setShowAll] = useState(!shortenedStyle);
344
- return (React__default.createElement("div", Object.assign({ onClick: onClick, className: `${classes.wrapper} ${className}`, style: style }, rest),
345
- (showAll ? topics : topics.slice(0, shortenedNumber)).map((topic, index) => {
346
- const isMonthTopic = (topic === null || topic === void 0 ? void 0 : topic.dueDateMonth) &&
347
- (topic === null || topic === void 0 ? void 0 : topic.dueDateMonth) !== 0 &&
348
- (topic === null || topic === void 0 ? void 0 : topic.dueDateYear) &&
349
- (topic === null || topic === void 0 ? void 0 : topic.dueDateYear) !== 0;
350
- return (React__default.createElement("a", { className: classes.item, key: index, "data-event-category": trackingCategory, "data-event-action": "Topic in Post Click", "data-event-label": `${getCurrentBaseUrl(locale)}${togetherBasePath}${topic.url}`, href: topic.isActive && !topic.isHidden
351
- ? `${togetherBasePath}${topic.url}/`
352
- : undefined },
353
- React__default.createElement(Text, { size: "p4" },
354
- React__default.createElement("span", { style: Object.assign({}, (isMonthTopic && {
355
- textTransform: 'capitalize',
356
- })), dangerouslySetInnerHTML: {
357
- __html: isMonthTopic
358
- ? `${format(new Date(2020, Number(topic.dueDateMonth) - 1, 1), 'MMMM', {
359
- locale: DATE_FNS_LOCALE[locale],
360
- })}${locale === LOCALE.Vietnam ? '/' : ' '}${topic === null || topic === void 0 ? void 0 : topic.dueDateYear}`
361
- : (sanitizeFunction === null || sanitizeFunction === void 0 ? void 0 : sanitizeFunction(topic.name)) || topic.name,
362
- } }))));
363
- }),
364
- !showAll && topics.length > shortenedNumber && (React__default.createElement("a", { className: classes.item, href: "#", onClick: (e) => {
365
- e.preventDefault();
366
- setShowAll(true);
367
- } },
368
- React__default.createElement(Text, { size: "p4" },
369
- "+",
370
- t('tagTopic.moreTopics', {
371
- number: topics.length - shortenedNumber,
372
- }))))));
102
+ return role ? (React__default.createElement(AuthorBadge, { className: cx(classes.root, className), siteType: siteType, role: role, title: title })) : null;
373
103
  };
374
104
 
375
- const StyledLabelSortPin = styled.div `
376
- display: flex;
377
- align-items: center;
378
- justify-content: space-between;
379
- padding: 16px;
380
- cursor: pointer;
381
- &[data-color='gray'] {
382
- background: ${theme.colors.neutral50};
383
- }
384
- &[data-color='white'] {
385
- border-bottom: 1px solid #e4e8ec;
386
- background: ${theme.colors.white};
387
- }
105
+ const DisplayName = () => {
106
+ const { displayName } = useContext(CardAuthorContext);
107
+ return React__default.createElement(Box, null, displayName);
108
+ };
388
109
 
389
- .popover-menu__btn {
390
- display: flex;
391
- min-width: 2rem;
392
- height: 2rem;
393
- align-items: center;
394
- padding: 8px 0 !important;
395
- border: none;
396
- margin-left: 0.5rem;
397
- background: transparent;
398
- > span {
399
- display: flex;
400
- align-items: center;
401
- }
110
+ var useStyles$1 = createStyles(() => {
111
+ return {
112
+ root: {},
113
+ };
114
+ });
402
115
 
403
- &:hover {
404
- background: transparent !important;
405
- }
116
+ const StyledPopup$2 = styled.div `
117
+ position: fixed;
118
+ left: 50%;
119
+ width: 343px;
120
+ background-color: ${theme.colors.white};
121
+ border-radius: ${theme.borderRadius};
122
+ box-shadow: 0px 0px 4px ${theme.colors.gray200};
123
+ transform: translate(-50%, -50%);
124
+ transition: all 0.5s ease-in-out;
125
+
126
+ ${MediaQueries.tdUp} {
127
+ width: 750px;
406
128
  }
407
129
 
408
- &.label-pinned {
409
- border-radius: ${theme.borderRadius} 6px 0 0;
410
- .label-sort-pin-icon {
411
- width: 16px;
412
- height: 16px;
413
- vertical-align: middle;
414
- }
130
+ &[data-animation='true'] {
131
+ transition: all 0.5s ease-in-out;
415
132
  }
416
133
 
417
- &[data-is-marrybaby='true'] {
418
- padding: 0.75rem 1rem;
419
- border-radius: 16px 16px 0px 0px;
420
- &[data-color='white'] {
421
- border-bottom: none;
422
- }
423
- &[data-color='gray'] {
424
- background: #f3f3f3;
425
- }
426
- .popover-menu__btn {
427
- width: unset;
428
- }
134
+ &[data-open='true'] {
135
+ z-index: 400;
136
+ top: 50%;
137
+ opacity: 1;
138
+ visibility: visible;
139
+ }
429
140
 
430
- &.label-pinned {
431
- border-bottom: none;
432
- background: #fff9eb;
433
- border-radius: 1rem 1rem 0 0;
434
- .label-sort-pin-icon {
435
- margin-right: 8px;
436
- }
437
- .label-sort-pin-heading {
438
- color: #fb8c00;
439
- }
141
+ &[data-open='false'] {
142
+ top: -50%;
143
+ }
144
+
145
+ .popup-content {
146
+ ${MediaQueries.mbDown} {
147
+ display: block;
440
148
  }
441
- &.label-sorting {
442
- ${MediaQueries.tdUp} {
443
- padding-bottom: 1.5rem;
444
- margin-bottom: -0.75rem;
149
+ display: flex;
150
+ position: relative;
151
+ z-index: 111;
152
+ height: 100%;
153
+ .button-see-more {
154
+ margin: 32px 0;
155
+ padding: 0;
156
+ > * {
157
+ display: inline-block;
445
158
  }
446
159
  }
447
- }
448
- `;
449
-
450
- const LabelSortPin = ({ label, rightLabel, onClick, color, className, style, }) => {
451
- const { data: { env: { isMarryBaby }, }, } = useContext(TogetherComponentGlobalContext);
452
- return (React__default.createElement(StyledLabelSortPin, { "data-is-marrybaby": isMarryBaby, "data-color": color, onClick: onClick, className: className, style: style },
453
- React__default.createElement(Text, { className: "label-sort-pin-heading", size: isMarryBaby ? 'p4' : 'p3', weight: "bold" }, label),
454
- rightLabel));
455
- };
456
-
457
- var img$H = "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none'%3e%3cpath stroke='%23FB8C00' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m3.5 20 4.37-4.37'/%3e%3cpath stroke='%23FB8C00' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M4.956 11.294a1 1 0 0 0 0 1.414l2.918 2.918 2.918 2.918a1 1 0 0 0 1.414 0l1.175-1.175a1 1 0 0 0 .293-.707v-3.936l2.9-2.9 2.31.123c.282.015.56-.091.76-.291l.573-.574a1 1 0 0 0 0-1.414l-4.386-4.386a1 1 0 0 0-1.414 0l-.574.574a1 1 0 0 0-.29.76l.122 2.309-2.9 2.9H6.838a1 1 0 0 0-.707.293z' clip-rule='evenodd'/%3e%3cpath stroke='%23FB8C00' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m16.57 9.83-2.9-2.9'/%3e%3c/svg%3e";
458
- var MBPinOrange = img$H;
459
-
460
- var img$G = "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none'%3e%3cpath stroke='%23FEA21E' stroke-linecap='round' d='m7.186 7.682-3.504 6.132'/%3e%3cpath fill='%23FEA21E' stroke='%23FEA21E' stroke-linejoin='round' stroke-width='.5' d='M3.246 7.784a.25.25 0 0 0 .091.342l5.447 3.145a.25.25 0 0 0 .342-.092 3.39 3.39 0 0 0 .11-3.186l1.622-2.808a2.66 2.66 0 0 0 1.606-1.239.25.25 0 0 0-.092-.341l-4.19-2.42a.25.25 0 0 0-.341.092 2.66 2.66 0 0 0-.27 2.01L5.949 6.095a3.39 3.39 0 0 0-2.703 1.69Z'/%3e%3c/svg%3e";
461
- var IconPinYellow = img$G;
462
-
463
- const LabelPin = ({ onClick, color, className, style }) => {
464
- const { data: { env: { isMarryBaby }, }, } = useContext(TogetherComponentGlobalContext);
465
- const { t } = useTranslations();
466
- return (React__default.createElement(LabelSortPin, { label: React__default.createElement(React__default.Fragment, null,
467
- isMarryBaby && (React__default.createElement("img", { className: "label-sort-pin-icon", src: MBPinOrange, loading: "lazy" })),
468
- ' ',
469
- t('label.pinnedPost')), rightLabel: !isMarryBaby && (React__default.createElement("img", { className: "label-sort-pin-icon", src: IconPinYellow, loading: "lazy" })), onClick: onClick, color: 'white' , className: `label-pinned ${className}`, style: style }));
470
- };
471
-
472
- var img$F = "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none'%3e%3cpath stroke='%233E3F58' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m8 14 4 4 4-4M16 10l-4-4-4 4'/%3e%3c/svg%3e";
473
- var MBSortBy = img$F;
474
-
475
- var img$E = "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none'%3e%3cpath fill='%238C8C8C' d='M4.5 7h7a.46.46 0 0 0 .351-.165.56.56 0 0 0 .149-.39q0-.226-.149-.391l-3.5-3.89a.458.458 0 0 0-.703 0l-3.5 3.89a.56.56 0 0 0-.148.39q0 .226.148.391Q4.298 7 4.5 7M11.5 9h-7a.46.46 0 0 0-.352.165.56.56 0 0 0-.148.39q0 .226.148.391l3.5 3.889a.46.46 0 0 0 .703 0l3.5-3.889a.56.56 0 0 0 .149-.39q0-.226-.149-.391A.46.46 0 0 0 11.5 9'/%3e%3c/svg%3e";
476
- var IconSortArrow = img$E;
477
-
478
- const StyledPopoverMenu = styled.div `
479
- position: relative;
480
- display: content;
481
-
482
- .popover-menu__btn {
483
- /* position: relative; */
484
- > span {
485
- width: 100%;
486
- height: 100%;
487
- > img {
160
+ .close-button {
161
+ position: absolute;
162
+ z-index: 100;
163
+ top: 10px;
164
+ right: 10px;
165
+ cursor: pointer;
166
+ width: unset;
167
+ height: unset;
168
+ img {
488
169
  width: 100%;
489
170
  height: 100%;
171
+ border-radius: 50%;
490
172
  }
491
173
  }
492
174
  }
493
175
 
494
- .popover-menu__content {
495
- position: absolute;
496
- z-index: 10;
497
- width: 320px;
498
- padding: 8px;
499
- border: none;
500
- background: #fff;
501
- border-radius: 8px;
502
- box-shadow: 3px 3px 20px rgba(0, 0, 0, 0.1);
503
-
504
- &::before {
505
- position: absolute;
506
- width: 16px;
507
- height: 8px;
508
- background: #fff;
509
- content: '';
176
+ .main-info {
177
+ padding-bottom: 32px;
178
+ background-color: ${theme.colors.primary50};
179
+ border-radius: ${theme.borderRadius};
180
+ .btn-booking {
181
+ display: flex;
182
+ margin: 12px auto;
510
183
  }
511
-
512
- &.--position {
513
- &-top {
514
- bottom: calc(100% + 8px);
515
-
516
- &.--align {
517
- &-start {
518
- left: 0;
519
-
520
- &::before {
521
- top: 100%;
522
- left: 16px;
523
- clip-path: polygon(0 0, 50% 100%, 100% 0);
524
- }
525
- }
526
-
527
- &-end {
528
- left: 100%;
529
- transform: translateX(calc(-100% + 1rem));
530
-
531
- &::before {
532
- top: 100%;
533
- right: 16px;
534
- clip-path: polygon(0 0, 50% 100%, 100% 0);
535
- }
536
- }
537
- }
538
- }
539
-
540
- &-right {
541
- left: calc(100% + 8px);
542
-
543
- &.--align {
544
- &-start {
545
- top: 0;
546
-
547
- &::before {
548
- top: 16px;
549
- left: 0;
550
- width: 8px;
551
- height: 16px;
552
- clip-path: polygon(0 50%, 100% 0%, 100% 100%);
553
- transform: translateX(-100%);
554
- }
555
- }
556
-
557
- &-end {
558
- top: 100%;
559
- transform: translateX(calc(-100% + 1rem));
560
-
561
- &::before {
562
- bottom: 16px;
563
- left: 0;
564
- width: 8px;
565
- height: 16px;
566
- clip-path: polygon(0 50%, 100% 0%, 100% 100%);
567
- transform: translateX(-100%);
568
- }
569
- }
570
- }
571
- }
572
-
573
- &-bottom {
574
- top: calc(100% + 8px);
575
-
576
- &.--align {
577
- &-start {
578
- left: 0;
579
-
580
- &::before {
581
- bottom: 100%;
582
- left: 16px;
583
- clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
584
- }
585
- }
586
-
587
- &-end {
588
- left: 100%;
589
- transform: translateX(calc(-100% + 1rem));
590
-
591
- &::before {
592
- right: 16px;
593
- bottom: 100%;
594
- clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
595
- }
596
- }
597
- }
598
- }
599
-
600
- &-left {
601
- left: -8px;
602
- transform: translateX(-100%);
603
-
604
- &.--align {
605
- &-start {
606
- top: 0;
607
-
608
- &::before {
609
- top: 16px;
610
- left: 100%;
611
- width: 8px;
612
- height: 16px;
613
- clip-path: polygon(0 0%, 100% 50%, 0% 100%);
614
- transform: translateX(0);
615
- }
616
- }
617
-
618
- &-end {
619
- bottom: 0;
620
-
621
- &::before {
622
- bottom: 16px;
623
- left: 100%;
624
- width: 8px;
625
- height: 16px;
626
- clip-path: polygon(0 0%, 100% 50%, 0% 100%);
627
- transform: translateX(0);
628
- }
629
- }
630
- }
631
- }
184
+ .avatar-title {
185
+ position: relative;
186
+ width: 100%;
187
+ padding-top: 46px;
188
+ text-align: center;
632
189
  }
633
190
  }
191
+ `;
192
+ const StyledPopupWrapper$2 = styled.div `
193
+ position: fixed;
194
+ z-index: 110;
195
+ top: 0;
196
+ left: 0;
197
+ width: 100%;
198
+ height: 100%;
199
+ align-items: center;
200
+ background: rgba(38, 38, 38, 0.3);
634
201
 
635
- &[data-is-marrybaby='true'] {
636
- .popover-menu__content {
637
- padding: 0;
638
- border-radius: 12px;
639
- /* &::before {
640
- display: none;
641
- } */
642
- }
202
+ &[data-open='false'] {
203
+ display: none;
643
204
  }
644
205
  `;
645
- const StyledTree = styled.div `
206
+ const StyledProfileImage$2 = styled.div `
207
+ .image-container {
208
+ .badge-avatar {
209
+ position: absolute;
210
+ right: 0;
211
+ bottom: 0;
212
+ top: 0;
213
+ }
214
+ }
646
215
  display: flex;
647
- /* max-height: 300px; */
648
- flex-direction: column;
649
- cursor: default;
650
-
651
- .__header {
652
- position: relative;
216
+ justify-content: center;
217
+ padding-bottom: 15px;
218
+ text-align: center;
219
+ .profile-image {
220
+ width: 100px;
221
+ min-width: 100px;
222
+ height: 100px;
223
+ min-height: 100px;
224
+ border-radius: 50%;
225
+ object-fit: cover;
226
+ }
227
+ .badge-avatar {
228
+ width: 24px;
229
+ height: 24px;
230
+ }
231
+ `;
232
+ const StyledTitleContainer$2 = styled.div `
233
+ position: relative;
234
+ z-index: 9;
235
+ .specialty {
653
236
  display: flex;
654
- align-items: center;
237
+ flex-wrap: wrap;
655
238
  justify-content: center;
656
- padding: 1rem 0;
657
- margin-bottom: 8px;
239
+ }
658
240
 
659
- .__back-btn {
660
- position: absolute;
661
- top: 50%;
662
- left: 8px;
663
- width: 16px;
664
- height: 16px;
665
- cursor: pointer;
666
- transform: translateY(-50%);
667
- }
241
+ padding: 0px 16px;
242
+ text-align: center;
243
+ .specialty {
244
+ justify-content: center;
668
245
  }
669
246
 
670
- .tree-text-description {
671
- padding-right: 8px;
672
- padding-left: 8px;
673
- margin-top: -8px;
674
- margin-bottom: 8px;
675
- font-size: 14px;
676
- font-weight: 400;
677
- line-height: 22px;
247
+ .experience {
248
+ padding: 16px 0px 32px;
678
249
  text-align: left;
250
+ .btn-wrapper {
251
+ margin-top: 24px;
252
+ }
679
253
  }
680
-
681
- .__content {
682
- overflow: auto;
683
- flex: 1;
254
+ p {
255
+ max-width: 100%;
256
+ -webkit-line-clamp: 4;
257
+ -webkit-box-orient: vertical;
258
+ text-overflow: ellipsis;
259
+ overflow: hidden;
684
260
  }
261
+ `;
262
+ const StyledExperienceList = styled.ul `
263
+ padding-left: 18px;
264
+ li {
265
+ list-style-type: disc;
266
+ }
267
+ `;
685
268
 
686
- .__list {
687
- .__item {
688
- position: relative;
689
- &.bold-item {
690
- font-weight: 700;
691
- }
692
- &:last-child {
693
- .__btn {
694
- margin-bottom: 0;
695
- }
696
- }
697
-
698
- .__btn {
699
- position: relative;
700
- display: flex;
701
- width: 100%;
702
- height: 40px;
703
- align-items: center;
704
- padding: 0 1rem;
705
- border: none;
706
- margin-bottom: 8px;
707
- color: ${theme.colors.gray800};
708
- cursor: pointer;
709
- text-align: left;
710
- transition: background 0.3s;
711
-
712
- /* for better gtm tracking result */
713
- * {
714
- pointer-events: none;
715
- }
716
- &.--checked {
717
- color: ${theme.colors.gray500};
718
- pointer-events: none;
719
- }
720
-
721
- &:hover {
722
- background: ${theme.colors.gray100};
723
- }
724
-
725
- .__icon {
726
- width: 16px;
727
- height: 16px;
728
- margin-right: 0.4rem;
729
- }
730
-
731
- & > span {
732
- position: relative;
269
+ var img$p = "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none'%3e%3cpath stroke='%23262626' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M18 6 6 18M6 6l12 12'/%3e%3c/svg%3e";
270
+ var CloseLight = img$p;
733
271
 
734
- & > img {
735
- width: 16px;
736
- height: 16px;
737
- margin-right: 0.4rem;
738
- }
739
- }
740
- }
272
+ var img$o = "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none'%3e%3cpath fill='white' stroke='%23E4E8EC' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.75' d='M9 17A8 8 0 1 0 9 1a8 8 0 0 0 0 16'/%3e%3cpath fill='%23FF5331' d='M10.333 7.667V5H7.667v2.667H5v2.667h2.667V13h2.666v-2.666H13V7.667z'/%3e%3c/svg%3e";
273
+ var ReviewerMedical = img$o;
741
274
 
742
- .__toggle {
743
- position: absolute;
744
- top: 50%;
745
- right: 16px;
746
- width: 16px;
747
- height: 16px;
748
- pointer-events: none;
749
- transform: translateY(-50%);
750
- }
751
- }
275
+ const StyledLoading = styled.div `
276
+ display: flex;
277
+ align-items: center;
278
+ justify-content: center;
279
+ padding: 1em;
280
+ button {
281
+ position: relative;
282
+ }
283
+ `;
284
+ const circle = keyframes `
285
+ 0% {
286
+ transform: rotate(0deg);
287
+ }
288
+ 100% {
289
+ transform: rotate(360deg);
290
+ }
291
+ `;
292
+ styled.div `
293
+ display: flex;
294
+ width: fit-content;
295
+ width: -moz-fit-content;
296
+ flex-direction: column;
297
+ align-items: center;
298
+ justify-content: center;
299
+ padding: 1rem 2rem;
300
+ background: white;
301
+ border-radius: ${theme.borderRadius};
302
+ box-shadow: -1px 1px 2px rgba(67, 70, 74, 0.0001),
303
+ -2px 2px 5px rgba(67, 86, 100, 0.123689);
304
+ .loading-spinner {
305
+ width: 24px;
306
+ height: 24px;
307
+ margin-bottom: 0.5rem;
308
+ animation: ${circle} 1.2s linear infinite;
752
309
  }
753
310
  &[data-is-marrybaby='true'] {
754
- .__header {
755
- padding: 1rem;
756
- }
757
- .tree-text-description {
758
- padding: 0 1rem;
759
- }
760
- .__list {
761
- .__item {
762
- &:first-child {
763
- .__btn {
764
- border-top-left-radius: 12px;
765
- border-top-right-radius: 12px;
766
- }
767
- }
768
- &:last-child {
769
- .__btn {
770
- border-bottom-left-radius: 12px;
771
- border-bottom-right-radius: 12px;
772
- }
773
- }
774
- .__btn {
775
- height: unset;
776
- padding: 1rem;
777
- margin-bottom: 0;
778
- &:hover {
779
- background: ${theme.mbColors.lightPink};
780
- }
781
- }
782
- }
783
- }
311
+ box-shadow: none;
784
312
  }
785
313
  `;
786
314
 
787
- const PopoverMenu = ({ className, style, toggleButtonContent, position = 'bottom', align = 'end', children, buttonProps, }) => {
788
- const { data: { env: { isMarryBaby }, }, } = useContext(TogetherComponentGlobalContext);
789
- const [isShow, setIsShow] = useState(false);
790
- const popoverContent = useRef(null);
791
- const isShowRef = useRef(isShow);
792
- useEffect(() => {
793
- var _a;
794
- isShowRef.current = isShow;
795
- if (!isShow)
796
- return;
797
- (_a = popoverContent.current) === null || _a === void 0 ? void 0 : _a.focus();
798
- }, [isShow]);
799
- useEffect(() => {
800
- const clickHandler = (e) => {
801
- var _a;
802
- if (!((_a = popoverContent.current) === null || _a === void 0 ? void 0 : _a.contains(e.target)) &&
803
- isShowRef.current)
804
- setIsShow(false);
805
- };
806
- window.addEventListener('click', clickHandler, {
807
- passive: true,
808
- });
809
- return () => {
810
- window.removeEventListener('click', clickHandler);
811
- };
812
- }, []);
813
- return (React__default.createElement(StyledPopoverMenu, { "data-is-marrybaby": isMarryBaby, className: className, style: style },
814
- React__default.createElement(Button, Object.assign({ theme: isMarryBaby ? 'marryBaby' : 'helloSites', className: "popover-menu__btn", size: "md", color: "transparent", onClick: () => setIsShow((v) => !v) }, buttonProps), toggleButtonContent),
815
- isShow ? (React__default.createElement("div", { ref: popoverContent, className: `popover-menu__content --position-${position} --align-${align}`, tabIndex: 0, onClick: (e) => e.stopPropagation() }, typeof children === 'function'
816
- ? children({
817
- setShow: setIsShow,
818
- })
819
- : children)) : null));
315
+ const Loading$1 = ({ className, size = 'md' }) => {
316
+ const { t } = useTranslations();
317
+ return (React__default.createElement(StyledLoading, { className: className },
318
+ React__default.createElement(Button, { size: size, color: "transparent", isLoading: true }, t('loading'))));
820
319
  };
821
320
 
822
- var img$D = "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none'%3e%3cpath stroke='%238C8C8C' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M13.333 4 6 11.333 2.667 8'/%3e%3c/svg%3e";
823
- var IconCheckGray = img$D;
824
-
825
- var img$C = "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none'%3e%3cpath stroke='%23262626' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.75' d='m15 18-6-6 6-6'/%3e%3c/svg%3e";
826
- var IconChevronLeftDark = img$C;
827
-
828
- var img$B = "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none'%3e%3cpath stroke='%23595959' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 12 4-4-4-4'/%3e%3c/svg%3e";
829
- var IconChevronRightDark = img$B;
830
-
831
- const TreePopoverMenu = (_a) => {
832
- var { data } = _a, popoverProps = __rest(_a, ["data"]);
833
- return (React__default.createElement(PopoverMenu, Object.assign({}, popoverProps), ({ setShow }) => React__default.createElement(Tree, { data: data, setShow: setShow })));
834
- };
835
- const getCurrentDataFromPath = (data, path) => {
836
- const pathItems = path.split('.');
837
- let currentData = data;
838
- pathItems.forEach((pathItem) => {
839
- var _a, _b;
840
- if (!pathItem || !currentData || (currentData === null || currentData === void 0 ? void 0 : currentData.type) !== 'list')
841
- return;
842
- currentData = (_b = (_a = currentData === null || currentData === void 0 ? void 0 : currentData.list) === null || _a === void 0 ? void 0 : _a[Number(pathItem)]) === null || _b === void 0 ? void 0 : _b.subTree;
843
- });
844
- return currentData;
845
- };
846
- const Tree = ({ data, setShow }) => {
847
- var _a;
848
- const [path, setPath] = useState('');
849
- const currentData = useMemo(() => data && getCurrentDataFromPath(data, path), [data, path]);
850
- if (!data)
851
- return null;
852
- if (!currentData)
853
- return null;
854
- const handleItemClick = (index, { subTree, onClick = () => null }) => {
855
- if (onClick)
856
- onClick();
857
- if (!subTree)
858
- setShow && setShow(false);
859
- else
860
- setPath((p) => p.split('.').concat(String(index)).join('.'));
861
- };
862
- return (React__default.createElement(StyledTree, null,
863
- currentData.isShowheader ? (React__default.createElement("div", { className: "__header" },
864
- path ? (React__default.createElement("img", { className: "__back-btn", src: IconChevronLeftDark, onClick: () => setPath((p) => p.split('.').slice(0, -1).join('.')), loading: "lazy" })) : null,
865
- currentData.title ? (React__default.createElement(Heading, { className: "__title", tag: "h6" }, currentData.title)) : null)) : null,
866
- currentData.description ? (React__default.createElement(Text, { className: "tree-text-description", color: theme.colors.gray600, size: "p3", weight: "regular" }, currentData.description)) : null,
867
- React__default.createElement("div", { className: "__content" },
868
- currentData.type === 'jsx'
869
- ? (_a = currentData === null || currentData === void 0 ? void 0 : currentData.jsxRenderer) === null || _a === void 0 ? void 0 : _a.call(currentData, setShow)
870
- : null,
871
- currentData.type === 'list' ? (React__default.createElement("ul", { className: "__list" }, Array.isArray(currentData.list)
872
- ? currentData.list.map((item, index) => (React__default.createElement("li", { key: index, style: item.style, className: `__item ${item.className}` },
873
- ' ',
874
- React__default.createElement("div", { className: `__btn ${item.selected ? '--checked' : ''}`, onClick: () => handleItemClick(index, item), "data-event-category": item.dataEventCategory, "data-event-action": item.dataEventAction, "data-event-label": item.dataEventLabel },
875
- item.icon && (React__default.createElement("img", { className: "__icon", src: item.icon, loading: "lazy" })),
876
- React__default.createElement("span", null, item.label)),
877
- item.subTree ? (React__default.createElement("img", { className: "__toggle", src: IconChevronRightDark, loading: "lazy" })) : null,
878
- item.selected ? (React__default.createElement("img", { className: "__toggle", src: IconCheckGray, loading: "lazy" })) : null)))
879
- : null)) : null)));
880
- };
881
-
882
- var LabelSortingValue;
883
- (function (LabelSortingValue) {
884
- LabelSortingValue["latest"] = "latest";
885
- LabelSortingValue["oldest"] = "oldest";
886
- LabelSortingValue["popular"] = "popular";
887
- })(LabelSortingValue || (LabelSortingValue = {}));
888
- const LabelSorting = ({ onChange, className, style, leftLabel, rightLabel, color, value, choices, }) => {
889
- const { data: { env: { isMarryBaby }, }, } = useContext(TogetherComponentGlobalContext);
890
- return (React__default.createElement(LabelSortPin, { label: leftLabel, rightLabel: React__default.createElement(TreePopoverMenu, { position: "bottom", align: "end", data: {
891
- isShowheader: false,
892
- type: 'list',
893
- list: choices.map((c) => ({
894
- label: c.label,
895
- onClick: () => onChange && onChange(String(c.value)),
896
- selected: c.value === value,
897
- className: 'bold-item',
898
- })),
899
- }, toggleButtonContent: React__default.createElement("div", { style: {
900
- display: 'flex',
901
- } },
902
- React__default.createElement(Text, { style: {
903
- display: 'flex',
904
- alignItems: 'center',
905
- fontWeight: 'normal',
906
- marginRight: 12,
907
- }, size: "p4" }, rightLabel),
908
- React__default.createElement("img", { src: isMarryBaby ? MBSortBy : IconSortArrow, style: {
909
- width: 16,
910
- height: 16,
911
- alignSelf: 'center',
912
- }, loading: "lazy" })) }), color: 'gray' , className: className, style: style }));
913
- };
914
-
915
- var styles$i = {"row":"dZWeHns","flex":"_8z2nszB","mainTxt":"tMiOKib","subTxt":"uDcqD-2","subTxtRow":"pDlsows","subDivider":"m-HVXw1"};
916
-
917
- const MainText = ({ children, className = '' }) => {
918
- return React__default.createElement("div", { className: `${styles$i.mainTxt} ${className}` }, children);
919
- };
920
- const SubText = ({ children, className = '' }) => {
921
- return React__default.createElement("div", { className: `${styles$i.subTxt} ${className}` }, children);
922
- };
923
- const SubTextRow = (_a) => {
924
- var { children, className = '' } = _a, rest = __rest(_a, ["children", "className"]);
925
- return (React__default.createElement("div", Object.assign({ className: `${styles$i.subTxtRow} ${className}` }, rest), children));
926
- };
927
- const SubDivider = ({ className = '' }) => {
928
- return React__default.createElement("span", { className: `${styles$i.subDivider} ${className}` });
929
- };
930
- const Row = ({ children, className = '' }) => {
931
- return React__default.createElement("div", { className: `${styles$i.row} ${className} row` }, children);
932
- };
933
- const ColLeft = ({ children, className = '' }) => {
934
- return React__default.createElement("div", { className: `${className} col-left` }, children);
935
- };
936
- const ColRight = ({ children, className = '' }) => {
937
- return React__default.createElement("div", { className: `${className} col-right` }, children);
938
- };
939
-
940
- var styles$h = {"container":"sTU4T4I","info":"tCql9Je","avatarWrapper":"_3j7uYhH","avatarIcon":"PHABgoT"};
941
-
942
- const CardAuthor$1 = ({ avatarProps, title, subTitle, children, className = '', style, onAvatarClick, avatarIcon, dataEventCategory, dataEventAction, dataEventLabel, }) => {
943
- return (React__default.createElement("div", { className: `${styles$h.container} ${className}`, style: style },
944
- React__default.createElement("div", { className: styles$h.avatarWrapper, onClick: onAvatarClick, "data-event-category": dataEventCategory, "data-event-action": dataEventAction, "data-event-label": dataEventLabel },
945
- React__default.createElement(UserAvatar, Object.assign({}, avatarProps)),
946
- avatarIcon && React__default.createElement("div", { className: styles$h.avatarIcon }, avatarIcon)),
947
- React__default.createElement("div", { className: `${styles$h.info} ${className}`, style: { minHeight: `${(avatarProps === null || avatarProps === void 0 ? void 0 : avatarProps.size) || 40}px` } }, children || (React__default.createElement(React__default.Fragment, null,
948
- title && React__default.createElement(MainText, null, title),
949
- subTitle && React__default.createElement(SubText, null, subTitle))))));
950
- };
951
- CardAuthor$1.MainText = MainText;
952
- CardAuthor$1.SubText = SubText;
953
- CardAuthor$1.SubDivider = SubDivider;
954
- CardAuthor$1.Row = Row;
955
- CardAuthor$1.ColLeft = ColLeft;
956
- CardAuthor$1.ColRight = ColRight;
957
- CardAuthor$1.SubTextRow = SubTextRow;
958
-
959
- var useStyles$2 = createStyles(() => {
960
- return {
961
- root: {
962
- verticalAlign: 'bottom',
963
- },
321
+ const PopupDoctor = ({ isOpen = true, onClose, enableAnimation = true, doctorId, locale, isMobile, overwriteProfileProps, avatarFallback = CommonGAssets.getAssetPath('avatar.jpg'), trackingCategory = 'Together', }) => {
322
+ var _a, _b, _c;
323
+ const { t } = useTranslations();
324
+ const [doctorInfo, setDoctorInfo] = useState(null);
325
+ const [isLoading, setIsLoading] = useState(false);
326
+ useEffect(() => {
327
+ if (isOpen && doctorId && String(doctorInfo === null || doctorInfo === void 0 ? void 0 : doctorInfo.id) !== String(doctorId)) {
328
+ setIsLoading(true);
329
+ try {
330
+ setDoctorInfo(null);
331
+ callApi(getCarePath(CARE_PATHS.GET_DOCTOR_INFO, {
332
+ doctorId: doctorId,
333
+ website_url: domainLocales[locale],
334
+ }), 'get').then((res) => {
335
+ setDoctorInfo(Object.assign(Object.assign({}, res === null || res === void 0 ? void 0 : res._data.doctor), overwriteProfileProps));
336
+ });
337
+ }
338
+ catch (error) {
339
+ console.error(error);
340
+ }
341
+ setIsLoading(false);
342
+ }
343
+ }, [isOpen, doctorId, doctorInfo === null || doctorInfo === void 0 ? void 0 : doctorInfo.id]);
344
+ const experiences = (doctorInfo === null || doctorInfo === void 0 ? void 0 : doctorInfo.experiences) || [];
345
+ const specialty = (doctorInfo === null || doctorInfo === void 0 ? void 0 : doctorInfo.specialties) || [];
346
+ const specialtiesList = specialty
347
+ .map((specialty) => (specialty === null || specialty === void 0 ? void 0 : specialty.name) || specialty)
348
+ .join(' ');
349
+ const formattedExperiences = experiences
350
+ .map((experience) => {
351
+ try {
352
+ return JSON.parse(experience.description);
353
+ }
354
+ catch (e) {
355
+ return experience.description;
356
+ }
357
+ })
358
+ .filter((e) => e.content);
359
+ const renderExperienceText = (experience) => {
360
+ if (experience === null || experience === void 0 ? void 0 : experience.year)
361
+ return `${experience.year} ${experience === null || experience === void 0 ? void 0 : experience.content}`;
362
+ if (experience === null || experience === void 0 ? void 0 : experience.content)
363
+ return experience.content;
364
+ if (typeof experience === 'string')
365
+ return experience;
366
+ return '';
964
367
  };
965
- });
966
-
967
- const CardAuthorContext = createContext({});
968
-
969
- const AuthorBadgeItem = ({ styles, className, classNames, }) => {
970
- const { role, siteType, title } = useContext(CardAuthorContext);
971
- const { cx, classes } = useStyles$2(undefined, {
972
- name: 'AuthorBadgeItem',
973
- styles,
974
- classNames,
975
- });
976
- return role ? (React__default.createElement(AuthorBadge, { className: cx(classes.root, className), siteType: siteType, role: role, title: title })) : null;
977
- };
978
-
979
- const DisplayName = () => {
980
- const { displayName } = useContext(CardAuthorContext);
981
- return React__default.createElement(Box, null, displayName);
368
+ return (React__default.createElement(React__default.Fragment, null,
369
+ React__default.createElement(StyledPopup$2, { "data-open": isOpen, "data-animation": enableAnimation, onClick: (e) => e.stopPropagation() }, isLoading || !doctorInfo ? (React__default.createElement(Loading$1, null)) : (React__default.createElement("div", { className: "popup-content" },
370
+ React__default.createElement("div", { className: "close-button", onClick: onClose },
371
+ React__default.createElement("img", { src: CloseLight, style: { width: 20, height: 20 }, alt: "close-icon", loading: "lazy" })),
372
+ React__default.createElement("div", { className: "main-info" },
373
+ React__default.createElement("div", { className: "border-banner" }),
374
+ React__default.createElement("div", { className: "avatar-title" },
375
+ React__default.createElement(StyledProfileImage$2, null,
376
+ React__default.createElement("div", { className: "image-container" },
377
+ React__default.createElement("div", { style: { position: 'relative' } },
378
+ React__default.createElement(ImageWrap, { src: doctorInfo === null || doctorInfo === void 0 ? void 0 : doctorInfo.avatar, backupSrc: avatarFallback, className: "profile-image", alt: "avatar" }),
379
+ React__default.createElement("img", { className: "badge-avatar", src: ReviewerMedical, alt: "badge", loading: "lazy" })))),
380
+ React__default.createElement(StyledTitleContainer$2, null,
381
+ React__default.createElement(Text, { size: "s3", weight: "semiBold", className: "full-name" }, doctorInfo === null || doctorInfo === void 0 ? void 0 : doctorInfo.name),
382
+ React__default.createElement("div", { className: "specialty" },
383
+ specialtiesList && (React__default.createElement(React__default.Fragment, null,
384
+ React__default.createElement(Text, { size: "p4", color: theme.colors.gray800 },
385
+ specialtiesList,
386
+ ' • '))),
387
+ React__default.createElement("a", { href: getCareHospitalUrl({
388
+ id: (_a = doctorInfo === null || doctorInfo === void 0 ? void 0 : doctorInfo.organization) === null || _a === void 0 ? void 0 : _a.id,
389
+ name: (_b = doctorInfo === null || doctorInfo === void 0 ? void 0 : doctorInfo.organization) === null || _b === void 0 ? void 0 : _b.name,
390
+ slug: (_c = doctorInfo === null || doctorInfo === void 0 ? void 0 : doctorInfo.organization) === null || _c === void 0 ? void 0 : _c.slug,
391
+ locale,
392
+ }), className: "organisation", target: "_blank", rel: "noreferrer" },
393
+ React__default.createElement(Text, { size: "p4", className: "organisation", color: theme.colors.gray800, style: { textDecoration: 'underline' } }, doctorInfo === null || doctorInfo === void 0 ? void 0 : doctorInfo.organization.name))))),
394
+ !isMobile && (React__default.createElement("div", { className: "btn-wrapper" },
395
+ React__default.createElement("a", { href: getCareDoctorUrl({
396
+ name: doctorInfo.name,
397
+ id: doctorInfo.id,
398
+ locale: locale,
399
+ }) },
400
+ React__default.createElement(Button, { color: "primary", size: "md", className: "btn-booking" }, t('careBooking.bookAnAppointment')))))),
401
+ formattedExperiences && (React__default.createElement(StyledTitleContainer$2, null,
402
+ React__default.createElement("div", { className: "experience" },
403
+ React__default.createElement(Text, { weight: "bold", size: "s3", color: theme.colors.gray800, style: { paddingBottom: 16 } }, t('expert.content.description').toUpperCase()),
404
+ React__default.createElement(StyledExperienceList, null, formattedExperiences.map((experience, i) => (React__default.createElement("li", { key: i },
405
+ React__default.createElement(Text, { size: "p2" }, renderExperienceText(experience)))))),
406
+ isMobile ? (React__default.createElement("div", { className: "btn-wrapper" },
407
+ React__default.createElement("a", { href: getCareDoctorUrl({
408
+ name: doctorInfo.name,
409
+ id: doctorInfo.id,
410
+ locale: locale,
411
+ }) },
412
+ React__default.createElement(Button, { color: "primary", size: "md", className: "btn-booking" }, t('careBooking.bookAnAppointment'))))) : (React__default.createElement("a", { href: getCareDoctorUrl({
413
+ name: doctorInfo.name,
414
+ id: doctorInfo.id,
415
+ locale: locale,
416
+ }) },
417
+ React__default.createElement(Text, { size: "s4", color: "#2D87F3", style: { paddingTop: 24 }, "data-event-category": trackingCategory, "data-event-action": "See Full Doctor Profile", "data-event-label": getCurrentBaseUrl(locale) +
418
+ getCareDoctorUrl({
419
+ name: doctorInfo.name,
420
+ id: doctorInfo.id,
421
+ locale: locale,
422
+ }) }, t('home.seeExpert')))))))))),
423
+ React__default.createElement(StyledPopupWrapper$2, { "data-open": isOpen, onClick: (e) => {
424
+ e.stopPropagation();
425
+ onClose();
426
+ } })));
982
427
  };
983
428
 
984
- var useStyles$1 = createStyles(() => {
985
- return {
986
- root: {},
987
- };
988
- });
989
-
990
- const StyledPopup$2 = styled.div `
429
+ const StyledPopup$1 = styled.div `
991
430
  position: fixed;
992
431
  left: 50%;
993
432
  width: 343px;
@@ -1051,10 +490,7 @@ const StyledPopup$2 = styled.div `
1051
490
  padding-bottom: 32px;
1052
491
  background-color: ${theme.colors.primary50};
1053
492
  border-radius: ${theme.borderRadius};
1054
- .btn-booking {
1055
- display: flex;
1056
- margin: 12px auto;
1057
- }
493
+
1058
494
  .avatar-title {
1059
495
  position: relative;
1060
496
  width: 100%;
@@ -1063,7 +499,7 @@ const StyledPopup$2 = styled.div `
1063
499
  }
1064
500
  }
1065
501
  `;
1066
- const StyledPopupWrapper$2 = styled.div `
502
+ const StyledPopupWrapper$1 = styled.div `
1067
503
  position: fixed;
1068
504
  z-index: 110;
1069
505
  top: 0;
@@ -1077,7 +513,7 @@ const StyledPopupWrapper$2 = styled.div `
1077
513
  display: none;
1078
514
  }
1079
515
  `;
1080
- const StyledProfileImage$2 = styled.div `
516
+ const StyledProfileImage$1 = styled.div `
1081
517
  .image-container {
1082
518
  .badge-avatar {
1083
519
  position: absolute;
@@ -1103,7 +539,7 @@ const StyledProfileImage$2 = styled.div `
1103
539
  height: 24px;
1104
540
  }
1105
541
  `;
1106
- const StyledTitleContainer$2 = styled.div `
542
+ const StyledTitleContainer$1 = styled.div `
1107
543
  position: relative;
1108
544
  z-index: 9;
1109
545
  .specialty {
@@ -1133,337 +569,27 @@ const StyledTitleContainer$2 = styled.div `
1133
569
  overflow: hidden;
1134
570
  }
1135
571
  `;
1136
- const StyledExperienceList = styled.ul `
1137
- padding-left: 18px;
1138
- li {
1139
- list-style-type: disc;
1140
- }
1141
- `;
1142
-
1143
- var img$A = "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none'%3e%3cpath stroke='%23262626' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M18 6 6 18M6 6l12 12'/%3e%3c/svg%3e";
1144
- var CloseLight = img$A;
1145
-
1146
- var img$z = "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none'%3e%3cpath fill='white' stroke='%23E4E8EC' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.75' d='M9 17A8 8 0 1 0 9 1a8 8 0 0 0 0 16'/%3e%3cpath fill='%23FF5331' d='M10.333 7.667V5H7.667v2.667H5v2.667h2.667V13h2.666v-2.666H13V7.667z'/%3e%3c/svg%3e";
1147
- var ReviewerMedical = img$z;
1148
-
1149
- const StyledLoading = styled.div `
1150
- display: flex;
1151
- align-items: center;
1152
- justify-content: center;
1153
- padding: 1em;
1154
- button {
1155
- position: relative;
1156
- }
1157
- `;
1158
- const circle = keyframes `
1159
- 0% {
1160
- transform: rotate(0deg);
1161
- }
1162
- 100% {
1163
- transform: rotate(360deg);
1164
- }
1165
- `;
1166
- styled.div `
572
+ const StyledItem = styled.div `
1167
573
  display: flex;
1168
- width: fit-content;
1169
- width: -moz-fit-content;
1170
- flex-direction: column;
1171
- align-items: center;
1172
- justify-content: center;
1173
- padding: 1rem 2rem;
1174
- background: white;
1175
- border-radius: ${theme.borderRadius};
1176
- box-shadow: -1px 1px 2px rgba(67, 70, 74, 0.0001),
1177
- -2px 2px 5px rgba(67, 86, 100, 0.123689);
1178
- .loading-spinner {
574
+ margin-top: 8px;
575
+
576
+ .bullet-point {
1179
577
  width: 24px;
1180
578
  height: 24px;
1181
- margin-bottom: 0.5rem;
1182
- animation: ${circle} 1.2s linear infinite;
1183
- }
1184
- &[data-is-marrybaby='true'] {
1185
- box-shadow: none;
1186
579
  }
1187
580
  `;
1188
581
 
1189
- const Loading$1 = ({ className, size = 'md' }) => {
1190
- const { t } = useTranslations();
1191
- return (React__default.createElement(StyledLoading, { className: className },
1192
- React__default.createElement(Button, { size: size, color: "transparent", isLoading: true }, t('loading'))));
1193
- };
582
+ var img$n = "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none'%3e%3ccircle cx='12' cy='12' r='2' fill='%232D87F3'/%3e%3c/svg%3e";
583
+ var BulletPoint = img$n;
1194
584
 
1195
- const PopupDoctor = ({ isOpen = true, onClose, enableAnimation = true, doctorId, locale, isMobile, overwriteProfileProps, avatarFallback = CommonGAssets.getAssetPath('avatar.jpg'), trackingCategory = 'Together', }) => {
1196
- var _a, _b, _c;
1197
- const { t } = useTranslations();
1198
- const [doctorInfo, setDoctorInfo] = useState(null);
1199
- const [isLoading, setIsLoading] = useState(false);
1200
- useEffect(() => {
1201
- if (isOpen && doctorId && String(doctorInfo === null || doctorInfo === void 0 ? void 0 : doctorInfo.id) !== String(doctorId)) {
1202
- setIsLoading(true);
1203
- try {
1204
- setDoctorInfo(null);
1205
- callApi(getCarePath(CARE_PATHS.GET_DOCTOR_INFO, {
1206
- doctorId: doctorId,
1207
- website_url: domainLocales[locale],
1208
- }), 'get').then((res) => {
1209
- setDoctorInfo(Object.assign(Object.assign({}, res === null || res === void 0 ? void 0 : res._data.doctor), overwriteProfileProps));
1210
- });
1211
- }
1212
- catch (error) {
1213
- console.error(error);
1214
- }
1215
- setIsLoading(false);
1216
- }
1217
- }, [isOpen, doctorId, doctorInfo === null || doctorInfo === void 0 ? void 0 : doctorInfo.id]);
1218
- const experiences = (doctorInfo === null || doctorInfo === void 0 ? void 0 : doctorInfo.experiences) || [];
1219
- const specialty = (doctorInfo === null || doctorInfo === void 0 ? void 0 : doctorInfo.specialties) || [];
1220
- const specialtiesList = specialty
1221
- .map((specialty) => (specialty === null || specialty === void 0 ? void 0 : specialty.name) || specialty)
1222
- .join(' • ');
1223
- const formattedExperiences = experiences
1224
- .map((experience) => {
1225
- try {
1226
- return JSON.parse(experience.description);
1227
- }
1228
- catch (e) {
1229
- return experience.description;
1230
- }
1231
- })
1232
- .filter((e) => e.content);
1233
- const renderExperienceText = (experience) => {
1234
- if (experience === null || experience === void 0 ? void 0 : experience.year)
1235
- return `${experience.year} ${experience === null || experience === void 0 ? void 0 : experience.content}`;
1236
- if (experience === null || experience === void 0 ? void 0 : experience.content)
1237
- return experience.content;
1238
- if (typeof experience === 'string')
1239
- return experience;
1240
- return '';
1241
- };
1242
- return (React__default.createElement(React__default.Fragment, null,
1243
- React__default.createElement(StyledPopup$2, { "data-open": isOpen, "data-animation": enableAnimation, onClick: (e) => e.stopPropagation() }, isLoading || !doctorInfo ? (React__default.createElement(Loading$1, null)) : (React__default.createElement("div", { className: "popup-content" },
1244
- React__default.createElement("div", { className: "close-button", onClick: onClose },
1245
- React__default.createElement("img", { src: CloseLight, style: { width: 20, height: 20 }, alt: "close-icon", loading: "lazy" })),
1246
- React__default.createElement("div", { className: "main-info" },
1247
- React__default.createElement("div", { className: "border-banner" }),
1248
- React__default.createElement("div", { className: "avatar-title" },
1249
- React__default.createElement(StyledProfileImage$2, null,
1250
- React__default.createElement("div", { className: "image-container" },
1251
- React__default.createElement("div", { style: { position: 'relative' } },
1252
- React__default.createElement(ImageWrap, { src: doctorInfo === null || doctorInfo === void 0 ? void 0 : doctorInfo.avatar, backupSrc: avatarFallback, className: "profile-image", alt: "avatar" }),
1253
- React__default.createElement("img", { className: "badge-avatar", src: ReviewerMedical, alt: "badge", loading: "lazy" })))),
1254
- React__default.createElement(StyledTitleContainer$2, null,
1255
- React__default.createElement(Text, { size: "s3", weight: "semiBold", className: "full-name" }, doctorInfo === null || doctorInfo === void 0 ? void 0 : doctorInfo.name),
1256
- React__default.createElement("div", { className: "specialty" },
1257
- specialtiesList && (React__default.createElement(React__default.Fragment, null,
1258
- React__default.createElement(Text, { size: "p4", color: theme.colors.gray800 },
1259
- specialtiesList,
1260
- ' • '))),
1261
- React__default.createElement("a", { href: getCareHospitalUrl({
1262
- id: (_a = doctorInfo === null || doctorInfo === void 0 ? void 0 : doctorInfo.organization) === null || _a === void 0 ? void 0 : _a.id,
1263
- name: (_b = doctorInfo === null || doctorInfo === void 0 ? void 0 : doctorInfo.organization) === null || _b === void 0 ? void 0 : _b.name,
1264
- slug: (_c = doctorInfo === null || doctorInfo === void 0 ? void 0 : doctorInfo.organization) === null || _c === void 0 ? void 0 : _c.slug,
1265
- locale,
1266
- }), className: "organisation", target: "_blank", rel: "noreferrer" },
1267
- React__default.createElement(Text, { size: "p4", className: "organisation", color: theme.colors.gray800, style: { textDecoration: 'underline' } }, doctorInfo === null || doctorInfo === void 0 ? void 0 : doctorInfo.organization.name))))),
1268
- !isMobile && (React__default.createElement("div", { className: "btn-wrapper" },
1269
- React__default.createElement("a", { href: getCareDoctorUrl({
1270
- name: doctorInfo.name,
1271
- id: doctorInfo.id,
1272
- locale: locale,
1273
- }) },
1274
- React__default.createElement(Button, { color: "primary", size: "md", className: "btn-booking" }, t('careBooking.bookAnAppointment')))))),
1275
- formattedExperiences && (React__default.createElement(StyledTitleContainer$2, null,
1276
- React__default.createElement("div", { className: "experience" },
1277
- React__default.createElement(Text, { weight: "bold", size: "s3", color: theme.colors.gray800, style: { paddingBottom: 16 } }, t('expert.content.description').toUpperCase()),
1278
- React__default.createElement(StyledExperienceList, null, formattedExperiences.map((experience, i) => (React__default.createElement("li", { key: i },
1279
- React__default.createElement(Text, { size: "p2" }, renderExperienceText(experience)))))),
1280
- isMobile ? (React__default.createElement("div", { className: "btn-wrapper" },
1281
- React__default.createElement("a", { href: getCareDoctorUrl({
1282
- name: doctorInfo.name,
1283
- id: doctorInfo.id,
1284
- locale: locale,
1285
- }) },
1286
- React__default.createElement(Button, { color: "primary", size: "md", className: "btn-booking" }, t('careBooking.bookAnAppointment'))))) : (React__default.createElement("a", { href: getCareDoctorUrl({
1287
- name: doctorInfo.name,
1288
- id: doctorInfo.id,
1289
- locale: locale,
1290
- }) },
1291
- React__default.createElement(Text, { size: "s4", color: "#2D87F3", style: { paddingTop: 24 }, "data-event-category": trackingCategory, "data-event-action": "See Full Doctor Profile", "data-event-label": getCurrentBaseUrl(locale) +
1292
- getCareDoctorUrl({
1293
- name: doctorInfo.name,
1294
- id: doctorInfo.id,
1295
- locale: locale,
1296
- }) }, t('home.seeExpert')))))))))),
1297
- React__default.createElement(StyledPopupWrapper$2, { "data-open": isOpen, onClick: (e) => {
1298
- e.stopPropagation();
1299
- onClose();
1300
- } })));
1301
- };
1302
-
1303
- const StyledPopup$1 = styled.div `
1304
- position: fixed;
1305
- left: 50%;
1306
- width: 343px;
1307
- background-color: ${theme.colors.white};
1308
- border-radius: ${theme.borderRadius};
1309
- box-shadow: 0px 0px 4px ${theme.colors.gray200};
1310
- transform: translate(-50%, -50%);
1311
- transition: all 0.5s ease-in-out;
1312
-
1313
- ${MediaQueries.tdUp} {
1314
- width: 750px;
1315
- }
1316
-
1317
- &[data-animation='true'] {
1318
- transition: all 0.5s ease-in-out;
1319
- }
1320
-
1321
- &[data-open='true'] {
1322
- z-index: 400;
1323
- top: 50%;
1324
- opacity: 1;
1325
- visibility: visible;
1326
- }
1327
-
1328
- &[data-open='false'] {
1329
- top: -50%;
1330
- }
1331
-
1332
- .popup-content {
1333
- ${MediaQueries.mbDown} {
1334
- display: block;
1335
- }
1336
- display: flex;
1337
- position: relative;
1338
- z-index: 111;
1339
- height: 100%;
1340
- .button-see-more {
1341
- margin: 32px 0;
1342
- padding: 0;
1343
- > * {
1344
- display: inline-block;
1345
- }
1346
- }
1347
- .close-button {
1348
- position: absolute;
1349
- z-index: 100;
1350
- top: 10px;
1351
- right: 10px;
1352
- cursor: pointer;
1353
- width: unset;
1354
- height: unset;
1355
- img {
1356
- width: 100%;
1357
- height: 100%;
1358
- border-radius: 50%;
1359
- }
1360
- }
1361
- }
1362
-
1363
- .main-info {
1364
- padding-bottom: 32px;
1365
- background-color: ${theme.colors.primary50};
1366
- border-radius: ${theme.borderRadius};
1367
-
1368
- .avatar-title {
1369
- position: relative;
1370
- width: 100%;
1371
- padding-top: 46px;
1372
- text-align: center;
1373
- }
1374
- }
1375
- `;
1376
- const StyledPopupWrapper$1 = styled.div `
1377
- position: fixed;
1378
- z-index: 110;
1379
- top: 0;
1380
- left: 0;
1381
- width: 100%;
1382
- height: 100%;
1383
- align-items: center;
1384
- background: rgba(38, 38, 38, 0.3);
1385
-
1386
- &[data-open='false'] {
1387
- display: none;
1388
- }
1389
- `;
1390
- const StyledProfileImage$1 = styled.div `
1391
- .image-container {
1392
- .badge-avatar {
1393
- position: absolute;
1394
- right: 0;
1395
- bottom: 0;
1396
- top: 0;
1397
- }
1398
- }
1399
- display: flex;
1400
- justify-content: center;
1401
- padding-bottom: 15px;
1402
- text-align: center;
1403
- .profile-image {
1404
- width: 100px;
1405
- min-width: 100px;
1406
- height: 100px;
1407
- min-height: 100px;
1408
- border-radius: 50%;
1409
- object-fit: cover;
1410
- }
1411
- .badge-avatar {
1412
- width: 24px;
1413
- height: 24px;
1414
- }
1415
- `;
1416
- const StyledTitleContainer$1 = styled.div `
1417
- position: relative;
1418
- z-index: 9;
1419
- .specialty {
1420
- display: flex;
1421
- flex-wrap: wrap;
1422
- justify-content: center;
1423
- }
1424
-
1425
- padding: 0px 16px;
1426
- text-align: center;
1427
- .specialty {
1428
- justify-content: center;
1429
- }
585
+ var img$m = "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 12'/%3e%3cpath fill='%232D87F3' d='M24 12a12 12 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.47z'/%3e%3cpath fill='%23F7F9FC' d='M8.544 15.456 5.041 18.96l3.972-1.135z'/%3e%3cpath fill='%23E4E8EC' d='M6.467 18.552 5.45 17.533l-.41 1.427 1.426-.407Z'/%3e%3cpath fill='%23D2D6DC' d='m5.957 18.043-.916.916 1.426-.407z'/%3e%3cpath fill='%23FFD658' d='m15.828 5.331 2.837 2.837-9.651 9.652-2.838-2.837z'/%3e%3cpath fill='%23FFC326' d='m7.594 16.404 9.651-9.651 1.419 1.418-9.652 9.652z'/%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.594z'/%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";
586
+ var ReviewerAuthor = img$m;
1430
587
 
1431
- .experience {
1432
- padding: 16px 0px 32px;
1433
- text-align: left;
1434
- .btn-wrapper {
1435
- margin-top: 24px;
1436
- }
1437
- }
1438
- p {
1439
- max-width: 100%;
1440
- -webkit-line-clamp: 4;
1441
- -webkit-box-orient: vertical;
1442
- text-overflow: ellipsis;
1443
- overflow: hidden;
1444
- }
1445
- `;
1446
- const StyledItem$2 = styled.div `
1447
- display: flex;
1448
- margin-top: 8px;
1449
-
1450
- .bullet-point {
1451
- width: 24px;
1452
- height: 24px;
1453
- }
1454
- `;
1455
-
1456
- var img$y = "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none'%3e%3ccircle cx='12' cy='12' r='2' fill='%232D87F3'/%3e%3c/svg%3e";
1457
- var BulletPoint = img$y;
588
+ var img$l = "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none'%3e%3ccircle cx='12' cy='12' r='12' fill='%23FFCB37'/%3e%3ccircle cx='12' cy='12' r='10.5' fill='%23FE921D'/%3e%3cpath fill='white' d='M11.443 5.137a.6.6 0 0 1 1.114 0l1.436 3.577a.6.6 0 0 0 .516.375l3.846.26a.6.6 0 0 1 .344 1.06l-2.958 2.471a.6.6 0 0 0-.197.607l.94 3.738a.6.6 0 0 1-.9.655l-3.265-2.05a.6.6 0 0 0-.638 0l-3.265 2.05a.6.6 0 0 1-.9-.655l.94-3.738a.6.6 0 0 0-.198-.607L5.3 10.41a.6.6 0 0 1 .344-1.06l3.846-.26a.6.6 0 0 0 .517-.375z'/%3e%3c/svg%3e";
589
+ var ReviewerExpert = img$l;
1458
590
 
1459
- var img$x = "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 12'/%3e%3cpath fill='%232D87F3' d='M24 12a12 12 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.47z'/%3e%3cpath fill='%23F7F9FC' d='M8.544 15.456 5.041 18.96l3.972-1.135z'/%3e%3cpath fill='%23E4E8EC' d='M6.467 18.552 5.45 17.533l-.41 1.427 1.426-.407Z'/%3e%3cpath fill='%23D2D6DC' d='m5.957 18.043-.916.916 1.426-.407z'/%3e%3cpath fill='%23FFD658' d='m15.828 5.331 2.837 2.837-9.651 9.652-2.838-2.837z'/%3e%3cpath fill='%23FFC326' d='m7.594 16.404 9.651-9.651 1.419 1.418-9.652 9.652z'/%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.594z'/%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";
1460
- var ReviewerAuthor = img$x;
1461
-
1462
- var img$w = "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none'%3e%3ccircle cx='12' cy='12' r='12' fill='%23FFCB37'/%3e%3ccircle cx='12' cy='12' r='10.5' fill='%23FE921D'/%3e%3cpath fill='white' d='M11.443 5.137a.6.6 0 0 1 1.114 0l1.436 3.577a.6.6 0 0 0 .516.375l3.846.26a.6.6 0 0 1 .344 1.06l-2.958 2.471a.6.6 0 0 0-.197.607l.94 3.738a.6.6 0 0 1-.9.655l-3.265-2.05a.6.6 0 0 0-.638 0l-3.265 2.05a.6.6 0 0 1-.9-.655l.94-3.738a.6.6 0 0 0-.198-.607L5.3 10.41a.6.6 0 0 1 .344-1.06l3.846-.26a.6.6 0 0 0 .517-.375z'/%3e%3c/svg%3e";
1463
- var ReviewerExpert = img$w;
1464
-
1465
- var img$v = "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none'%3e%3cpath fill='%2300C076' d='M8 16A8 8 0 1 0 8 0a8 8 0 0 0 0 16'/%3e%3cpath stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.75' d='m11.946 5.466-5.28 4.8-2.4-2.182'/%3e%3c/svg%3e";
1466
- var ReviewerFactCheck = img$v;
591
+ var img$k = "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none'%3e%3cpath fill='%2300C076' d='M8 16A8 8 0 1 0 8 0a8 8 0 0 0 0 16'/%3e%3cpath stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.75' d='m11.946 5.466-5.28 4.8-2.4-2.182'/%3e%3c/svg%3e";
592
+ var ReviewerFactCheck = img$k;
1467
593
 
1468
594
  const ReviewerIconMap = {
1469
595
  author: ReviewerAuthor,
@@ -1522,7 +648,7 @@ const PopupExpert = ({ trackingCategory = 'Together', locale, isOpen = true, onC
1522
648
  ? expertInfo.experiences
1523
649
  .filter((e) => !!(e && (e.title || e.organization)))
1524
650
  .slice(0, 3)
1525
- .map((experience, index) => (React__default.createElement(StyledItem$2, { key: index },
651
+ .map((experience, index) => (React__default.createElement(StyledItem, { key: index },
1526
652
  React__default.createElement("img", { className: "bullet-point", src: BulletPoint, alt: "point", loading: "lazy" }),
1527
653
  React__default.createElement("div", { className: "text-contain" },
1528
654
  React__default.createElement(Heading, { tag: "h6", color: theme.colors.gray800 }, experience === null || experience === void 0 ? void 0 : experience.title),
@@ -1767,11 +893,11 @@ const PopupHospital = ({ isOpen = true, onClose, enableAnimation = true, hospita
1767
893
  } })));
1768
894
  };
1769
895
 
1770
- var styles$g = {"modal":"_2UKyiK1","header":"E5ga-tI","heading":"_8Y2nWXX","close":"d0T7kSP"};
896
+ var styles$d = {"modal":"_2UKyiK1","header":"E5ga-tI","heading":"_8Y2nWXX","close":"d0T7kSP"};
1771
897
 
1772
898
  const ProfileDetailModal = ({ open, onClose, children, profileModalProps, }) => {
1773
899
  const { t } = useTranslations();
1774
- return (React__default.createElement(Modal, Object.assign({ title: t('profilePanel.modal.heading'), titleProps: true, className: styles$g.modal, opened: open, onClose: onClose, overlayOpacity: 0.2, overflow: "inside", transitionProps: {
900
+ return (React__default.createElement(Modal, Object.assign({ title: t('profilePanel.modal.heading'), titleProps: true, className: styles$d.modal, opened: open, onClose: onClose, overlayOpacity: 0.2, overflow: "inside", transitionProps: {
1775
901
  transition: 'slide-left',
1776
902
  }, styles: {
1777
903
  header: {
@@ -1921,150 +1047,6 @@ const getDefaultFailNoti = (t) => ({
1921
1047
  type: 'danger',
1922
1048
  });
1923
1049
 
1924
- const StyledCreateNewPost = styled.div `
1925
- position: relative;
1926
- display: flex;
1927
- height: 100%;
1928
- flex-direction: column;
1929
- padding: 16px 24px;
1930
-
1931
- .input-group-container {
1932
- flex: 1;
1933
- padding-right: 2px;
1934
- padding-left: 2px;
1935
- margin-bottom: 0.5rem;
1936
- -ms-overflow-style: none; /* IE and Edge */
1937
- overflow-y: auto;
1938
- scrollbar-width: none; /* Firefox */
1939
- &::-webkit-scrollbar {
1940
- display: none;
1941
- }
1942
- }
1943
-
1944
- .input-group {
1945
- :not(:last-child) {
1946
- margin-bottom: 0.6rem;
1947
- }
1948
-
1949
- input:focus,
1950
- textarea:focus,
1951
- [contenteditable='true'] {
1952
- outline: none;
1953
- }
1954
-
1955
- label {
1956
- margin-bottom: 5px;
1957
- color: ${theme.colors.gray600};
1958
- /* font-family: 'Open Sans', sans-serif; */
1959
- font-size: 13px;
1960
- font-weight: bold;
1961
- }
1962
-
1963
- .input-group-label {
1964
- margin-bottom: 5px;
1965
- color: ${theme.colors.gray600};
1966
- /* font-family: 'Open Sans', sans-serif; */
1967
- font-size: 13px;
1968
- font-weight: bold;
1969
- }
1970
-
1971
- .input-notification {
1972
- display: flex;
1973
-
1974
- & > img {
1975
- width: 16px;
1976
- height: 16px;
1977
- margin-top: 1.5px;
1978
- margin-right: 8px;
1979
- }
1980
- }
1981
-
1982
- .tag-list {
1983
- }
1984
- }
1985
-
1986
- .warning {
1987
- margin-top: 16px;
1988
- }
1989
-
1990
- .submit-btn {
1991
- width: 100%;
1992
- }
1993
-
1994
- .switch-label {
1995
- display: flex;
1996
- align-items: center;
1997
- }
1998
-
1999
- .swich-input-group {
2000
- padding: 12px 16px;
2001
- border-radius: 8px;
2002
- background: ${theme.colors.neutral50};
2003
-
2004
- &.askdoctor-switch {
2005
- background: ${theme.colors.primary50};
2006
- &.mb-color {
2007
- background: ${theme.mbColors.tonePink};
2008
- }
2009
- }
2010
-
2011
- .mantine-Switch-labelWrapper {
2012
- flex-grow: 1;
2013
- }
2014
- .mantine-Checkbox-body {
2015
- display: flex;
2016
- width: 100%;
2017
- align-items: center;
2018
- justify-content: space-between;
2019
- }
2020
- .mantine-Switch-track {
2021
- margin-bottom: 0;
2022
- }
2023
- .label-txt {
2024
- font-weight: normal;
2025
- font-size: 14px;
2026
- color: ${theme.colors.gray800};
2027
- margin-left: 10px;
2028
- }
2029
- }
2030
- `;
2031
- const StyledIsQuestion = styled.div `
2032
- display: flex;
2033
- width: 100%;
2034
- align-items: center;
2035
- justify-content: space-between;
2036
- padding: 12px 16px;
2037
- border-radius: 8px;
2038
- background: ${theme.colors.primary50};
2039
-
2040
- &[data-is-marry-baby='true'] {
2041
- background: ${theme.mbColors.tonePink};
2042
- }
2043
- .switch-label {
2044
- display: flex;
2045
- align-items: center;
2046
- gap: 12px;
2047
- }
2048
- margin-bottom: 12px;
2049
- `;
2050
- const StyledError = styled.div `
2051
- margin-bottom: 12px;
2052
- color: ${theme.colors.red700};
2053
- svg {
2054
- margin-right: 5px;
2055
- }
2056
- svg,
2057
- span {
2058
- vertical-align: middle;
2059
- }
2060
- `;
2061
-
2062
- var img$u = "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='17' fill='none'%3e%3cpath fill='%232D87F3' d='M8 14.5a6 6 0 1 0 0-12 6 6 0 0 0 0 12'/%3e%3cpath stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M8 5.5v3M8 11.5h.007'/%3e%3c/svg%3e";
2063
- var IconAlertCirclePrimary = img$u;
2064
-
2065
- var img$t = "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='17' fill='none'%3e%3cpath fill='%23FE921D' d='M8 14.5a6 6 0 1 0 0-12 6 6 0 0 0 0 12'/%3e%3cpath stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M8 5.5v3M8 11.5h.007'/%3e%3c/svg%3e";
2066
- var IconAlertCircleWarning = img$t;
2067
-
2068
1050
  const EncodeUrlRegexMap = {
2069
1051
  edit: /<mocka ([^>]*)data-url="true"[^<>]*>(.*?)<\/mocka>/gim,
2070
1052
  url: /((?:=")|(?:data-url="true">)|)(https?:\/\/(www\.)?(?:\([-A-Z0-9+&@#\/%=~_|$?!:,.]*\)|[-A-Z0-9+&@#\/%=~_|$?!:,.])*(?:\([-A-Z0-9+&@#\/%=~_|$?!:,.]*\)|[A-Z0-9+&@#\/%=~_|$]))/gim,
@@ -2792,8 +1774,8 @@ const StyledEditorContainer = styled.div `
2792
1774
  }
2793
1775
  `;
2794
1776
 
2795
- var img$s = "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none'%3e%3cpath stroke='%23737373' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.75' d='M9.545 16H7.091c-.537 0-1.07-.104-1.566-.305a4.1 4.1 0 0 1-1.327-.867A3.96 3.96 0 0 1 3 12c0-1.06.431-2.078 1.198-2.828A4.14 4.14 0 0 1 7.091 8h2.454m4.38 0h2.984c.537 0 1.07.103 1.566.304a4.1 4.1 0 0 1 1.327.868c.38.371.681.812.887 1.297a3.92 3.92 0 0 1 0 3.062 4 4 0 0 1-.887 1.297c-.38.372-.831.667-1.327.867a4.2 4.2 0 0 1-1.566.305h-2.983M9 12h6'/%3e%3c/svg%3e";
2796
- var IconLink = img$s;
1777
+ var img$j = "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none'%3e%3cpath stroke='%23737373' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.75' d='M9.545 16H7.091c-.537 0-1.07-.104-1.566-.305a4.1 4.1 0 0 1-1.327-.867A3.96 3.96 0 0 1 3 12c0-1.06.431-2.078 1.198-2.828A4.14 4.14 0 0 1 7.091 8h2.454m4.38 0h2.984c.537 0 1.07.103 1.566.304a4.1 4.1 0 0 1 1.327.868c.38.371.681.812.887 1.297a3.92 3.92 0 0 1 0 3.062 4 4 0 0 1-.887 1.297c-.38.372-.831.667-1.327.867a4.2 4.2 0 0 1-1.566.305h-2.983M9 12h6'/%3e%3c/svg%3e";
1778
+ var IconLink = img$j;
2797
1779
 
2798
1780
  // import 'react-quill/dist/quill.snow.css'
2799
1781
  let ReactQuill = null;
@@ -2992,7 +1974,7 @@ function getSearchName(root) {
2992
1974
  }
2993
1975
  return res;
2994
1976
  }
2995
- const inputModify$1 = (value, opts) => {
1977
+ const inputModify = (value, opts) => {
2996
1978
  var _a;
2997
1979
  const { formatUrl, bannedWords = [] } = opts || {};
2998
1980
  const removedFormat = fixMalformedMention(removeFontFormat(value));
@@ -3084,7 +2066,7 @@ const RichTextEditor = ({ html, onChange, className, style, onImagePickerClick,
3084
2066
  fetchPreviewDataRef.current = fetchPreviewData;
3085
2067
  const debounceInputModify = useCallback(debounce((v) => {
3086
2068
  if (v) {
3087
- const processedInput = inputModify$1(v, {
2069
+ const processedInput = inputModify(v, {
3088
2070
  bannedWords: bannedWordsRef.current,
3089
2071
  formatUrl: true,
3090
2072
  });
@@ -3414,645 +2396,85 @@ const LinkToolInputPopover = ({ onAddUrl, setShow }) => {
3414
2396
  }, isDisabled: !isValid }, t('insert')))));
3415
2397
  };
3416
2398
 
3417
- var img$r = "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='24' height='25' fill='none'%3e%3cpath fill='%23262626' d='M12 22.984c5.523 0 10-4.477 10-10s-4.477-10-10-10-10 4.478-10 10 4.477 10 10 10'/%3e%3cpath stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m14.828 10.156-5.657 5.657M9.172 10.156l5.657 5.657'/%3e%3c/svg%3e";
3418
- var IconCloseCircle = img$r;
2399
+ var img$i = "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='24' height='25' fill='none'%3e%3cpath fill='%23262626' d='M12 22.984c5.523 0 10-4.477 10-10s-4.477-10-10-10-10 4.478-10 10 4.477 10 10 10'/%3e%3cpath stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m14.828 10.156-5.657 5.657M9.172 10.156l5.657 5.657'/%3e%3c/svg%3e";
2400
+ var IconCloseCircle = img$i;
3419
2401
 
3420
- const CreatePostDescription = ({ className, style, bannedWords = [], value, onChange, onPreviewUrlChange, onInvalidUrlsChange, onImageFilesChange, imageFiles: imageFilesProp, isReplying, }) => {
3421
- const { t } = useTranslations();
3422
- const [previewUrl, setPreviewUrl] = useState(null);
3423
- const imagePicker = useRef(null);
3424
- const { onSelectImages, onRemoveImage, imageSrcs,
3425
- // imageFiles,
3426
- } = useImagePicker(imageFilesProp, onImageFilesChange);
3427
- useEffect(() => {
3428
- if (onPreviewUrlChange) {
3429
- if (previewUrl === null || previewUrl === void 0 ? void 0 : previewUrl.url)
3430
- onPreviewUrlChange({
3431
- title: previewUrl.title || '',
3432
- url: previewUrl.url || '',
3433
- image: previewUrl.image || '',
3434
- description: previewUrl.description || '',
3435
- });
3436
- else
3437
- onPreviewUrlChange(null);
3438
- }
3439
- }, [previewUrl]);
3440
- return (React__default.createElement(StyledCreatePostDescription, { className: className, style: style },
3441
- React__default.createElement(Text, { size: "p4", className: "description-label" }, t('createPost.popup.description')),
3442
- React__default.createElement("div", { className: `textarea-control` },
3443
- React__default.createElement("div", { className: "textarea-wrapper" },
3444
- React__default.createElement(RichTextEditor, { html: value || '', onChange: onChange, bannedWords: bannedWords, onImagePickerClick: () => { var _a; return (_a = imagePicker.current) === null || _a === void 0 ? void 0 : _a.click(); }, onPreviewUrlChange: setPreviewUrl, onInvalidUrlsChange: onInvalidUrlsChange, isReplying: isReplying }))),
3445
- React__default.createElement(Text, { size: "p4", className: "count-string" },
3446
- t('character'),
3447
- ": ",
3448
- innertext(value || '').length),
3449
- (!imageSrcs || imageSrcs.length === 0) && previewUrl && (React__default.createElement("div", { className: "link-preview-wrapper" }, previewUrl.isFetching ? (React__default.createElement(Loading$1, null)) : (React__default.createElement(React__default.Fragment, null,
3450
- React__default.createElement(CardLink, { title: previewUrl.title, url: previewUrl.url || '#', image: previewUrl.image, noRefetch: true }),
3451
- React__default.createElement("img", { src: IconCloseCircle, className: "icon-close", onClick: () => setPreviewUrl(null), loading: "lazy" }))))),
3452
- React__default.createElement("input", { ref: imagePicker, type: "file", accept: "image/png, image/gif, image/jpeg", multiple: true, style: { display: 'none' }, onChange: onSelectImages }),
3453
- imageSrcs.length > MAX_IMAGE_UPLOADS ? (React__default.createElement("div", { className: "input-notification" },
3454
- React__default.createElement("img", { src: IconAlertCircleWarning, loading: "lazy" }),
3455
- React__default.createElement(Text, { size: "p4", color: theme.colors.alertWarning }, t(`createPost.popup.warningImage`)))) : null,
3456
- imageSrcs.length > 0 && (React__default.createElement("div", { className: "image-gallery" }, imageSrcs.map((src, i) => (React__default.createElement("div", { key: i, className: "image-item" },
3457
- React__default.createElement("img", { src: src, loading: "lazy" }),
3458
- React__default.createElement("img", { className: "close-btn", src: IconCloseCircle, onClick: () => onRemoveImage(i), loading: "lazy" }))))))));
3459
- };
2402
+ const StyledPopupDanger = styled.div `
2403
+ [data-type='confirm'] {
2404
+ width: min(360px, 100%);
2405
+ height: auto;
2406
+ &[data-open='false'] {
2407
+ top: calc(-100% - 500px);
2408
+ }
2409
+ }
2410
+ z-index: 600;
3460
2411
 
3461
- const StyledCreatePostTitle = styled.div `
3462
- input:focus,
3463
- textarea:focus,
3464
- [contenteditable='true'] {
3465
- outline: none;
2412
+ .header {
2413
+ display: none !important;
3466
2414
  }
3467
2415
 
3468
- .title-input {
3469
- overflow: hidden;
2416
+ .confirm-dialog {
2417
+ position: relative;
2418
+ overflow: auto;
3470
2419
  width: 100%;
3471
- padding: 12px 16px;
3472
- border: solid 1px #d9d9d9;
2420
+ padding-top: 44px;
2421
+ background: #fff;
3473
2422
  border-radius: ${theme.borderRadius};
3474
- font-size: 16px;
3475
- line-height: 1.2;
3476
- white-space: nowrap;
3477
- :focus {
3478
- border-color: ${theme.colors.primaryBase};
3479
- box-shadow: 0px 0px 2px 2px ${theme.colors.primary200};
3480
- }
3481
- br {
3482
- display: none;
3483
- }
3484
- * {
3485
- display: inline;
3486
- white-space: nowrap;
3487
- }
3488
- mocka {
3489
- padding: 2px 6px;
3490
- border-radius: 1rem;
3491
- &[data-error='true'] {
3492
- background-color: #ffeeee;
3493
- color: red;
3494
- text-decoration: underline;
3495
- font-style: bold;
3496
- }
3497
- }
3498
- ol,
3499
- ul {
3500
- padding-left: 1rem;
3501
- }
3502
- }
3503
-
3504
- label {
3505
- display: block;
3506
- margin-bottom: 5px;
3507
- color: ${theme.colors.gray600};
3508
- font-size: 13px;
3509
- font-weight: bold;
3510
- }
3511
2423
 
3512
- .count-string {
3513
- margin-top: 5px;
3514
- color: ${theme.colors.gray500};
3515
- font-size: 11px;
3516
- text-align: right;
3517
- }
3518
- `;
2424
+ .confirm-content {
2425
+ display: flex;
2426
+ flex-direction: column;
2427
+ align-items: center;
2428
+ padding: 0 16px 16px;
2429
+ text-align: center;
3519
2430
 
3520
- const TITLE_LIMIT = 120;
3521
- const inputModify = (value, opts) => {
3522
- if (!opts)
3523
- return value;
3524
- const { limit, bannedWords = [] } = opts;
3525
- const shorten = typeof limit === 'number' && limit >= 0 ? value.substring(0, limit) : value;
3526
- const processedValue = highlightBadWords(shorten, bannedWords);
3527
- return processedValue;
3528
- };
3529
- const CreatePostTitle = ({ className, style, bannedWords = [], value, onChange, }) => {
3530
- var _a;
3531
- const { t } = useTranslations();
3532
- const [titleValue, setTitleValue] = useState('');
3533
- const titleRef = useRef(null);
3534
- useEffect(() => {
3535
- if (titleRef.current) {
3536
- const pasteHandler = (e) => {
3537
- var _a;
3538
- e.preventDefault();
3539
- const text = (_a = e.clipboardData) === null || _a === void 0 ? void 0 : _a.getData('text/plain');
3540
- document.execCommand('insertHTML', false, text);
3541
- };
3542
- const contentDiv = titleRef.current;
3543
- contentDiv.addEventListener('paste', pasteHandler, {
3544
- passive: true,
3545
- });
3546
- return () => contentDiv.removeEventListener('paste', pasteHandler);
3547
- }
3548
- }, [titleRef]);
3549
- const bannedString = (bannedWords === null || bannedWords === void 0 ? void 0 : bannedWords.join(',')) || '';
3550
- useEffect(() => {
3551
- var _a;
3552
- if (bannedString) {
3553
- const titleText = (_a = titleRef.current) === null || _a === void 0 ? void 0 : _a.innerText;
3554
- if (titleText) {
3555
- const titleValueWithBanned = highlightBadWords(titleText, bannedWords);
3556
- if (titleValueWithBanned !== titleText) {
3557
- onChange && onChange(titleValueWithBanned);
3558
- setTitleValue(titleValueWithBanned);
3559
- }
3560
- }
3561
- }
3562
- }, [bannedString]);
3563
- const debounceInputModify = useCallback(debounce(() => {
3564
- if (titleRef.current) {
3565
- const shortenString = inputModify(titleRef.current.innerText, {
3566
- limit: TITLE_LIMIT,
3567
- bannedWords,
3568
- });
3569
- onChange && onChange(shortenString);
3570
- setTitleValue(shortenString);
3571
- }
3572
- }, 300), []);
3573
- useEffect(() => {
3574
- setTimeout(() => {
3575
- var _a;
3576
- (_a = titleRef.current) === null || _a === void 0 ? void 0 : _a.focus();
3577
- }, 500);
3578
- }, []);
3579
- return (React__default.createElement(StyledCreatePostTitle, { className: className, style: style },
3580
- React__default.createElement(Input, { name: "title", value: value || titleValue, size: "md", label: t('createPost.title'), CustomInput: React__default.createElement(ContentEditable, { innerRef: titleRef, html: value || titleValue, onChange: () => {
3581
- if (titleRef.current &&
3582
- titleRef.current.innerText !== (value || titleValue)) {
3583
- const initialValue = inputModify(titleRef.current.innerText, {
3584
- bannedWords,
3585
- });
3586
- onChange && onChange(initialValue);
3587
- setTitleValue(initialValue);
3588
- debounceInputModify();
3589
- }
3590
- }, className: "title-input" }) }),
3591
- React__default.createElement(Text, { size: "p4", className: "count-string" }, t('createPost.popup.wordCount', {
3592
- count: ((_a = titleRef.current) === null || _a === void 0 ? void 0 : _a.innerText.length) || 0,
3593
- max: TITLE_LIMIT,
3594
- }))));
3595
- };
2431
+ .title {
2432
+ margin-bottom: 8px;
2433
+ font-size: 24px;
2434
+ line-height: 32px;
2435
+ word-break: break-word;
2436
+ overflow-wrap: break-word;
2437
+ }
3596
2438
 
3597
- const StyledTopicSelectList = styled.div `
3598
- display: flex;
3599
- width: 100%;
3600
- flex-wrap: wrap;
3601
- margin-top: 1rem;
2439
+ .desc {
2440
+ margin-bottom: 24px;
2441
+ color: ${theme.colors.gray500};
2442
+ font-size: 18px;
2443
+ line-height: 24px;
2444
+ text-align: center;
2445
+ word-break: break-word;
2446
+ overflow-wrap: break-word;
2447
+ }
3602
2448
 
3603
- .tag-item {
3604
- min-height: 32px;
3605
- padding: 5px 12px;
3606
- border: 1px solid ${theme.colors.neutral100};
3607
- margin-right: 1rem;
3608
- margin-bottom: 8px;
3609
- border-radius: 1rem;
3610
- color: ${theme.colors.gray800};
3611
- cursor: pointer;
3612
- font-size: 13px;
3613
- line-height: 22px;
3614
- transition: all 0.2s;
2449
+ .btn-group {
2450
+ display: flex;
2451
+ flex-wrap: wrap;
2452
+ align-items: center;
2453
+ justify-content: center;
3615
2454
 
3616
- &.--active {
3617
- border-color: ${theme.colors.primary50};
3618
- background: ${theme.colors.primary50};
3619
- color: ${theme.colors.primaryBase};
3620
- }
3621
- &[data-disabled='true'] {
3622
- background: ${theme.colors.gray100};
3623
- color: ${theme.colors.gray800};
2455
+ button {
2456
+ margin: 0 4px 0.5rem;
2457
+ }
2458
+ }
3624
2459
  }
3625
2460
  }
3626
- .topic-spinner {
3627
- margin-right: auto;
3628
- margin-left: auto;
3629
- & > button {
3630
- width: 24px;
3631
- height: 24px;
2461
+ .thumbnail-container {
2462
+ width: 80px;
2463
+ height: 80px;
2464
+ margin-bottom: 32px;
2465
+ .thumbnail {
2466
+ width: 100%;
2467
+ height: 100%;
3632
2468
  }
3633
- }
3634
- &[data-is-marrybaby='true'] {
3635
- .tag-item {
3636
- border-color: transparent;
3637
- background: #f3f3f3;
3638
- color: #3e3f58;
3639
- &.--active {
3640
- border-color: #b6cdff;
3641
- background: #e0e9fb;
3642
- color: #3e3f58;
3643
- }
3644
- }
3645
- }
3646
- `;
3647
-
3648
- const TopicSelectList = ({ className, style, topics: topicsProp, communityId, onChange, isLoading, disabled, forceTopics, selectedTopics: selectedTopicsProp, noFetch, dataEventCategory, dataEventAction, dataEventLabel, }) => {
3649
- const { data: { locale, env: { isMarryBaby }, }, } = useContext(TogetherComponentGlobalContext);
3650
- const [topics, setTopics] = useState(topicsProp ? [...topicsProp] : []);
3651
- const [selectedTopics, setSelectedTopics] = useState(selectedTopicsProp ? [...selectedTopicsProp] : []);
3652
- const [isLoadingTopics, setIsLoadingTopics] = useState(false);
3653
- const topicsPropRef = useRef(topicsProp);
3654
- topicsPropRef.current = topicsProp;
3655
- useEffect(() => {
3656
- var _a;
3657
- if (communityId && !noFetch && !((_a = topicsPropRef.current) === null || _a === void 0 ? void 0 : _a.length)) {
3658
- setTopics([]);
3659
- setIsLoadingTopics(true);
3660
- (() => __awaiter(void 0, void 0, void 0, function* () {
3661
- var _b;
3662
- try {
3663
- const res = yield callApi(getApiPath(PATHS.TOPIC.LIST, {
3664
- communityId: communityId,
3665
- _locale: locale,
3666
- }), 'GET');
3667
- const topicRes = (_b = res === null || res === void 0 ? void 0 : res.data) === null || _b === void 0 ? void 0 : _b.topics;
3668
- if (Array.isArray(topicRes)) {
3669
- setTopics(() => (topicRes === null || topicRes === void 0 ? void 0 : topicRes.map(formatTopic).sort((t1, t2) => (t1.order || 0) - (t2.order || 0))) || []);
3670
- }
3671
- }
3672
- catch (e) {
3673
- console.log(e);
3674
- setIsLoadingTopics(false);
3675
- }
3676
- setIsLoadingTopics(false);
3677
- }))();
3678
- }
3679
- }, [communityId, noFetch]);
3680
- const topicsPropString = topicsProp === null || topicsProp === void 0 ? void 0 : topicsProp.map((t) => t.id).join('-');
3681
- const topicsStateString = topics === null || topics === void 0 ? void 0 : topics.map((t) => t.id).join('-');
3682
- const forceTopicsPropString = forceTopics === null || forceTopics === void 0 ? void 0 : forceTopics.map((t) => t.id).join('-');
3683
- useEffect(() => {
3684
- if (topicsProp &&
3685
- typeof topicsPropString !== 'undefined' &&
3686
- topicsPropString !== topicsStateString) {
3687
- setTopics(topicsProp);
3688
- }
3689
- }, [topicsProp, topicsPropString, topicsStateString]);
3690
- const topicsWithoutForced = useMemo(() => topics.filter((t) => !(forceTopics === null || forceTopics === void 0 ? void 0 : forceTopics.some((ft) => (ft.id && ft.id === t.id) ||
3691
- (ft.mappedCategoryId &&
3692
- ft.mappedCategoryId === t.mappedCategoryId)))), [topicsStateString, forceTopicsPropString]);
3693
- return (React__default.createElement(StyledTopicSelectList, { "data-is-marrybaby": isMarryBaby, className: className, style: style },
3694
- forceTopics.map((topic) => (React__default.createElement(TopicItem, { key: `${topic.id}-${topic.mappedCategoryId}`, topic: topic, disabled: true, selected: true, dataEventAction: dataEventAction, dataEventCategory: dataEventCategory, dataEventLabel: dataEventLabel }))),
3695
- topicsWithoutForced.map((topic) => (React__default.createElement(TopicItem, { key: `${topic.id}-${topic.mappedCategoryId}`, topic: topic, disabled: disabled, selected: (selectedTopicsProp || selectedTopics).some((t) => (t.id && t.id === topic.id) ||
3696
- (t.mappedCategoryId &&
3697
- t.mappedCategoryId === topic.mappedCategoryId)), onClick: () => {
3698
- const _selected = selectedTopicsProp || selectedTopics;
3699
- const foundIndex = _selected.findIndex((_selected) => (_selected.id && _selected.id === topic.id) ||
3700
- (_selected.mappedCategoryId &&
3701
- _selected.mappedCategoryId === topic.mappedCategoryId));
3702
- if (foundIndex !== -1) {
3703
- _selected.splice(foundIndex, 1);
3704
- }
3705
- else {
3706
- _selected.push(topic);
3707
- }
3708
- if (onChange && selectedTopicsProp) {
3709
- onChange(_selected.slice());
3710
- }
3711
- else {
3712
- onChange && onChange(_selected.slice());
3713
- setSelectedTopics(_selected.slice());
3714
- }
3715
- }, dataEventAction: dataEventAction, dataEventCategory: dataEventCategory, dataEventLabel: dataEventLabel }))),
3716
- (isLoading || isLoadingTopics) && React__default.createElement(Loading$1, { className: "topic-spinner" })));
3717
- };
3718
- const TopicItem = (_a) => {
3719
- var { topic, disabled, selected, onClick } = _a, rest = __rest(_a, ["topic", "disabled", "selected", "onClick"]);
3720
- return (React__default.createElement("div", Object.assign({ className: 'tag-item' + (selected ? ' --active' : ''), "data-disabled": disabled, onClick: !disabled ? onClick : undefined }, rest), topic.name));
3721
- };
3722
-
3723
- const CreateNewPostContent = ({ className, style, onPostCreatedEdited, onClose, communities = [], forceSelectCommunity, forceSelectTopics, articleId, optionalTopic, editPostData, defaultCommunity, defaultTopics, noFetchTopic, hideTopicList, selectAskDoctor, showAskDoctorOptions, currentPageUrl, }) => {
3724
- const isInEditMode = !!(editPostData === null || editPostData === void 0 ? void 0 : editPostData.id);
3725
- const { data: { locale, env: { isMarryBaby }, }, action: { pushNotifications, sanitizeFunction }, } = useContext(TogetherComponentGlobalContext);
3726
- const { t } = useTranslations();
3727
- const [isAnonymous, setIsAnonymous] = useState(false);
3728
- const [isAskDoctor, setIsAskDoctor] = useState(selectAskDoctor);
3729
- const [showAskDoctorRequired, setShowAskDoctorRequired] = useState(false);
3730
- const [specialCharErr, setspecialCharErr] = useState(false);
3731
- const [isSubmitting, setIsSubmitting] = useState(false);
3732
- const [titleValue, setTitleValue] = useState('');
3733
- const [descriptionValue, setDescriptionValue] = useState('');
3734
- const [communityValue, setCommunityValue] = useState(forceSelectCommunity
3735
- ? {
3736
- label: forceSelectCommunity.name,
3737
- value: `${forceSelectCommunity.id || ''}-${forceSelectCommunity.mappedCategoryId || ''}`,
3738
- }
3739
- : {
3740
- label: t('community.choose'),
3741
- value: '',
3742
- });
3743
- const [selectedTopics, setSelectedTopics] = useState([...forceSelectTopics] || []);
3744
- const [imageFiles, setImageFiles] = useState([]);
3745
- const [bannedWords, setBannedWords] = useState([]);
3746
- const currentCommunity = forceSelectCommunity ||
3747
- communities.find((c) => `${c.id || ''}-${c.mappedCategoryId || ''}` === communityValue.value);
3748
- const communitiesList = forceSelectCommunity
3749
- ? [forceSelectCommunity]
3750
- : communities
3751
- .filter((c) => c.isActive)
3752
- .sort((a, b) => {
3753
- if (a.name > b.name)
3754
- return 1;
3755
- if (a.name < b.name)
3756
- return -1;
3757
- return 0;
3758
- });
3759
- const [previewUrl, setPreviewUrl] = useState(null);
3760
- const [invalidUrls, setInvalidUrls] = useState([]);
3761
- const isReadyToSubmit = titleValue &&
3762
- !specialCharErr &&
3763
- innertext(descriptionValue) &&
3764
- (optionalTopic || (!optionalTopic && selectedTopics.length > 0)) &&
3765
- currentCommunity &&
3766
- (!imageFiles || imageFiles.length <= MAX_IMAGE_UPLOADS) &&
3767
- !(invalidUrls === null || invalidUrls === void 0 ? void 0 : invalidUrls.length) &&
3768
- !isSubmitting;
3769
- // HANDLE etra action when OPEN AND CLOSE
3770
- useEffect(() => {
3771
- if (editPostData) {
3772
- const post = editPostData;
3773
- setTitleValue(post.title || '');
3774
- setDescriptionValue(decodeMention(decodePostUrl(post.description || '', 'edit'), post.mentions));
3775
- setCommunityValue({
3776
- label: post.community.name,
3777
- value: `${post.community.id || ''}-${post.community.mappedCategoryId || ''}`,
3778
- });
3779
- setSelectedTopics(post.topics || []);
3780
- setImageFiles(post.photos || []);
3781
- setIsAnonymous(!!post.isAnonymous || false);
3782
- setIsAskDoctor(!!post.isAskDoctor || false);
3783
- }
3784
- else {
3785
- if (defaultCommunity) {
3786
- setCommunityValue({
3787
- label: defaultCommunity.name,
3788
- value: `${defaultCommunity.id || ''}-${defaultCommunity.mappedCategoryId || ''}`,
3789
- });
3790
- }
3791
- if (defaultTopics) {
3792
- setSelectedTopics(defaultTopics);
3793
- }
3794
- }
3795
- }, []);
3796
- useEffect(() => {
3797
- setspecialCharErr(titleValue !== '' && !/[a-zA-Z]/.test(titleValue));
3798
- }, [titleValue]);
3799
- const onCreateEditSuccess = (res) => {
3800
- if (onPostCreatedEdited) {
3801
- onPostCreatedEdited(formatPost(res), isInEditMode);
3802
- }
3803
- onClose && onClose();
3804
- };
3805
- const submitPost = () => __awaiter(void 0, void 0, void 0, function* () {
3806
- var _a, _b, _c, _d, _e, _f, _g, _h, _j;
3807
- if (showAskDoctorOptions && typeof isAskDoctor === 'undefined') {
3808
- setShowAskDoctorRequired(true);
3809
- return false;
3810
- }
3811
- const bodyFormData = yield getPostFormData({
3812
- title: titleValue,
3813
- description: descriptionValue,
3814
- communityId: String((currentCommunity === null || currentCommunity === void 0 ? void 0 : currentCommunity.id) || ''),
3815
- imageFiles,
3816
- previewUrl,
3817
- topicIds: selectedTopics === null || selectedTopics === void 0 ? void 0 : selectedTopics.map((topic) => String(topic.id || '')).filter(Boolean),
3818
- locale,
3819
- sanitizeFunction,
3820
- categoryCommunityId: String((currentCommunity === null || currentCommunity === void 0 ? void 0 : currentCommunity.mappedCategoryId) || ''),
3821
- categoryTopicIds: selectedTopics === null || selectedTopics === void 0 ? void 0 : selectedTopics.map((topic) => String(topic.mappedCategoryId || '')).filter(Boolean),
3822
- isAnonymous: isAnonymous ? 1 : 0,
3823
- isAskDoctor: isAskDoctor ? 1 : 0,
3824
- });
3825
- if (articleId) {
3826
- bodyFormData.append('article_id', articleId);
3827
- }
3828
- let res;
3829
- if (isInEditMode) {
3830
- if (editPostData === null || editPostData === void 0 ? void 0 : editPostData.id) {
3831
- res = yield editPost({
3832
- id: editPostData.id,
3833
- formData: bodyFormData,
3834
- locale,
3835
- });
3836
- }
3837
- }
3838
- else {
3839
- res = yield createPost({
3840
- formData: bodyFormData,
3841
- locale,
3842
- isArticleComment: !(currentCommunity === null || currentCommunity === void 0 ? void 0 : currentCommunity.id) && !!(currentCommunity === null || currentCommunity === void 0 ? void 0 : currentCommunity.mappedCategoryId),
3843
- });
3844
- }
3845
- const resData = res === null || res === void 0 ? void 0 : res.data;
3846
- if ((resData === null || resData === void 0 ? void 0 : resData.id) && !((_b = (_a = res === null || res === void 0 ? void 0 : res.messages) === null || _a === void 0 ? void 0 : _a.moderation) === null || _b === void 0 ? void 0 : _b.type)) {
3847
- pushNotifications({
3848
- message: t('createPost.popup.success'),
3849
- type: 'success',
3850
- });
3851
- onCreateEditSuccess(resData);
3852
- }
3853
- else {
3854
- if (((_d = (_c = res === null || res === void 0 ? void 0 : res.messages) === null || _c === void 0 ? void 0 : _c.moderation) === null || _d === void 0 ? void 0 : _d.type) === 'banned') {
3855
- pushNotifications({
3856
- title: t('notification.post.blocked.title'),
3857
- message: t('notification.post.blocked.message'),
3858
- type: 'danger',
3859
- });
3860
- if (res.messages.moderation.words) {
3861
- setBannedWords(res.messages.moderation.words);
3862
- }
3863
- }
3864
- else if (((_f = (_e = res === null || res === void 0 ? void 0 : res.messages) === null || _e === void 0 ? void 0 : _e.moderation) === null || _f === void 0 ? void 0 : _f.type) === 'suspect') {
3865
- pushNotifications({
3866
- title: t('notification.post.suspect.title'),
3867
- message: t('notification.post.suspect.message'),
3868
- type: 'warning',
3869
- });
3870
- onClose && onClose();
3871
- }
3872
- else if ((_h = (_g = res === null || res === void 0 ? void 0 : res.messages) === null || _g === void 0 ? void 0 : _g.find) === null || _h === void 0 ? void 0 : _h.call(_g, (m) => { var _a; return !!((_a = m === null || m === void 0 ? void 0 : m.includes) === null || _a === void 0 ? void 0 : _a.call(m, 'suspend')); })) {
3873
- pushNotifications({
3874
- message: t('notification.suspend.message'),
3875
- type: 'danger',
3876
- });
3877
- onClose && onClose();
3878
- }
3879
- else {
3880
- pushNotifications({
3881
- message: ((_j = res === null || res === void 0 ? void 0 : res.messages) === null || _j === void 0 ? void 0 : _j[0]) || t('notification.failure'),
3882
- type: 'danger',
3883
- });
3884
- }
3885
- }
3886
- });
3887
- return (React__default.createElement(StyledCreateNewPost, { className: className, style: style },
3888
- React__default.createElement("div", { className: "input-group-container" },
3889
- React__default.createElement(CreatePostTitle, { className: "input-group", bannedWords: bannedWords, value: titleValue, onChange: setTitleValue }),
3890
- specialCharErr && (React__default.createElement(StyledError, null,
3891
- React__default.createElement(Info, { isSolid: true, color: theme.colors.red700, size: 14 }),
3892
- React__default.createElement(Text, { size: "p3", as: "span", color: theme.colors.red700 }, t('createPost.popup.specialCharErr')))),
3893
- React__default.createElement(CreatePostDescription, { className: "input-group", bannedWords: bannedWords, value: descriptionValue, onChange: setDescriptionValue, onPreviewUrlChange: setPreviewUrl, onInvalidUrlsChange: setInvalidUrls, onImageFilesChange: setImageFiles, imageFiles: imageFiles }),
3894
- showAskDoctorOptions && (React__default.createElement(StyledIsQuestion, { "data-is-marry-baby": isMarryBaby },
3895
- React__default.createElement("div", { className: "switch-label" },
3896
- React__default.createElement(Ask, { isMarryBaby: isMarryBaby, size: isMarryBaby ? 32 : 24, color: theme.colors.primaryBase, className: "label-icon" }),
3897
- React__default.createElement("span", { className: "label-txt" }, t('createPost.askDoctor'))),
3898
- React__default.createElement(BtnChoice, { value: isAskDoctor, choices: [
3899
- {
3900
- label: t('createPost.askDoctorChoice.yes'),
3901
- value: true,
3902
- dataEventCategory: 'Together',
3903
- dataEventAction: 'Write Post Click - Ask Doctor',
3904
- dataEventLabel: currentPageUrl,
3905
- },
3906
- {
3907
- label: t('createPost.askDoctorChoice.no'),
3908
- value: false,
3909
- },
3910
- ], onChange: (v) => {
3911
- if (typeof v === 'boolean') {
3912
- setShowAskDoctorRequired(false);
3913
- setIsAskDoctor(v);
3914
- }
3915
- } }))),
3916
- showAskDoctorRequired && (React__default.createElement(StyledError, null,
3917
- React__default.createElement(Info, { isSolid: true, color: theme.colors.red700, size: 14 }),
3918
- React__default.createElement(Text, { size: "p3", as: "span", color: theme.colors.red700 }, t('createPost.message.askDoctorRequire')))),
3919
- React__default.createElement("div", { className: "input-group" },
3920
- React__default.createElement(Text, { size: "p4", className: "input-group-label" }, t('admin.community')),
3921
- React__default.createElement(Dropdown, { options: (communitiesList === null || communitiesList === void 0 ? void 0 : communitiesList.map((c) => ({
3922
- label: c.name,
3923
- value: `${c.id || ''}-${c.mappedCategoryId || ''}`,
3924
- }))) || [], id: "community-picker", placeholder: t('community.choose'), value: communityValue, dropdownLabelTrackingAttributes: {
3925
- 'data-event-category': 'Together',
3926
- 'data-event-action': 'Write Post Click - Choose Community/Topic',
3927
- 'data-event-label': currentPageUrl,
3928
- }, onChange: (option) => {
3929
- setCommunityValue({
3930
- label: option.label,
3931
- value: String(option.value),
3932
- });
3933
- setSelectedTopics([]);
3934
- }, disabled: !!forceSelectCommunity }),
3935
- React__default.createElement(Text, { size: "sm", className: "warning", color: theme.colors.gray400 },
3936
- "* ",
3937
- t('commentPopup.warning.newPost'))),
3938
- !hideTopicList && (React__default.createElement("div", { className: "input-group" },
3939
- React__default.createElement(Text, { size: "p4", className: "input-group-label" }, t('tab.topic')),
3940
- React__default.createElement("div", { className: "input-notification" },
3941
- React__default.createElement("img", { src: currentCommunity
3942
- ? IconAlertCirclePrimary
3943
- : IconAlertCircleWarning, loading: "lazy" }),
3944
- React__default.createElement(Text, { size: "base", color: theme.colors.gray500 }, t(currentCommunity
3945
- ? 'createPost.popup.primary'
3946
- : 'createPost.popup.warning'))),
3947
- currentCommunity && (React__default.createElement(TopicSelectList, { className: "tag-list", communityId: currentCommunity.id, forceTopics: forceSelectTopics, onChange: setSelectedTopics, selectedTopics: selectedTopics, noFetch: noFetchTopic, dataEventCategory: "Together", dataEventAction: "Write Post Click - Choose Community/Topic", dataEventLabel: currentPageUrl }))))),
3948
- React__default.createElement("div", { className: "form-action" },
3949
- React__default.createElement("div", { className: "input-group" },
3950
- React__default.createElement(Checkbox, { className: "swich-input-group", labelPosition: "left", name: "PostAnonymous", checked: isAnonymous, color: isMarryBaby ? 'pink' : undefined, "data-event-category": "Together", "data-event-action": "Write Post Click - Incognito", "data-event-label": currentPageUrl, label: React__default.createElement("div", { className: "switch-label" },
3951
- React__default.createElement("img", { className: "label-icon", src: CommonGAssets.getAssetPath('anomyous-avatar.svg'), alt: "anomyous avatar", style: { marginRight: '10px', width: '24px' }, loading: "lazy" }),
3952
- React__default.createElement("span", { className: "label-txt" }, t('createPost.postAnonymous'))), value: "Post Anonymous", onChange: (event) => setIsAnonymous(event.currentTarget.checked), styles: {
3953
- body: {
3954
- display: 'flex',
3955
- width: '100%',
3956
- justifyContent: 'space-between',
3957
- alignItems: 'center',
3958
- },
3959
- label: {
3960
- display: 'flex',
3961
- alignItems: 'center',
3962
- },
3963
- } })),
3964
- React__default.createElement("div", { className: "input-group" },
3965
- React__default.createElement(Button$1, { className: "submit-btn pointer-event-child-none", size: "lg", "data-event-category": "Ask Doctor", "data-event-action": "Submit Question", "data-event-label": window.location.href, onClick: () => __awaiter(void 0, void 0, void 0, function* () {
3966
- if (isReadyToSubmit && !isSubmitting) {
3967
- setIsSubmitting(true);
3968
- try {
3969
- yield submitPost();
3970
- }
3971
- catch (e) {
3972
- console.error(e);
3973
- pushNotifications(getDefaultFailNoti(t));
3974
- }
3975
- setIsSubmitting(false);
3976
- }
3977
- }), disabled: !isReadyToSubmit, loading: isSubmitting }, t('createPost.popup.submit'))))));
3978
- };
3979
-
3980
- const StyledPopupDanger = styled.div `
3981
- [data-type='confirm'] {
3982
- width: min(360px, 100%);
3983
- height: auto;
3984
- &[data-open='false'] {
3985
- top: calc(-100% - 500px);
3986
- }
3987
- }
3988
- z-index: 600;
3989
-
3990
- .header {
3991
- display: none !important;
3992
- }
3993
-
3994
- .confirm-dialog {
3995
- position: relative;
3996
- overflow: auto;
3997
- width: 100%;
3998
- padding-top: 44px;
3999
- background: #fff;
4000
- border-radius: ${theme.borderRadius};
4001
-
4002
- .confirm-content {
4003
- display: flex;
4004
- flex-direction: column;
4005
- align-items: center;
4006
- padding: 0 16px 16px;
4007
- text-align: center;
4008
-
4009
- .title {
4010
- margin-bottom: 8px;
4011
- font-size: 24px;
4012
- line-height: 32px;
4013
- word-break: break-word;
4014
- overflow-wrap: break-word;
4015
- }
4016
-
4017
- .desc {
4018
- margin-bottom: 24px;
4019
- color: ${theme.colors.gray500};
4020
- font-size: 18px;
4021
- line-height: 24px;
4022
- text-align: center;
4023
- word-break: break-word;
4024
- overflow-wrap: break-word;
4025
- }
4026
-
4027
- .btn-group {
4028
- display: flex;
4029
- flex-wrap: wrap;
4030
- align-items: center;
4031
- justify-content: center;
4032
-
4033
- button {
4034
- margin: 0 4px 0.5rem;
4035
- }
4036
- }
4037
- }
4038
- }
4039
- .thumbnail-container {
4040
- width: 80px;
4041
- height: 80px;
4042
- margin-bottom: 32px;
4043
- .thumbnail {
4044
- width: 100%;
4045
- height: 100%;
4046
- }
4047
- &.is-icon {
4048
- display: flex;
4049
- align-items: center;
4050
- justify-content: center;
4051
- background: #e0e9fc;
4052
- border-radius: 1rem;
4053
- .thumbnail {
4054
- width: 40px;
4055
- height: 40px;
2469
+ &.is-icon {
2470
+ display: flex;
2471
+ align-items: center;
2472
+ justify-content: center;
2473
+ background: #e0e9fc;
2474
+ border-radius: 1rem;
2475
+ .thumbnail {
2476
+ width: 40px;
2477
+ height: 40px;
4056
2478
  }
4057
2479
  }
4058
2480
  }
@@ -4219,8 +2641,8 @@ const StyledFSBtn = styled.div `
4219
2641
  align-items: center;
4220
2642
  `;
4221
2643
 
4222
- var img$q = "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none'%3e%3cpath stroke='%23262626' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M18 6 6 18M6 6l12 12'/%3e%3c/svg%3e";
4223
- var CloseIcon = img$q;
2644
+ var img$h = "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none'%3e%3cpath stroke='%23262626' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M18 6 6 18M6 6l12 12'/%3e%3c/svg%3e";
2645
+ var CloseIcon = img$h;
4224
2646
 
4225
2647
  const PopupFrame = ({ className, style, closeIcon, heading = '', children, isOpen = false, hasFullscreen = false, onClose = () => null, }) => {
4226
2648
  const [expand, setExpand] = useState(false);
@@ -4488,14 +2910,14 @@ const StyledInputCommentBar = styled.div `
4488
2910
 
4489
2911
  const MainInputTriggerContext = createContext({});
4490
2912
 
4491
- var img$p = "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='17' fill='none'%3e%3ccircle cx='8' cy='8.5' r='6.667' fill='white' stroke='%23404040'/%3e%3cpath stroke='%23404040' stroke-linecap='round' stroke-linejoin='round' d='m10 6.5-4 4M6 6.5l4 4'/%3e%3c/svg%3e";
4492
- var IconCloseCircleLine = img$p;
2913
+ var img$g = "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='17' fill='none'%3e%3ccircle cx='8' cy='8.5' r='6.667' fill='white' stroke='%23404040'/%3e%3cpath stroke='%23404040' stroke-linecap='round' stroke-linejoin='round' d='m10 6.5-4 4M6 6.5l4 4'/%3e%3c/svg%3e";
2914
+ var IconCloseCircleLine = img$g;
4493
2915
 
4494
- var img$o = "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='20' height='21' fill='none'%3e%3cpath stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m7.5 9.734-3.75 3.75 3.75 3.75'/%3e%3cpath stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M16.25 4.734v5.569c0 .843-.33 1.653-.915 2.25a3.1 3.1 0 0 1-2.21.931H3.75'/%3e%3c/svg%3e";
4495
- var IconEnter = img$o;
2916
+ var img$f = "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='20' height='21' fill='none'%3e%3cpath stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m7.5 9.734-3.75 3.75 3.75 3.75'/%3e%3cpath stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M16.25 4.734v5.569c0 .843-.33 1.653-.915 2.25a3.1 3.1 0 0 1-2.21.931H3.75'/%3e%3c/svg%3e";
2917
+ var IconEnter = img$f;
4496
2918
 
4497
- var img$n = "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none'%3e%3cpath stroke='%232D87F3' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.75' d='M10.754 4.854H4.492a1.79 1.79 0 0 0-1.789 1.789v12.524a1.79 1.79 0 0 0 1.79 1.789h12.523a1.79 1.79 0 0 0 1.79-1.79v-6.261'/%3e%3cpath stroke='%232D87F3' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.75' d='M17.463 3.512a1.898 1.898 0 0 1 2.684 2.684l-8.498 8.498-3.579.895.895-3.579z'/%3e%3c/svg%3e";
4498
- var IconTabEditPrimary = img$n;
2919
+ var img$e = "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none'%3e%3cpath stroke='%232D87F3' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.75' d='M10.754 4.854H4.492a1.79 1.79 0 0 0-1.789 1.789v12.524a1.79 1.79 0 0 0 1.79 1.789h12.523a1.79 1.79 0 0 0 1.79-1.79v-6.261'/%3e%3cpath stroke='%232D87F3' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.75' d='M17.463 3.512a1.898 1.898 0 0 1 2.684 2.684l-8.498 8.498-3.579.895.895-3.579z'/%3e%3c/svg%3e";
2920
+ var IconTabEditPrimary = img$e;
4499
2921
 
4500
2922
  const getCommentFormBody = ({ postId, message, photos, link, locale, sanitizeFunction, replyingUserId, replyingUserName, replyingId, }) => __awaiter(void 0, void 0, void 0, function* () {
4501
2923
  const formData = new FormData();
@@ -4883,38 +3305,38 @@ const StyledShare = styled.div `
4883
3305
  }
4884
3306
  `;
4885
3307
 
4886
- var img$m = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgA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fFJn9elCxs+mdb8bpKj2LCV+ZRXOiqP+DMdLAyqDosMgstD6pFa/wjDtU4/wU6bQ/uNazdKwAAAABJRU5ErkJggg==";
3312
+ var IconZalo = img$c;
4891
3313
 
4892
- var img$k = "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none'%3e%3cg fill='%233e3f58'%3e%3cpath d='m19.726 8.537-.632.151zm0 4.65-.632-.151zm-9.097-8.918.146.633zm4.744 0-.146.633zm1.303 11.983a.65.65 0 1 0 .649 1.126zM6.041 7.23a.65.65 0 0 0 1.182.541zm13.053 1.459a9.34 9.34 0 0 1 0 4.348l1.264.303a10.6 10.6 0 0 0 0-4.953l-1.264.303zm-8.32-3.786a9.94 9.94 0 0 1 4.452 0l.291-1.267a11.24 11.24 0 0 0-5.035 0zm4.452 0c1.925.443 3.419 1.913 3.867 3.786l1.264-.303c-.566-2.363-2.445-4.199-4.84-4.75zm2.099 12.476a6.39 6.39 0 0 0 3.033-4.04l-1.264-.303a5.1 5.1 0 0 1-2.418 3.217zM10.482 3.636A6.47 6.47 0 0 0 6.04 7.23l1.182.541a5.17 5.17 0 0 1 3.551-2.868z'/%3e%3cpath d='m3.274 16.187-.632.151zm0-4.65-.632-.151zm13.451 0-.632.151zm0 4.65.632.151zm-4.354 4.268-.146-.633zm-4.744 0-.146.634zm0-13.186.146.633zm4.744 0-.146.633zm-8.465 8.767a9.34 9.34 0 0 1 0-4.348l-1.264-.303a10.6 10.6 0 0 0 0 4.953l1.264-.303zm12.187-4.348a9.34 9.34 0 0 1 0 4.348l1.264.303a10.6 10.6 0 0 0 0-4.953l-1.264.303zm-3.867 8.133a9.94 9.94 0 0 1-4.452 0l-.291 1.267a11.24 11.24 0 0 0 5.035 0l-.291-1.267zM7.774 7.903a9.94 9.94 0 0 1 4.452 0l.291-1.267a11.24 11.24 0 0 0-5.035 0l.291 1.267zm0 11.919c-1.925-.443-3.419-1.913-3.867-3.786l-1.264.303c.565 2.363 2.445 4.199 4.84 4.75zm4.744 1.267c2.395-.551 4.275-2.387 4.84-4.75l-1.264-.303c-.448 1.872-1.942 3.343-3.867 3.786zm-.291-13.186c1.925.443 3.419 1.913 3.867 3.785l1.264-.303c-.566-2.363-2.445-4.199-4.84-4.75l-.291 1.267zM7.482 6.636c-2.395.551-4.275 2.387-4.84 4.75l1.264.303c.448-1.872 1.942-3.343 3.867-3.785l-.291-1.267zM12.268 21l.083-2.523c.079-.573.221-.867.433-1.075l-.91-.928c-.499.489-.712 1.104-.811 1.827-.096.702-.095 1.596-.095 2.699zm4.205-5.409c-1.126 0-2.035-.001-2.748.093-.731.096-1.354.303-1.85.79l.91.928c.214-.21.519-.352 1.11-.43.609-.08 1.416-.082 2.579-.082z'/%3e%3c/g%3e%3cpath stroke='%233e3f58' stroke-linecap='round' stroke-width='1.3' d='M7 11h3m-3 3h5'/%3e%3c/svg%3e";
4893
- var MBIconCopy = img$k;
3314
+ var img$b = "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none'%3e%3cg fill='%233e3f58'%3e%3cpath d='m19.726 8.537-.632.151zm0 4.65-.632-.151zm-9.097-8.918.146.633zm4.744 0-.146.633zm1.303 11.983a.65.65 0 1 0 .649 1.126zM6.041 7.23a.65.65 0 0 0 1.182.541zm13.053 1.459a9.34 9.34 0 0 1 0 4.348l1.264.303a10.6 10.6 0 0 0 0-4.953l-1.264.303zm-8.32-3.786a9.94 9.94 0 0 1 4.452 0l.291-1.267a11.24 11.24 0 0 0-5.035 0zm4.452 0c1.925.443 3.419 1.913 3.867 3.786l1.264-.303c-.566-2.363-2.445-4.199-4.84-4.75zm2.099 12.476a6.39 6.39 0 0 0 3.033-4.04l-1.264-.303a5.1 5.1 0 0 1-2.418 3.217zM10.482 3.636A6.47 6.47 0 0 0 6.04 7.23l1.182.541a5.17 5.17 0 0 1 3.551-2.868z'/%3e%3cpath d='m3.274 16.187-.632.151zm0-4.65-.632-.151zm13.451 0-.632.151zm0 4.65.632.151zm-4.354 4.268-.146-.633zm-4.744 0-.146.634zm0-13.186.146.633zm4.744 0-.146.633zm-8.465 8.767a9.34 9.34 0 0 1 0-4.348l-1.264-.303a10.6 10.6 0 0 0 0 4.953l1.264-.303zm12.187-4.348a9.34 9.34 0 0 1 0 4.348l1.264.303a10.6 10.6 0 0 0 0-4.953l-1.264.303zm-3.867 8.133a9.94 9.94 0 0 1-4.452 0l-.291 1.267a11.24 11.24 0 0 0 5.035 0l-.291-1.267zM7.774 7.903a9.94 9.94 0 0 1 4.452 0l.291-1.267a11.24 11.24 0 0 0-5.035 0l.291 1.267zm0 11.919c-1.925-.443-3.419-1.913-3.867-3.786l-1.264.303c.565 2.363 2.445 4.199 4.84 4.75zm4.744 1.267c2.395-.551 4.275-2.387 4.84-4.75l-1.264-.303c-.448 1.872-1.942 3.343-3.867 3.786zm-.291-13.186c1.925.443 3.419 1.913 3.867 3.785l1.264-.303c-.566-2.363-2.445-4.199-4.84-4.75l-.291 1.267zM7.482 6.636c-2.395.551-4.275 2.387-4.84 4.75l1.264.303c.448-1.872 1.942-3.343 3.867-3.785l-.291-1.267zM12.268 21l.083-2.523c.079-.573.221-.867.433-1.075l-.91-.928c-.499.489-.712 1.104-.811 1.827-.096.702-.095 1.596-.095 2.699zm4.205-5.409c-1.126 0-2.035-.001-2.748.093-.731.096-1.354.303-1.85.79l.91.928c.214-.21.519-.352 1.11-.43.609-.08 1.416-.082 2.579-.082z'/%3e%3c/g%3e%3cpath stroke='%233e3f58' stroke-linecap='round' stroke-width='1.3' d='M7 11h3m-3 3h5'/%3e%3c/svg%3e";
3315
+ var MBIconCopy = img$b;
4894
3316
 
4895
- var img$j = "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' fill='none'%3e%3cpath fill='url(%23a)' d='M35 9.583v20.834A4.59 4.59 0 0 1 30.417 35h-4.584V23.333h3.017a.84.84 0 0 0 .833-.733l.309-2.5a.8.8 0 0 0-.2-.65.82.82 0 0 0-.625-.283h-3.334V16.25c0-.917.75-1.667 1.667-1.667h1.667A.836.836 0 0 0 30 13.75v-2.817a.84.84 0 0 0-.758-.825A32 32 0 0 0 26.525 10c-3.667 0-5.692 2.183-5.692 6.142v3.025H17.5a.836.836 0 0 0-.833.833v2.5c0 .458.375.833.833.833h3.333V35H9.583A4.59 4.59 0 0 1 5 30.417V9.583A4.59 4.59 0 0 1 9.583 5h20.834A4.59 4.59 0 0 1 35 9.583'/%3e%3cdefs%3e%3clinearGradient id='a' x1='20' x2='20' y1='5' y2='35' gradientUnits='userSpaceOnUse'%3e%3cstop stop-color='%234DABF7'/%3e%3cstop offset='1' stop-color='%232668DA'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e";
4896
- var MBIconFacebook = img$j;
3317
+ var img$a = "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' fill='none'%3e%3cpath fill='url(%23a)' d='M35 9.583v20.834A4.59 4.59 0 0 1 30.417 35h-4.584V23.333h3.017a.84.84 0 0 0 .833-.733l.309-2.5a.8.8 0 0 0-.2-.65.82.82 0 0 0-.625-.283h-3.334V16.25c0-.917.75-1.667 1.667-1.667h1.667A.836.836 0 0 0 30 13.75v-2.817a.84.84 0 0 0-.758-.825A32 32 0 0 0 26.525 10c-3.667 0-5.692 2.183-5.692 6.142v3.025H17.5a.836.836 0 0 0-.833.833v2.5c0 .458.375.833.833.833h3.333V35H9.583A4.59 4.59 0 0 1 5 30.417V9.583A4.59 4.59 0 0 1 9.583 5h20.834A4.59 4.59 0 0 1 35 9.583'/%3e%3cdefs%3e%3clinearGradient id='a' x1='20' x2='20' y1='5' y2='35' gradientUnits='userSpaceOnUse'%3e%3cstop stop-color='%234DABF7'/%3e%3cstop offset='1' stop-color='%232668DA'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e";
3318
+ var MBIconFacebook = img$a;
4897
3319
 
4898
- var img$i = "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='41' height='40' fill='none'%3e%3cpath fill='%230078D4' d='M35.5 30.833A4.166 4.166 0 0 1 31.333 35H9.667A4.167 4.167 0 0 1 5.5 30.833V9.167A4.167 4.167 0 0 1 9.667 5h21.666A4.166 4.166 0 0 1 35.5 9.167z'/%3e%3cpath fill='black' d='M25.5 30.833v-8.416c0-1.408-.683-2.248-1.827-2.248-.68 0-1.179.382-1.483 1.136-.014.053-.034.271-.026.928l.002 8.6h-5.833V14.999h5.833v.884c.852-.587 1.896-.884 3.115-.884 3.79 0 6.05 2.578 6.05 6.895l.002 8.939zm-15.834 0V14.999h2.88c-1.668 0-2.88-1.226-2.88-2.917s1.232-2.916 2.928-2.916c1.677 0 2.871 1.192 2.905 2.9 0 1.702-1.232 2.933-2.929 2.933h2.93v15.834z' opacity='.05'/%3e%3cpath fill='black' d='M25.917 30.417v-7.999c0-1.644-.859-2.665-2.243-2.665-1.08 0-1.613.76-1.87 1.398-.067.166-.058.824-.055 1.105l.002 8.161h-5v-15h5v1.365c.662-.686 1.729-1.365 3.531-1.365 3.528 0 5.634 2.422 5.634 6.479l.001 8.521zm-15.833 0v-15h5v15zm2.464-15.833c-1.427 0-2.464-1.052-2.464-2.5 0-1.45 1.057-2.5 2.512-2.5 1.436 0 2.459 1.024 2.488 2.49 0 1.458-1.057 2.51-2.512 2.51z' opacity='.07'/%3e%3cpath fill='white' d='M10.5 15.833h4.167V30H10.5zm2.07-1.666h-.023c-1.243 0-2.047-.927-2.047-2.085 0-1.182.83-2.082 2.095-2.082 1.268 0 2.048.9 2.072 2.082 0 1.157-.804 2.085-2.096 2.085M30.5 30h-4.167v-7.582c0-1.832-1.02-3.082-2.66-3.082-1.25 0-1.927.843-2.255 1.658-.12.292-.085 1.099-.085 1.506V30h-4.166V15.833h4.166v2.18c.601-.93 1.542-2.18 3.949-2.18 2.981 0 5.217 1.875 5.217 6.062z'/%3e%3c/svg%3e";
4899
- var MBIconLinkedIn = img$i;
3320
+ var img$9 = "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='41' height='40' fill='none'%3e%3cpath fill='%230078D4' d='M35.5 30.833A4.166 4.166 0 0 1 31.333 35H9.667A4.167 4.167 0 0 1 5.5 30.833V9.167A4.167 4.167 0 0 1 9.667 5h21.666A4.166 4.166 0 0 1 35.5 9.167z'/%3e%3cpath fill='black' d='M25.5 30.833v-8.416c0-1.408-.683-2.248-1.827-2.248-.68 0-1.179.382-1.483 1.136-.014.053-.034.271-.026.928l.002 8.6h-5.833V14.999h5.833v.884c.852-.587 1.896-.884 3.115-.884 3.79 0 6.05 2.578 6.05 6.895l.002 8.939zm-15.834 0V14.999h2.88c-1.668 0-2.88-1.226-2.88-2.917s1.232-2.916 2.928-2.916c1.677 0 2.871 1.192 2.905 2.9 0 1.702-1.232 2.933-2.929 2.933h2.93v15.834z' opacity='.05'/%3e%3cpath fill='black' d='M25.917 30.417v-7.999c0-1.644-.859-2.665-2.243-2.665-1.08 0-1.613.76-1.87 1.398-.067.166-.058.824-.055 1.105l.002 8.161h-5v-15h5v1.365c.662-.686 1.729-1.365 3.531-1.365 3.528 0 5.634 2.422 5.634 6.479l.001 8.521zm-15.833 0v-15h5v15zm2.464-15.833c-1.427 0-2.464-1.052-2.464-2.5 0-1.45 1.057-2.5 2.512-2.5 1.436 0 2.459 1.024 2.488 2.49 0 1.458-1.057 2.51-2.512 2.51z' opacity='.07'/%3e%3cpath fill='white' d='M10.5 15.833h4.167V30H10.5zm2.07-1.666h-.023c-1.243 0-2.047-.927-2.047-2.085 0-1.182.83-2.082 2.095-2.082 1.268 0 2.048.9 2.072 2.082 0 1.157-.804 2.085-2.096 2.085M30.5 30h-4.167v-7.582c0-1.832-1.02-3.082-2.66-3.082-1.25 0-1.927.843-2.255 1.658-.12.292-.085 1.099-.085 1.506V30h-4.166V15.833h4.166v2.18c.601-.93 1.542-2.18 3.949-2.18 2.981 0 5.217 1.875 5.217 6.062z'/%3e%3c/svg%3e";
3321
+ var MBIconLinkedIn = img$9;
4900
3322
 
4901
- var img$h = "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' fill='none'%3e%3cpath fill='url(%23a)' d='M36.667 19.584c0 8.975-7.458 16.25-16.666 16.25a17 17 0 0 1-3.987-.47 1.68 1.68 0 0 0-1.15.12l-3.647 1.825a1.417 1.417 0 0 1-2.05-1.267v-3.355a1.7 1.7 0 0 0-.567-1.249c-3.245-2.966-5.266-7.179-5.266-11.854 0-8.975 7.458-16.25 16.667-16.25 9.208 0 16.666 7.275 16.666 16.25'/%3e%3cpath fill='black' d='M29.16 14.41c-.357 0-.703.118-1 .343l-4.745 3.512a.6.6 0 0 1-.363.125.56.56 0 0 1-.341-.113l-3.31-2.492a3.82 3.82 0 0 0-2.298-.765c-1.313 0-2.52.66-3.23 1.764l-1.009 1.575-3.433 5.58a1.63 1.63 0 0 0-.06 1.678c.299.545.862.883 1.47.883.357 0 .703-.118 1-.342l4.746-3.513a.6.6 0 0 1 .362-.125c.125 0 .243.04.342.114l3.31 2.491a3.82 3.82 0 0 0 2.297.765 3.82 3.82 0 0 0 3.23-1.763l1.01-1.576 3.433-5.58a1.63 1.63 0 0 0 .059-1.678 1.68 1.68 0 0 0-1.47-.883' opacity='.05'/%3e%3cpath fill='black' d='M29.161 14.826c-.266 0-.525.09-.75.258L23.665 18.6c-.18.136-.39.207-.61.207a.98.98 0 0 1-.591-.197l-3.311-2.492a3.4 3.4 0 0 0-2.048-.68c-1.17 0-2.246.587-2.879 1.572l-1.008 1.575-3.43 5.574c-.247.387-.266.86-.048 1.259.222.405.656.667 1.104.667.266 0 .525-.09.75-.259l4.747-3.515c.18-.136.39-.206.61-.206a.98.98 0 0 1 .592.196l3.31 2.493c.6.446 1.307.68 2.048.68a3.41 3.41 0 0 0 2.88-1.572l1.008-1.576 3.429-5.573c.247-.387.267-.86.048-1.26a1.28 1.28 0 0 0-1.104-.666Z' opacity='.07'/%3e%3cpath fill='white' d='m28.663 15.417-4.75 3.516c-.509.384-1.2.384-1.7.009L18.9 16.449a3.004 3.004 0 0 0-4.325.784l-1.008 1.575-3.425 5.566c-.5.784.458 1.675 1.2 1.117l4.75-3.517a1.41 1.41 0 0 1 1.7-.008l3.311 2.492a3.004 3.004 0 0 0 4.325-.783l1.009-1.575 3.425-5.567c.5-.783-.459-1.675-1.2-1.116Z'/%3e%3cdefs%3e%3cradialGradient id='a' cx='0' cy='0' r='1' gradientTransform='translate(9.24 35.816)scale(39.6767)' gradientUnits='userSpaceOnUse'%3e%3cstop stop-color='%231292FF'/%3e%3cstop offset='.079' stop-color='%232982FF'/%3e%3cstop offset='.23' stop-color='%234E69FF'/%3e%3cstop offset='.351' stop-color='%236559FF'/%3e%3cstop offset='.428' stop-color='%236D53FF'/%3e%3cstop offset='.754' stop-color='%23DF47AA'/%3e%3cstop offset='.946' stop-color='%23FF6257'/%3e%3c/radialGradient%3e%3c/defs%3e%3c/svg%3e";
4902
- var MBIconMessenger = img$h;
3323
+ var img$8 = "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' fill='none'%3e%3cpath fill='url(%23a)' d='M36.667 19.584c0 8.975-7.458 16.25-16.666 16.25a17 17 0 0 1-3.987-.47 1.68 1.68 0 0 0-1.15.12l-3.647 1.825a1.417 1.417 0 0 1-2.05-1.267v-3.355a1.7 1.7 0 0 0-.567-1.249c-3.245-2.966-5.266-7.179-5.266-11.854 0-8.975 7.458-16.25 16.667-16.25 9.208 0 16.666 7.275 16.666 16.25'/%3e%3cpath fill='black' d='M29.16 14.41c-.357 0-.703.118-1 .343l-4.745 3.512a.6.6 0 0 1-.363.125.56.56 0 0 1-.341-.113l-3.31-2.492a3.82 3.82 0 0 0-2.298-.765c-1.313 0-2.52.66-3.23 1.764l-1.009 1.575-3.433 5.58a1.63 1.63 0 0 0-.06 1.678c.299.545.862.883 1.47.883.357 0 .703-.118 1-.342l4.746-3.513a.6.6 0 0 1 .362-.125c.125 0 .243.04.342.114l3.31 2.491a3.82 3.82 0 0 0 2.297.765 3.82 3.82 0 0 0 3.23-1.763l1.01-1.576 3.433-5.58a1.63 1.63 0 0 0 .059-1.678 1.68 1.68 0 0 0-1.47-.883' opacity='.05'/%3e%3cpath fill='black' d='M29.161 14.826c-.266 0-.525.09-.75.258L23.665 18.6c-.18.136-.39.207-.61.207a.98.98 0 0 1-.591-.197l-3.311-2.492a3.4 3.4 0 0 0-2.048-.68c-1.17 0-2.246.587-2.879 1.572l-1.008 1.575-3.43 5.574c-.247.387-.266.86-.048 1.259.222.405.656.667 1.104.667.266 0 .525-.09.75-.259l4.747-3.515c.18-.136.39-.206.61-.206a.98.98 0 0 1 .592.196l3.31 2.493c.6.446 1.307.68 2.048.68a3.41 3.41 0 0 0 2.88-1.572l1.008-1.576 3.429-5.573c.247-.387.267-.86.048-1.26a1.28 1.28 0 0 0-1.104-.666Z' opacity='.07'/%3e%3cpath fill='white' d='m28.663 15.417-4.75 3.516c-.509.384-1.2.384-1.7.009L18.9 16.449a3.004 3.004 0 0 0-4.325.784l-1.008 1.575-3.425 5.566c-.5.784.458 1.675 1.2 1.117l4.75-3.517a1.41 1.41 0 0 1 1.7-.008l3.311 2.492a3.004 3.004 0 0 0 4.325-.783l1.009-1.575 3.425-5.567c.5-.783-.459-1.675-1.2-1.116Z'/%3e%3cdefs%3e%3cradialGradient id='a' cx='0' cy='0' r='1' gradientTransform='translate(9.24 35.816)scale(39.6767)' gradientUnits='userSpaceOnUse'%3e%3cstop stop-color='%231292FF'/%3e%3cstop offset='.079' stop-color='%232982FF'/%3e%3cstop offset='.23' stop-color='%234E69FF'/%3e%3cstop offset='.351' stop-color='%236559FF'/%3e%3cstop offset='.428' stop-color='%236D53FF'/%3e%3cstop offset='.754' stop-color='%23DF47AA'/%3e%3cstop offset='.946' stop-color='%23FF6257'/%3e%3c/radialGradient%3e%3c/defs%3e%3c/svg%3e";
3324
+ var MBIconMessenger = img$8;
4903
3325
 
4904
- var img$g = "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' fill='none'%3e%3cpath fill='%2303A9F4' d='M35 30.833A4.167 4.167 0 0 1 30.833 35H9.167A4.166 4.166 0 0 1 5 30.833V9.167A4.166 4.166 0 0 1 9.167 5h21.666C33.134 5 35 6.865 35 9.167z'/%3e%3cpath fill='white' d='M30 14.267c-.735.325-1.666.631-2.5.733.848-.503 2.194-1.552 2.5-2.5-.793.466-2.226.963-3.16 1.143-.747-.791-1.812-1.143-2.992-1.143C21.58 12.5 20 14.42 20 16.667v1.666c-3.333 0-6.583-2.539-8.606-5a4 4 0 0 0-.556 2.048c0 1.516 1.393 3.054 2.495 3.786-.672-.021-1.946-.535-2.5-.834v.048c0 1.972 1.384 3.311 3.26 3.685-.342.094-.76.434-2.366.434.521 1.613 3.144 2.465 4.94 2.5-1.405 1.09-3.91 1.667-5.834 1.667-.332 0-.512.018-.833-.02 1.815 1.15 4.35 1.686 6.667 1.686 7.547 0 11.666-5.765 11.666-11.141 0-.177-.005-.769-.015-.942.807-.568 1.134-1.163 1.682-1.983'/%3e%3c/svg%3e";
4905
- var MBIconTwitter = img$g;
3326
+ var img$7 = "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' fill='none'%3e%3cpath fill='%2303A9F4' d='M35 30.833A4.167 4.167 0 0 1 30.833 35H9.167A4.166 4.166 0 0 1 5 30.833V9.167A4.166 4.166 0 0 1 9.167 5h21.666C33.134 5 35 6.865 35 9.167z'/%3e%3cpath fill='white' d='M30 14.267c-.735.325-1.666.631-2.5.733.848-.503 2.194-1.552 2.5-2.5-.793.466-2.226.963-3.16 1.143-.747-.791-1.812-1.143-2.992-1.143C21.58 12.5 20 14.42 20 16.667v1.666c-3.333 0-6.583-2.539-8.606-5a4 4 0 0 0-.556 2.048c0 1.516 1.393 3.054 2.495 3.786-.672-.021-1.946-.535-2.5-.834v.048c0 1.972 1.384 3.311 3.26 3.685-.342.094-.76.434-2.366.434.521 1.613 3.144 2.465 4.94 2.5-1.405 1.09-3.91 1.667-5.834 1.667-.332 0-.512.018-.833-.02 1.815 1.15 4.35 1.686 6.667 1.686 7.547 0 11.666-5.765 11.666-11.141 0-.177-.005-.769-.015-.942.807-.568 1.134-1.163 1.682-1.983'/%3e%3c/svg%3e";
3327
+ var MBIconTwitter = img$7;
4906
3328
 
4907
- var img$f = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAABgCAMAAADVRocKAAACK1BMVEUAAAD7/f42hvwMbfxsp/yMuvz5/P7G3P5GkPyOvP0AZ/X3+/7y9/4AaP8AaP8GafvK4P6IuP3u9f7i7f7Y6P4Eav4je/wofvyNu/0AZ/7q8v4UcvwKa/sFXuArgf0AZvkYdPwBXeRbnf2Etf2Pvf0AaP3z+P4Mb/4BXOLl8P7H3v52rf0whP1xqvw3h/zB2PdVmv56r/1mpP1Ej/zO4f6+2f4odOREh+f9/v4BW98AaP0AaP////8AWN+Dtf200f4mfv4fePwTcfwVaeL3+/7N4v4Ydv4AZvsAZPUBXODS5f6szf6PvP3e7P641f6Ywv6Sv/5Gkf1UmPzg7fuy0f2qzP1vqf1Li+hQlvxppPz9/v79//8AW+AAWt3////////0+f7Q4/6Rvf6As/0KYeCgx/4Jbf5sp/21z/ZmnetimuvE3P6my/6tzP3a6PyqyfRRj+pGiOggb+Q6i/6Nu/0vgvxJkfubv/IRZeHw9/6Luf0fef00hvt8sv5Pl/6DsPJ7q++TufFWm/yexf1sp/wBXN/+//8Aaf8Aaf4AW98Aaf/8/PwAW98AZf/a6f641P5Xm/xPlvwAZvykxPSoy/7S5P1goPxuou07gOatzv48ifvU5fnI2/e70veQuPGKs/B9q+41hv2QuPE7gOadxP0AYvOIsu8weeViofyv0Px9sf0BW9/V5v5KkvwAaP/6//8AWt/9/v4AaP4BW98EaPsFafve7P78/v7f7P7QF2hEAAAAsXRSTlMA/vj9+fj++fn4EP783yD+/Pn+/f39/fv47/7+/v79/Pv7+vn4oP7+/v38/Pz8/Pz7+/v7+vr6+d/fkGAgIP79/f39/fz8/Pz8/Pv7+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Q0HzNkYUjFfKPDXDsYgTguAoomFUaCrCTV5TvEzINsQrdWg2Mfnnvn8rbrVyv/orQXsiOzWlMCsNW7E/SLfogBEuT9A+4YapzN23KA4a6WAmR/QSLOBG8Gv3C4QsEGk4VMRvRA0hbEKoyHoEwWaEcv5fMVkxCaBwGOIYDzAD9iingVjYwwhLRTgJ5Stfmrjp2DQD9RDhJGIg35DSDZjDeqoxVqgBJYirlU/XcQvnqkfmAykHtG6HVTFjG1URy2kQAnicvXTavWUxX8Pek1HLAbNCMYG5AYnlXroFlW5cfqOUOA7P26BwGzQ5E5TVke9csY8AT5ouJdRwPiEn9Ii/unMc4juWQn9Jh9DxDPZmgVgs/I93C57MI2FA/0BZvXkt375l3NHEXEpiATuQcgUjFIJ0GJlGgrAWdR4zUIBbRllGOWIcgxj3Xy2Nf9ITzYWoJGxHOCqKlAx2w4gFMhX12Ertttzwt45gOty1k8usRlgcU4LP6OSnNXapa1lzQ4QDLicsv/5tcsOHJUUICNkB07IDrgWyQkQr+zA0Co5AbLXKCdAGmQH9soO5MkOvIYU7BQIVELy3vgFAs2QrK4XfoFAuRGSZNzsFwhsqIaQQjMkZlSNP16gwEeKQ4vZuWVG7ShIgOXhOmX+V70HUq6Tp0+/2rK7SLm4aNdTEOR4uccfdFnvkZrvzmA/WbdLaBczT87wqzp0Hgpyc5QC2fNhic692bSsiC6/FjNgKohRIDWnRsWJlO44GJxOTFkx1fkiDdQKpOjj5oObnllotGHJ87undqt3hnToPFqmQmyHah7V1i6rfVtzaF7sCyZlxVHXrTDMn5TO+K9X+kYX5sxLZv54nRcUqe5h/CSBVyxUmJfw/F80TWQPc4elaf2kLpVCp0nkRd2Q6ILw9POdk4RfNQ7hrxo174WGX+64ZsrKyMj4T/0BmOLcBqL8HEcAAAAASUVORK5CYII=";
3330
+ var MBIconZalo = img$6;
4909
3331
 
4910
- var img$e = "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='33' height='32' fill='none'%3e%3cpath fill='%233B5998' d='M30.734 0H2.254A1.766 1.766 0 0 0 .5 1.766v28.48C.507 31.217 1.296 32 2.266 32h15.328V19.626h-4.16V14.78h4.16v-3.565c0-4.131 2.525-6.384 6.212-6.384a34 34 0 0 1 3.724.192v4.32h-2.54c-2.007 0-2.397.96-2.397 2.352v3.085h4.787l-.64 4.845h-4.16V32h8.154c.975 0 1.766-.79 1.766-1.766V1.754A1.766 1.766 0 0 0 30.734 0'/%3e%3c/svg%3e";
4911
- var IconFacebook = img$e;
3332
+ var img$5 = "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='33' height='32' fill='none'%3e%3cpath fill='%233B5998' d='M30.734 0H2.254A1.766 1.766 0 0 0 .5 1.766v28.48C.507 31.217 1.296 32 2.266 32h15.328V19.626h-4.16V14.78h4.16v-3.565c0-4.131 2.525-6.384 6.212-6.384a34 34 0 0 1 3.724.192v4.32h-2.54c-2.007 0-2.397.96-2.397 2.352v3.085h4.787l-.64 4.845h-4.16V32h8.154c.975 0 1.766-.79 1.766-1.766V1.754A1.766 1.766 0 0 0 30.734 0'/%3e%3c/svg%3e";
3333
+ var IconFacebook = img$5;
4912
3334
 
4913
- var img$d = "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='33' height='32' fill='none'%3e%3crect width='32' height='32' x='.5' fill='%230077B5' rx='4'/%3e%3cpath fill='white' fill-rule='evenodd' d='M11.357 9.07c-.022-1.094-.744-1.927-1.917-1.927S7.5 7.976 7.5 9.07C7.5 10.143 8.244 11 9.395 11h.022c1.196 0 1.94-.857 1.94-1.93m0 3.216H7.5v11.571h3.857zm9.294 0c2.771 0 4.849 1.616 4.849 5.089v6.482h-4.212V17.81c0-1.52-.609-2.556-2.134-2.556-1.163 0-1.856.698-2.16 1.374-.112.242-.14.579-.14.917v6.313h-4.211s.055-10.244 0-11.305h4.212v1.601c.559-.77 1.56-1.867 3.796-1.867' clip-rule='evenodd'/%3e%3c/svg%3e";
4914
- var IconLinkedIn = img$d;
3335
+ var img$4 = "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='33' height='32' fill='none'%3e%3crect width='32' height='32' x='.5' fill='%230077B5' rx='4'/%3e%3cpath fill='white' fill-rule='evenodd' d='M11.357 9.07c-.022-1.094-.744-1.927-1.917-1.927S7.5 7.976 7.5 9.07C7.5 10.143 8.244 11 9.395 11h.022c1.196 0 1.94-.857 1.94-1.93m0 3.216H7.5v11.571h3.857zm9.294 0c2.771 0 4.849 1.616 4.849 5.089v6.482h-4.212V17.81c0-1.52-.609-2.556-2.134-2.556-1.163 0-1.856.698-2.16 1.374-.112.242-.14.579-.14.917v6.313h-4.211s.055-10.244 0-11.305h4.212v1.601c.559-.77 1.56-1.867 3.796-1.867' clip-rule='evenodd'/%3e%3c/svg%3e";
3336
+ var IconLinkedIn = img$4;
4915
3337
 
4916
- var img$c = "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='33' height='32' fill='none'%3e%3crect width='32' height='32' x='.5' fill='%231FA1F3' rx='4'/%3e%3cpath fill='white' fill-rule='evenodd' d='m16.23 13.235.04.634-.673-.077c-2.455-.298-4.6-1.308-6.42-3.004l-.89-.842-.23.622c-.486 1.385-.175 2.848.836 3.832.54.544.418.621-.512.298-.324-.104-.607-.181-.634-.143-.095.091.229 1.27.485 1.735.35.648 1.066 1.282 1.848 1.657l.66.298-.781.013c-.756 0-.783.013-.702.285.27.841 1.335 1.735 2.523 2.123l.836.272-.729.414a7.9 7.9 0 0 1-3.614.958c-.607.013-1.106.065-1.106.104 0 .13 1.645.854 2.603 1.14 2.873.84 6.285.478 8.848-.959 1.82-1.023 3.641-3.055 4.491-5.023.459-1.049.917-2.965.917-3.884 0-.596.04-.673.796-1.385.445-.415.863-.868.944-.997.135-.246.122-.246-.566-.026-1.147.388-1.309.337-.742-.246.418-.414.917-1.165.917-1.385 0-.04-.202.026-.432.142-.242.13-.782.324-1.187.44l-.728.22-.66-.427c-.365-.233-.877-.492-1.147-.57-.688-.18-1.74-.155-2.36.052-1.687.583-2.752 2.085-2.63 3.729Z' clip-rule='evenodd'/%3e%3c/svg%3e";
4917
- var IconTwitter = img$c;
3338
+ var img$3 = "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='33' height='32' fill='none'%3e%3crect width='32' height='32' x='.5' fill='%231FA1F3' rx='4'/%3e%3cpath fill='white' fill-rule='evenodd' d='m16.23 13.235.04.634-.673-.077c-2.455-.298-4.6-1.308-6.42-3.004l-.89-.842-.23.622c-.486 1.385-.175 2.848.836 3.832.54.544.418.621-.512.298-.324-.104-.607-.181-.634-.143-.095.091.229 1.27.485 1.735.35.648 1.066 1.282 1.848 1.657l.66.298-.781.013c-.756 0-.783.013-.702.285.27.841 1.335 1.735 2.523 2.123l.836.272-.729.414a7.9 7.9 0 0 1-3.614.958c-.607.013-1.106.065-1.106.104 0 .13 1.645.854 2.603 1.14 2.873.84 6.285.478 8.848-.959 1.82-1.023 3.641-3.055 4.491-5.023.459-1.049.917-2.965.917-3.884 0-.596.04-.673.796-1.385.445-.415.863-.868.944-.997.135-.246.122-.246-.566-.026-1.147.388-1.309.337-.742-.246.418-.414.917-1.165.917-1.385 0-.04-.202.026-.432.142-.242.13-.782.324-1.187.44l-.728.22-.66-.427c-.365-.233-.877-.492-1.147-.57-.688-.18-1.74-.155-2.36.052-1.687.583-2.752 2.085-2.63 3.729Z' clip-rule='evenodd'/%3e%3c/svg%3e";
3339
+ var IconTwitter = img$3;
4918
3340
 
4919
3341
  const getSocialList = (shareUrl, isMarryBaby) => isMarryBaby
4920
3342
  ? [
@@ -5166,8 +3588,8 @@ const StyledSubmitReportForm = styled.div `
5166
3588
  }
5167
3589
  `;
5168
3590
 
5169
- var img$b = "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none'%3e%3cpath stroke='%23737373' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M8 14A6 6 0 1 0 8 2a6 6 0 0 0 0 12M8 5v3M8 11h.007'/%3e%3c/svg%3e";
5170
- var IconAlertCircle = img$b;
3591
+ var img$2 = "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none'%3e%3cpath stroke='%23737373' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M8 14A6 6 0 1 0 8 2a6 6 0 0 0 0 12M8 5v3M8 11h.007'/%3e%3c/svg%3e";
3592
+ var IconAlertCircle = img$2;
5171
3593
 
5172
3594
  const SubmitReportForm = ({ className, style, reason, reasonText, onClose, postId, }) => {
5173
3595
  const { data: { locale, env: { isMarryBaby }, }, action: { pushNotifications }, } = useContext(TogetherComponentGlobalContext);
@@ -5552,8 +3974,8 @@ const StyledNotificationBar = styled(NotificationBar) `
5552
3974
  margin-bottom: 16px;
5553
3975
  `;
5554
3976
 
5555
- var img$a = "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='24' height='25' fill='none'%3e%3cpath stroke='%23262626' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.75' d='M10.05 18.06 4 12.038l6.05-6.025M4.002 12.035h15'/%3e%3c/svg%3e";
5556
- var IconArrowLeft = img$a;
3977
+ var img$1 = "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='24' height='25' fill='none'%3e%3cpath stroke='%23262626' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.75' d='M10.05 18.06 4 12.038l6.05-6.025M4.002 12.035h15'/%3e%3c/svg%3e";
3978
+ var IconArrowLeft = img$1;
5557
3979
 
5558
3980
  const ImagePreviewPopup = ({ className, style, authorName, images, onClose, onOpenSingleView, alt, }) => {
5559
3981
  const { t } = useTranslations();
@@ -5658,8 +4080,8 @@ const StyledCircleArrow = styled.div `
5658
4080
  }
5659
4081
  `;
5660
4082
 
5661
- var img$9 = "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='17' fill='none'%3e%3cpath stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.75' d='m6 12.813 4-4-4-4'/%3e%3c/svg%3e";
5662
- var ChevronRightIcon = img$9;
4083
+ var img = "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='17' fill='none'%3e%3cpath stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.75' d='m6 12.813 4-4-4-4'/%3e%3c/svg%3e";
4084
+ var ChevronRightIcon = img;
5663
4085
 
5664
4086
  const PostSingleImageViewPopup = ({ initialViewIndex, images, onClose, alt, }) => {
5665
4087
  const [viewIndex, setViewIndex] = useState(initialViewIndex);
@@ -5953,30 +4375,30 @@ const SocialLinkPreview = ({ url, image, className, style, baseUrl = '', autoPla
5953
4375
  React__default.createElement("div", { className: `link-image-wrapper ${(previewData === null || previewData === void 0 ? void 0 : previewData.isFetching) ? 'fetching' : ''}` }, (previewData === null || previewData === void 0 ? void 0 : previewData.isFetching) ? (React__default.createElement(Loading$1, { className: "loading-spinner" })) : (React__default.createElement(ImageWrap, { className: "link-image", src: displayImage || DEFAULT_IMG, backupSrc: DEFAULT_IMG, alt: displayUrl })))))));
5954
4376
  };
5955
4377
 
5956
- var styles$f = {"loading":"PD6nRZX"};
4378
+ var styles$c = {"loading":"PD6nRZX"};
5957
4379
 
5958
4380
  const Loading = ({ className, size = 'md' }) => {
5959
4381
  const { t } = useTranslations();
5960
- return (React__default.createElement("div", { className: `${styles$f.loading} ${className}` },
4382
+ return (React__default.createElement("div", { className: `${styles$c.loading} ${className}` },
5961
4383
  React__default.createElement(Button, { size: size, color: "transparent", isLoading: true }, t('loading'))));
5962
4384
  };
5963
4385
 
5964
- var styles$e = {"category":"l5fL1xL","title":"L-aGKo7"};
4386
+ var styles$b = {"category":"l5fL1xL","title":"L-aGKo7"};
5965
4387
 
5966
4388
  const CategoryText = ({ children, className = '' }) => {
5967
- return React__default.createElement("div", { className: `${styles$e.category} ${className}` }, children);
4389
+ return React__default.createElement("div", { className: `${styles$b.category} ${className}` }, children);
5968
4390
  };
5969
4391
  const Title = ({ children, className = '' }) => {
5970
- return React__default.createElement("div", { className: `${styles$e.title} ${className}` }, children);
4392
+ return React__default.createElement("div", { className: `${styles$b.title} ${className}` }, children);
5971
4393
  };
5972
4394
 
5973
- var styles$d = {"container":"eaR8ATZ","info":"xM-7K0a"};
4395
+ var styles$a = {"container":"eaR8ATZ","info":"xM-7K0a"};
5974
4396
 
5975
- var styles$c = {"inner":"DZmf3s7"};
4397
+ var styles$9 = {"inner":"DZmf3s7"};
5976
4398
 
5977
4399
  const Thumbnail = ({ src, defaultSrc = CommonGAssets.getAssetPath('logo/logomark.png'), ratio = 1, size = 80, radius = 8, alt, className = '', }) => {
5978
4400
  return (React__default.createElement("div", { className: className },
5979
- React__default.createElement("div", { className: styles$c.inner, style: {
4401
+ React__default.createElement("div", { className: styles$9.inner, style: {
5980
4402
  width: `${size}px`,
5981
4403
  height: `${size * ratio}px`,
5982
4404
  borderRadius: `${radius}px`,
@@ -5985,9 +4407,9 @@ const Thumbnail = ({ src, defaultSrc = CommonGAssets.getAssetPath('logo/logomark
5985
4407
  };
5986
4408
 
5987
4409
  const CardArticle = ({ category, title, src, children, className = '', }) => {
5988
- return (React__default.createElement("div", { className: `${styles$d.container} ${className}` },
4410
+ return (React__default.createElement("div", { className: `${styles$a.container} ${className}` },
5989
4411
  React__default.createElement(Thumbnail, { src: src }),
5990
- React__default.createElement("div", { className: styles$d.info }, children || (React__default.createElement("div", null,
4412
+ React__default.createElement("div", { className: styles$a.info }, children || (React__default.createElement("div", null,
5991
4413
  category && React__default.createElement(CategoryText, null, category),
5992
4414
  title && React__default.createElement(Title, null, title))))));
5993
4415
  };
@@ -6009,7 +4431,7 @@ const ArticleCard = ({ featureImage, postTitle, author, categories, isReview, cl
6009
4431
  'Dec 12, 2022') }))));
6010
4432
  };
6011
4433
 
6012
- var styles$b = {"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"};
4434
+ var styles$8 = {"container":"SFSgnOz","header":"Tf3aoVa","heading":"TOt4QXl","headingIcon":"_5XYN1KT","accBodyGroup":"yE-tZRj","accBodyGroupItem":"LXiGuGT","accBodyGroupDesc":"r4rx-6v","subTitle":"XrHh8-C","subIcon":"c5-Yecd","group":"UBj6nWr","groupBody":"_2vptVBd","articleCardLink":"ZPDAwiR","relatedList":"_6wJn-NR","socialItem":"_21XDdFv","mbChevronWrapper":"LSyr3Zo"};
6013
4435
 
6014
4436
  const ProfileDetailContext = createContext({});
6015
4437
 
@@ -6058,9 +4480,9 @@ const About = ({ className = '' }) => {
6058
4480
  heading: t('profilePanel.experience'),
6059
4481
  iconSrc: CommonGAssets.getAssetPath(isMarryBaby ? 'award-doc-mb.svg' : 'award-doc.svg'),
6060
4482
  eventAction: 'Doctor Experience Click',
6061
- panel: (React__default.createElement("div", { className: styles$b.accBodyGroup }, info === null || info === void 0 ? void 0 : info.experiences.map((i, idx) => (React__default.createElement("div", { className: styles$b.accBodyGroupItem, key: String(idx) },
6062
- React__default.createElement("div", { className: styles$b.accBodyGroupTitle }, i.title),
6063
- React__default.createElement("div", { className: styles$b.accBodyGroupDesc },
4483
+ panel: (React__default.createElement("div", { className: styles$8.accBodyGroup }, info === null || info === void 0 ? void 0 : info.experiences.map((i, idx) => (React__default.createElement("div", { className: styles$8.accBodyGroupItem, key: String(idx) },
4484
+ React__default.createElement("div", { className: styles$8.accBodyGroupTitle }, i.title),
4485
+ React__default.createElement("div", { className: styles$8.accBodyGroupDesc },
6064
4486
  React__default.createElement("p", null, i.organization),
6065
4487
  React__default.createElement("p", null, i.duration))))))),
6066
4488
  },
@@ -6073,9 +4495,9 @@ const About = ({ className = '' }) => {
6073
4495
  heading: t('profilePanel.education'),
6074
4496
  iconSrc: CommonGAssets.getAssetPath(isMarryBaby ? 'book-mb.svg' : 'book.svg'),
6075
4497
  eventAction: 'Doctor Degree Click',
6076
- panel: (React__default.createElement("div", { className: styles$b.accBodyGroup }, info === null || info === void 0 ? void 0 : info.educations.map((i, idx) => (React__default.createElement("div", { className: styles$b.accBodyGroupItem, key: String(idx) },
6077
- React__default.createElement("div", { className: styles$b.accBodyGroupTitle }, i.schoolName),
6078
- React__default.createElement("div", { className: styles$b.accBodyGroupDesc },
4498
+ panel: (React__default.createElement("div", { className: styles$8.accBodyGroup }, info === null || info === void 0 ? void 0 : info.educations.map((i, idx) => (React__default.createElement("div", { className: styles$8.accBodyGroupItem, key: String(idx) },
4499
+ React__default.createElement("div", { className: styles$8.accBodyGroupTitle }, i.schoolName),
4500
+ React__default.createElement("div", { className: styles$8.accBodyGroupDesc },
6079
4501
  React__default.createElement("p", null, i.study),
6080
4502
  React__default.createElement("p", null, i.completedYear))))))),
6081
4503
  },
@@ -6088,15 +4510,15 @@ const About = ({ className = '' }) => {
6088
4510
  heading: t('profilePanel.awards'),
6089
4511
  iconSrc: CommonGAssets.getAssetPath(isMarryBaby ? 'award-mb.svg' : 'award.svg'),
6090
4512
  eventAction: 'Doctor Award Click',
6091
- panel: (React__default.createElement("div", { className: styles$b.accBodyGroup }, info === null || info === void 0 ? void 0 : info.awards.map((i, idx) => (React__default.createElement("div", { className: styles$b.accBodyGroupTitle, key: idx }, i.title))))),
4513
+ panel: (React__default.createElement("div", { className: styles$8.accBodyGroup }, info === null || info === void 0 ? void 0 : info.awards.map((i, idx) => (React__default.createElement("div", { className: styles$8.accBodyGroupTitle, key: idx }, i.title))))),
6092
4514
  },
6093
4515
  ]
6094
4516
  : []),
6095
4517
  ];
6096
4518
  const relatedPost = (info === null || info === void 0 ? void 0 : info.relatedPosts) || [];
6097
4519
  const socialList = social.filter((i) => i.url);
6098
- return (React__default.createElement("div", { className: `${styles$b.container} ${className}`, "data-is-marrybaby": isMarryBaby },
6099
- accProps.length > 0 && (React__default.createElement(Accordion, { defaultValue: accProps[0].key, chevron: isMarryBaby ? (React__default.createElement("div", { className: styles$b.mbChevronWrapper },
4520
+ return (React__default.createElement("div", { className: `${styles$8.container} ${className}`, "data-is-marrybaby": isMarryBaby },
4521
+ accProps.length > 0 && (React__default.createElement(Accordion, { defaultValue: accProps[0].key, chevron: isMarryBaby ? (React__default.createElement("div", { className: styles$8.mbChevronWrapper },
6100
4522
  React__default.createElement(Plus, { size: 12, color: theme.mbColors.midGray }))) : (React__default.createElement(Plus, { color: theme.colors.gray400 })), styles: {
6101
4523
  chevron: {
6102
4524
  '&[data-rotate]': {
@@ -6128,33 +4550,33 @@ const About = ({ className = '' }) => {
6128
4550
  },
6129
4551
  } }, accProps.map((i) => (React__default.createElement(Accordion.Item, { key: i.key, value: i.key },
6130
4552
  React__default.createElement(Accordion.Control, { "data-event-category": "Together", "data-event-action": i.eventAction, "data-event-label": currentPageUrl },
6131
- React__default.createElement("div", { className: styles$b.header },
6132
- React__default.createElement("div", { className: styles$b.headingIcon },
4553
+ React__default.createElement("div", { className: styles$8.header },
4554
+ React__default.createElement("div", { className: styles$8.headingIcon },
6133
4555
  React__default.createElement("img", { src: i.iconSrc, loading: "lazy" })),
6134
- React__default.createElement("div", { className: styles$b.heading }, i.heading))),
4556
+ React__default.createElement("div", { className: styles$8.heading }, i.heading))),
6135
4557
  React__default.createElement(Accordion.Panel, null, i.panel)))))),
6136
- relatedPost.length > 0 && (React__default.createElement("div", { className: styles$b.group },
6137
- React__default.createElement("div", { className: styles$b.subTitle },
6138
- React__default.createElement("img", { className: styles$b.subIcon, src: CommonGAssets.getAssetPath(isMarryBaby ? 'mb-logo.svg' : 'logo/circle-solid.svg'), loading: "lazy" }),
4558
+ relatedPost.length > 0 && (React__default.createElement("div", { className: styles$8.group },
4559
+ React__default.createElement("div", { className: styles$8.subTitle },
4560
+ React__default.createElement("img", { className: styles$8.subIcon, src: CommonGAssets.getAssetPath(isMarryBaby ? 'mb-logo.svg' : 'logo/circle-solid.svg'), loading: "lazy" }),
6139
4561
  t('profilePanel.publishedArticles')),
6140
- React__default.createElement("div", { className: `${styles$b.relatedList}` }, info === null || info === void 0 ? void 0 : info.relatedPosts.map((i) => (React__default.createElement("a", { key: String(i.id), href: `${window.location.origin}${i === null || i === void 0 ? void 0 : i.permalink}`, className: styles$b.articleCardLink },
4562
+ React__default.createElement("div", { className: `${styles$8.relatedList}` }, info === null || info === void 0 ? void 0 : info.relatedPosts.map((i) => (React__default.createElement("a", { key: String(i.id), href: `${window.location.origin}${i === null || i === void 0 ? void 0 : i.permalink}`, className: styles$8.articleCardLink },
6141
4563
  React__default.createElement(ArticleCard, Object.assign({ className: 'article-card' }, Object.assign(Object.assign({}, i), (!i.author && {
6142
4564
  author: {
6143
4565
  displayName: authorProps === null || authorProps === void 0 ? void 0 : authorProps.name,
6144
4566
  avatar: authorProps === null || authorProps === void 0 ? void 0 : authorProps.avatar,
6145
4567
  },
6146
4568
  })), { isReview: true })))))))),
6147
- socialList.length > 0 && (React__default.createElement("div", { className: styles$b.group },
6148
- React__default.createElement("div", { className: styles$b.subTitle },
6149
- React__default.createElement("img", { className: styles$b.subIcon, src: CommonGAssets.getAssetPath(isMarryBaby ? 'social-mb.svg' : 'social.svg'), loading: "lazy" }),
4569
+ socialList.length > 0 && (React__default.createElement("div", { className: styles$8.group },
4570
+ React__default.createElement("div", { className: styles$8.subTitle },
4571
+ React__default.createElement("img", { className: styles$8.subIcon, src: CommonGAssets.getAssetPath(isMarryBaby ? 'social-mb.svg' : 'social.svg'), loading: "lazy" }),
6150
4572
  t('profilePanel.socialLinks')),
6151
- React__default.createElement("div", { className: styles$b.groupBody },
6152
- React__default.createElement(Flex, null, social.map((i, idx) => i.url && (React__default.createElement("div", { className: styles$b.socialItem, key: idx },
4573
+ React__default.createElement("div", { className: styles$8.groupBody },
4574
+ React__default.createElement(Flex, null, social.map((i, idx) => i.url && (React__default.createElement("div", { className: styles$8.socialItem, key: idx },
6153
4575
  React__default.createElement("a", { href: i.url, target: "_blank", rel: "noreferrer" },
6154
4576
  React__default.createElement("img", { src: i.icon, loading: "lazy", width: "32px", "data-event-category": "Together", "data-event-action": i.eventAction, "data-event-label": currentPageUrl })))))))))));
6155
4577
  };
6156
4578
 
6157
- var styles$a = {"container":"GYUElSy","question":"_3C6QpT1","questionTitle":"_9M9VYL6","community":"_1RuSyv3","questionCard":"_1IG-eEp"};
4579
+ var styles$7 = {"container":"GYUElSy","question":"_3C6QpT1","questionTitle":"_9M9VYL6","community":"_1RuSyv3","questionCard":"_1IG-eEp"};
6158
4580
 
6159
4581
  const PostCard$1 = ({ post, className = '' }) => {
6160
4582
  var _a, _b, _c, _d, _e, _f, _g, _h;
@@ -6162,23 +4584,23 @@ const PostCard$1 = ({ post, className = '' }) => {
6162
4584
  const { data: { userInfo, env: { togetherBasePath }, }, } = useContext(TogetherComponentGlobalContext);
6163
4585
  const { authActionWrapper, authorProps, currentPageUrl } = useContext(ProfileDetailContext);
6164
4586
  const postHref = `${window.location.origin}${togetherBasePath}/${(_a = post === null || post === void 0 ? void 0 : post.community) === null || _a === void 0 ? void 0 : _a.slug}/${post === null || post === void 0 ? void 0 : post.slug}/`;
6165
- return (React__default.createElement("div", { className: `${styles$a.container} ${className}` },
6166
- React__default.createElement("div", { className: styles$a.header },
6167
- React__default.createElement("div", { className: styles$a.question },
4587
+ return (React__default.createElement("div", { className: `${styles$7.container} ${className}` },
4588
+ React__default.createElement("div", { className: styles$7.header },
4589
+ React__default.createElement("div", { className: styles$7.question },
6168
4590
  t('profilePanel.question'),
6169
4591
  ' ',
6170
- React__default.createElement(Anchor$1, { className: styles$a.questionTitle, href: "#", onClick: () => {
4592
+ React__default.createElement(Anchor$1, { className: styles$7.questionTitle, href: "#", onClick: () => {
6171
4593
  if (!(userInfo === null || userInfo === void 0 ? void 0 : userInfo.id)) {
6172
4594
  authActionWrapper === null || authActionWrapper === void 0 ? void 0 : authActionWrapper(() => (window.location.href = postHref));
6173
4595
  }
6174
4596
  } },
6175
4597
  "#", post === null || post === void 0 ? void 0 :
6176
4598
  post.title)),
6177
- React__default.createElement("div", { className: styles$a.community }, (_b = post === null || post === void 0 ? void 0 : post.community) === null || _b === void 0 ? void 0 :
4599
+ React__default.createElement("div", { className: styles$7.community }, (_b = post === null || post === void 0 ? void 0 : post.community) === null || _b === void 0 ? void 0 :
6178
4600
  _b.name,
6179
4601
  " - ", post === null || post === void 0 ? void 0 :
6180
4602
  post.createdTime)),
6181
- React__default.createElement("div", { className: styles$a.questionCard },
4603
+ React__default.createElement("div", { className: styles$7.questionCard },
6182
4604
  React__default.createElement(CardAuthor, Object.assign({ className: "card-author" }, authorProps, { role: "user", avatarIcon: React__default.createElement(CrossLogo, null), subLine: React__default.createElement(CardAuthor.SubTextRow, null,
6183
4605
  React__default.createElement(CardAuthor.SubText, null, (_e = (_d = (_c = post === null || post === void 0 ? void 0 : post.expertAnswer) === null || _c === void 0 ? void 0 : _c.answer) === null || _d === void 0 ? void 0 : _d[0]) === null || _e === void 0 ? void 0 : _e.createdTime)) })),
6184
4606
  React__default.createElement(PostContent, { className: "post-content-wrapper", description: ((_h = (_g = (_f = post === null || post === void 0 ? void 0 : post.expertAnswer) === null || _f === void 0 ? void 0 : _f.answer) === null || _g === void 0 ? void 0 : _g[0]) === null || _h === void 0 ? void 0 : _h.content) || '',
@@ -6194,17 +4616,17 @@ const PostCard$1 = ({ post, className = '' }) => {
6194
4616
  } }, t('profilePanel.anserwing.viewFull'))));
6195
4617
  };
6196
4618
 
6197
- var styles$9 = {"container":"MrdoES3"};
4619
+ var styles$6 = {"container":"MrdoES3"};
6198
4620
 
6199
- var styles$8 = {"container":"_8fd7YMs","thumb":"DomiQfw","content":"-b2qnfL"};
4621
+ var styles$5 = {"container":"_8fd7YMs","thumb":"DomiQfw","content":"-b2qnfL"};
6200
4622
 
6201
4623
  const EmptyMessage = ({ message, buttonTxt, imgSrc, onBtnClick }) => {
6202
4624
  const { siteType, isMarryBaby } = useContext(ProfileDetailContext);
6203
- return (React__default.createElement("div", { className: styles$8.container },
6204
- React__default.createElement("div", { className: styles$8.thumb },
4625
+ return (React__default.createElement("div", { className: styles$5.container },
4626
+ React__default.createElement("div", { className: styles$5.thumb },
6205
4627
  React__default.createElement("img", { src: imgSrc ||
6206
4628
  CommonGAssets.getAssetPath(isMarryBaby ? 'comments-mb.svg' : 'comments.svg'), loading: "lazy" })),
6207
- message && React__default.createElement("div", { className: styles$8.content }, message),
4629
+ message && React__default.createElement("div", { className: styles$5.content }, message),
6208
4630
  buttonTxt && (React__default.createElement(Button, { size: "md", theme: siteType, color: "secondary", onClick: onBtnClick }, buttonTxt))));
6209
4631
  };
6210
4632
 
@@ -6228,13 +4650,13 @@ const Answering = ({ id }) => {
6228
4650
  setLoading(false);
6229
4651
  }))();
6230
4652
  }, []);
6231
- return (React__default.createElement("div", { className: styles$9.container }, loading ? (React__default.createElement(Loading, null)) : (posts !== null &&
4653
+ return (React__default.createElement("div", { className: styles$6.container }, loading ? (React__default.createElement(Loading, null)) : (posts !== null &&
6232
4654
  (posts.length > 0 ? (posts.map((i) => (React__default.createElement(PostCard$1, { className: "post-card", key: i.id, post: i })))) : (React__default.createElement(EmptyMessage, { message: t('profilePanel.emptyPostMess.content', {
6233
4655
  name: (authorProps === null || authorProps === void 0 ? void 0 : authorProps.name) || (authorProps === null || authorProps === void 0 ? void 0 : authorProps.username),
6234
4656
  }) }))))));
6235
4657
  };
6236
4658
 
6237
- var styles$7 = {"container":"toEutn7","title":"drdisHs","actions":"scNwTvv","skipBtn":"HNlhOdx"};
4659
+ var styles$4 = {"container":"toEutn7","title":"drdisHs","actions":"scNwTvv","skipBtn":"HNlhOdx"};
6238
4660
 
6239
4661
  const QuestionCard = (_a) => {
6240
4662
  var _b, _c, _d, _e;
@@ -6242,13 +4664,13 @@ const QuestionCard = (_a) => {
6242
4664
  const { data: { env: { togetherBasePath }, }, } = useContext(TogetherComponentGlobalContext);
6243
4665
  // const { showSkipQuestionTag } = useContext(ProfileDetailContext)
6244
4666
  return (React__default.createElement(React__default.Fragment, null,
6245
- React__default.createElement("div", Object.assign({}, rest, { className: `${styles$7.container} ${(rest === null || rest === void 0 ? void 0 : rest.className) || ''}` }),
4667
+ React__default.createElement("div", Object.assign({}, rest, { className: `${styles$4.container} ${(rest === null || rest === void 0 ? void 0 : rest.className) || ''}` }),
6246
4668
  React__default.createElement(CardAuthor, { className: "card-author", avatar: (_b = post === null || post === void 0 ? void 0 : post.author) === null || _b === void 0 ? void 0 : _b.avatar, name: ((_c = post === null || post === void 0 ? void 0 : post.author) === null || _c === void 0 ? void 0 : _c.name) || ((_d = post === null || post === void 0 ? void 0 : post.author) === null || _d === void 0 ? void 0 : _d.username), isAnonymous: Boolean(post === null || post === void 0 ? void 0 : post.isAnonymous), subLine: React__default.createElement(CardAuthor.SubTextRow, null,
6247
4669
  React__default.createElement(CardAuthor.SubText, null, post === null || post === void 0 ? void 0 : post.createdTime)) }),
6248
- React__default.createElement(Anchor$1, { href: `${window.location.origin}${togetherBasePath}/${(_e = post === null || post === void 0 ? void 0 : post.community) === null || _e === void 0 ? void 0 : _e.slug}/${post === null || post === void 0 ? void 0 : post.slug}/`, className: styles$7.title, rel: "noreferrer" }, post === null || post === void 0 ? void 0 : post.title))));
4670
+ React__default.createElement(Anchor$1, { href: `${window.location.origin}${togetherBasePath}/${(_e = post === null || post === void 0 ? void 0 : post.community) === null || _e === void 0 ? void 0 : _e.slug}/${post === null || post === void 0 ? void 0 : post.slug}/`, className: styles$4.title, rel: "noreferrer" }, post === null || post === void 0 ? void 0 : post.title))));
6249
4671
  };
6250
4672
 
6251
- var styles$6 = {"accordion":"I-uIJ6E","header":"_41WRsj2","heading":"AcOGL93","headingIcon":"JD3dWJN","panel":"dKAgnS8","chevron":"L2Q9T6m","container":"h-pSmhX"};
4673
+ var styles$3 = {"accordion":"I-uIJ6E","header":"_41WRsj2","heading":"AcOGL93","headingIcon":"JD3dWJN","panel":"dKAgnS8","chevron":"L2Q9T6m","container":"h-pSmhX"};
6252
4674
 
6253
4675
  const Care = () => {
6254
4676
  var _a, _b;
@@ -6293,7 +4715,7 @@ const Care = () => {
6293
4715
  onSkipQuestion === null || onSkipQuestion === void 0 ? void 0 : onSkipQuestion(countLists);
6294
4716
  }
6295
4717
  };
6296
- return (React__default.createElement("div", { className: styles$6.container }, fetchLoading ? (React__default.createElement(Loading, null)) : (countValues === null || countValues === void 0 ? void 0 : countValues.total_question) > 0 ? (communities.length > 0 && (React__default.createElement(Accordion, { className: styles$6.accordion, defaultValue: String(((_b = communities[(_a = Object.keys(communities)) === null || _a === void 0 ? void 0 : _a[0]]) === null || _b === void 0 ? void 0 : _b.id) || ''), styles: (_theme) => ({
4718
+ return (React__default.createElement("div", { className: styles$3.container }, fetchLoading ? (React__default.createElement(Loading, null)) : (countValues === null || countValues === void 0 ? void 0 : countValues.total_question) > 0 ? (communities.length > 0 && (React__default.createElement(Accordion, { className: styles$3.accordion, defaultValue: String(((_b = communities[(_a = Object.keys(communities)) === null || _a === void 0 ? void 0 : _a[0]]) === null || _b === void 0 ? void 0 : _b.id) || ''), styles: (_theme) => ({
6297
4719
  control: {
6298
4720
  padding: '16px',
6299
4721
  border: `1px solid ${_theme.colors.neutral[1]}`,
@@ -6319,21 +4741,21 @@ const Care = () => {
6319
4741
  item: {
6320
4742
  marginBottom: '16px',
6321
4743
  },
6322
- }), chevron: React__default.createElement("div", { className: styles$6.chevron },
4744
+ }), chevron: React__default.createElement("div", { className: styles$3.chevron },
6323
4745
  React__default.createElement(ArrowDown, { color: theme.colors.gray600, size: 20 })) }, communities.map((i) => {
6324
4746
  const listing = (questions && (questions === null || questions === void 0 ? void 0 : questions[i.id])) || [];
6325
4747
  return (listing.length > 0 && (React__default.createElement(Accordion.Item, { key: i.id, value: String(i.id) },
6326
4748
  React__default.createElement(Accordion.Control, null,
6327
- React__default.createElement("div", { className: styles$6.header },
6328
- React__default.createElement("div", { className: styles$6.headingIcon },
4749
+ React__default.createElement("div", { className: styles$3.header },
4750
+ React__default.createElement("div", { className: styles$3.headingIcon },
6329
4751
  React__default.createElement("img", { src: i.thumbnail, loading: "lazy" })),
6330
- React__default.createElement("div", { className: styles$6.heading }, i.name))),
4752
+ React__default.createElement("div", { className: styles$3.heading }, i.name))),
6331
4753
  React__default.createElement(Accordion.Panel, null,
6332
- React__default.createElement("div", { className: styles$6.body }, listing.map((post) => (React__default.createElement(QuestionCard, { className: "question-card", key: post.id, post: post, onSkip: handleSkipQuestion }))))))));
4754
+ React__default.createElement("div", { className: styles$3.body }, listing.map((post) => (React__default.createElement(QuestionCard, { className: "question-card", key: post.id, post: post, onSkip: handleSkipQuestion }))))))));
6333
4755
  })))) : (React__default.createElement(EmptyMessage, { message: t('profilePanel.emptyCareMess.content'), imgSrc: CommonGAssets.getAssetPath('questions.svg') }))));
6334
4756
  };
6335
4757
 
6336
- var styles$5 = {"container":"GA-zc-O","mainTxt":"A18McWD","question":"yzr0H0N","questionTitle":"_6gVRc3i","community":"xOzLGrD","questionCard":"IB049vj","linkWrapper":"_8I--vEV"};
4758
+ var styles$2 = {"container":"GA-zc-O","mainTxt":"A18McWD","question":"yzr0H0N","questionTitle":"_6gVRc3i","community":"xOzLGrD","questionCard":"IB049vj","linkWrapper":"_8I--vEV"};
6337
4759
 
6338
4760
  const PostCard = ({ post, className = '' }) => {
6339
4761
  var _a;
@@ -6342,9 +4764,9 @@ const PostCard = ({ post, className = '' }) => {
6342
4764
  const theme = useMantineTheme();
6343
4765
  const { authActionWrapper, authorProps } = useContext(ProfileDetailContext);
6344
4766
  const postHref = `${window.location.origin}${togetherBasePath}/${(_a = post === null || post === void 0 ? void 0 : post.community) === null || _a === void 0 ? void 0 : _a.slug}/${post === null || post === void 0 ? void 0 : post.slug}/`;
6345
- return (React__default.createElement("div", { className: `${styles$5.container} ${className}` },
6346
- React__default.createElement("div", { className: styles$5.questionCard },
6347
- React__default.createElement("a", { "data-event-category": "Together", "data-event-action": "Click Post", "data-event-label": postHref, className: styles$5.linkWrapper, href: postHref, onClick: (e) => {
4767
+ return (React__default.createElement("div", { className: `${styles$2.container} ${className}` },
4768
+ React__default.createElement("div", { className: styles$2.questionCard },
4769
+ React__default.createElement("a", { "data-event-category": "Together", "data-event-action": "Click Post", "data-event-label": postHref, className: styles$2.linkWrapper, href: postHref, onClick: (e) => {
6348
4770
  if (!(userInfo === null || userInfo === void 0 ? void 0 : userInfo.id)) {
6349
4771
  e.preventDefault();
6350
4772
  authActionWrapper === null || authActionWrapper === void 0 ? void 0 : authActionWrapper(() => (window.location.href = postHref));
@@ -6354,14 +4776,14 @@ const PostCard = ({ post, className = '' }) => {
6354
4776
  avatar: authorProps === null || authorProps === void 0 ? void 0 : authorProps.avatar,
6355
4777
  size: 32,
6356
4778
  } },
6357
- React__default.createElement(CardAuthor.MainText, { className: styles$5.mainTxt }, post === null || post === void 0 ? void 0 : post.title),
4779
+ React__default.createElement(CardAuthor.MainText, { className: styles$2.mainTxt }, post === null || post === void 0 ? void 0 : post.title),
6358
4780
  React__default.createElement(CardAuthor.SubTextRow, null,
6359
4781
  React__default.createElement(CardAuthor.SubText, null, post === null || post === void 0 ? void 0 : post.createdTime))),
6360
4782
  React__default.createElement(PostContent, { className: "post-content-wrapper", description: post === null || post === void 0 ? void 0 : post.description, mentions: post === null || post === void 0 ? void 0 : post.mentions, maxChars: 200, "data-testid": "Content of the Post", hideShowAllBtn: true }),
6361
4783
  React__default.createElement(Text, { size: "p3", color: theme.fn.primaryColor() }, t('post.seeMore')))));
6362
4784
  };
6363
4785
 
6364
- var styles$4 = {"container":"TSMHoEM"};
4786
+ var styles$1 = {"container":"TSMHoEM"};
6365
4787
 
6366
4788
  const Posts = () => {
6367
4789
  const { t } = useTranslations();
@@ -6384,7 +4806,7 @@ const Posts = () => {
6384
4806
  setLoading(false);
6385
4807
  }))();
6386
4808
  }, [id]);
6387
- return (React__default.createElement("div", { className: styles$4.container }, loading ? (React__default.createElement(Loading, null)) : (posts !== null &&
4809
+ return (React__default.createElement("div", { className: styles$1.container }, loading ? (React__default.createElement(Loading, null)) : (posts !== null &&
6388
4810
  (posts.length > 0 ? (posts.map((i) => (React__default.createElement(PostCard, { className: "post-card", key: i.id, post: i })))) : (React__default.createElement(EmptyMessage, { message: t('profilePanel.emptyPostMess.content', {
6389
4811
  name: (authorProps === null || authorProps === void 0 ? void 0 : authorProps.name) || (authorProps === null || authorProps === void 0 ? void 0 : authorProps.username) || '',
6390
4812
  }), buttonTxt: isAuthorLogin && t('profilePanel.createPost'), onBtnClick: () => {
@@ -6392,7 +4814,7 @@ const Posts = () => {
6392
4814
  } }))))));
6393
4815
  };
6394
4816
 
6395
- var styles$3 = {"container":"_4Vekw96","info":"DIJdGcB","body":"aQSt4-Q"};
4817
+ var styles = {"container":"_4Vekw96","info":"DIJdGcB","body":"aQSt4-Q"};
6396
4818
 
6397
4819
  const formatExperience = (data) => {
6398
4820
  if (!data)
@@ -6601,7 +5023,7 @@ const ProfileDetail = (_a) => {
6601
5023
  showSkipQuestionTag,
6602
5024
  currentPageUrl,
6603
5025
  } },
6604
- React__default.createElement("div", Object.assign({}, rest, { className: `${styles$3.container} ${(rest === null || rest === void 0 ? void 0 : rest.className) || ''}`, "data-is-marrybaby": isMarryBaby }), loading ? (React__default.createElement(Loading, null)) : (React__default.createElement(React__default.Fragment, null,
5026
+ React__default.createElement("div", Object.assign({}, rest, { className: `${styles.container} ${(rest === null || rest === void 0 ? void 0 : rest.className) || ''}`, "data-is-marrybaby": isMarryBaby }), loading ? (React__default.createElement(Loading, null)) : (React__default.createElement(React__default.Fragment, null,
6605
5027
  React__default.createElement(CardAuthor, Object.assign({}, authorProps, { className: "card-author", showDetailPopup: false, subLine: (authorProps === null || authorProps === void 0 ? void 0 : authorProps.role) === 'expert'
6606
5028
  ? (userData === null || userData === void 0 ? void 0 : userData.specialty) &&
6607
5029
  (userData === null || userData === void 0 ? void 0 : userData.organisation) && (React__default.createElement(CardAuthor.SubTextRow, null,
@@ -6614,10 +5036,10 @@ const ProfileDetail = (_a) => {
6614
5036
  t('profilePanel.joined'),
6615
5037
  ' ',
6616
5038
  dayjs(userData === null || userData === void 0 ? void 0 : userData.created_at).toNow(true)))) })),
6617
- role === 'expert' && (React__default.createElement("div", { className: styles$3.info, dangerouslySetInnerHTML: { __html: (_b = info === null || info === void 0 ? void 0 : info.data) === null || _b === void 0 ? void 0 : _b.description } })),
5039
+ role === 'expert' && (React__default.createElement("div", { className: styles.info, dangerouslySetInnerHTML: { __html: (_b = info === null || info === void 0 ? void 0 : info.data) === null || _b === void 0 ? void 0 : _b.description } })),
6618
5040
  finalTabContent !== null &&
6619
5041
  activeTab !== null &&
6620
- (finalTabContent.length > 0 ? (React__default.createElement("div", { className: styles$3.body },
5042
+ (finalTabContent.length > 0 ? (React__default.createElement("div", { className: styles.body },
6621
5043
  React__default.createElement(Tabs, Object.assign({}, tabsProps)))) : (React__default.createElement(EmptyMessage, { message: t('profilePanel.emptyPostMess.content', {
6622
5044
  text: (authorProps === null || authorProps === void 0 ? void 0 : authorProps.name) || (authorProps === null || authorProps === void 0 ? void 0 : authorProps.username) || '',
6623
5045
  }) }))))))));
@@ -6631,1384 +5053,4 @@ var index = /*#__PURE__*/Object.freeze({
6631
5053
  ProfileDetail: ProfileDetail
6632
5054
  });
6633
5055
 
6634
- var styles$2 = {"skipBtn":"KsWg8i6","alertHeading":"_9tS0EUN","alertDesc":"kyyRKlb","alertAction":"-Uqqka-"};
6635
-
6636
- const SkipQuestionOfExpertBtn = (_a) => {
6637
- var { post, onSkip, btnText, currentPageUrl } = _a, rest = __rest(_a, ["post", "onSkip", "btnText", "currentPageUrl"]);
6638
- const { t } = useTranslations();
6639
- const { data: { locale }, action: { pushNotifications }, } = useContext(TogetherComponentGlobalContext);
6640
- const [showAlert, setShowAlert] = useState(false);
6641
- const [loading, setLoading] = useState(false);
6642
- const _theme = useMantineTheme();
6643
- const handleSkip = useCallback(() => __awaiter(void 0, void 0, void 0, function* () {
6644
- var _b;
6645
- setLoading(true);
6646
- const res = yield callApiWithAuth(getApiPath(PATHS.USER.SKIP_QUESTION, {
6647
- _locale: locale,
6648
- id: post === null || post === void 0 ? void 0 : post.id,
6649
- }), 'PUT');
6650
- if ((res === null || res === void 0 ? void 0 : res.status) === 1) {
6651
- onSkip === null || onSkip === void 0 ? void 0 : onSkip({ id: (post === null || post === void 0 ? void 0 : post.id) || '', communityId: ((_b = post === null || post === void 0 ? void 0 : post.community) === null || _b === void 0 ? void 0 : _b.id) || '' });
6652
- setShowAlert(false);
6653
- pushNotifications({
6654
- title: '',
6655
- message: 'Skip success',
6656
- type: 'success',
6657
- });
6658
- }
6659
- else {
6660
- pushNotifications({
6661
- title: '',
6662
- message: res === null || res === void 0 ? void 0 : res.messages,
6663
- type: 'danger',
6664
- });
6665
- }
6666
- setLoading(false);
6667
- }), []);
6668
- return (React__default.createElement(Popover, { width: 327, withArrow: true, shadow: "md", opened: showAlert },
6669
- React__default.createElement(Popover.Target, null,
6670
- React__default.createElement("div", Object.assign({ className: `${styles$2.skipBtn} ${(rest === null || rest === void 0 ? void 0 : rest.className) || ''}`, onClick: () => setShowAlert(true) }, rest), btnText || t('profilePanel.questionNotClear'))),
6671
- React__default.createElement(Popover.Dropdown, null,
6672
- React__default.createElement("div", null,
6673
- React__default.createElement("div", { className: styles$2.alertHeading }, t('profilePanel.skipQuestion.heading')),
6674
- React__default.createElement("div", { className: styles$2.alertDesc }, t('profilePanel.skipQuestion.content')),
6675
- React__default.createElement("div", { className: styles$2.alertAction },
6676
- React__default.createElement(Button$1, { size: "md", variant: "secondary", leftIcon: React__default.createElement(Close, { color: _theme.fn.primaryColor(), size: 24 }), onClick: () => setShowAlert(false), styles: () => ({
6677
- leftIcon: {
6678
- marginRight: 0,
6679
- },
6680
- }) }),
6681
- React__default.createElement(Button$1, { variant: "primary", size: "md", leftIcon: React__default.createElement(Check, { color: 'white', size: 24 }), onClick: handleSkip, loading: loading, "data-event-category": "Together", "data-event-action": "Unclear Question Click", "data-event-label": currentPageUrl, styles: () => ({
6682
- leftIcon: {
6683
- marginRight: 0,
6684
- },
6685
- }) }))))));
6686
- };
6687
-
6688
- var img$8 = "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none'%3e%3cpath fill='%233E3F58' d='M5 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2M19 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2M12 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2'/%3e%3c/svg%3e";
6689
- var MBMoreSolid = img$8;
6690
-
6691
- var img$7 = "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23595959'%3e%3cpath stroke='%23595959' stroke-linecap='round' stroke-linejoin='round' d='M12 13.333 8 10.37l-4 2.963V3.852c0-.314.12-.616.335-.838.214-.222.505-.347.808-.347h5.714c.303 0 .594.125.808.347s.335.524.335.838z'/%3e%3c/svg%3e";
6692
- var IconBookmarkFill = img$7;
6693
-
6694
- var img$6 = "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none'%3e%3cpath stroke='%23595959' stroke-linecap='round' stroke-linejoin='round' d='M12 13.333 8 10.37l-4 2.963V3.852c0-.314.12-.616.335-.838.214-.222.505-.347.808-.347h5.714c.303 0 .594.125.808.347s.335.524.335.838z'/%3e%3c/svg%3e";
6695
- var IconBookmark = img$6;
6696
-
6697
- var img$5 = "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='3' height='13' fill='none'%3e%3ccircle cx='1.583' cy='6.417' r='1.25' fill='%23595959' transform='rotate(90 1.583 6.417)'/%3e%3ccircle cx='1.583' cy='1.417' r='1.25' fill='%23595959' transform='rotate(90 1.583 1.417)'/%3e%3ccircle cx='1.583' cy='11.417' r='1.25' fill='%23595959' transform='rotate(90 1.583 11.417)'/%3e%3c/svg%3e";
6698
- var IconKebab = img$5;
6699
-
6700
- var img$4 = "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none'%3e%3cpath stroke='%23595959' stroke-linecap='round' stroke-linejoin='round' d='M12 5.333a2 2 0 1 0 0-4 2 2 0 0 0 0 4M4 10a2 2 0 1 0 0-4 2 2 0 0 0 0 4M12 14.667a2 2 0 1 0 0-4 2 2 0 0 0 0 4M5.727 9.007l4.553 2.653M10.273 4.34 5.727 6.993'/%3e%3c/svg%3e";
6701
- var IconShareOnMedia = img$4;
6702
-
6703
- var img$3 = "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none'%3e%3cpath stroke='%23595959' stroke-linecap='round' stroke-linejoin='round' d='M7.17 3.236H2.995a1.193 1.193 0 0 0-1.193 1.192v8.35a1.193 1.193 0 0 0 1.193 1.192h8.35a1.193 1.193 0 0 0 1.192-1.192V8.603'/%3e%3cpath stroke='%23595959' stroke-linecap='round' stroke-linejoin='round' d='M11.643 2.341a1.265 1.265 0 0 1 1.789 1.79L7.766 9.795l-2.385.596.596-2.385z'/%3e%3c/svg%3e";
6704
- var IconTabEdit = img$3;
6705
-
6706
- var img$2 = "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none'%3e%3cpath stroke='%23737373' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.75' d='M2 4h12'/%3e%3cpath stroke='%23737373' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M5.333 4V2.667a1.333 1.333 0 0 1 1.334-1.334h2.666a1.334 1.334 0 0 1 1.334 1.334V4m2 0v9.333a1.334 1.334 0 0 1-1.334 1.334H4.667a1.334 1.334 0 0 1-1.334-1.334V4zM6.667 7.333v4M9.333 7.333v4'/%3e%3c/svg%3e";
6707
- var IconTrashBin = img$2;
6708
-
6709
- // import IconBellOff from '../../../assets/svg/icon-bell-off.svg'
6710
- // import IconBellOn from '../../../assets/svg/icon-bell-on.svg'
6711
- const CardPostPopoverMore = ({ authorEmail, onDeletePost, shareUrl, post, className = '', popoverClassName = '', onBookmark, onRemoveBookmark, onEditPost, }) => {
6712
- const { data: { locale, userInfo, togetherUserId, env: { isMarryBaby }, }, action: { pushNotifications }, } = useContext(TogetherComponentGlobalContext);
6713
- const { t } = useTranslations();
6714
- // const [localHasNoti, setLocalHasNoti] = useState(false)
6715
- const [loading, setLoading] = useState(false);
6716
- const [isOpenLeavePopup, setIsOpenLeavePopup] = useState(false);
6717
- const [isOpenSharePopup, setIsOpenSharePopup] = useState(false);
6718
- const { authActionWrapper } = useTogetherAuthRequiredAction();
6719
- const isAuthor = authorEmail && (userInfo === null || userInfo === void 0 ? void 0 : userInfo.email) && authorEmail === String(userInfo === null || userInfo === void 0 ? void 0 : userInfo.email);
6720
- return (React__default.createElement("div", { className: className, onClick: (e) => {
6721
- e.preventDefault();
6722
- e.stopPropagation();
6723
- } },
6724
- isOpenSharePopup && (React__default.createElement(SharePopup, { url: shareUrl, text: post === null || post === void 0 ? void 0 : post.title, onClose: () => setIsOpenSharePopup(false) })),
6725
- isOpenLeavePopup && (React__default.createElement(PopupDanger, { thumbnail: CommonGAssets.getAssetPath('trash-bin.svg'), isThumbnailIcon: true, title: t('popup.deletePost.title'), description: t('popup.deletePost.description'), acceptText: t('popup.deletePost.accept'), cancelText: t('popup.deletePost.cancel'), onAccept: () => __awaiter(void 0, void 0, void 0, function* () {
6726
- if (!(post === null || post === void 0 ? void 0 : post.id) || loading)
6727
- return;
6728
- setLoading(true);
6729
- try {
6730
- const res = yield deletePost({
6731
- id: post.id,
6732
- locale,
6733
- });
6734
- if ((res === null || res === void 0 ? void 0 : res.status) === 1)
6735
- onDeletePost === null || onDeletePost === void 0 ? void 0 : onDeletePost();
6736
- }
6737
- catch (_a) { }
6738
- setLoading(false);
6739
- }), onClose: () => setIsOpenLeavePopup(false) })),
6740
- React__default.createElement(TreePopoverMenu, { className: popoverClassName, toggleButtonContent: React__default.createElement("img", { src: isMarryBaby ? MBMoreSolid : IconKebab, loading: "lazy" }), position: "bottom", align: "end", buttonProps: {
6741
- isLoading: loading,
6742
- }, data: isAuthor
6743
- ? {
6744
- isShowheader: false,
6745
- type: 'list',
6746
- list: [
6747
- {
6748
- icon: IconShareOnMedia,
6749
- label: t('morePopover.share'),
6750
- onClick: () => setIsOpenSharePopup(true),
6751
- },
6752
- {
6753
- icon: IconTabEdit,
6754
- label: t('actionPopover.edit'),
6755
- onClick: onEditPost,
6756
- },
6757
- {
6758
- icon: IconTrashBin,
6759
- label: t('actionPopover.delete'),
6760
- onClick: () => {
6761
- authActionWrapper(() => setIsOpenLeavePopup(true));
6762
- },
6763
- },
6764
- ],
6765
- }
6766
- : {
6767
- isShowheader: false,
6768
- type: 'list',
6769
- list: [
6770
- {
6771
- icon: IconShareOnMedia,
6772
- label: t('morePopover.share'),
6773
- onClick: () => setIsOpenSharePopup(true),
6774
- },
6775
- {
6776
- icon: !!(post === null || post === void 0 ? void 0 : post.bookmarked) ? IconBookmarkFill : IconBookmark,
6777
- label: !!(post === null || post === void 0 ? void 0 : post.bookmarked)
6778
- ? t('morePopover.unsavePost')
6779
- : t('morePopover.savePost'),
6780
- onClick: () => {
6781
- authActionWrapper(() => __awaiter(void 0, void 0, void 0, function* () {
6782
- if (!(userInfo === null || userInfo === void 0 ? void 0 : userInfo.id) || !(post === null || post === void 0 ? void 0 : post.id))
6783
- return;
6784
- if (post === null || post === void 0 ? void 0 : post.bookmarked) {
6785
- const res = yield callApiWithAuth(getApiPath(PATHS.BOOKMARK.DELETE, {
6786
- _locale: locale,
6787
- }), 'DELETE', {
6788
- data: {
6789
- post_id: String(post.id),
6790
- },
6791
- });
6792
- if ((res === null || res === void 0 ? void 0 : res.status) === 1) {
6793
- pushNotifications({
6794
- title: '',
6795
- message: 'Removed saved post',
6796
- type: 'success',
6797
- displayIcon: IconBookmark,
6798
- });
6799
- onRemoveBookmark && onRemoveBookmark();
6800
- }
6801
- else {
6802
- pushNotifications({
6803
- title: '',
6804
- message: 'Remove failed',
6805
- type: 'danger',
6806
- displayIcon: IconBookmark,
6807
- });
6808
- }
6809
- }
6810
- else {
6811
- const res = yield callApiWithAuth(getApiPath(PATHS.BOOKMARK.CREATE, {
6812
- _locale: locale,
6813
- }), 'POST', {
6814
- data: {
6815
- user_id: togetherUserId || userInfo.id,
6816
- post_id: post.id,
6817
- },
6818
- });
6819
- if ((res === null || res === void 0 ? void 0 : res.status) === 1) {
6820
- pushNotifications({
6821
- title: '',
6822
- message: 'Post saved',
6823
- type: 'success',
6824
- displayIcon: IconBookmarkFill,
6825
- });
6826
- onBookmark && onBookmark();
6827
- }
6828
- else {
6829
- pushNotifications({
6830
- title: '',
6831
- message: 'Post saved failed',
6832
- type: 'danger',
6833
- displayIcon: IconBookmark,
6834
- });
6835
- }
6836
- }
6837
- }));
6838
- },
6839
- },
6840
- // {
6841
- // icon: togetherBasePath + '/svg/icon-bell-on.svg',
6842
- // label: !localHasNoti
6843
- // ? t( 'morePopover.turnOnNotifications' })
6844
- // : t( 'morePopover.turnOffNotifications' }),
6845
- // onClick: () => {
6846
- // authActionWrapper(async () => {
6847
- // if (!post?.id || loading) return
6848
- // setLoading(true)
6849
- // try {
6850
- // const res = await followUnfollowPost({
6851
- // id: post?.id,
6852
- // locale,
6853
- // })
6854
- // if (res?.status === 1) {
6855
- // pushNotifications({
6856
- // message: !localHasNoti
6857
- // ? 'Notification on'
6858
- // : 'Notification off',
6859
- // type: !localHasNoti ? 'success' : 'danger',
6860
- // displayIcon: !localHasNoti ? IconBellOn : IconBellOff,
6861
- // })
6862
- // setLocalHasNoti((v) => !v)
6863
- // }
6864
- // } catch {}
6865
- // setLoading(false)
6866
- // })
6867
- // },
6868
- // },
6869
- {
6870
- icon: IconAlertCircle,
6871
- label: t('morePopover.report'),
6872
- subTree: {
6873
- title: t('morePopover.report.title'),
6874
- description: t('morePopover.report.description'),
6875
- isShowheader: true,
6876
- type: 'list',
6877
- list: Object.keys(REPORT_REASON_MAP)
6878
- .map((k) => ({
6879
- label: REPORT_REASON_MAP[k].label,
6880
- reason: REPORT_REASON_MAP[k].reportReasonText,
6881
- reasonValue: k,
6882
- }))
6883
- .map((item) => ({
6884
- label: t(item.label),
6885
- subTree: {
6886
- title: t('morePopover.reportSubmit.title'),
6887
- description: t('morePopover.reportSubmit.description'),
6888
- isShowheader: true,
6889
- type: 'jsx',
6890
- jsxRenderer: (setShow) => (React__default.createElement(SubmitReportForm, { reason: item.reasonValue, reasonText: t(item.reason), postId: post === null || post === void 0 ? void 0 : post.id, onClose: () => setShow && setShow(false) })),
6891
- },
6892
- })),
6893
- },
6894
- },
6895
- ],
6896
- } })));
6897
- };
6898
-
6899
- const StyledCardPost$1 = styled.div `
6900
- position: relative;
6901
- margin-bottom: 24px;
6902
- background: white;
6903
- border-radius: ${theme.borderRadius};
6904
-
6905
- a {
6906
- text-decoration: none;
6907
- }
6908
-
6909
- ${MediaQueries.mbDown} {
6910
- margin-bottom: 8px;
6911
- }
6912
- &.flat-top {
6913
- border-top-left-radius: 0;
6914
- border-top-right-radius: 0;
6915
- }
6916
-
6917
- .post-pin {
6918
- padding: 0.5rem 1rem;
6919
- border-radius: ${theme.borderRadius} 6px 0 0;
6920
- }
6921
- .post-author {
6922
- display: flex;
6923
- align-items: center;
6924
- justify-content: space-between;
6925
- &.comment {
6926
- padding-right: 2.6rem;
6927
- }
6928
- .author-avatar-wrapper {
6929
- width: 40px;
6930
- height: 40px;
6931
- font-size: 20px;
6932
- ${MediaQueries.mbDown} {
6933
- width: 32px;
6934
- height: 32px;
6935
- font-size: 16px;
6936
- }
6937
- }
6938
- }
6939
- .post-content-link-wrapper {
6940
- color: inherit;
6941
- cursor: pointer;
6942
- .post-content-title {
6943
- padding: 1rem 1rem 0;
6944
- word-break: break-word;
6945
- }
6946
- }
6947
- .social-preview-wrapper.has-image {
6948
- margin-bottom: 5px;
6949
- }
6950
- .social-preview-wrapper,
6951
- .image-preview-wrapper,
6952
- .link-preview-wrapper {
6953
- width: 100%;
6954
- &[data-is-reply='true'] {
6955
- padding-right: 1rem;
6956
- padding-left: 1rem;
6957
- }
6958
- }
6959
- .post-topics {
6960
- padding: 0 1rem;
6961
- }
6962
-
6963
- .post-reaction {
6964
- background: none;
6965
- border-radius: 0 0 6px 6px;
6966
- &.hide-top-border {
6967
- ::before {
6968
- display: none;
6969
- }
6970
- }
6971
- }
6972
- .most-engaging-wrapper {
6973
- padding: 1rem;
6974
- cursor: pointer;
6975
- .author-avatar-wrapper {
6976
- width: 2rem;
6977
- height: 2rem;
6978
- font-size: 1rem;
6979
- }
6980
- .see-more-comments {
6981
- width: 100%;
6982
- padding: 12px 0 0;
6983
- text-align: unset;
6984
- }
6985
- }
6986
- &[data-most-engaging='true'] {
6987
- border: none;
6988
- ${MediaQueries.mbDown} {
6989
- margin: 1rem;
6990
- border: 1px solid #e4e8ec;
6991
- }
6992
- }
6993
- .top-divider {
6994
- border-color: #e4e8ec;
6995
- }
6996
- .popover {
6997
- .popover-menu__btn {
6998
- display: flex;
6999
- width: 1.5rem;
7000
- height: 1rem;
7001
- align-items: center;
7002
- justify-content: center;
7003
- padding: 0;
7004
- background: transparent;
7005
-
7006
- &:hover {
7007
- background-color: transparent;
7008
- }
7009
- }
7010
- .popover-menu__content {
7011
- &.--position-bottom {
7012
- &.--align-end {
7013
- &::before {
7014
- right: 12.5px;
7015
- }
7016
- }
7017
- }
7018
- }
7019
- }
7020
-
7021
- &[data-is-marrybaby='true'] {
7022
- border: 1px solid #f3f3f3;
7023
- border-radius: 1rem;
7024
- /* shadow */
7025
-
7026
- box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.08);
7027
- .image-preview-wrapper,
7028
- .link-preview-wrapper {
7029
- padding-right: 1rem;
7030
- padding-left: 1rem;
7031
- }
7032
- .popover {
7033
- .popover-menu__btn {
7034
- width: 24px;
7035
- height: 24px;
7036
- ${MediaQueries.mbDown} {
7037
- width: 18px;
7038
- height: 18px;
7039
- }
7040
- }
7041
- .popover-menu__content {
7042
- &.--position-bottom {
7043
- &.--align-end {
7044
- &::before {
7045
- right: 1rem;
7046
- }
7047
- width: 350px;
7048
- ${MediaQueries.mbDown} {
7049
- max-width: calc(320px - 2rem);
7050
- }
7051
- }
7052
- }
7053
- }
7054
- }
7055
- .most-engaging-wrapper {
7056
- position: relative;
7057
- padding: 0;
7058
- &::before {
7059
- position: absolute;
7060
- z-index: 5;
7061
- top: 0;
7062
- left: 50%;
7063
- width: calc(100% - 2rem);
7064
- height: 1px;
7065
- background: #f3f3f3;
7066
- content: ' ';
7067
- transform: translateX(-50%);
7068
- }
7069
- }
7070
- ${MediaQueries.mbDown} {
7071
- margin-bottom: 12px;
7072
- }
7073
- }
7074
- `;
7075
-
7076
- var img$1 = "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='17' fill='none'%3e%3cg stroke='%23737373' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' clip-path='url(%23a)'%3e%3cpath d='M2 4.008h12m-8.667 0V2.675a1.333 1.333 0 0 1 1.334-1.333h2.666a1.333 1.333 0 0 1 1.334 1.333v1.333m2 0v9.334a1.333 1.333 0 0 1-1.334 1.333H4.667a1.333 1.333 0 0 1-1.334-1.333V4.008zm-6 3.334v4m2.666-4v4'/%3e%3c/g%3e%3cdefs%3e%3cclipPath id='a'%3e%3cpath fill='white' d='M0 .008h16v16H0z'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e";
7077
- var IconDelete = img$1;
7078
-
7079
- const CardReplyPopover = ({ onDeleteComment, commentId, className = '', popoverClassName = '', }) => {
7080
- const { data: { env: { isMarryBaby }, locale, }, action: { pushNotifications }, } = useContext(TogetherComponentGlobalContext);
7081
- const { t } = useTranslations();
7082
- const [isOpenLeavePopup, setIsOpenLeavePopup] = useState(false);
7083
- const { authActionWrapper } = useTogetherAuthRequiredAction();
7084
- return (React__default.createElement("div", { className: className, onClick: (e) => {
7085
- e.preventDefault();
7086
- e.stopPropagation();
7087
- } },
7088
- isOpenLeavePopup && (React__default.createElement(PopupDanger, { thumbnail: IconDelete, isThumbnailIcon: true, title: t('popup.deleteComment.title'), description: t('popup.deleteComment.description'), acceptText: t('popup.deletePost.accept'), cancelText: t('popup.deletePost.cancel'), onAccept: () => __awaiter(void 0, void 0, void 0, function* () {
7089
- var _a;
7090
- if (!commentId)
7091
- return;
7092
- const res = yield deleteComment({ id: commentId, locale });
7093
- if ((res === null || res === void 0 ? void 0 : res.status) === 1) {
7094
- onDeleteComment && onDeleteComment();
7095
- pushNotifications({
7096
- title: '',
7097
- message: t('notification.success'),
7098
- type: 'success',
7099
- });
7100
- }
7101
- else {
7102
- pushNotifications({
7103
- title: '',
7104
- message: ((_a = res === null || res === void 0 ? void 0 : res.messages) === null || _a === void 0 ? void 0 : _a[0]) || t('notification.failure'),
7105
- type: 'danger',
7106
- });
7107
- }
7108
- }), onClose: () => setIsOpenLeavePopup(false) })),
7109
- React__default.createElement(TreePopoverMenu, { position: "bottom", align: "end", data: {
7110
- isShowheader: false,
7111
- type: 'list',
7112
- list: [
7113
- // {
7114
- // icon: _href('/svg/icon-share-on-media.svg'),
7115
- // label: f({ id: 'morePopover.share' }),
7116
- // subTree: {
7117
- // title: f({ id: 'morePopover.shareOn' }),
7118
- // isShowheader: true,
7119
- // type: 'jsx',
7120
- // jsxType: TreeJSXType.share,
7121
- // data: {
7122
- // shareUrl: shareUrl,
7123
- // shareTitle: shareTitle,
7124
- // },
7125
- // },
7126
- // },
7127
- // {
7128
- // icon: _href('/svg/icon-tab-edit-2.svg'),
7129
- // label: f({ id: 'actionPopover.edit' }),
7130
- // onClick: onEditPost,
7131
- // },
7132
- {
7133
- icon: IconTrashBin,
7134
- label: t('actionPopover.delete'),
7135
- onClick: () => {
7136
- authActionWrapper(() => {
7137
- setIsOpenLeavePopup(true);
7138
- });
7139
- },
7140
- },
7141
- ],
7142
- }, className: popoverClassName, toggleButtonContent: React__default.createElement("img", { src: isMarryBaby ? MBMoreSolid : IconKebab, loading: "lazy" }), buttonProps: {
7143
- // isLoading: loading,
7144
- } })));
7145
- };
7146
-
7147
- const StyledContainer$1 = styled.div `
7148
- .add-link {
7149
- color: ${theme.colors.primaryBase};
7150
- }
7151
- `;
7152
- const StyledAlertTag = styled.div `
7153
- margin: 16px 0;
7154
- background: ${theme.colors.yellow50};
7155
- padding: 5px 10px;
7156
- border-radius: 2px;
7157
-
7158
- .icon {
7159
- display: inline-block;
7160
- vertical-align: middle;
7161
- margin-right: 6px;
7162
- }
7163
- `;
7164
- const StyledSourceItemWrapper = styled.div `
7165
- display: flex;
7166
- align-items: center;
7167
- gap: 8px;
7168
- `;
7169
- const StyledListItems$1 = styled.div `
7170
- padding: 8px 16px;
7171
- `;
7172
- const StyledInputWrapper = styled.div `
7173
- margin-bottom: 12px;
7174
- width: 100%;
7175
- `;
7176
-
7177
- const StyledContainer = styled.div ``;
7178
- const StyledHeader = styled.div `
7179
- margin-bottom: 16px;
7180
- `;
7181
- const StyledListItems = styled.div `
7182
- display: flex;
7183
- flex-wrap: wrap;
7184
- row-gap: 16px;
7185
- ${MediaQueries.tdUp} {
7186
- align-items: center;
7187
- column-gap: 24px;
7188
- }
7189
- `;
7190
- const StyledItem$1 = styled.a `
7191
- display: flex;
7192
- align-items: center;
7193
- gap: 16px;
7194
- ${MediaQueries.mbDown} {
7195
- width: 100%;
7196
- justify-content: space-between;
7197
- }
7198
- `;
7199
- const StyledItemInfo = styled.div `
7200
- display: flex;
7201
- align-items: center;
7202
- gap: 16px;
7203
- `;
7204
- const StyledThumb = styled.div `
7205
- border-radius: ${theme.borderRadius};
7206
- overflow: hidden;
7207
- width: 48px;
7208
- height: 48px;
7209
- img {
7210
- object-fit: cover;
7211
- width: 100%;
7212
- height: 100%;
7213
- }
7214
- `;
7215
-
7216
- const RecommentCategories = ({ categories }) => {
7217
- const { t } = useTranslations();
7218
- const { data: { locale, env: { isMarryBaby }, }, } = useContext(TogetherComponentGlobalContext);
7219
- const url = getCurrentBaseUrl$1(locale, isMarryBaby);
7220
- return (React__default.createElement(StyledContainer, null,
7221
- React__default.createElement(StyledHeader, null,
7222
- React__default.createElement(Heading, { tag: "h6", as: "h5" }, t('cardReply.recommentCategories.heading'))),
7223
- React__default.createElement(StyledListItems, null, categories.map((i) => (React__default.createElement(StyledItem$1, { href: url + i.permalink, key: String(i.termId), target: "_blank" },
7224
- React__default.createElement(StyledItemInfo, null,
7225
- React__default.createElement(StyledThumb, null,
7226
- React__default.createElement("img", { src: i.featureImage ||
7227
- CommonGAssets.getAssetPath(isMarryBaby ? 'mb-logo.svg' : '/logo/logomark.png'), alt: i.displayName, loading: "lazy" })),
7228
- React__default.createElement(Text, { size: "s3", weight: "bold" }, i.displayName)),
7229
- React__default.createElement(ArrowRight, { size: 20, color: theme.colors.gray400 })))))));
7230
- };
7231
-
7232
- const StyledItem = styled.a `
7233
- padding: 12px 0;
7234
- display: flex;
7235
- flex-direction: column;
7236
- gap: 8px;
7237
- border-top: 1px solid ${theme.colors.neutral100};
7238
- text-decoration: none;
7239
-
7240
- &:first-child {
7241
- border-top: 0;
7242
- }
7243
- `;
7244
-
7245
- const SourceItem = ({ postTitle, articleReviewed, modifiedTime, href, }) => {
7246
- const { t } = useTranslations();
7247
- const getDetail = (() => {
7248
- const { expert, editor, is_author } = articleReviewed;
7249
- if (expert) {
7250
- const result = {
7251
- name: expert.display_name,
7252
- role: 'expert',
7253
- avatar: expert.avatar,
7254
- };
7255
- if (is_author) {
7256
- return Object.assign({ title: t('articleAuthor.title.written-by') }, result);
7257
- }
7258
- else {
7259
- if (expert.role === 'expert') {
7260
- // Is Expert
7261
- return Object.assign({ title: t('articleAuthor.title.expert') }, result);
7262
- }
7263
- else {
7264
- // Is medical
7265
- return Object.assign({ title: t('articleAuthor.title.medical') }, result);
7266
- }
7267
- }
7268
- }
7269
- else if (editor) {
7270
- return {
7271
- title: t('articleAuthor.title.fact-check'),
7272
- name: editor.display_name,
7273
- avatar: editor.avatar,
7274
- };
7275
- }
7276
- })();
7277
- return (React__default.createElement(StyledItem, { href: href, title: postTitle, target: "_blank" },
7278
- React__default.createElement(Text, { size: "s3", as: "h5", weight: "bold" }, postTitle),
7279
- React__default.createElement("div", null,
7280
- React__default.createElement(CardAuthor, { avatar: getDetail === null || getDetail === void 0 ? void 0 : getDetail.avatar, avatarProps: {
7281
- size: 32,
7282
- }, name: getDetail === null || getDetail === void 0 ? void 0 : getDetail.name, role: getDetail === null || getDetail === void 0 ? void 0 : getDetail.role, hideBackground: true },
7283
- React__default.createElement(CardAuthor.SubTextRow, null,
7284
- React__default.createElement(CardAuthor.SubText, null, getDetail === null || getDetail === void 0 ? void 0 :
7285
- getDetail.title,
7286
- ' ',
7287
- React__default.createElement("span", { style: { color: theme.colors.gray800 } }, getDetail === null || getDetail === void 0 ? void 0 : getDetail.name)),
7288
- React__default.createElement(CardAuthor.SubDivider, null),
7289
- React__default.createElement(CardAuthor.SubText, null, modifiedTime))))));
7290
- };
7291
-
7292
- var styles$1 = {"accordion":"CnNZq8D","header":"F4mmgSy","heading":"_8jLruY3","headingIcon":"FE8w-fe","panel":"Yd2a9Nj","chevron":"A7QrQ7A"};
7293
-
7294
- const SourceList = (_a) => {
7295
- var { listUrl: listUrlInit, hideSourceList, categorySlug, editMode, collapseSource, onListChange, isMarryBaby } = _a, rest = __rest(_a, ["listUrl", "hideSourceList", "categorySlug", "editMode", "collapseSource", "onListChange", "isMarryBaby"]);
7296
- const { t } = useTranslations();
7297
- const [listUrl, setListUrl] = useState(listUrlInit || []);
7298
- const [data, setData] = useState([]);
7299
- const [categories, setCategories] = useState([]);
7300
- const [loading, setLoading] = useState(false);
7301
- useEffect(() => {
7302
- !hideSourceList &&
7303
- (() => __awaiter(void 0, void 0, void 0, function* () {
7304
- setLoading(true);
7305
- const listPaths = listUrl.map((i) => {
7306
- const url = new URL(i);
7307
- const pathArr = String(url.pathname)
7308
- .split('/')
7309
- .filter((i) => i != '');
7310
- const origin = url.origin;
7311
- const isMarrySite = origin.search('marrybaby.vn') !== -1;
7312
- return {
7313
- isMarrySite,
7314
- path: pathArr[pathArr.length - 1],
7315
- href: i,
7316
- };
7317
- });
7318
- const listApi = [
7319
- ...listPaths.map((i) => callApi(i.isMarrySite
7320
- ? getMarryBabyApiPath(DISCOVER_PATHS.GET_PREVIEW_ARTICLE, {
7321
- fullSlug: i.path,
7322
- }, true)
7323
- : getDiscoverApiPath(DISCOVER_PATHS.GET_PREVIEW_ARTICLE, {
7324
- fullSlug: i.path,
7325
- }, true), 'GET')),
7326
- ];
7327
- const res = yield Promise.all(listApi);
7328
- setData(res
7329
- .map((i, index) => {
7330
- var _a, _b;
7331
- return ((_a = i === null || i === void 0 ? void 0 : i.data) === null || _a === void 0 ? void 0 : _a.post) && Object.assign(Object.assign({}, formatArticle((_b = i === null || i === void 0 ? void 0 : i.data) === null || _b === void 0 ? void 0 : _b.post)), { href: listPaths[index].href });
7332
- })
7333
- .filter(Boolean));
7334
- setLoading(false);
7335
- }))();
7336
- }, []);
7337
- useEffect(() => {
7338
- !hideSourceList &&
7339
- (data === null || data === void 0 ? void 0 : data.length) === 0 &&
7340
- categorySlug &&
7341
- (() => __awaiter(void 0, void 0, void 0, function* () {
7342
- var _a;
7343
- const res = yield callApi(isMarryBaby
7344
- ? getMarryBabyApiPath(DISCOVER_PATHS.GET_CATEGORY_OR_ARTICLE_DETAIL, {
7345
- fullSlug: categorySlug,
7346
- }, true)
7347
- : getDiscoverApiPath(DISCOVER_PATHS.GET_CATEGORY_OR_ARTICLE_DETAIL, {
7348
- fullSlug: categorySlug,
7349
- }, true), 'GET');
7350
- (res === null || res === void 0 ? void 0 : res.data) && setCategories([formatCategory((_a = res === null || res === void 0 ? void 0 : res.data) === null || _a === void 0 ? void 0 : _a.category)]);
7351
- }))();
7352
- }, [data]);
7353
- const handleRemoveItem = (idx) => {
7354
- setListUrl((old) => {
7355
- const tmp = [...old];
7356
- tmp.splice(idx, 1);
7357
- return tmp;
7358
- });
7359
- setData((old) => {
7360
- const tmp = [...old];
7361
- tmp.splice(idx, 1);
7362
- return tmp;
7363
- });
7364
- };
7365
- useEffect(() => {
7366
- onListChange === null || onListChange === void 0 ? void 0 : onListChange(listUrl);
7367
- }, [listUrl]);
7368
- return (React__default.createElement("div", Object.assign({}, rest),
7369
- !editMode && (React__default.createElement(StyledAlertTag, null,
7370
- React__default.createElement("img", { className: "icon", src: CommonGAssets.getAssetPath('warning.svg'), alt: "warning", style: { marginBottom: '3px', width: '18px' }, loading: "lazy" }),
7371
- React__default.createElement(Text, { size: "s3", as: "span", dangerouslySetInnerHTML: {
7372
- __html: t('cardReply.disclaimer'),
7373
- } }))),
7374
- !hideSourceList ? (loading ? (React__default.createElement(Loading$1, null)) : data.length > 0 || editMode ? (React__default.createElement(StyledContainer$1, null,
7375
- React__default.createElement(Accordion, { defaultValue: !collapseSource && 'accordion', styles: {
7376
- control: {
7377
- borderRadius: 'inherit',
7378
- '&[aria-expanded="false"]': {
7379
- borderBottom: 0,
7380
- },
7381
- },
7382
- chevron: {
7383
- width: '32px',
7384
- height: '32px',
7385
- },
7386
- content: {
7387
- padding: 0,
7388
- borderBottom: 0,
7389
- borderTop: `1px solid ${theme.colors.neutral100}`,
7390
- },
7391
- item: {
7392
- marginBottom: '16px',
7393
- borderTopLeftRadius: '8px',
7394
- borderTopRightRadius: '8px',
7395
- border: `1px solid ${theme.colors.neutral100}`,
7396
- borderBottomLeftRadius: '8px',
7397
- borderBottomRightRadius: '8px',
7398
- '&[data-active]': {
7399
- borderBottomLeftRadius: 0,
7400
- borderBottomRightRadius: 0,
7401
- },
7402
- },
7403
- }, chevron: React__default.createElement("div", { className: styles$1.chevron },
7404
- React__default.createElement(ArrowDown, { color: theme.colors.gray600, size: 20 })) },
7405
- React__default.createElement(Accordion.Item, { value: "accordion" },
7406
- React__default.createElement(Accordion.Control, null,
7407
- React__default.createElement("div", { className: styles$1.header },
7408
- React__default.createElement(Heading, { as: "h4", tag: "h6" }, t('cardReply.source')))),
7409
- React__default.createElement(Accordion.Panel, null,
7410
- React__default.createElement(StyledListItems$1, null,
7411
- (data || []).map((i, idx) => (React__default.createElement(StyledSourceItemWrapper, { key: String(idx) },
7412
- typeof i === 'object' ? (React__default.createElement(SourceItem, Object.assign({}, i))) : (React__default.createElement(StyledInputWrapper, null,
7413
- React__default.createElement(Input, { style: { width: '100%' }, name: "source-list", value: i || '', size: "sm", onChange: (v) => {
7414
- setListUrl((old) => {
7415
- const tmp = [...old];
7416
- tmp[idx] = v;
7417
- return tmp;
7418
- });
7419
- setData((old) => {
7420
- const tmp = [...old];
7421
- tmp[idx] = v;
7422
- return tmp;
7423
- });
7424
- } }))),
7425
- editMode && (React__default.createElement(Button, { size: "md", color: "transparent", icon: React__default.createElement(Trash, null), onClick: () => handleRemoveItem(idx) }))))),
7426
- editMode && (React__default.createElement(Button, { className: "add-link", color: "transparent", size: "md", icon: React__default.createElement(Plus, { color: theme.colors.primaryBase, size: 18 }), onClick: () => {
7427
- setListUrl((old) => [...old, '']);
7428
- setData((old) => [...old, '']);
7429
- } }, "Add source")))))))) : (React__default.createElement(RecommentCategories, { categories: categories }))) : null));
7430
- };
7431
-
7432
- const StyledCardPost = styled.div `
7433
- position: relative;
7434
- margin-bottom: 0;
7435
- background: white;
7436
- border-radius: ${theme.borderRadius};
7437
-
7438
- .verify-tag {
7439
- margin-top: 12px;
7440
- }
7441
-
7442
- .post-author {
7443
- &.with-popover {
7444
- padding-right: 2.6rem;
7445
- }
7446
- .author-avatar-wrapper {
7447
- width: 40px;
7448
- height: 40px;
7449
- font-size: 20px;
7450
- ${MediaQueries.mbDown} {
7451
- width: 32px;
7452
- height: 32px;
7453
- font-size: 16px;
7454
- }
7455
- }
7456
- }
7457
- .image-preview-wrapper,
7458
- .link-preview-wrapper {
7459
- width: 100%;
7460
- &[data-is-reply='true'] {
7461
- padding-right: 1rem;
7462
- padding-left: 1rem;
7463
- }
7464
- }
7465
- .post-reaction {
7466
- background: none;
7467
- border-radius: 0 0 6px 6px;
7468
- }
7469
- &[data-is-reply='true'] {
7470
- > .post-author .author-avatar-wrapper {
7471
- width: 20px;
7472
- height: 20px;
7473
- font-size: 10px;
7474
- }
7475
- }
7476
- &[data-is-reply='false'] {
7477
- border: 1px solid #e4e8ec;
7478
- }
7479
- .expert-wrapper {
7480
- width: 100%;
7481
- }
7482
- &[data-has-booking='true'] {
7483
- display: grid;
7484
- .post-author {
7485
- background-color: ${theme.colors.primary50};
7486
- }
7487
- .btn-wrapper {
7488
- padding: 0 16px;
7489
- .btn-booking {
7490
- width: 100%;
7491
- margin: 12px 0;
7492
- }
7493
- }
7494
- }
7495
-
7496
- .comment-reply-wrapper {
7497
- padding: 0 1rem;
7498
- .more-cmt {
7499
- .chevron-right {
7500
- height: 1rem;
7501
- width: 1rem;
7502
- vertical-align: middle;
7503
- }
7504
- }
7505
- }
7506
- .top-divider {
7507
- border-color: #e4e8ec;
7508
- }
7509
- .popover {
7510
- position: absolute;
7511
- top: 1.5rem;
7512
- right: 1rem;
7513
- .popover-menu__btn {
7514
- display: flex;
7515
- width: 1rem;
7516
- height: 1rem;
7517
- align-items: center;
7518
- justify-content: center;
7519
- padding: 0;
7520
- background: transparent;
7521
-
7522
- &:hover {
7523
- background-color: transparent;
7524
- }
7525
-
7526
- .popover-menu__content {
7527
- &.--position-bottom {
7528
- &.--align-end {
7529
- &::before {
7530
- right: 12.5px;
7531
- }
7532
- }
7533
- }
7534
- }
7535
- }
7536
- }
7537
-
7538
- &[data-is-marrybaby='true'] {
7539
- &[data-is-reply='false'] {
7540
- border: none;
7541
- }
7542
- .image-preview-wrapper,
7543
- .link-preview-wrapper {
7544
- padding-right: 1rem;
7545
- padding-left: 1rem;
7546
- }
7547
- .popover {
7548
- .popover-menu__btn {
7549
- width: 24px;
7550
- height: 24px;
7551
- }
7552
- }
7553
-
7554
- margin-left: 56px;
7555
- ${MediaQueries.mbDown} {
7556
- margin-left: 40px;
7557
- }
7558
- > .post-author {
7559
- margin-left: -56px;
7560
- ${MediaQueries.mbDown} {
7561
- margin-left: -40px;
7562
- }
7563
- .author-info {
7564
- align-items: center;
7565
- display: flex;
7566
- align-items: center;
7567
- .author-info-top {
7568
- width: 100%;
7569
- }
7570
- .author-info-text-wrapper {
7571
- justify-content: space-between;
7572
- }
7573
- }
7574
- .author-avatar-wrapper {
7575
- width: 40px;
7576
- height: 40px;
7577
- font-size: 20px;
7578
- ${MediaQueries.mbDown} {
7579
- width: 24px;
7580
- height: 24px;
7581
- font-size: 12px;
7582
- }
7583
- }
7584
- }
7585
- &[data-is-reply] {
7586
- > .post-author {
7587
- .author-avatar-wrapper {
7588
- width: 40px;
7589
- height: 40px;
7590
- font-size: 20px;
7591
- ${MediaQueries.mbDown} {
7592
- width: 24px;
7593
- height: 24px;
7594
- font-size: 12px;
7595
- }
7596
- }
7597
- }
7598
- }
7599
-
7600
- .comment-reply-wrapper {
7601
- padding-right: 0;
7602
- padding-left: 0;
7603
- }
7604
- .post-reaction {
7605
- &::after {
7606
- position: absolute;
7607
- bottom: 0;
7608
- left: 50%;
7609
- width: calc(100% - 2rem);
7610
- height: 1px;
7611
- background: #f3f3f3;
7612
- content: ' ';
7613
- transform: translateX(-50%);
7614
- }
7615
- }
7616
- .post-content-wrapper {
7617
- padding-top: 0;
7618
- padding-bottom: 0;
7619
- ${MediaQueries.mbDown} {
7620
- padding-left: 0.5rem;
7621
- }
7622
- }
7623
-
7624
- ${MediaQueries.mbDown} {
7625
- margin-bottom: 12px;
7626
- }
7627
- }
7628
- `;
7629
- const StyledSourceList = styled(SourceList) `
7630
- margin-top: 12px;
7631
- padding: 0.5rem 1rem 1rem;
7632
- `;
7633
-
7634
- var styles = {"button":"-dzIuHr"};
7635
-
7636
- const VerifiedTag = ({ userId, avatar, name, role, title, className, }) => {
7637
- const { t } = useTranslations();
7638
- const [openPopup, setOpenPopup] = useState(false);
7639
- return (React__default.createElement(React__default.Fragment, null,
7640
- React__default.createElement(Button, { className: `${styles.button} ${className}`, color: "success", size: "xs", onClick: () => setOpenPopup(true), style: {
7641
- padding: '5px 8px',
7642
- marginBottom: '12px',
7643
- borderRadius: '4px',
7644
- } },
7645
- React__default.createElement("span", { className: "text" },
7646
- React__default.createElement(Endorse, { isSolid: true, size: 18, color: theme.colors.green800, className: "icon" }),
7647
- t('cardReply.verifyBy', {
7648
- name: `${name || ''}`,
7649
- }))),
7650
- React__default.createElement(ProfileDetailModal, { open: openPopup, onClose: () => setOpenPopup(false), profileModalProps: { zIndex: 1000 } },
7651
- React__default.createElement(ProfileDetail, { authorProps: {
7652
- userId,
7653
- avatar: avatar,
7654
- name,
7655
- role,
7656
- title,
7657
- }, hideQuestionTab: true }))));
7658
- };
7659
-
7660
- var img = "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none'%3e%3cpath stroke='%232D87F3' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 12 4-4-4-4'/%3e%3c/svg%3e";
7661
- var ChevronRightActive = img;
7662
-
7663
- const COMMENT_LIMIT = 4;
7664
- const CardReply = ({ className, style, comment: CommentProps, type = 'comment', level = 0, replyingId, onPostCommentSuccess, post, onDeleteComment, refetchComment, hasQuickBookingEnable, handleMakeAppointment, cardAuthorProps, maxChars = 600, disableShortenContent, }) => {
7665
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
7666
- const { data: { locale, userInfo, env: { isMarryBaby }, }, } = useContext(TogetherComponentGlobalContext);
7667
- const { t } = useTranslations();
7668
- const [comment, setComment] = useState(CommentProps || null);
7669
- const { id, countLikes, content, replies = [], images = [], author, liked, link, mentionedUser, mentions, } = comment;
7670
- const { text, replyingTo } = decodeCommentBody(content);
7671
- const { authActionWrapper } = useTogetherAuthRequiredAction({
7672
- _joinCommunityIds: [(_a = post === null || post === void 0 ? void 0 : post.community) === null || _a === void 0 ? void 0 : _a.id],
7673
- _joinTopicIds: (_b = post === null || post === void 0 ? void 0 : post.topics) === null || _b === void 0 ? void 0 : _b.map((t) => t.id),
7674
- });
7675
- const [maxRepliesShow, setMaxRepliesShow] = useState(COMMENT_LIMIT);
7676
- const isCommented = (userInfo === null || userInfo === void 0 ? void 0 : userInfo.id)
7677
- ? replies === null || replies === void 0 ? void 0 : replies.some((c) => c.author.id === userInfo.id)
7678
- : false;
7679
- const addNewReply = (comment) => {
7680
- setComment((old) => {
7681
- // somehow this set state run twice
7682
- // => we need to check unique comment id before add to array
7683
- if (!old.replies.find((c) => c.id === comment.id)) {
7684
- old.replies.unshift(comment);
7685
- const newComment = Object.assign(Object.assign({}, old), { replies: old.replies.slice(), countReplies: old.countReplies + 1 });
7686
- refetchComment && refetchComment(newComment);
7687
- return newComment;
7688
- }
7689
- return old;
7690
- });
7691
- };
7692
- const [showInputComment, setShowInputComment] = useState(false);
7693
- const sortedReplies = useMemo(() => {
7694
- if (type !== 'comment' || !replies || replies.length == 0)
7695
- return replies;
7696
- return replies.sort((a, b) => {
7697
- const timeA = new Date(a.createdAt).getTime();
7698
- const timeB = new Date(b.createdAt).getTime();
7699
- if (timeA > timeB)
7700
- return -1;
7701
- if (timeA < timeB)
7702
- return 1;
7703
- return 0;
7704
- });
7705
- }, [type, replies]);
7706
- const mergeCountReplies = (replies === null || replies === void 0 ? void 0 : replies.length) || 0;
7707
- const hasPopover = String(author === null || author === void 0 ? void 0 : author.email) &&
7708
- (userInfo === null || userInfo === void 0 ? void 0 : userInfo.email) &&
7709
- String(author === null || author === void 0 ? void 0 : author.email) === String(userInfo === null || userInfo === void 0 ? void 0 : userInfo.email);
7710
- // const isAnonymousOfCurAuthor =
7711
- // post?.isAnonymous && post?.author?.username === author?.username
7712
- // const name = isAnonymousOfCurAuthor
7713
- // ? t('cardPost.anonymous')
7714
- // : author?.name || author?.username || ''
7715
- // const avatar = isAnonymousOfCurAuthor ? DEFAULT_AVATAR_IMG : author?.avatar
7716
- // const username = isAnonymousOfCurAuthor
7717
- // ? t('cardPost.anonymous')
7718
- // : author?.username || author?.name || ''
7719
- const name = (author === null || author === void 0 ? void 0 : author.name) || (author === null || author === void 0 ? void 0 : author.username) || '';
7720
- const username = (author === null || author === void 0 ? void 0 : author.username) || (author === null || author === void 0 ? void 0 : author.name) || '';
7721
- const avatar = author === null || author === void 0 ? void 0 : author.avatar;
7722
- const authorRole = (post === null || post === void 0 ? void 0 : post.isAnonymous) ? undefined : author === null || author === void 0 ? void 0 : author.role;
7723
- const listMentions = [
7724
- ...((post === null || post === void 0 ? void 0 : post.isAnonymous)
7725
- ? [
7726
- {
7727
- id: ((_c = post === null || post === void 0 ? void 0 : post.author) === null || _c === void 0 ? void 0 : _c.id) || 0,
7728
- name: t('cardPost.anonymous'),
7729
- },
7730
- ]
7731
- : []),
7732
- ...(mentions || []),
7733
- ];
7734
- const [hospitalInfo, setHospitalInfo] = useState(null);
7735
- const [doctorInfo, setDoctorInfo] = useState(null);
7736
- useEffect(() => {
7737
- if (author === null || author === void 0 ? void 0 : author.hospitalId) {
7738
- const fetchHospitalDetail = (hospitalId) => __awaiter(void 0, void 0, void 0, function* () {
7739
- var _a;
7740
- const response = yield callApi(getCarePath(CARE_PATHS.GET_HOSPITAL_INFO, {
7741
- hospital_branch_id: hospitalId,
7742
- website_url: domainLocales$1[locale],
7743
- }), 'get');
7744
- if ((_a = response === null || response === void 0 ? void 0 : response._data) === null || _a === void 0 ? void 0 : _a.branch) {
7745
- setHospitalInfo(response === null || response === void 0 ? void 0 : response._data.branch);
7746
- }
7747
- });
7748
- fetchHospitalDetail(author.hospitalId);
7749
- }
7750
- if (author === null || author === void 0 ? void 0 : author.doctorId) {
7751
- const fetchDoctorDetail = (doctorId) => __awaiter(void 0, void 0, void 0, function* () {
7752
- var _b;
7753
- const response = yield callApi(getCarePath(CARE_PATHS.GET_DOCTOR_INFO, {
7754
- doctorId: doctorId,
7755
- website_url: domainLocales$1[locale],
7756
- }), 'get');
7757
- if ((_b = response === null || response === void 0 ? void 0 : response._data) === null || _b === void 0 ? void 0 : _b.doctor) {
7758
- setDoctorInfo(response === null || response === void 0 ? void 0 : response._data.doctor);
7759
- }
7760
- });
7761
- fetchDoctorDetail(author.doctorId);
7762
- }
7763
- }, [author.hospitalId, author.doctorId]);
7764
- const isDoctorAvailable = (doctorInfo === null || doctorInfo === void 0 ? void 0 : doctorInfo.valid_outpatient) || (doctorInfo === null || doctorInfo === void 0 ? void 0 : doctorInfo.valid_telemedicine);
7765
- const isHospitalAvailable = ((hospitalInfo === null || hospitalInfo === void 0 ? void 0 : hospitalInfo.total_available_service) ||
7766
- (hospitalInfo === null || hospitalInfo === void 0 ? void 0 : hospitalInfo.total_available_doctor)) > 0;
7767
- const hasQuickBooking = hasQuickBookingEnable && (isDoctorAvailable || isHospitalAvailable);
7768
- const isChatbotAuthor = ((_d = comment === null || comment === void 0 ? void 0 : comment.author) === null || _d === void 0 ? void 0 : _d.type) === 'chatbot';
7769
- return (React__default.createElement(TogetherAuthConfigContextProvider, { defaultParams: {
7770
- _joinCommunityIds: [(_e = post === null || post === void 0 ? void 0 : post.community) === null || _e === void 0 ? void 0 : _e.id],
7771
- _joinTopicIds: (_f = post === null || post === void 0 ? void 0 : post.topics) === null || _f === void 0 ? void 0 : _f.map((t) => t.id),
7772
- } },
7773
- React__default.createElement(StyledCardPost, { className: className, style: style, "data-is-reply": !!level, "data-is-marrybaby": isMarryBaby, "data-has-booking": hasQuickBooking },
7774
- type === 'reply' && React__default.createElement(Divider, { className: "top-divider", type: "solid" }),
7775
- React__default.createElement("div", { style: { padding: '16px 16px 0' } },
7776
- React__default.createElement(CardAuthor, Object.assign({ avatar: avatar, name: name, username: username, timeText: post === null || post === void 0 ? void 0 : post.createdTime, community: post === null || post === void 0 ? void 0 : post.community,
7777
- // miniIcon="./svg/icon-tag.svg"
7778
- // authorLabelType={getAuthorLabelFromRoles(author?.role || [])}
7779
- className: `post-author ${hasPopover ? 'with-popover' : ''}`, type: type, userId: author === null || author === void 0 ? void 0 : author.id, role: authorRole, expertId: author === null || author === void 0 ? void 0 : author.partnerId, title: author === null || author === void 0 ? void 0 : author.title, doctorId: author === null || author === void 0 ? void 0 : author.doctorId, hospitalId: author === null || author === void 0 ? void 0 : author.hospitalId, hasQuickBooking: hasQuickBooking, handleMakeAppointment: handleMakeAppointment, isAnonymous: (comment === null || comment === void 0 ? void 0 : comment.isAnonymous) ||
7780
- (Boolean(post === null || post === void 0 ? void 0 : post.isAnonymous) &&
7781
- ((_g = post === null || post === void 0 ? void 0 : post.author) === null || _g === void 0 ? void 0 : _g.username) === (author === null || author === void 0 ? void 0 : author.username)), hideBackground: isChatbotAuthor, userType: author === null || author === void 0 ? void 0 : author.type }, cardAuthorProps)),
7782
- Boolean(comment === null || comment === void 0 ? void 0 : comment.isVerify) && !Boolean(comment === null || comment === void 0 ? void 0 : comment.isOppose) && (React__default.createElement(VerifiedTag, { title: (_h = comment === null || comment === void 0 ? void 0 : comment.userVerify) === null || _h === void 0 ? void 0 : _h.title, name: (_j = comment === null || comment === void 0 ? void 0 : comment.userVerify) === null || _j === void 0 ? void 0 : _j.name, userId: (_k = comment === null || comment === void 0 ? void 0 : comment.userVerify) === null || _k === void 0 ? void 0 : _k.id, role: (_l = comment === null || comment === void 0 ? void 0 : comment.userVerify) === null || _l === void 0 ? void 0 : _l.role, avatar: (_m = comment === null || comment === void 0 ? void 0 : comment.userVerify) === null || _m === void 0 ? void 0 : _m.avatar, className: "verify-tag" }))),
7783
- React__default.createElement(PostContent, { className: "post-content-wrapper", replyingTo: replyingTo, mentionedUser: mentionedUser, description: text, mentions: listMentions, maxChars: maxChars, disableShortenContent: disableShortenContent }),
7784
- React__default.createElement("span", null),
7785
- React__default.createElement("span", null),
7786
- images && images.length > 0 ? (React__default.createElement("div", { key: "image-preview", className: "image-preview-wrapper", "data-is-reply": true },
7787
- React__default.createElement(PostImagePreview, { images: images, authorName: author === null || author === void 0 ? void 0 : author.username }))) : null,
7788
- (!images || images.length === 0) && link ? (React__default.createElement("div", { key: "link-preview", className: "link-preview-wrapper", "data-is-reply": true },
7789
- React__default.createElement(CardLink, { url: link }))) : null,
7790
- type !== 'most-engaging' ? (React__default.createElement(React__default.Fragment, null,
7791
- isChatbotAuthor && (React__default.createElement(StyledSourceList, { listUrl: comment === null || comment === void 0 ? void 0 : comment.source, categorySlug: comment === null || comment === void 0 ? void 0 : comment.categorySlug })),
7792
- React__default.createElement(CardReactions, { type: CardReactionType.reply, loveCount: countLikes, replyCount: mergeCountReplies, className: "post-reaction", liked: liked, isReplied: isCommented, hideCommentIcon: type === 'reply' || isChatbotAuthor, hasShare: false, onCommentClick: () => authActionWrapper(() => setShowInputComment((v) => !v)), onCommentCountClick: () => authActionWrapper(() => {
7793
- setShowInputComment(true);
7794
- }), onLikeClick: () => authActionWrapper(() => __awaiter(void 0, void 0, void 0, function* () {
7795
- if (id) {
7796
- const res = yield likeUnlikeComment({
7797
- commentId: id,
7798
- setLike: !liked,
7799
- locale,
7800
- });
7801
- if (res.status === 1) {
7802
- setComment((old) => {
7803
- return Object.assign(Object.assign({}, old), { liked: !liked, countLikes: old.countLikes + (!liked ? 1 : -1) });
7804
- });
7805
- }
7806
- }
7807
- })) }),
7808
- showInputComment && (React__default.createElement(InputCommentBar, { replyingId: replyingId || comment.id, replyToName: name, isReply: true, onClose: () => setShowInputComment(false), onPostSuccess: (comment) => {
7809
- if (type === 'reply') {
7810
- onPostCommentSuccess && onPostCommentSuccess(comment);
7811
- }
7812
- else {
7813
- addNewReply(comment);
7814
- }
7815
- }, post: post, replyingUser: author })),
7816
- type === 'comment' && replies && replies.length > 0 ? (React__default.createElement("div", { className: "comment-reply-wrapper" }, (_o = sortedReplies === null || sortedReplies === void 0 ? void 0 : sortedReplies.slice(0, maxRepliesShow)) === null || _o === void 0 ? void 0 :
7817
- _o.map((reply) => (React__default.createElement(CardReply, { key: reply.id, comment: reply, type: "reply", className: "comment-reply-item", level: level + 1, replyingId: id, onPostCommentSuccess: addNewReply, post: post, onDeleteComment: () => {
7818
- setComment((old) => {
7819
- return Object.assign(Object.assign({}, old), { replies: old.replies.filter((r) => r.id !== reply.id), countReplies: old.countReplies - 1 });
7820
- });
7821
- }, handleMakeAppointment: handleMakeAppointment, hasQuickBookingEnable: hasQuickBookingEnable }))),
7822
- mergeCountReplies > maxRepliesShow && (React__default.createElement(React__default.Fragment, null,
7823
- React__default.createElement(Divider, { className: "top-divider", type: "solid" }),
7824
- React__default.createElement(Button, { className: "more-cmt", size: "lg", color: "ghost", onClick: () => setMaxRepliesShow((m) => m + COMMENT_LIMIT) },
7825
- t('comment.seeMoreReplies', {
7826
- count: mergeCountReplies - maxRepliesShow,
7827
- }),
7828
- React__default.createElement("img", { className: "chevron-right", src: ChevronRightActive, loading: "lazy" })))))) : null)) : null,
7829
- hasPopover && (React__default.createElement(CardReplyPopover, { onDeleteComment: onDeleteComment, className: "popover", commentId: comment.id })))));
7830
- };
7831
-
7832
- const getMostEngagingComment = (postId, locale) => __awaiter(void 0, void 0, void 0, function* () {
7833
- var _a, _b, _c;
7834
- const commentsRes = yield callApiWithOptionalAuth(getApiPath(PATHS.COMMENT.LIST, {
7835
- postId: postId,
7836
- _locale: locale,
7837
- sort: 'popularity',
7838
- perPage: 1,
7839
- withoutReply: 1,
7840
- }), 'GET');
7841
- return (_c = (_b = (_a = commentsRes === null || commentsRes === void 0 ? void 0 : commentsRes.data) === null || _a === void 0 ? void 0 : _a.comments) === null || _b === void 0 ? void 0 : _b.map(formatComment)) === null || _c === void 0 ? void 0 : _c[0];
7842
- });
7843
- const CardPost = ({ className, style, hideViewMoreComment, showMostEngaging, onCommentClick, onCommentCountClick, onMostEngagingCommentClick, onPostCommentSuccess: onPostCommentSuccessProp, disableCardLink, disableShortenContent, onDeletePost, onEditPost, post: postProp, mostEngagingComment: mostEngagingCommentProp, onDeleteComment: onDeleteCommentProp, showInputComment: propsShowInputComment, InlineCommentsComponent, hasQuickBookingEnable, handleMakeAppointment, cardAuthorProps, }) => {
7844
- const [post, setPost] = useState(postProp);
7845
- const [isOpenSharePopup, setIsOpenSharePopup] = useState(false);
7846
- const [mostEngagingComment, setMostEngagingComment] = useState(mostEngagingCommentProp);
7847
- const { community, topics, author, slug, isPin, liked, photos, mentions, title, description, previewUrl, likesCount, commentsCount, id, commented, } = post;
7848
- const { data: { locale, env: { isMarryBaby, togetherBasePath }, }, action: { pushNotifications }, } = useContext(TogetherComponentGlobalContext);
7849
- const { t } = useTranslations();
7850
- const [showInputComment, setShowInputComment] = useState(propsShowInputComment);
7851
- const postRelativeHref = `${togetherBasePath}/${(community === null || community === void 0 ? void 0 : community.slug) || '_'}/${slug || ''}`;
7852
- const postHref = `${getCurrentBaseUrl(locale)}${postRelativeHref}`;
7853
- const { authActionWrapper } = useTogetherAuthRequiredAction((community === null || community === void 0 ? void 0 : community.slug)
7854
- ? {
7855
- _joinCommunityIds: [community.id],
7856
- _joinTopicIds: topics === null || topics === void 0 ? void 0 : topics.map((t) => t.id),
7857
- // _location: postHref,
7858
- }
7859
- : undefined);
7860
- const [isLikeLoading, setIsLikeLoading] = useState(false);
7861
- useEffect(() => {
7862
- setShowInputComment(propsShowInputComment);
7863
- }, [propsShowInputComment]);
7864
- const name = (author === null || author === void 0 ? void 0 : author.name) || (author === null || author === void 0 ? void 0 : author.username) || '';
7865
- const username = (author === null || author === void 0 ? void 0 : author.username) || (author === null || author === void 0 ? void 0 : author.name) || '';
7866
- const avatar = author === null || author === void 0 ? void 0 : author.avatar;
7867
- const authorRole = (post === null || post === void 0 ? void 0 : post.isAnonymous) ? undefined : author === null || author === void 0 ? void 0 : author.role;
7868
- const [hospitalInfo, setHospitalInfo] = useState(null);
7869
- const [doctorInfo, setDoctorInfo] = useState(null);
7870
- useEffect(() => {
7871
- if (author === null || author === void 0 ? void 0 : author.hospitalId) {
7872
- const fetchHospitalDetail = (hospitalId) => __awaiter(void 0, void 0, void 0, function* () {
7873
- var _a;
7874
- const response = yield callApi(getCarePath(CARE_PATHS.GET_HOSPITAL_INFO, {
7875
- hospital_branch_id: hospitalId,
7876
- website_url: domainLocales[locale],
7877
- }), 'get');
7878
- if ((_a = response === null || response === void 0 ? void 0 : response._data) === null || _a === void 0 ? void 0 : _a.branch) {
7879
- setHospitalInfo(response === null || response === void 0 ? void 0 : response._data.branch);
7880
- }
7881
- });
7882
- fetchHospitalDetail(author.hospitalId);
7883
- }
7884
- if (author === null || author === void 0 ? void 0 : author.doctorId) {
7885
- const fetchDoctorDetail = (doctorId) => __awaiter(void 0, void 0, void 0, function* () {
7886
- var _b;
7887
- const response = yield callApi(getCarePath(CARE_PATHS.GET_DOCTOR_INFO, {
7888
- doctorId: doctorId,
7889
- website_url: domainLocales[locale],
7890
- }), 'get');
7891
- if ((_b = response === null || response === void 0 ? void 0 : response._data) === null || _b === void 0 ? void 0 : _b.doctor) {
7892
- setDoctorInfo(response === null || response === void 0 ? void 0 : response._data.doctor);
7893
- }
7894
- });
7895
- fetchDoctorDetail(author.doctorId);
7896
- }
7897
- }, [author.hospitalId, author.doctorId]);
7898
- const isDoctorAvailable = (doctorInfo === null || doctorInfo === void 0 ? void 0 : doctorInfo.valid_outpatient) || (doctorInfo === null || doctorInfo === void 0 ? void 0 : doctorInfo.valid_telemedicine);
7899
- const isHospitalAvailable = ((hospitalInfo === null || hospitalInfo === void 0 ? void 0 : hospitalInfo.total_available_service) ||
7900
- (hospitalInfo === null || hospitalInfo === void 0 ? void 0 : hospitalInfo.total_available_doctor)) > 0;
7901
- const hasQuickBooking = hasQuickBookingEnable && (isDoctorAvailable || isHospitalAvailable);
7902
- useEffect(() => {
7903
- (() => __awaiter(void 0, void 0, void 0, function* () {
7904
- if (id &&
7905
- commentsCount &&
7906
- showMostEngaging &&
7907
- !(mostEngagingCommentProp === null || mostEngagingCommentProp === void 0 ? void 0 : mostEngagingCommentProp.id)) {
7908
- const comment = yield getMostEngagingComment(id, locale);
7909
- setMostEngagingComment(comment);
7910
- }
7911
- }))();
7912
- }, [id, locale, commentsCount, showMostEngaging, mostEngagingCommentProp === null || mostEngagingCommentProp === void 0 ? void 0 : mostEngagingCommentProp.id]);
7913
- useEffect(() => {
7914
- setMostEngagingComment(mostEngagingCommentProp);
7915
- }, [mostEngagingCommentProp === null || mostEngagingCommentProp === void 0 ? void 0 : mostEngagingCommentProp.id]);
7916
- const onPostCommentSuccess = (comment) => {
7917
- if (commentsCount === 0 && !(mostEngagingComment === null || mostEngagingComment === void 0 ? void 0 : mostEngagingComment.id)) {
7918
- setMostEngagingComment(comment);
7919
- }
7920
- setPost((p) => (Object.assign(Object.assign({}, p), { commentsCount: p.commentsCount + 1, commented: true })));
7921
- onPostCommentSuccessProp && onPostCommentSuccessProp(comment);
7922
- };
7923
- const onDeleteComment = (comment) => __awaiter(void 0, void 0, void 0, function* () {
7924
- if (commentsCount > 1 &&
7925
- (mostEngagingComment === null || mostEngagingComment === void 0 ? void 0 : mostEngagingComment.id) &&
7926
- (mostEngagingComment === null || mostEngagingComment === void 0 ? void 0 : mostEngagingComment.id) === (comment === null || comment === void 0 ? void 0 : comment.id)) {
7927
- const newMostEngaging = yield getMostEngagingComment(id, locale);
7928
- setMostEngagingComment(newMostEngaging);
7929
- }
7930
- setPost((p) => (Object.assign(Object.assign({}, p), { commentsCount: p.commentsCount - 1 })));
7931
- onDeleteCommentProp && onDeleteCommentProp(comment);
7932
- });
7933
- return (React__default.createElement(TogetherAuthConfigContextProvider, { defaultParams: (community === null || community === void 0 ? void 0 : community.slug)
7934
- ? {
7935
- _joinCommunityIds: [community.id],
7936
- _joinTopicIds: topics === null || topics === void 0 ? void 0 : topics.map((t) => t.id),
7937
- // _location: postHref,
7938
- }
7939
- : undefined },
7940
- isOpenSharePopup && (React__default.createElement(SharePopup, { url: postHref, avatar: DEFAULT_IMG, text: title, onClose: () => setIsOpenSharePopup(false) })),
7941
- React__default.createElement(StyledCardPost$1, { className: className, style: style, "data-is-marrybaby": isMarryBaby },
7942
- isPin ? React__default.createElement(LabelPin, { className: "post-pin" }) : null,
7943
- React__default.createElement("div", { style: { position: 'relative', padding: '1rem 1rem 0' } },
7944
- React__default.createElement(CardAuthor, Object.assign({ avatar: avatar, name: name, username: username, url: disableCardLink ? undefined : postRelativeHref, community: community,
7945
- // miniIcon="./svg/icon-tag.svg"
7946
- timeText: post === null || post === void 0 ? void 0 : post.createdTime, className: "post-author", role: authorRole, userId: author === null || author === void 0 ? void 0 : author.id, expertId: author === null || author === void 0 ? void 0 : author.partnerId, doctorId: author === null || author === void 0 ? void 0 : author.doctorId, hospitalId: author === null || author === void 0 ? void 0 : author.hospitalId, title: author === null || author === void 0 ? void 0 : author.title, hasQuickBooking: hasQuickBooking, handleMakeAppointment: handleMakeAppointment, "data-testid": "name", isAnonymous: !!(post === null || post === void 0 ? void 0 : post.isAnonymous), extendEle: React__default.createElement(CardPostPopoverMore, { authorEmail: String(author === null || author === void 0 ? void 0 : author.email), onDeletePost: onDeletePost, shareUrl: postHref, post: post, className: "popover", onEditPost: onEditPost }) }, cardAuthorProps))),
7947
- React__default.createElement("a", { href: disableCardLink ? undefined : postRelativeHref, className: "post-content-link-wrapper" },
7948
- title && (React__default.createElement(Heading, { className: "post-content-title", as: "h2", tag: "h5", fontWeight: "bold", "data-testid": "Title of the Post" }, innertext(title))),
7949
- React__default.createElement(PostContent, { className: "post-content-wrapper", description: description, disableShortenContent: disableShortenContent, mentions: mentions, "data-testid": "Content of the Post" })),
7950
- React__default.createElement("span", null),
7951
- React__default.createElement("span", null),
7952
- React__default.createElement("div", { key: "tag-topic" }, topics && topics.length > 0 ? (React__default.createElement(TagTopic, { topics: topics, className: "post-topics" })) : null),
7953
- React__default.createElement("div", { key: "social-preview" }, (post === null || post === void 0 ? void 0 : post.introUrl) ? (React__default.createElement("div", { className: `social-preview-wrapper ${!!(photos === null || photos === void 0 ? void 0 : photos.length) ? 'has-image' : ''}` },
7954
- React__default.createElement(SocialLinkPreview, { url: post.introUrl, image: post.bannerImage }))) : null),
7955
- React__default.createElement("div", { key: "image-preview" }, !!(photos === null || photos === void 0 ? void 0 : photos.length) ? (React__default.createElement("div", { className: "image-preview-wrapper" },
7956
- React__default.createElement(PostImagePreview, { images: photos, authorName: author === null || author === void 0 ? void 0 : author.name }))) : null),
7957
- React__default.createElement("div", { key: "link-preview" }, !(post === null || post === void 0 ? void 0 : post.introUrl) && !(photos === null || photos === void 0 ? void 0 : photos.length) && (previewUrl === null || previewUrl === void 0 ? void 0 : previewUrl.url) ? (React__default.createElement("div", { className: "link-preview-wrapper" },
7958
- React__default.createElement(CardLink, { title: previewUrl.title, url: previewUrl.url, image: previewUrl.image }))) : null),
7959
- React__default.createElement(CardReactions, { isMarryBaby: isMarryBaby, type: CardReactionType.post, loveCount: likesCount, replyCount: commentsCount, className: `post-reaction ${(photos === null || photos === void 0 ? void 0 : photos.length) || (previewUrl === null || previewUrl === void 0 ? void 0 : previewUrl.url) ? 'hide-top-border' : ''}`, liked: isLikeLoading ? !liked : liked, isReplied: commented, onCommentClick: () => authActionWrapper(() => {
7960
- onCommentClick ? onCommentClick() : setShowInputComment((v) => !v);
7961
- }), onCommentCountClick: () => {
7962
- authActionWrapper(() => {
7963
- isMarryBaby
7964
- ? setShowInputComment(true)
7965
- : onCommentCountClick
7966
- ? onCommentCountClick()
7967
- : !disableCardLink && (window.location.href = postRelativeHref);
7968
- });
7969
- }, onShareClick: () => {
7970
- setIsOpenSharePopup(true);
7971
- }, onLikeClick: () => __awaiter(void 0, void 0, void 0, function* () {
7972
- if (!id || isLikeLoading)
7973
- return;
7974
- setIsLikeLoading(true);
7975
- try {
7976
- const res = yield likeUnlikePost({
7977
- id,
7978
- locale,
7979
- });
7980
- if ((res === null || res === void 0 ? void 0 : res.status) !== 1) {
7981
- pushNotifications(getDefaultFailNoti(t));
7982
- }
7983
- else {
7984
- setPost((p) => (Object.assign(Object.assign({}, p), { likesCount: (p.likesCount || 0) + (!p.liked ? 1 : -1), liked: !p.liked })));
7985
- }
7986
- }
7987
- catch (_a) {
7988
- pushNotifications(getDefaultFailNoti(t));
7989
- }
7990
- setIsLikeLoading(false);
7991
- }), showingMostEngaging: !!(showMostEngaging && (mostEngagingComment === null || mostEngagingComment === void 0 ? void 0 : mostEngagingComment.id)) }),
7992
- showInputComment && (React__default.createElement(InputCommentBar, { isMainCmt: !propsShowInputComment, onClose: () => setShowInputComment(false), onPostSuccess: onPostCommentSuccess, post: post })),
7993
- showMostEngaging && (mostEngagingComment === null || mostEngagingComment === void 0 ? void 0 : mostEngagingComment.id) ? (React__default.createElement("div", { className: "most-engaging-wrapper", onClick: (e) => {
7994
- if (onMostEngagingCommentClick) {
7995
- e.stopPropagation();
7996
- onMostEngagingCommentClick();
7997
- }
7998
- else
7999
- window.location.href = postRelativeHref;
8000
- } },
8001
- React__default.createElement(CardReply, { hasQuickBookingEnable: hasQuickBookingEnable, handleMakeAppointment: handleMakeAppointment, comment: mostEngagingComment, post: post, onDeleteComment: () => {
8002
- onDeleteComment && onDeleteComment(mostEngagingComment);
8003
- }, className: "most-engaging-comment", type: "most-engaging", key: mostEngagingComment.id, cardAuthorProps: cardAuthorProps }),
8004
- commentsCount > 1 && !hideViewMoreComment && (React__default.createElement(Button, { className: "see-more-comments", color: "ghost", size: "md" }, t('comment.seeMoreComments', {
8005
- count: commentsCount - 1,
8006
- }))))) : null,
8007
- InlineCommentsComponent)));
8008
- };
8009
-
8010
- var types = /*#__PURE__*/Object.freeze({
8011
- __proto__: null
8012
- });
8013
-
8014
- export { SkipQuestionOfExpertBtn as A, CardPost as B, CardLink as C, CardPostPopoverMore as D, CardReply as E, CardReplyPopover as F, PopoverMenu as G, SourceList as H, InputCommentBar as I, LabelSortPin as L, PopupDanger as P, SharePopup as S, TogetherAuthConfigContext as T, VerifiedTag as V, TogetherAuthConfigContextProvider as a, CardReactions as b, TagTopic as c, LabelPin as d, LabelSorting as e, CardAuthor as f, CreateNewPostContent as g, CreatePostDescription as h, CreatePostTitle as i, PopupExpert as j, PopupDoctor as k, PopupHospital as l, TopicSelectList as m, PopupFrame as n, SubmitReportForm as o, ShareBox as p, PostContent as q, ImagePreviewPopup as r, PostSingleImageViewPopup as s, types as t, useTogetherAuthRequiredAction as u, PostImagePreview as v, SocialLinkPreview as w, ProfileDetailModal as x, ProfileDetail as y, TabName as z };
5056
+ export { decodeCommentBody as A, likeUnlikeComment as B, CardAuthor as C, likeUnlikePost as D, InputCommentBar as I, Loading$1 as L, PopupDanger as P, RichTextEditor as R, SharePopup as S, TabName as T, PopupExpert as a, PopupDoctor as b, PopupHospital as c, PopupFrame as d, SubmitReportForm as e, ShareBox as f, PostContent as g, ImagePreviewPopup as h, PostSingleImageViewPopup as i, PostImagePreview as j, SocialLinkPreview as k, ProfileDetailModal as l, ProfileDetail as m, StyledCreatePostDescription as n, IconCloseCircle as o, highlightBadWords as p, decodeMention as q, decodePostUrl as r, getDefaultFailNoti as s, getPostFormData as t, useImagePicker as u, editPost as v, createPost as w, deletePost as x, IconAlertCircle as y, deleteComment as z };