@hhgtech/hhg-components 1.29.340 → 1.29.341

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 (503) hide show
  1. package/build/{LastPeriod-1a6374f3.js → LastPeriod-9eaa1ef6.js} +1 -1
  2. package/build/{MobileBottomNavigationIcon-c5c86978.js → MobileBottomNavigationIcon-6139c48b.js} +3 -3
  3. package/build/{Spinner-76126de0.js → Spinner-df24255a.js} +1 -1
  4. package/build/{WhatsApp-97f43937.js → WhatsApp-6c83bb5f.js} +1 -1
  5. package/build/adapters.js +19 -19
  6. package/build/atoms.js +47 -47
  7. package/build/babyGrowth.js +83 -83
  8. package/build/cache.js +2 -2
  9. package/build/care.js +17 -17
  10. package/build/careBookingSearchBar.js +14 -14
  11. package/build/careBookingSearchBarV2.js +15 -15
  12. package/build/components.js +91 -91
  13. package/build/{constants-f300306e.js → constants-b8ebed17.js} +1 -1
  14. package/build/constants.js +3 -3
  15. package/build/constantsDomainLocales.js +1 -1
  16. package/build/constantsRiskScreener.js +2 -2
  17. package/build/constantsSite.js +2 -2
  18. package/build/{core-5bc451dd.js → core-659eb53b.js} +1 -1
  19. package/build/{dataTransform-ed8fe670.js → dataTransform-5b9923ed.js} +1 -1
  20. package/build/ecom.js +4 -4
  21. package/build/{editor-6fed0488.js → editor-a0853b63.js} +11 -11
  22. package/build/embeddedHeathToolCards_babyGrowth.js +23 -23
  23. package/build/embeddedHeathToolCards_babyPoop.js +19 -19
  24. package/build/embeddedHeathToolCards_babyVaccine.js +22 -22
  25. package/build/embeddedHeathToolCards_bmi_bmi.js +25 -25
  26. package/build/embeddedHeathToolCards_bmrBmr.js +25 -25
  27. package/build/embeddedHeathToolCards_dueDate_dueDate.js +22 -22
  28. package/build/embeddedHeathToolCards_ovulation_ovulation.js +22 -22
  29. package/build/embeddedHeathToolCards_pwg_pwg.js +26 -26
  30. package/build/embeddedHeathToolCards_targetHeartRate.js +27 -27
  31. package/build/esm/{LastPeriod-90585413.js → LastPeriod-936aef76.js} +1 -1
  32. package/build/esm/{MobileBottomNavigationIcon-858da525.js → MobileBottomNavigationIcon-a4f890af.js} +3 -3
  33. package/build/esm/{Spinner-be0e4092.js → Spinner-4073c7bb.js} +1 -1
  34. package/build/esm/{WhatsApp-78edc199.js → WhatsApp-29064eaa.js} +1 -1
  35. package/build/esm/adapters.js +19 -19
  36. package/build/esm/atoms.js +47 -47
  37. package/build/esm/babyGrowth.js +83 -83
  38. package/build/esm/cache.js +2 -2
  39. package/build/esm/care.js +17 -17
  40. package/build/esm/careBookingSearchBar.js +14 -14
  41. package/build/esm/careBookingSearchBarV2.js +15 -15
  42. package/build/esm/components.js +91 -91
  43. package/build/esm/{constants-ecb29762.js → constants-bf924b49.js} +1 -1
  44. package/build/esm/constants.js +3 -3
  45. package/build/esm/constantsDomainLocales.js +1 -1
  46. package/build/esm/constantsRiskScreener.js +2 -2
  47. package/build/esm/constantsSite.js +2 -2
  48. package/build/esm/{core-87c7b461.js → core-90b57158.js} +1 -1
  49. package/build/esm/{dataTransform-87d9625e.js → dataTransform-49e22f3e.js} +1 -1
  50. package/build/esm/ecom.js +4 -4
  51. package/build/esm/{editor-d4330cef.js → editor-db5f955a.js} +11 -11
  52. package/build/esm/embeddedHeathToolCards_babyGrowth.js +23 -23
  53. package/build/esm/embeddedHeathToolCards_babyPoop.js +19 -19
  54. package/build/esm/embeddedHeathToolCards_babyVaccine.js +22 -22
  55. package/build/esm/embeddedHeathToolCards_bmi_bmi.js +25 -25
  56. package/build/esm/embeddedHeathToolCards_bmrBmr.js +25 -25
  57. package/build/esm/embeddedHeathToolCards_dueDate_dueDate.js +22 -22
  58. package/build/esm/embeddedHeathToolCards_ovulation_ovulation.js +22 -22
  59. package/build/esm/embeddedHeathToolCards_pwg_pwg.js +26 -26
  60. package/build/esm/embeddedHeathToolCards_targetHeartRate.js +27 -27
  61. package/build/esm/footer.js +21 -21
  62. package/build/esm/gAssets.js +2 -2
  63. package/build/esm/healthToolsCardWrapper.js +18 -18
  64. package/build/esm/healthToolsForm.js +33 -33
  65. package/build/esm/hooks.js +13 -13
  66. package/build/esm/i18n/translationKeys.d.ts +1 -1
  67. package/build/esm/i18n-values/en-PH.js +5 -0
  68. package/build/esm/i18n-values/hi-IN.js +5 -0
  69. package/build/esm/i18n-values/id-ID.js +5 -0
  70. package/build/esm/i18n-values/km-KH.js +5 -0
  71. package/build/esm/i18n-values/ms-MY.js +5 -0
  72. package/build/esm/i18n-values/my-MM.js +5 -0
  73. package/build/esm/i18n-values/th-TH.js +5 -0
  74. package/build/esm/i18n-values/tl-PH.js +5 -0
  75. package/build/esm/i18n-values/vi-VN.js +5 -0
  76. package/build/esm/i18n-values/vi-VN_MB.js +5 -0
  77. package/build/esm/i18n-values/zh-TW.js +5 -0
  78. package/build/esm/i18n.js +2 -2
  79. package/build/esm/i18nV2.js +2 -2
  80. package/build/esm/{index-1504c2aa.js → index-00d608ea.js} +2 -2
  81. package/build/esm/{index-cf3f2487.js → index-05f4b04d.js} +2 -2
  82. package/build/esm/{index-2e63b230.js → index-09f05e0a.js} +13 -13
  83. package/build/esm/{index-5ff73b27.js → index-0a260f9f.js} +16 -16
  84. package/build/esm/{index-72ce6bda.js → index-0ad1c6d2.js} +6 -6
  85. package/build/esm/{index-e2e59f48.js → index-10e8ead0.js} +2 -2
  86. package/build/esm/{index-d7b5a6d0.js → index-13508eb0.js} +13 -13
  87. package/build/esm/{index-a5b7cee7.js → index-187c248f.js} +5 -5
  88. package/build/esm/{index-2632aa93.js → index-18fc41d1.js} +1 -1
  89. package/build/esm/{index-a3f67580.js → index-1f97faf1.js} +3 -3
  90. package/build/esm/{index-91ab046b.js → index-1feb112f.js} +2 -2
  91. package/build/esm/{index-d66fae79.js → index-2449bb2d.js} +7 -7
  92. package/build/esm/{index-ee1def10.js → index-251c3b25.js} +6 -6
  93. package/build/esm/{index-37f903a4.js → index-25cc9cc4.js} +32 -32
  94. package/build/esm/{index-adc9b0f5.js → index-278cb1b1.js} +1 -1
  95. package/build/esm/{index-555a1475.js → index-287ca64d.js} +21 -21
  96. package/build/esm/{index-f52571df.js → index-2b964024.js} +1 -1
  97. package/build/esm/{index-87c1194c.js → index-2de8bec7.js} +13 -13
  98. package/build/esm/{index-4111dadd.js → index-2f7634c0.js} +2 -2
  99. package/build/esm/{index-58761cf6.js → index-2fb7e2eb.js} +18 -18
  100. package/build/esm/{index-936e8df5.js → index-31c13919.js} +30 -30
  101. package/build/esm/{index-f5dad8b7.js → index-3292ca19.js} +6 -6
  102. package/build/esm/{index-2c1feeb6.js → index-37bca743.js} +2 -2
  103. package/build/esm/{index-bc14da4f.js → index-3942f1ab.js} +3 -3
  104. package/build/esm/{index-0f1543d7.js → index-3b56986a.js} +10 -10
  105. package/build/esm/{index-e82581e5.js → index-3fda2934.js} +3 -3
  106. package/build/esm/{index-bd07e913.js → index-433f000e.js} +5 -5
  107. package/build/esm/{index-00f09cf6.js → index-43673415.js} +16 -16
  108. package/build/esm/{index-13fce5ac.js → index-4568e106.js} +15 -15
  109. package/build/esm/{index-a04fca87.js → index-493ca3d9.js} +15 -15
  110. package/build/esm/{index-0b7d8963.js → index-4ae4115a.js} +2 -2
  111. package/build/esm/{index-d43b616f.js → index-5beca92b.js} +1 -1
  112. package/build/esm/{index-1e9f4237.js → index-5dd42e29.js} +17 -17
  113. package/build/esm/{index-e0229c87.js → index-63dc7b02.js} +1 -1
  114. package/build/esm/{index-f3792616.js → index-6ce16a41.js} +20 -20
  115. package/build/esm/{index-83808412.js → index-77bef2a5.js} +16 -16
  116. package/build/esm/{index-839868dd.js → index-7e835555.js} +18 -18
  117. package/build/esm/{index-5ea23630.js → index-85d9e71b.js} +3 -3
  118. package/build/esm/{index-e236a5ee.js → index-8ac33271.js} +6 -6
  119. package/build/esm/{index-a62790f3.js → index-8ad8d9a8.js} +178 -110
  120. package/build/esm/{index-7f413fc2.js → index-8e160543.js} +1 -1
  121. package/build/esm/{index-1eae6dad.js → index-951e41c9.js} +18 -18
  122. package/build/esm/{index-8effb8bb.js → index-a6186dbc.js} +16 -16
  123. package/build/esm/{index-e5a32d34.js → index-b0c6ee75.js} +1 -1
  124. package/build/esm/{index-4ce0d02d.js → index-b389ccb0.js} +2 -2
  125. package/build/esm/{index-eb189e33.js → index-b99adac7.js} +11 -11
  126. package/build/esm/{index-b10f98a4.js → index-c623ccda.js} +2 -2
  127. package/build/esm/{index-abc8e5a2.js → index-c899cec9.js} +17 -17
  128. package/build/esm/{index-4af76041.js → index-cb195323.js} +24 -24
  129. package/build/esm/{index-32e6be45.js → index-cc8a3734.js} +2 -2
  130. package/build/esm/{index-123c081a.js → index-ce8445a3.js} +7 -7
  131. package/build/esm/{index-7e4b41a6.js → index-d003a87c.js} +3 -3
  132. package/build/esm/{index-1fd8f540.js → index-d9e6c67c.js} +24 -24
  133. package/build/esm/{index-82f8ee8c.js → index-e1a764f6.js} +3 -3
  134. package/build/esm/{index-44468b41.js → index-e66bb8ed.js} +2 -2
  135. package/build/esm/{index-bf299dbd.js → index-e76c58f4.js} +1 -1
  136. package/build/esm/{index-34be1eba.js → index-eaae9c13.js} +3 -3
  137. package/build/esm/{index-03288bcf.js → index-eed1ec06.js} +4 -4
  138. package/build/esm/{index-8908050f.js → index-eefea318.js} +13 -13
  139. package/build/esm/{index-4e6ef889.js → index-f3d75f48.js} +2 -2
  140. package/build/esm/{index-2337fa14.js → index-f96c758b.js} +2 -2
  141. package/build/esm/{index-019adbaf.js → index-fbce107a.js} +1 -1
  142. package/build/esm/index.js +113 -113
  143. package/build/esm/{labelSorting-3e75f9ce.js → labelSorting-d38c6396.js} +4 -4
  144. package/build/esm/lead.js +25 -25
  145. package/build/esm/{logoIcon-f7b17d63.js → logoIcon-5ec1a118.js} +2 -2
  146. package/build/esm/mantine.js +25 -25
  147. package/build/esm/misc.js +16 -16
  148. package/build/esm/miscGetDynamicHealthTool.js +4 -4
  149. package/build/esm/miscGetSocialList.js +8 -8
  150. package/build/esm/miscScreenSizeContext.js +1 -1
  151. package/build/esm/mobileBottomNavigation.js +5 -5
  152. package/build/esm/mobileBottomNavigationIcon.js +5 -5
  153. package/build/esm/molecules.js +69 -69
  154. package/build/esm/moleculesArticleCard.js +6 -6
  155. package/build/esm/moleculesArticleCardV2.js +16 -16
  156. package/build/esm/navigation.js +40 -40
  157. package/build/esm/navigationLogoutPopup.js +9 -9
  158. package/build/esm/navigationProfileButton.js +23 -23
  159. package/build/esm/onboardingV2.js +29 -29
  160. package/build/esm/organisms.js +44 -44
  161. package/build/esm/{post-4c7a5a88.js → post-b9963bbb.js} +2 -2
  162. package/build/esm/profileNavigation.js +19 -19
  163. package/build/esm/progressBar.js +1 -1
  164. package/build/esm/pwg.js +22 -22
  165. package/build/esm/ssoV2.js +26 -26
  166. package/build/esm/{store-d898de37.js → store-9f9b8c7e.js} +4 -4
  167. package/build/esm/subot.js +33 -33
  168. package/build/esm/surveyOrPremiumBanner.js +31 -31
  169. package/build/esm/surveyQuestionCard.js +10 -10
  170. package/build/esm/{surveyThankyouCard-46b6c332.js → surveyThankyouCard-fd56b470.js} +5 -5
  171. package/build/esm/together/components/molecules/createNewPostContentV2/createPostCommunity/commonCommunity/index.d.ts +3 -3
  172. package/build/esm/together/components/molecules/createNewPostContentV2/createPostCommunity/index.d.ts +5 -5
  173. package/build/esm/together/components/molecules/createNewPostContentV2/createPostCommunity/suggestedCommunity/index.d.ts +2 -2
  174. package/build/esm/together/components/molecules/createNewPostContentV2/index.d.ts +2 -3
  175. package/build/esm/together/components/molecules/createNewPostContentV2/topicSelectList/index.d.ts +8 -3
  176. package/build/esm/together/interfaces/types.d.ts +5 -0
  177. package/build/esm/together.js +53 -53
  178. package/build/esm/togetherApiUtils.js +4 -4
  179. package/build/esm/togetherAtoms.js +30 -30
  180. package/build/esm/togetherComponentGlobalContext.js +4 -4
  181. package/build/esm/togetherMolecules.js +48 -48
  182. package/build/esm/togetherMoleculesCardAuthor.js +27 -27
  183. package/build/esm/togetherMoleculesPostImagePreview.js +11 -11
  184. package/build/esm/togetherMoleculesProfileDetail.js +37 -37
  185. package/build/esm/togetherOrganisms.js +47 -47
  186. package/build/esm/togetherRichTextEditor.js +17 -17
  187. package/build/esm/togetherShareBox.js +10 -10
  188. package/build/esm/{treePopoverMenu-7f9c09b5.js → treePopoverMenu-2bdb1505.js} +19 -19
  189. package/build/esm/{types-f5af3308.js → types-d2f84e76.js} +2 -2
  190. package/build/esm/types.js +2 -2
  191. package/build/esm/{useCategory-ad0f6153.js → useCategory-dfbb8514.js} +5 -5
  192. package/build/esm/{useHealthToolCache-31742124.js → useHealthToolCache-60c491b2.js} +1 -1
  193. package/build/esm/{useMantineLocale-374d7d18.js → useMantineLocale-ee453257.js} +6 -6
  194. package/build/esm/{usePlacesAutocomplete-765a96ce.js → usePlacesAutocomplete-7b0503dc.js} +1 -1
  195. package/build/esm/{useScreenSize-77e1ec29.js → useScreenSize-86ff79b6.js} +2 -2
  196. package/build/esm/useTogetherAuthRequiredAction.js +9 -9
  197. package/build/esm/{utils-16593d15.js → utils-284b3857.js} +3 -3
  198. package/build/esm/{utils-1711bf04.js → utils-6d47c3ee.js} +2 -2
  199. package/build/esm/{utils-062a0cfa.js → utils-78c52834.js} +2 -2
  200. package/build/esm/vaccination.js +21 -21
  201. package/build/footer.js +21 -21
  202. package/build/gAssets.js +2 -2
  203. package/build/healthToolsCardWrapper.js +18 -18
  204. package/build/healthToolsForm.js +33 -33
  205. package/build/hooks.js +13 -13
  206. package/build/i18n/translationKeys.d.ts +1 -1
  207. package/build/i18n-values/en-PH.js +5 -0
  208. package/build/i18n-values/hi-IN.js +5 -0
  209. package/build/i18n-values/id-ID.js +5 -0
  210. package/build/i18n-values/km-KH.js +5 -0
  211. package/build/i18n-values/ms-MY.js +5 -0
  212. package/build/i18n-values/my-MM.js +5 -0
  213. package/build/i18n-values/th-TH.js +5 -0
  214. package/build/i18n-values/tl-PH.js +5 -0
  215. package/build/i18n-values/vi-VN.js +5 -0
  216. package/build/i18n-values/vi-VN_MB.js +5 -0
  217. package/build/i18n-values/zh-TW.js +5 -0
  218. package/build/i18n.js +1 -1
  219. package/build/i18nV2.js +1 -1
  220. package/build/{index-24dd62ce.js → index-03817479.js} +3 -3
  221. package/build/{index-107b2539.js → index-06c40093.js} +2 -2
  222. package/build/{index-bdba2d3a.js → index-07303336.js} +3 -3
  223. package/build/{index-6c67dbd7.js → index-09b696c5.js} +2 -2
  224. package/build/{index-2797c1c7.js → index-09fe20ee.js} +3 -3
  225. package/build/{index-0a9e192e.js → index-0dd90e03.js} +2 -2
  226. package/build/{index-fd84c125.js → index-0ebf6518.js} +1 -1
  227. package/build/{index-eb0a6dd1.js → index-12980629.js} +16 -16
  228. package/build/{index-2db8fdfd.js → index-17035df2.js} +17 -17
  229. package/build/{index-6c8d0207.js → index-1785577a.js} +2 -2
  230. package/build/{index-963b6444.js → index-185e678c.js} +18 -18
  231. package/build/{index-a409772d.js → index-1f0a1217.js} +1 -1
  232. package/build/{index-9de80aaf.js → index-215b49f9.js} +1 -1
  233. package/build/{index-7028be28.js → index-235da055.js} +18 -18
  234. package/build/{index-5e2a2480.js → index-2ac51c28.js} +1 -1
  235. package/build/{index-2e4b0f2b.js → index-31158673.js} +6 -6
  236. package/build/{index-f25b2fa4.js → index-318ed726.js} +17 -17
  237. package/build/{index-91fdb86b.js → index-33141240.js} +16 -16
  238. package/build/{index-6acb6793.js → index-3618f3e5.js} +16 -16
  239. package/build/{index-f5fa9c34.js → index-38a28dc9.js} +4 -4
  240. package/build/{index-7806b087.js → index-3c176356.js} +7 -7
  241. package/build/{index-90ff088b.js → index-3ef55d59.js} +2 -2
  242. package/build/{index-cbf4864b.js → index-4c30074c.js} +5 -5
  243. package/build/{index-87d420a6.js → index-5046b99d.js} +13 -13
  244. package/build/{index-e833d31d.js → index-57b95503.js} +1 -1
  245. package/build/{index-d2eeb6ea.js → index-6084d7d2.js} +11 -11
  246. package/build/{index-52d58ff1.js → index-613eed69.js} +15 -15
  247. package/build/{index-62ca9eb9.js → index-669bcec8.js} +13 -13
  248. package/build/{index-c8c3c797.js → index-6791aa5b.js} +3 -3
  249. package/build/{index-23225bea.js → index-67af8202.js} +24 -24
  250. package/build/{index-7fcc98e3.js → index-6bfe87dc.js} +2 -2
  251. package/build/{index-a3373cf4.js → index-71b23357.js} +30 -30
  252. package/build/{index-73e7b24c.js → index-75ffffea.js} +2 -2
  253. package/build/{index-1cd0877e.js → index-76ade849.js} +18 -18
  254. package/build/{index-3ac0dc17.js → index-7c2a27e6.js} +1 -1
  255. package/build/{index-d06471d1.js → index-84360cc6.js} +10 -10
  256. package/build/{index-a73c7607.js → index-84d08231.js} +1 -1
  257. package/build/{index-657e8416.js → index-85d6aff9.js} +16 -16
  258. package/build/{index-1d6e363b.js → index-8a49db48.js} +2 -2
  259. package/build/{index-605d1690.js → index-916152e1.js} +5 -5
  260. package/build/{index-4e4572d9.js → index-96b6a45f.js} +178 -110
  261. package/build/{index-c578d779.js → index-a67075cc.js} +6 -6
  262. package/build/{index-f4ccfca1.js → index-aece5b55.js} +2 -2
  263. package/build/{index-bfa5c299.js → index-b38789a6.js} +32 -32
  264. package/build/{index-724294c9.js → index-b3d03730.js} +3 -3
  265. package/build/{index-bc2367a8.js → index-cb44a93c.js} +1 -1
  266. package/build/{index-6d175c73.js → index-d05f5c58.js} +7 -7
  267. package/build/{index-448ed4a1.js → index-d1d47e3e.js} +21 -21
  268. package/build/{index-58ab8d09.js → index-d2294ed4.js} +2 -2
  269. package/build/{index-16b266f3.js → index-d26c8b25.js} +20 -20
  270. package/build/{index-679373d9.js → index-d63df4e6.js} +1 -1
  271. package/build/{index-08c3c80a.js → index-d8587b52.js} +3 -3
  272. package/build/{index-b670f6a7.js → index-e41c41b9.js} +2 -2
  273. package/build/{index-f5509a6e.js → index-e835d166.js} +2 -2
  274. package/build/{index-d125712a.js → index-e85fbfe2.js} +24 -24
  275. package/build/{index-f34ed5c5.js → index-ea565aba.js} +13 -13
  276. package/build/{index-877f210f.js → index-ea5b98ee.js} +6 -6
  277. package/build/{index-89facf04.js → index-ec383f64.js} +15 -15
  278. package/build/{index-61db4e9f.js → index-ef1363d4.js} +2 -2
  279. package/build/{index-9609f03e.js → index-f84b402c.js} +3 -3
  280. package/build/{index-f7194690.js → index-f9032264.js} +6 -6
  281. package/build/{index-ffc89258.js → index-fd0e8768.js} +13 -13
  282. package/build/index.js +113 -113
  283. package/build/{labelSorting-55c2f473.js → labelSorting-36d105cb.js} +4 -4
  284. package/build/lead.js +25 -25
  285. package/build/{logoIcon-c210497d.js → logoIcon-904a4cf6.js} +2 -2
  286. package/build/mantine.js +22 -22
  287. package/build/misc.js +16 -16
  288. package/build/miscGetDynamicHealthTool.js +4 -4
  289. package/build/miscGetSocialList.js +8 -8
  290. package/build/miscScreenSizeContext.js +1 -1
  291. package/build/mobileBottomNavigation.js +5 -5
  292. package/build/mobileBottomNavigationIcon.js +5 -5
  293. package/build/molecules.js +69 -69
  294. package/build/moleculesArticleCard.js +6 -6
  295. package/build/moleculesArticleCardV2.js +16 -16
  296. package/build/navigation.js +40 -40
  297. package/build/navigationLogoutPopup.js +9 -9
  298. package/build/navigationProfileButton.js +23 -23
  299. package/build/onboardingV2.js +28 -28
  300. package/build/organisms.js +44 -44
  301. package/build/{post-9fe1b1ac.js → post-3cba4e54.js} +2 -2
  302. package/build/profileNavigation.js +19 -19
  303. package/build/progressBar.js +1 -1
  304. package/build/pwg.js +22 -22
  305. package/build/ssoV2.js +25 -25
  306. package/build/{store-4d6b2eef.js → store-e1b9f2ce.js} +4 -4
  307. package/build/subot.js +32 -32
  308. package/build/surveyOrPremiumBanner.js +31 -31
  309. package/build/surveyQuestionCard.js +10 -10
  310. package/build/{surveyThankyouCard-9cdac971.js → surveyThankyouCard-5dd83af2.js} +5 -5
  311. package/build/together/components/molecules/createNewPostContentV2/createPostCommunity/commonCommunity/index.d.ts +3 -3
  312. package/build/together/components/molecules/createNewPostContentV2/createPostCommunity/index.d.ts +5 -5
  313. package/build/together/components/molecules/createNewPostContentV2/createPostCommunity/suggestedCommunity/index.d.ts +2 -2
  314. package/build/together/components/molecules/createNewPostContentV2/index.d.ts +2 -3
  315. package/build/together/components/molecules/createNewPostContentV2/topicSelectList/index.d.ts +8 -3
  316. package/build/together/interfaces/types.d.ts +5 -0
  317. package/build/together.js +53 -53
  318. package/build/togetherApiUtils.js +4 -4
  319. package/build/togetherAtoms.js +30 -30
  320. package/build/togetherComponentGlobalContext.js +4 -4
  321. package/build/togetherMolecules.js +48 -48
  322. package/build/togetherMoleculesCardAuthor.js +27 -27
  323. package/build/togetherMoleculesPostImagePreview.js +11 -11
  324. package/build/togetherMoleculesProfileDetail.js +37 -37
  325. package/build/togetherOrganisms.js +47 -47
  326. package/build/togetherRichTextEditor.js +17 -17
  327. package/build/togetherShareBox.js +10 -10
  328. package/build/{treePopoverMenu-2f711f7c.js → treePopoverMenu-d53a7070.js} +19 -19
  329. package/build/{types-4536b0a8.js → types-3a0991d8.js} +2 -2
  330. package/build/types.js +2 -2
  331. package/build/{useCategory-2c791f02.js → useCategory-114d6a8a.js} +5 -5
  332. package/build/{useHealthToolCache-571b4ad1.js → useHealthToolCache-441c521c.js} +1 -1
  333. package/build/{useMantineLocale-a663d23a.js → useMantineLocale-dc446f96.js} +6 -6
  334. package/build/{usePlacesAutocomplete-72c61ff9.js → usePlacesAutocomplete-1f9453b2.js} +1 -1
  335. package/build/{useScreenSize-649868cb.js → useScreenSize-0c0d47f5.js} +2 -2
  336. package/build/useTogetherAuthRequiredAction.js +9 -9
  337. package/build/{utils-72e979f1.js → utils-5b446c46.js} +2 -2
  338. package/build/{utils-3bf46111.js → utils-7d819ac1.js} +2 -2
  339. package/build/{utils-d4f5c7a2.js → utils-daec2540.js} +3 -3
  340. package/build/vaccination.js +21 -21
  341. package/package.json +1 -1
  342. /package/build/{BMI_BOYS.percentile.monthly-eb315095.js → BMI_BOYS.percentile.monthly-b30faabf.js} +0 -0
  343. /package/build/{BMI_BOYS.percentile.weekly-69cc3a94.js → BMI_BOYS.percentile.weekly-21391d76.js} +0 -0
  344. /package/build/{BMI_BOYS.percentile.yearly-8001d98c.js → BMI_BOYS.percentile.yearly-83c7fcd2.js} +0 -0
  345. /package/build/{BMI_BOYS.zscore.monthly-5181dd2c.js → BMI_BOYS.zscore.monthly-aa8afe3f.js} +0 -0
  346. /package/build/{BMI_BOYS.zscore.weekly-4e764f75.js → BMI_BOYS.zscore.weekly-81efd6dc.js} +0 -0
  347. /package/build/{BMI_BOYS.zscore.yearly-3f0c8df8.js → BMI_BOYS.zscore.yearly-6f98b1c3.js} +0 -0
  348. /package/build/{BMI_GIRLS.percentile.monthly-e3913ee4.js → BMI_GIRLS.percentile.monthly-84986191.js} +0 -0
  349. /package/build/{BMI_GIRLS.percentile.weekly-c3f497dc.js → BMI_GIRLS.percentile.weekly-19f3be53.js} +0 -0
  350. /package/build/{BMI_GIRLS.percentile.yearly-088c756b.js → BMI_GIRLS.percentile.yearly-36aa05af.js} +0 -0
  351. /package/build/{BMI_GIRLS.zscore.monthly-02e032c3.js → BMI_GIRLS.zscore.monthly-6fd68c7e.js} +0 -0
  352. /package/build/{BMI_GIRLS.zscore.weekly-c196d6fa.js → BMI_GIRLS.zscore.weekly-68a50af8.js} +0 -0
  353. /package/build/{BMI_GIRLS.zscore.yearly-63296930.js → BMI_GIRLS.zscore.yearly-adfa20bd.js} +0 -0
  354. /package/build/{ChevronDown-1ec29fc9.js → ChevronDown-f3d17b98.js} +0 -0
  355. /package/build/{Close-82e58de8.js → Close-127b40f9.js} +0 -0
  356. /package/build/{Google-3b057619.js → Google-9c15fb01.js} +0 -0
  357. /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-a138c344.js → HEAD CIRCUM_BOYS.percentile.monthly-52f2ea44.js} +0 -0
  358. /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-f95e2775.js → HEAD CIRCUM_BOYS.percentile.weekly-8a9c1910.js} +0 -0
  359. /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-f310c9eb.js → HEAD CIRCUM_BOYS.percentile.yearly-a1da28c0.js} +0 -0
  360. /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-b1624745.js → HEAD CIRCUM_BOYS.zscore.monthly-582cfae4.js} +0 -0
  361. /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-c90ec91e.js → HEAD CIRCUM_BOYS.zscore.weekly-3c2311b9.js} +0 -0
  362. /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-930290d7.js → HEAD CIRCUM_BOYS.zscore.yearly-2cae4758.js} +0 -0
  363. /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-80fbfe27.js → HEAD CIRCUM_GIRLS.percentile.monthly-f30fbc1c.js} +0 -0
  364. /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-58da06e2.js → HEAD CIRCUM_GIRLS.percentile.weekly-b26ced3c.js} +0 -0
  365. /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-c2529c26.js → HEAD CIRCUM_GIRLS.percentile.yearly-bbfb189c.js} +0 -0
  366. /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-74ce7c3b.js → HEAD CIRCUM_GIRLS.zscore.monthly-41b0f026.js} +0 -0
  367. /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-b155babd.js → HEAD CIRCUM_GIRLS.zscore.weekly-e0774f95.js} +0 -0
  368. /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-7e1a0ad9.js → HEAD CIRCUM_GIRLS.zscore.yearly-b26d365d.js} +0 -0
  369. /package/build/{HEIGHT_BOYS.percentile.monthly-7e8bdd61.js → HEIGHT_BOYS.percentile.monthly-837436a9.js} +0 -0
  370. /package/build/{HEIGHT_BOYS.percentile.weekly-9fb83720.js → HEIGHT_BOYS.percentile.weekly-8731d752.js} +0 -0
  371. /package/build/{HEIGHT_BOYS.percentile.yearly-f6a791a0.js → HEIGHT_BOYS.percentile.yearly-12713e55.js} +0 -0
  372. /package/build/{HEIGHT_BOYS.zscore.monthly-4e7c9f27.js → HEIGHT_BOYS.zscore.monthly-7f063186.js} +0 -0
  373. /package/build/{HEIGHT_BOYS.zscore.weekly-5ed0b3b6.js → HEIGHT_BOYS.zscore.weekly-336670c7.js} +0 -0
  374. /package/build/{HEIGHT_BOYS.zscore.yearly-a1e1f16b.js → HEIGHT_BOYS.zscore.yearly-601f6e99.js} +0 -0
  375. /package/build/{HEIGHT_GIRLS.percentile.monthly-8085fb4c.js → HEIGHT_GIRLS.percentile.monthly-7806a84d.js} +0 -0
  376. /package/build/{HEIGHT_GIRLS.percentile.weekly-5faec400.js → HEIGHT_GIRLS.percentile.weekly-77fefedc.js} +0 -0
  377. /package/build/{HEIGHT_GIRLS.percentile.yearly-6c0da113.js → HEIGHT_GIRLS.percentile.yearly-a6f75a2d.js} +0 -0
  378. /package/build/{HEIGHT_GIRLS.zscore.monthly-c0880cc0.js → HEIGHT_GIRLS.zscore.monthly-663dbe45.js} +0 -0
  379. /package/build/{HEIGHT_GIRLS.zscore.weekly-8a4e3801.js → HEIGHT_GIRLS.zscore.weekly-1795b929.js} +0 -0
  380. /package/build/{HEIGHT_GIRLS.zscore.yearly-9f4e388b.js → HEIGHT_GIRLS.zscore.yearly-54e8ed04.js} +0 -0
  381. /package/build/{Locale-75a16190.js → Locale-57db1c3d.js} +0 -0
  382. /package/build/{Visible-1438459a.js → Visible-4faebc9a.js} +0 -0
  383. /package/build/{WEIGHT_BOYS.percentile.monthly-3976c0ae.js → WEIGHT_BOYS.percentile.monthly-e27a9e27.js} +0 -0
  384. /package/build/{WEIGHT_BOYS.percentile.weekly-62063307.js → WEIGHT_BOYS.percentile.weekly-a9dc5fb0.js} +0 -0
  385. /package/build/{WEIGHT_BOYS.percentile.yearly-278ff5b0.js → WEIGHT_BOYS.percentile.yearly-1f6d6a23.js} +0 -0
  386. /package/build/{WEIGHT_BOYS.zscore.monthly-f4584383.js → WEIGHT_BOYS.zscore.monthly-d90a8e9e.js} +0 -0
  387. /package/build/{WEIGHT_BOYS.zscore.weekly-9a7a5c88.js → WEIGHT_BOYS.zscore.weekly-aadf96fc.js} +0 -0
  388. /package/build/{WEIGHT_BOYS.zscore.yearly-0968b88b.js → WEIGHT_BOYS.zscore.yearly-cda41635.js} +0 -0
  389. /package/build/{WEIGHT_GIRLS.percentile.monthly-30d47d1c.js → WEIGHT_GIRLS.percentile.monthly-cf66f56d.js} +0 -0
  390. /package/build/{WEIGHT_GIRLS.percentile.weekly-a74ba8d1.js → WEIGHT_GIRLS.percentile.weekly-eb947b05.js} +0 -0
  391. /package/build/{WEIGHT_GIRLS.percentile.yearly-ae69e967.js → WEIGHT_GIRLS.percentile.yearly-eb086a2e.js} +0 -0
  392. /package/build/{WEIGHT_GIRLS.zscore.monthly-f5caa21a.js → WEIGHT_GIRLS.zscore.monthly-bb6b65e9.js} +0 -0
  393. /package/build/{WEIGHT_GIRLS.zscore.weekly-246a85c2.js → WEIGHT_GIRLS.zscore.weekly-809ba3bf.js} +0 -0
  394. /package/build/{WEIGHT_GIRLS.zscore.yearly-13628bd9.js → WEIGHT_GIRLS.zscore.yearly-defd0f5c.js} +0 -0
  395. /package/build/{animation-87847fc6.js → animation-51d9f750.js} +0 -0
  396. /package/build/{constants-9d1ffae7.js → constants-345d4630.js} +0 -0
  397. /package/build/{constants-b2e334f6.js → constants-64bd11a4.js} +0 -0
  398. /package/build/{constants-bb670df2.js → constants-b9c0ca76.js} +0 -0
  399. /package/build/{dataTransform-1a69af3d.js → dataTransform-50730e70.js} +0 -0
  400. /package/build/{doctor-9e7d5dab.js → doctor-b84977b0.js} +0 -0
  401. /package/build/esm/{BMI_BOYS.percentile.monthly-d97644cf.js → BMI_BOYS.percentile.monthly-033ff54c.js} +0 -0
  402. /package/build/esm/{BMI_BOYS.percentile.weekly-ddaa4e04.js → BMI_BOYS.percentile.weekly-c741ecf7.js} +0 -0
  403. /package/build/esm/{BMI_BOYS.percentile.yearly-c265609c.js → BMI_BOYS.percentile.yearly-d8a96f52.js} +0 -0
  404. /package/build/esm/{BMI_BOYS.zscore.monthly-543553b0.js → BMI_BOYS.zscore.monthly-b83302d8.js} +0 -0
  405. /package/build/esm/{BMI_BOYS.zscore.weekly-6f92afe4.js → BMI_BOYS.zscore.weekly-747bcc77.js} +0 -0
  406. /package/build/esm/{BMI_BOYS.zscore.yearly-198fba05.js → BMI_BOYS.zscore.yearly-144e0b1a.js} +0 -0
  407. /package/build/esm/{BMI_GIRLS.percentile.monthly-023545e9.js → BMI_GIRLS.percentile.monthly-cf8d61d2.js} +0 -0
  408. /package/build/esm/{BMI_GIRLS.percentile.weekly-ca0c3d8a.js → BMI_GIRLS.percentile.weekly-769f26db.js} +0 -0
  409. /package/build/esm/{BMI_GIRLS.percentile.yearly-c6a57e9f.js → BMI_GIRLS.percentile.yearly-e49b963d.js} +0 -0
  410. /package/build/esm/{BMI_GIRLS.zscore.monthly-f069a265.js → BMI_GIRLS.zscore.monthly-3084153f.js} +0 -0
  411. /package/build/esm/{BMI_GIRLS.zscore.weekly-5c2324fc.js → BMI_GIRLS.zscore.weekly-72ec570c.js} +0 -0
  412. /package/build/esm/{BMI_GIRLS.zscore.yearly-401d41a6.js → BMI_GIRLS.zscore.yearly-56f78b21.js} +0 -0
  413. /package/build/esm/{ChevronDown-66b5c705.js → ChevronDown-8328c13d.js} +0 -0
  414. /package/build/esm/{Close-66729e85.js → Close-ba03577a.js} +0 -0
  415. /package/build/esm/{Google-9896e314.js → Google-abacb80f.js} +0 -0
  416. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-fa43749e.js → HEAD CIRCUM_BOYS.percentile.monthly-48de46d8.js} +0 -0
  417. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-1ef0e3ae.js → HEAD CIRCUM_BOYS.percentile.weekly-be44668d.js} +0 -0
  418. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-c0cb0e14.js → HEAD CIRCUM_BOYS.percentile.yearly-0eb105d2.js} +0 -0
  419. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-5645e3d8.js → HEAD CIRCUM_BOYS.zscore.monthly-b42f2936.js} +0 -0
  420. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-6ad6eedd.js → HEAD CIRCUM_BOYS.zscore.weekly-0b78b9b0.js} +0 -0
  421. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-9d1a5064.js → HEAD CIRCUM_BOYS.zscore.yearly-cfedb0f0.js} +0 -0
  422. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-ac8bf2c5.js → HEAD CIRCUM_GIRLS.percentile.monthly-005c83c7.js} +0 -0
  423. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-bb81c16a.js → HEAD CIRCUM_GIRLS.percentile.weekly-0fc8a072.js} +0 -0
  424. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-e5f673e5.js → HEAD CIRCUM_GIRLS.percentile.yearly-de97ed19.js} +0 -0
  425. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-6be639ea.js → HEAD CIRCUM_GIRLS.zscore.monthly-55481efe.js} +0 -0
  426. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-d60444d8.js → HEAD CIRCUM_GIRLS.zscore.weekly-3695b4de.js} +0 -0
  427. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-811fec8c.js → HEAD CIRCUM_GIRLS.zscore.yearly-c97ef53a.js} +0 -0
  428. /package/build/esm/{HEIGHT_BOYS.percentile.monthly-465e377e.js → HEIGHT_BOYS.percentile.monthly-6077092f.js} +0 -0
  429. /package/build/esm/{HEIGHT_BOYS.percentile.weekly-dcc74cd9.js → HEIGHT_BOYS.percentile.weekly-414cf15d.js} +0 -0
  430. /package/build/esm/{HEIGHT_BOYS.percentile.yearly-53cf5ade.js → HEIGHT_BOYS.percentile.yearly-d77d3e90.js} +0 -0
  431. /package/build/esm/{HEIGHT_BOYS.zscore.monthly-5452c2c8.js → HEIGHT_BOYS.zscore.monthly-b42af495.js} +0 -0
  432. /package/build/esm/{HEIGHT_BOYS.zscore.weekly-81451204.js → HEIGHT_BOYS.zscore.weekly-899ea3ee.js} +0 -0
  433. /package/build/esm/{HEIGHT_BOYS.zscore.yearly-d876531c.js → HEIGHT_BOYS.zscore.yearly-4fab9c43.js} +0 -0
  434. /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-9f156ca3.js → HEIGHT_GIRLS.percentile.monthly-50eac517.js} +0 -0
  435. /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-1edebef6.js → HEIGHT_GIRLS.percentile.weekly-d64025fa.js} +0 -0
  436. /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-11108955.js → HEIGHT_GIRLS.percentile.yearly-3d2c591c.js} +0 -0
  437. /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-8ed6c1a7.js → HEIGHT_GIRLS.zscore.monthly-e41df4c5.js} +0 -0
  438. /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-0aeaa915.js → HEIGHT_GIRLS.zscore.weekly-3a86e2c3.js} +0 -0
  439. /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-26b8cb11.js → HEIGHT_GIRLS.zscore.yearly-3438c81d.js} +0 -0
  440. /package/build/esm/{Locale-14481773.js → Locale-b85a2806.js} +0 -0
  441. /package/build/esm/{Visible-4027956b.js → Visible-8cac64ac.js} +0 -0
  442. /package/build/esm/{WEIGHT_BOYS.percentile.monthly-c586605d.js → WEIGHT_BOYS.percentile.monthly-0bda403e.js} +0 -0
  443. /package/build/esm/{WEIGHT_BOYS.percentile.weekly-b354f6cf.js → WEIGHT_BOYS.percentile.weekly-1f6775b8.js} +0 -0
  444. /package/build/esm/{WEIGHT_BOYS.percentile.yearly-25150ce0.js → WEIGHT_BOYS.percentile.yearly-f4b8fcec.js} +0 -0
  445. /package/build/esm/{WEIGHT_BOYS.zscore.monthly-88527a94.js → WEIGHT_BOYS.zscore.monthly-d8bec4d2.js} +0 -0
  446. /package/build/esm/{WEIGHT_BOYS.zscore.weekly-666296f3.js → WEIGHT_BOYS.zscore.weekly-41ab7d52.js} +0 -0
  447. /package/build/esm/{WEIGHT_BOYS.zscore.yearly-f67d84ec.js → WEIGHT_BOYS.zscore.yearly-d4500db2.js} +0 -0
  448. /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-228e9f48.js → WEIGHT_GIRLS.percentile.monthly-0739c8b1.js} +0 -0
  449. /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-17c3c1fd.js → WEIGHT_GIRLS.percentile.weekly-d3efffd0.js} +0 -0
  450. /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-8455e1a6.js → WEIGHT_GIRLS.percentile.yearly-18a23e81.js} +0 -0
  451. /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-ad124ed3.js → WEIGHT_GIRLS.zscore.monthly-d610d523.js} +0 -0
  452. /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-2582d569.js → WEIGHT_GIRLS.zscore.weekly-f1c1ca37.js} +0 -0
  453. /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-94ff115a.js → WEIGHT_GIRLS.zscore.yearly-11cd4736.js} +0 -0
  454. /package/build/esm/{animation-4432ef2c.js → animation-7af31527.js} +0 -0
  455. /package/build/esm/{constants-1446dfa4.js → constants-61c2e12b.js} +0 -0
  456. /package/build/esm/{constants-72a20280.js → constants-d8dcf848.js} +0 -0
  457. /package/build/esm/{constants-93e9bca8.js → constants-e07a91d9.js} +0 -0
  458. /package/build/esm/{dataTransform-a01b4819.js → dataTransform-9b9ae0c6.js} +0 -0
  459. /package/build/esm/{doctor-e47b59fe.js → doctor-608c515c.js} +0 -0
  460. /package/build/esm/{index-fc6e19ca.js → index-09f90c0d.js} +0 -0
  461. /package/build/esm/{index-c3a2148b.js → index-415ca2ef.js} +0 -0
  462. /package/build/esm/{index-a48b249a.js → index-43c80986.js} +0 -0
  463. /package/build/esm/{index-0cf8b752.js → index-9db2daf2.js} +0 -0
  464. /package/build/esm/{index-5dd54b2b.js → index-c4029515.js} +0 -0
  465. /package/build/esm/{index-01d9e536.js → index-c41b3f18.js} +0 -0
  466. /package/build/esm/{index-7bd87b78.js → index-cb5b6e38.js} +0 -0
  467. /package/build/esm/{index-c1586c4b.js → index-e595bf69.js} +0 -0
  468. /package/build/esm/{index-0d46a3d6.js → index-fcd91927.js} +0 -0
  469. /package/build/esm/{index.styles-79e59f1a.js → index.styles-9aeabac4.js} +0 -0
  470. /package/build/esm/{localizeNumberFormat-4bf1b4d7.js → localizeNumberFormat-6e308ec2.js} +0 -0
  471. /package/build/esm/{normalizeLink-816f0420.js → normalizeLink-24199d48.js} +0 -0
  472. /package/build/esm/{other-dc718449.js → other-afc01340.js} +0 -0
  473. /package/build/esm/{paths-1bc49820.js → paths-a00da1f4.js} +0 -0
  474. /package/build/esm/{translationsContext-6aa41d1c.js → translationsContext-b8b3f1f2.js} +0 -0
  475. /package/build/esm/{tslib.es6-3bb80a38.js → tslib.es6-d983aca1.js} +0 -0
  476. /package/build/esm/{types-99dc4540.js → types-de17938e.js} +0 -0
  477. /package/build/esm/{useIsInit-97b3cab0.js → useIsInit-bb13f6c9.js} +0 -0
  478. /package/build/esm/{useOutsideClick-da55119f.js → useOutsideClick-4b7793c6.js} +0 -0
  479. /package/build/esm/{useScrollbarSize-95bbd724.js → useScrollbarSize-74ad60e9.js} +0 -0
  480. /package/build/esm/{useUniqueId-182c5412.js → useUniqueId-3deb18e4.js} +0 -0
  481. /package/build/esm/{utils-733c431a.js → utils-cb146a70.js} +0 -0
  482. /package/build/{index-c19f8ad3.js → index-0af5e4f9.js} +0 -0
  483. /package/build/{index-209b7939.js → index-4299ca2f.js} +0 -0
  484. /package/build/{index-0df9464b.js → index-60134546.js} +0 -0
  485. /package/build/{index-959a5817.js → index-68e0c498.js} +0 -0
  486. /package/build/{index-d2f22629.js → index-6b1b32c4.js} +0 -0
  487. /package/build/{index-423bc217.js → index-748ec82e.js} +0 -0
  488. /package/build/{index-ba916406.js → index-bdfbb311.js} +0 -0
  489. /package/build/{index-29b11213.js → index-ca7bed26.js} +0 -0
  490. /package/build/{index-ad869942.js → index-fa3e7daa.js} +0 -0
  491. /package/build/{index.styles-881b266b.js → index.styles-e11d26f3.js} +0 -0
  492. /package/build/{localizeNumberFormat-f8a588fc.js → localizeNumberFormat-c1f19087.js} +0 -0
  493. /package/build/{normalizeLink-f28d8351.js → normalizeLink-92174959.js} +0 -0
  494. /package/build/{other-3b371b3e.js → other-06fe2945.js} +0 -0
  495. /package/build/{paths-5ae03a6a.js → paths-080e0022.js} +0 -0
  496. /package/build/{translationsContext-cc7e58b5.js → translationsContext-d0d800a5.js} +0 -0
  497. /package/build/{tslib.es6-1239a751.js → tslib.es6-876a6fb8.js} +0 -0
  498. /package/build/{types-d7965e5a.js → types-2e68b130.js} +0 -0
  499. /package/build/{useIsInit-02cfc1e8.js → useIsInit-c444006d.js} +0 -0
  500. /package/build/{useOutsideClick-25c4fe83.js → useOutsideClick-a88ed7dd.js} +0 -0
  501. /package/build/{useScrollbarSize-23b109e5.js → useScrollbarSize-d446d16b.js} +0 -0
  502. /package/build/{useUniqueId-70b095bf.js → useUniqueId-5769db85.js} +0 -0
  503. /package/build/{utils-17728d9b.js → utils-fdfa3e28.js} +0 -0
@@ -1,47 +1,47 @@
1
- import { a as __awaiter, _ as __rest } from './tslib.es6-3bb80a38.js';
1
+ import { a as __awaiter, _ as __rest } from './tslib.es6-d983aca1.js';
2
2
  import React__default, { useState, useRef, useEffect, useCallback, useContext, useMemo } from 'react';
3
3
  import { Info, Ask } from '@hhgtech/icons/other';
4
- import { D as Dropdown } from './index-a48b249a.js';
5
- import { u as useTranslations } from './index-019adbaf.js';
4
+ import { D as Dropdown } from './index-43c80986.js';
5
+ import { u as useTranslations } from './index-fbce107a.js';
6
6
  import innertext from 'innertext';
7
7
  import { theme } from './miscTheme.js';
8
- import { I as Input$1 } from './index-eb189e33.js';
8
+ import { I as Input$1 } from './index-b99adac7.js';
9
9
  import { useMantineTheme, Switch, Popover } from '@mantine/core';
10
10
  import '@mantine/dates';
11
- import './index-2337fa14.js';
12
- import './index-d43b616f.js';
13
- import './index-fc6e19ca.js';
14
- import './useMantineLocale-374d7d18.js';
15
- import { T as Text } from './index-91ab046b.js';
16
- import { B as Button } from './index-e0229c87.js';
17
- import './index.styles-79e59f1a.js';
11
+ import './index-f96c758b.js';
12
+ import './index-5beca92b.js';
13
+ import './index-09f90c0d.js';
14
+ import './useMantineLocale-ee453257.js';
15
+ import { T as Text } from './index-1feb112f.js';
16
+ import { B as Button } from './index-63dc7b02.js';
17
+ import './index.styles-9aeabac4.js';
18
18
  import '@mantine/hooks';
19
- import { M as MediaQueries } from './utils-733c431a.js';
20
- import './other-dc718449.js';
21
- import './index-34be1eba.js';
22
- import { u as useImagePicker, a as PopupFrame, d as IconCloseCircle, g as getDefaultFailNoti, e as getPostFormData, f as editPost, h as createPost } from './index-1eae6dad.js';
23
- import { T as TogetherComponentGlobalContext, c as callApi, d as getApiPath, p as getCurrentHref, b as callApiWithAuth, q as callApiWithAdminAuth, k as getCurrentBaseUrl, r as getChatbotAiApiPath } from './utils-16593d15.js';
19
+ import { M as MediaQueries } from './utils-cb146a70.js';
20
+ import './other-afc01340.js';
21
+ import './index-eaae9c13.js';
22
+ import { u as useImagePicker, a as PopupFrame, d as IconCloseCircle, g as getDefaultFailNoti, e as getPostFormData, f as editPost, h as createPost } from './index-951e41c9.js';
23
+ import { T as TogetherComponentGlobalContext, c as callApi, d as getApiPath, p as getCurrentHref, b as callApiWithAuth, q as callApiWithAdminAuth, r as getChatbotAiApiPath } from './utils-284b3857.js';
24
24
  import styled from '@emotion/styled';
25
- import { b as formatPost, c as formatTopic } from './dataTransform-87d9625e.js';
26
- import { M as MAX_IMAGE_UPLOADS, B as BEARER_TOKEN_COOKIE } from './constants-72a20280.js';
27
- import { h as highlightBadWords, f as fixMalformedMention, r as removeFontFormat, a as removeEdittedBannedWord, w as wrapAnchorAroundUrls, g as getUrlsFromEditorString, A as ALLOW_DOMAIN_URL, e as escapeRegExp, d as decodeMention, b as decodePostUrl, c as reformatUrl, i as getMentionIdsFromString, L as LIMIT_MENTION } from './post-4c7a5a88.js';
28
- import { C as CardAuthor, L as Loading$1 } from './index-13fce5ac.js';
29
- import { S as StyledCreatePostDescription$1, R as RichTextEditor$1, I as IconLink } from './editor-d4330cef.js';
30
- import { I as Input } from './index-cf3f2487.js';
25
+ import { b as formatPost, a as formatCommunity, c as formatTopic } from './dataTransform-49e22f3e.js';
26
+ import { M as MAX_IMAGE_UPLOADS, B as BEARER_TOKEN_COOKIE } from './constants-d8dcf848.js';
27
+ import { h as highlightBadWords, f as fixMalformedMention, r as removeFontFormat, a as removeEdittedBannedWord, w as wrapAnchorAroundUrls, g as getUrlsFromEditorString, A as ALLOW_DOMAIN_URL, e as escapeRegExp, d as decodeMention, b as decodePostUrl, c as reformatUrl, i as getMentionIdsFromString, L as LIMIT_MENTION } from './post-b9963bbb.js';
28
+ import { C as CardAuthor, L as Loading$1 } from './index-4568e106.js';
29
+ import { S as StyledCreatePostDescription$1, R as RichTextEditor$1, I as IconLink } from './editor-db5f955a.js';
30
+ import { I as Input } from './index-05f4b04d.js';
31
31
  import debounce from 'lodash/debounce';
32
32
  import ContentEditable from 'react-contenteditable';
33
33
  import { PATHS, ADMIN_PATHS } from './togetherApiPaths.js';
34
- import { L as Loading } from './index-0b7d8963.js';
35
- import { C as CardLink } from './index-a5b7cee7.js';
36
- import { B as BtnChoice } from './index-2632aa93.js';
37
- import { L as LOCALE } from './Locale-14481773.js';
34
+ import { L as Loading } from './index-4ae4115a.js';
35
+ import { C as CardLink } from './index-187c248f.js';
36
+ import { B as BtnChoice } from './index-18fc41d1.js';
37
+ import { L as LOCALE } from './Locale-b85a2806.js';
38
38
  import * as ReactDOM from 'react-dom';
39
- import { b as IconArrowLeft } from './index-e236a5ee.js';
40
- import { B as Button$1 } from './index-1504c2aa.js';
39
+ import { b as IconArrowLeft } from './index-8ac33271.js';
40
+ import { B as Button$1 } from './index-00d608ea.js';
41
41
  import { getCookie } from './miscCookieHelper.js';
42
- import { a as useUniqueId } from './useUniqueId-182c5412.js';
43
- import { U as UserAvatar } from './index-e2e59f48.js';
44
- import { P as PopoverMenu } from './index-b10f98a4.js';
42
+ import { a as useUniqueId } from './useUniqueId-3deb18e4.js';
43
+ import { U as UserAvatar } from './index-10e8ead0.js';
44
+ import { P as PopoverMenu } from './index-c623ccda.js';
45
45
  import { Close, Check } from '@hhgtech/icons/core';
46
46
 
47
47
  const StyledCreateNewPost$1 = styled.div `
@@ -1438,10 +1438,18 @@ const StyledTopicSelectList$1 = styled.div `
1438
1438
  }
1439
1439
  `;
1440
1440
 
1441
- const TopicSelectList$1 = ({ className, style, topics: topicsProp, communityId, onChange, isLoading, disabled, forceTopics, selectedTopics: selectedTopicsProp, noFetch, dataEventCategory, dataEventAction, dataEventLabel, }) => {
1441
+ const TopicSelectList$1 = ({ className, style, topics: topicsProp, communityId, onChange, isLoading, disabled,
1442
+ // forceTopics,
1443
+ selectedTopics: selectedTopicsProp, noFetch, dataEventCategory, dataEventAction, dataEventLabel, }) => {
1442
1444
  const { data: { locale, env: { isMarryBaby }, }, } = useContext(TogetherComponentGlobalContext);
1443
- const [topics, setTopics] = useState(topicsProp ? [...topicsProp] : []);
1444
- const [selectedTopics, setSelectedTopics] = useState(selectedTopicsProp ? [...selectedTopicsProp] : []);
1445
+ // const [topics, setTopics] = useState<Topic[]>(
1446
+ // topicsProp ? [...topicsProp] : [],
1447
+ // )
1448
+ const [topics, setTopics] = useState([]);
1449
+ // const [selectedTopics, setSelectedTopics] = useState<Topic[]>(
1450
+ // selectedTopicsProp ? [...selectedTopicsProp] : [],
1451
+ // )
1452
+ const [selectedTopics, setSelectedTopics] = useState([]);
1445
1453
  const [isLoadingTopics, setIsLoadingTopics] = useState(false);
1446
1454
  const topicsPropRef = useRef(topicsProp);
1447
1455
  topicsPropRef.current = topicsProp;
@@ -1459,7 +1467,19 @@ const TopicSelectList$1 = ({ className, style, topics: topicsProp, communityId,
1459
1467
  }), 'GET');
1460
1468
  const topicRes = (_b = res === null || res === void 0 ? void 0 : res.data) === null || _b === void 0 ? void 0 : _b.topics;
1461
1469
  if (Array.isArray(topicRes)) {
1462
- setTopics(() => (topicRes === null || topicRes === void 0 ? void 0 : topicRes.map(formatTopic).sort((t1, t2) => (t1.order || 0) - (t2.order || 0))) || []);
1470
+ // setTopics(
1471
+ // () =>
1472
+ // topicRes
1473
+ // ?.map<Topic>(formatTopic)
1474
+ // .sort(
1475
+ // (t1: Topic, t2: Topic) => (t1.order || 0) - (t2.order || 0),
1476
+ // ) || [],
1477
+ // )
1478
+ let newTopics = [];
1479
+ topicRes === null || topicRes === void 0 ? void 0 : topicRes.forEach((item) => {
1480
+ newTopics = newTopics.concat(item.discover_category);
1481
+ });
1482
+ setTopics(newTopics);
1463
1483
  }
1464
1484
  }
1465
1485
  catch (e) {
@@ -1470,42 +1490,54 @@ const TopicSelectList$1 = ({ className, style, topics: topicsProp, communityId,
1470
1490
  }))();
1471
1491
  }
1472
1492
  }, [communityId, noFetch]);
1473
- const topicsPropString = topicsProp === null || topicsProp === void 0 ? void 0 : topicsProp.map((t) => t.id).join('-');
1474
- const topicsStateString = topics === null || topics === void 0 ? void 0 : topics.map((t) => t.id).join('-');
1475
- const forceTopicsPropString = forceTopics === null || forceTopics === void 0 ? void 0 : forceTopics.map((t) => t.id).join('-');
1476
- useEffect(() => {
1477
- if (topicsProp &&
1478
- typeof topicsPropString !== 'undefined' &&
1479
- topicsPropString !== topicsStateString) {
1480
- setTopics(topicsProp);
1481
- }
1482
- }, [topicsProp, topicsPropString, topicsStateString]);
1483
- const topicsWithoutForced = useMemo(() => topics.filter((t) => !(forceTopics === null || forceTopics === void 0 ? void 0 : forceTopics.some((ft) => (ft.id && ft.id === t.id) ||
1484
- (ft.mappedCategoryId &&
1485
- ft.mappedCategoryId === t.mappedCategoryId)))), [topicsStateString, forceTopicsPropString]);
1493
+ // const topicsPropString = topicsProp?.map((t) => t.id).join('-')
1494
+ // const topicsStateString = topics?.map((t) => t.id).join('-')
1495
+ // const forceTopicsPropString = forceTopics?.map((t) => t.id).join('-')
1496
+ // useEffect(() => {
1497
+ // if (
1498
+ // topicsProp &&
1499
+ // typeof topicsPropString !== 'undefined' &&
1500
+ // topicsPropString !== topicsStateString
1501
+ // ) {
1502
+ // setTopics(topicsProp)
1503
+ // }
1504
+ // }, [topicsProp, topicsPropString, topicsStateString])
1505
+ // const topicsWithoutForced = useMemo(
1506
+ // () =>
1507
+ // topics.filter(
1508
+ // (t) =>
1509
+ // !forceTopics?.some(
1510
+ // (ft) =>
1511
+ // (ft.id && ft.id === t.id) ||
1512
+ // (ft.mappedCategoryId &&
1513
+ // ft.mappedCategoryId === t.mappedCategoryId),
1514
+ // ),
1515
+ // ),
1516
+ // [topicsStateString, forceTopicsPropString],
1517
+ // )
1486
1518
  return (React__default.createElement(StyledTopicSelectList$1, { "data-is-marrybaby": isMarryBaby, className: className, style: style },
1487
- forceTopics.map((topic) => (React__default.createElement(TopicItem$1, { key: `${topic.id}-${topic.mappedCategoryId}`, topic: topic, disabled: true, selected: true, dataEventAction: dataEventAction, dataEventCategory: dataEventCategory, dataEventLabel: dataEventLabel }))),
1488
- topicsWithoutForced.map((topic) => (React__default.createElement(TopicItem$1, { key: `${topic.id}-${topic.mappedCategoryId}`, topic: topic, disabled: disabled, selected: (selectedTopicsProp || selectedTopics).some((t) => (t.id && t.id === topic.id) ||
1489
- (t.mappedCategoryId &&
1490
- t.mappedCategoryId === topic.mappedCategoryId)), onClick: () => {
1491
- const _selected = selectedTopicsProp || selectedTopics;
1492
- const foundIndex = _selected.findIndex((_selected) => (_selected.id && _selected.id === topic.id) ||
1493
- (_selected.mappedCategoryId &&
1494
- _selected.mappedCategoryId === topic.mappedCategoryId));
1495
- if (foundIndex !== -1) {
1496
- _selected.splice(foundIndex, 1);
1497
- }
1498
- else {
1499
- _selected.push(topic);
1500
- }
1501
- if (onChange && selectedTopicsProp) {
1502
- onChange(_selected.slice());
1503
- }
1504
- else {
1505
- onChange && onChange(_selected.slice());
1506
- setSelectedTopics(_selected.slice());
1507
- }
1508
- }, dataEventAction: dataEventAction, dataEventCategory: dataEventCategory, dataEventLabel: dataEventLabel }))),
1519
+ topics.map((topic) => {
1520
+ return (React__default.createElement(TopicItem$1, { key: `${topic.id}-${topic.category_id}`, topic: topic, disabled: disabled, selected: (selectedTopicsProp || selectedTopics).some((t) => (t.id && t.id === topic.id) ||
1521
+ ((t === null || t === void 0 ? void 0 : t.category_id) && (t === null || t === void 0 ? void 0 : t.category_id) === topic.category_id)), onClick: () => {
1522
+ const _selected = (selectedTopicsProp || selectedTopics);
1523
+ const foundIndex = _selected.findIndex((_selected) => (_selected.id && _selected.id === topic.id) ||
1524
+ ((_selected === null || _selected === void 0 ? void 0 : _selected.category_id) &&
1525
+ (_selected === null || _selected === void 0 ? void 0 : _selected.category_id) === topic.category_id));
1526
+ if (foundIndex !== -1) {
1527
+ _selected.splice(foundIndex, 1);
1528
+ }
1529
+ else {
1530
+ _selected.push(topic);
1531
+ }
1532
+ if (onChange && selectedTopicsProp) {
1533
+ onChange(_selected.slice());
1534
+ }
1535
+ else {
1536
+ onChange && onChange(_selected.slice());
1537
+ setSelectedTopics(_selected.slice());
1538
+ }
1539
+ }, dataEventAction: dataEventAction, dataEventCategory: dataEventCategory, dataEventLabel: dataEventLabel }));
1540
+ }),
1509
1541
  (isLoading || isLoadingTopics) && React__default.createElement(Loading$1, { className: "topic-spinner" })));
1510
1542
  };
1511
1543
  const TopicItem$1 = (_a) => {
@@ -2434,7 +2466,7 @@ const RichTextEditor = ({ html, onChange, className, style, placeholder, onImage
2434
2466
  onChange === null || onChange === void 0 ? void 0 : onChange(value);
2435
2467
  }
2436
2468
  }
2437
- }, 500), []);
2469
+ }, 200), []);
2438
2470
  useEffect(() => {
2439
2471
  onInvalidUrlsChange && onInvalidUrlsChange(invalidUrls);
2440
2472
  }, [invalidUrls]);
@@ -3384,9 +3416,11 @@ const applySpecialCharSite = [
3384
3416
  LOCALE.Malaysia,
3385
3417
  LOCALE.Vietnam,
3386
3418
  ];
3387
- const CreateNewPostContentV2 = ({ className, style, onClose, forceSelectCommunity, articleId, editPostData, defaultCommunity, defaultTopics, userInfo, isMarryBaby = false, }) => {
3419
+ const CreateNewPostContentV2 = ({ className, style, onClose, onPostCreatedEdited, forceSelectCommunity, forceSelectTopics, articleId, editPostData, defaultCommunity, communities, userInfo, isMarryBaby = false, }) => {
3388
3420
  const isInEditMode = !!(editPostData === null || editPostData === void 0 ? void 0 : editPostData.id);
3389
- const { data: { locale, env: { togetherBasePath }, }, action: { pushNotifications, sanitizeFunction }, } = useContext(TogetherComponentGlobalContext);
3421
+ const { data: { locale,
3422
+ // env: { togetherBasePath },
3423
+ }, action: { pushNotifications, sanitizeFunction }, } = useContext(TogetherComponentGlobalContext);
3390
3424
  const { t } = useTranslations();
3391
3425
  const containerRef = useRef(null);
3392
3426
  const [isAskDoctor, setIsAskDoctor] = useState(false);
@@ -3397,7 +3431,7 @@ const CreateNewPostContentV2 = ({ className, style, onClose, forceSelectCommunit
3397
3431
  label: t('community.choose'),
3398
3432
  value: '',
3399
3433
  });
3400
- const [selectedTopics, setSelectedTopics] = useState([]);
3434
+ const [selectedTopics, setSelectedTopics] = useState([...forceSelectTopics] || []);
3401
3435
  const [error, setError] = useState({});
3402
3436
  const [imageFiles, setImageFiles] = useState([]);
3403
3437
  const [bannedWords, setBannedWords] = useState([]);
@@ -3436,14 +3470,16 @@ const CreateNewPostContentV2 = ({ className, style, onClose, forceSelectCommunit
3436
3470
  } })),
3437
3471
  },
3438
3472
  ];
3439
- const currentCommunity = useMemo(() => {
3440
- if (!communityValue.value)
3441
- return null;
3442
- const result = communitiesList.find((item) => String(item.id) === String(communityValue.value));
3443
- if (!result)
3444
- return null;
3445
- return result;
3446
- }, [communityValue, communitiesList]);
3473
+ // const currentCommunity = useMemo(() => {
3474
+ // if (!communityValue.value) return null
3475
+ // const result = communitiesList.find(
3476
+ // (item) => String(item.id) === String(communityValue.value),
3477
+ // )
3478
+ // if (!result) return null
3479
+ // return result
3480
+ // }, [communityValue, communitiesList])
3481
+ const currentCommunity = forceSelectCommunity ||
3482
+ communities.find((c) => `${c.id || ''}-${c.mappedCategoryId || ''}` === communityValue.value);
3447
3483
  // HANDLE etra action when OPEN AND CLOSE
3448
3484
  useEffect(() => {
3449
3485
  if (editPostData) {
@@ -3454,7 +3490,7 @@ const CreateNewPostContentV2 = ({ className, style, onClose, forceSelectCommunit
3454
3490
  label: post.community.name,
3455
3491
  value: `${post.community.id || ''}-${post.community.mappedCategoryId || ''}`,
3456
3492
  });
3457
- setSelectedTopics(post.topics || []);
3493
+ // setSelectedTopics(post.topics || [])
3458
3494
  setImageFiles(post.photos || []);
3459
3495
  setIsAskDoctor(!!post.isAskDoctor || false);
3460
3496
  }
@@ -3465,9 +3501,9 @@ const CreateNewPostContentV2 = ({ className, style, onClose, forceSelectCommunit
3465
3501
  value: `${defaultCommunity.id || ''}-${defaultCommunity.mappedCategoryId || ''}`,
3466
3502
  });
3467
3503
  }
3468
- if (defaultTopics) {
3469
- setSelectedTopics(defaultTopics);
3470
- }
3504
+ // if (defaultTopics) {
3505
+ // setSelectedTopics(defaultTopics)
3506
+ // }
3471
3507
  }
3472
3508
  }, []);
3473
3509
  useEffect(() => {
@@ -3494,7 +3530,8 @@ const CreateNewPostContentV2 = ({ className, style, onClose, forceSelectCommunit
3494
3530
  ]);
3495
3531
  const communitiesApi = (_a = resListCommunity === null || resListCommunity === void 0 ? void 0 : resListCommunity.data) === null || _a === void 0 ? void 0 : _a.communities;
3496
3532
  if (Array.isArray(communitiesApi) && communitiesApi.length) {
3497
- setCommunitiesList(communitiesApi);
3533
+ const resultFormat = communitiesApi.map((item) => formatCommunity(item));
3534
+ setCommunitiesList(resultFormat);
3498
3535
  }
3499
3536
  const topicRes = (_b = resListTopic === null || resListTopic === void 0 ? void 0 : resListTopic.data) === null || _b === void 0 ? void 0 : _b.topics;
3500
3537
  if (Array.isArray(topicRes)) {
@@ -3506,6 +3543,12 @@ const CreateNewPostContentV2 = ({ className, style, onClose, forceSelectCommunit
3506
3543
  }
3507
3544
  }))();
3508
3545
  }, []);
3546
+ const onCreateEditSuccess = (res) => {
3547
+ if (onPostCreatedEdited) {
3548
+ onPostCreatedEdited(formatPost(res), isInEditMode);
3549
+ }
3550
+ onClose && onClose();
3551
+ };
3509
3552
  const validationUploadPhoto = (files) => {
3510
3553
  const errorMessage = Object.assign({}, error);
3511
3554
  if (files && files.length > 10) {
@@ -3588,22 +3631,20 @@ const CreateNewPostContentV2 = ({ className, style, onClose, forceSelectCommunit
3588
3631
  console.log(value);
3589
3632
  }
3590
3633
  };
3634
+ console.log(uncategorizedId);
3635
+ console.log(topicsList);
3591
3636
  const submitPost = (uncategorized) => __awaiter(void 0, void 0, void 0, function* () {
3592
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
3637
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
3593
3638
  const isError = validationPost();
3594
3639
  if (isError)
3595
3640
  return;
3596
3641
  const bodyFormData = yield getPostFormData({
3597
3642
  title: titleValue,
3598
3643
  description: descriptionValue,
3599
- communityId: uncategorized
3600
- ? uncategorizedId
3601
- : String((currentCommunity === null || currentCommunity === void 0 ? void 0 : currentCommunity.id) || ''),
3644
+ communityId: String((currentCommunity === null || currentCommunity === void 0 ? void 0 : currentCommunity.id) || ''),
3602
3645
  imageFiles,
3603
3646
  previewUrl,
3604
- topicIds: uncategorized
3605
- ? []
3606
- : selectedTopics === null || selectedTopics === void 0 ? void 0 : selectedTopics.map((topic) => String(topic.id || '')).filter(Boolean),
3647
+ topicIds: selectedTopics === null || selectedTopics === void 0 ? void 0 : selectedTopics.map((topic) => String(topic.id || '')).filter(Boolean),
3607
3648
  locale,
3608
3649
  sanitizeFunction,
3609
3650
  categoryCommunityId: String((currentCommunity === null || currentCommunity === void 0 ? void 0 : currentCommunity.mappedCategoryId) || ''),
@@ -3615,6 +3656,7 @@ const CreateNewPostContentV2 = ({ className, style, onClose, forceSelectCommunit
3615
3656
  if (articleId) {
3616
3657
  bodyFormData.append('article_id', articleId);
3617
3658
  }
3659
+ console.log(uncategorized);
3618
3660
  let res;
3619
3661
  if (isInEditMode) {
3620
3662
  if (editPostData === null || editPostData === void 0 ? void 0 : editPostData.id) {
@@ -3629,17 +3671,28 @@ const CreateNewPostContentV2 = ({ className, style, onClose, forceSelectCommunit
3629
3671
  res = yield createPost({
3630
3672
  formData: bodyFormData,
3631
3673
  locale,
3632
- isArticleComment: !(currentCommunity === null || currentCommunity === void 0 ? void 0 : currentCommunity.id) && !!(currentCommunity === null || currentCommunity === void 0 ? void 0 : currentCommunity.mappedCategoryId),
3674
+ isArticleComment: true,
3633
3675
  });
3634
3676
  }
3635
3677
  const resData = res === null || res === void 0 ? void 0 : res.data;
3636
3678
  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)) {
3637
- const params = `action=${editPostData ? 'editPost' : 'createPost'}&askDoctor=${(resData === null || resData === void 0 ? void 0 : resData.is_question) ? 'true' : 'false'}`;
3638
- const postHref = `${getCurrentBaseUrl(locale)}${togetherBasePath}/${(_c = resData === null || resData === void 0 ? void 0 : resData.community) === null || _c === void 0 ? void 0 : _c.slug}/${resData === null || resData === void 0 ? void 0 : resData.slug}/?${params}`;
3639
- window.location.href = postHref;
3679
+ // const params = `action=${
3680
+ // editPostData ? 'editPost' : 'createPost'
3681
+ // }&askDoctor=${resData?.is_question ? 'true' : 'false'}`
3682
+ // const postHref = `${getCurrentBaseUrl(locale)}${togetherBasePath}/${
3683
+ // resData?.community?.slug
3684
+ // }/${resData?.slug}/?${params}`
3685
+ // window.location.href = postHref
3686
+ pushNotifications({
3687
+ message: isInEditMode
3688
+ ? t('updatePost.popup.success')
3689
+ : t('createPost.popup.success'),
3690
+ type: 'success',
3691
+ });
3692
+ onCreateEditSuccess(resData);
3640
3693
  }
3641
3694
  else {
3642
- if (((_e = (_d = res === null || res === void 0 ? void 0 : res.messages) === null || _d === void 0 ? void 0 : _d.moderation) === null || _e === void 0 ? void 0 : _e.type) === 'banned') {
3695
+ 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') {
3643
3696
  pushNotifications({
3644
3697
  title: t('notification.post.blocked.title'),
3645
3698
  message: t('notification.post.blocked.message'),
@@ -3649,7 +3702,7 @@ const CreateNewPostContentV2 = ({ className, style, onClose, forceSelectCommunit
3649
3702
  setBannedWords(res.messages.moderation.words);
3650
3703
  }
3651
3704
  }
3652
- else if (((_g = (_f = res === null || res === void 0 ? void 0 : res.messages) === null || _f === void 0 ? void 0 : _f.moderation) === null || _g === void 0 ? void 0 : _g.type) === 'suspect') {
3705
+ 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') {
3653
3706
  pushNotifications({
3654
3707
  title: t('notification.post.suspect.title'),
3655
3708
  message: t('notification.post.suspect.message'),
@@ -3657,7 +3710,7 @@ const CreateNewPostContentV2 = ({ className, style, onClose, forceSelectCommunit
3657
3710
  });
3658
3711
  onClose && onClose();
3659
3712
  }
3660
- else if ((_j = (_h = res === null || res === void 0 ? void 0 : res.messages) === null || _h === void 0 ? void 0 : _h.find) === null || _j === void 0 ? void 0 : _j.call(_h, (m) => { var _a; return !!((_a = m === null || m === void 0 ? void 0 : m.includes) === null || _a === void 0 ? void 0 : _a.call(m, 'suspend')); })) {
3713
+ 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')); })) {
3661
3714
  pushNotifications({
3662
3715
  message: t('notification.suspend.message'),
3663
3716
  type: 'danger',
@@ -3666,7 +3719,7 @@ const CreateNewPostContentV2 = ({ className, style, onClose, forceSelectCommunit
3666
3719
  }
3667
3720
  else {
3668
3721
  pushNotifications({
3669
- message: ((_k = res === null || res === void 0 ? void 0 : res.messages) === null || _k === void 0 ? void 0 : _k[0]) || t('notification.failure'),
3722
+ message: ((_j = res === null || res === void 0 ? void 0 : res.messages) === null || _j === void 0 ? void 0 : _j[0]) || t('notification.failure'),
3670
3723
  type: 'danger',
3671
3724
  });
3672
3725
  }
@@ -3698,13 +3751,20 @@ const CreateNewPostContentV2 = ({ className, style, onClose, forceSelectCommunit
3698
3751
  }
3699
3752
  };
3700
3753
  const onSubmitContinuePost = () => __awaiter(void 0, void 0, void 0, function* () {
3701
- var _l;
3754
+ var _k;
3702
3755
  const isError = validationPost();
3703
3756
  if (isError) {
3704
3757
  const keyElmToScroll = getFirstOrderErroKey(orderErrorFieldKey);
3705
3758
  handleScrollToError(keyElmToScroll);
3706
3759
  return;
3707
3760
  }
3761
+ submitPost();
3762
+ if (stepPost)
3763
+ return;
3764
+ if (isInEditMode) {
3765
+ submitPost();
3766
+ return;
3767
+ }
3708
3768
  setStepPost('step_community');
3709
3769
  // Current just apply ai suggest community for Vietnam site
3710
3770
  if (locale === LOCALE.Vietnam && !isMarryBaby && !isInEditMode) {
@@ -3736,11 +3796,16 @@ const CreateNewPostContentV2 = ({ className, style, onClose, forceSelectCommunit
3736
3796
  topic_in: listTopicId.join(),
3737
3797
  pageSize: 100,
3738
3798
  }), 'GET');
3739
- const topicsApi = (_l = resTopic === null || resTopic === void 0 ? void 0 : resTopic.data) === null || _l === void 0 ? void 0 : _l.topics;
3740
- const topicSuggested = topicsApi
3741
- ? topicsApi.map((item) => formatTopic(item))
3742
- : [];
3743
- setSelectedTopics(topicSuggested);
3799
+ const topicsApi = (_k = resTopic === null || resTopic === void 0 ? void 0 : resTopic.data) === null || _k === void 0 ? void 0 : _k.topics;
3800
+ // const topicSuggested = topicsApi
3801
+ // ? topicsApi.map((item) => formatTopic(item))
3802
+ // : ([] as Topic[])
3803
+ let newTopics = [];
3804
+ topicsApi === null || topicsApi === void 0 ? void 0 : topicsApi.forEach((item) => {
3805
+ newTopics = newTopics.concat(item.discover_category);
3806
+ });
3807
+ // setTopics(newTopics)
3808
+ setSelectedTopics(newTopics);
3744
3809
  }
3745
3810
  }
3746
3811
  }
@@ -3753,7 +3818,6 @@ const CreateNewPostContentV2 = ({ className, style, onClose, forceSelectCommunit
3753
3818
  }
3754
3819
  }
3755
3820
  });
3756
- console.log('topicsList: ', topicsList);
3757
3821
  return (React__default.createElement(StyledCreateNewPost, { className: `${className} create-post-popup-frame`, style: style },
3758
3822
  React__default.createElement("div", { className: "input-group-container", ref: containerRef },
3759
3823
  React__default.createElement(StyledFormGroupInner, null,
@@ -3827,7 +3891,11 @@ const CreateNewPostContentV2 = ({ className, style, onClose, forceSelectCommunit
3827
3891
  validationUploadPhoto(data);
3828
3892
  } }),
3829
3893
  React__default.createElement("div", null,
3830
- React__default.createElement(Button, { 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: onSubmitContinuePost, loading: isLoadingSuggest, disabled: isLoadingSuggest }, t('onboarding.button.continue'))))));
3894
+ React__default.createElement(Button, { 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: onSubmitContinuePost, loading: isLoadingSuggest, disabled: isLoadingSuggest },
3895
+ /* {isInEditMode
3896
+ ? t('createPost.popup.submit')
3897
+ : t('onboarding.button.continue')} */
3898
+ t('createPost.popup.submit'))))));
3831
3899
  };
3832
3900
 
3833
3901
  const StyledTopicSelectList = styled.div `
@@ -1,6 +1,6 @@
1
1
  import React__default from 'react';
2
2
  import styled from '@emotion/styled';
3
- import { L as Label } from './index-cf3f2487.js';
3
+ import { L as Label } from './index-05f4b04d.js';
4
4
  import { theme } from './miscTheme.js';
5
5
 
6
6
  const StyledTextArea = styled.div `
@@ -1,29 +1,29 @@
1
1
  import React__default, { useState, useMemo, useContext, useEffect, createContext, useRef } from 'react';
2
- import { B as Button } from './index-1504c2aa.js';
3
- import { H as Heading } from './index-4ce0d02d.js';
4
- import { T as Text } from './index-91ab046b.js';
5
- import { c as safeEncodeURI, M as MediaQueries, t as toggleNoScroll, a as getPopupWrapperDom } from './utils-733c431a.js';
2
+ import { B as Button } from './index-00d608ea.js';
3
+ import { H as Heading } from './index-b389ccb0.js';
4
+ import { T as Text } from './index-1feb112f.js';
5
+ import { c as safeEncodeURI, M as MediaQueries, t as toggleNoScroll, a as getPopupWrapperDom } from './utils-cb146a70.js';
6
6
  import * as ReactDOM from 'react-dom';
7
- import { b as callApiWithAuth, d as getApiPath, T as TogetherComponentGlobalContext, c as callApi } from './utils-16593d15.js';
7
+ import { b as callApiWithAuth, d as getApiPath, T as TogetherComponentGlobalContext, c as callApi } from './utils-284b3857.js';
8
8
  import styled from '@emotion/styled';
9
9
  import { theme } from './miscTheme.js';
10
- import { a as __awaiter } from './tslib.es6-3bb80a38.js';
11
- import { I as Input } from './index-cf3f2487.js';
12
- import { u as useTranslations } from './index-019adbaf.js';
13
- import { e as formatComment } from './dataTransform-87d9625e.js';
14
- import { M as MAX_IMAGE_UPLOADS, a as DEFAULT_AVATAR_IMG, D as DEFAULT_IMG } from './constants-72a20280.js';
10
+ import { a as __awaiter } from './tslib.es6-d983aca1.js';
11
+ import { I as Input } from './index-05f4b04d.js';
12
+ import { u as useTranslations } from './index-fbce107a.js';
13
+ import { e as formatComment } from './dataTransform-49e22f3e.js';
14
+ import { M as MAX_IMAGE_UPLOADS, a as DEFAULT_AVATAR_IMG, D as DEFAULT_IMG } from './constants-d8dcf848.js';
15
15
  import { PATHS } from './togetherApiPaths.js';
16
- import { j as removeBannedWordWrapper, i as getMentionIdsFromString, k as encodePostContent, u as uploadAndGetSrc, y as youtubeVidIdGetter } from './post-4c7a5a88.js';
17
- import { C as CardLink } from './index-a5b7cee7.js';
18
- import { L as Loading } from './index-13fce5ac.js';
19
- import { U as UserAvatar } from './index-e2e59f48.js';
20
- import { R as RichTextEditor } from './editor-d4330cef.js';
16
+ import { j as removeBannedWordWrapper, i as getMentionIdsFromString, k as encodePostContent, u as uploadAndGetSrc, y as youtubeVidIdGetter } from './post-b9963bbb.js';
17
+ import { C as CardLink } from './index-187c248f.js';
18
+ import { L as Loading } from './index-4568e106.js';
19
+ import { U as UserAvatar } from './index-10e8ead0.js';
20
+ import { R as RichTextEditor } from './editor-db5f955a.js';
21
21
  import { Portal, Box, useMantineTheme } from '@mantine/core';
22
22
  import { FullScreen } from '@hhgtech/icons/other';
23
- import { P as Popup } from './index-bf299dbd.js';
24
- import { C as CloseIcon } from './index-e236a5ee.js';
23
+ import { P as Popup } from './index-e76c58f4.js';
24
+ import { C as CloseIcon } from './index-8ac33271.js';
25
25
  import { ShareBox } from './togetherShareBox.js';
26
- import { I as ImageWrap } from './useScreenSize-77e1ec29.js';
26
+ import { I as ImageWrap } from './useScreenSize-86ff79b6.js';
27
27
 
28
28
  const useImagePicker = (imageFilesProp, onImageFilesChange) => {
29
29
  const [imageFiles, setImageFiles] = useState(imageFilesProp || []);
@@ -1,23 +1,23 @@
1
- import { _ as __rest } from './tslib.es6-3bb80a38.js';
1
+ import { _ as __rest } from './tslib.es6-d983aca1.js';
2
2
  import React__default, { createContext, useContext } from 'react';
3
3
  import { useMantineTheme } from '@mantine/core';
4
4
  import { useForm, isNotEmpty } from '@mantine/form';
5
- import { L as LastPeriod } from './LastPeriod-90585413.js';
6
- import { I as Input } from './index-eb189e33.js';
7
- import { D as DatePicker } from './index-72ce6bda.js';
8
- import { T as Text } from './index-91ab046b.js';
9
- import './index-e0229c87.js';
10
- import './index.styles-79e59f1a.js';
11
- import { u as useTranslations } from './index-019adbaf.js';
5
+ import { L as LastPeriod } from './LastPeriod-936aef76.js';
6
+ import { I as Input } from './index-b99adac7.js';
7
+ import { D as DatePicker } from './index-0ad1c6d2.js';
8
+ import { T as Text } from './index-1feb112f.js';
9
+ import './index-63dc7b02.js';
10
+ import './index.styles-9aeabac4.js';
11
+ import { u as useTranslations } from './index-fbce107a.js';
12
12
  import '@mantine/hooks';
13
- import './useMantineLocale-374d7d18.js';
14
- import './index-d43b616f.js';
15
- import './index-fc6e19ca.js';
16
- import './utils-733c431a.js';
17
- import './index-2337fa14.js';
18
- import './other-dc718449.js';
19
- import './index-34be1eba.js';
20
- import { H as HealthToolFormWrapper } from './index-03288bcf.js';
13
+ import './useMantineLocale-ee453257.js';
14
+ import './index-5beca92b.js';
15
+ import './index-09f90c0d.js';
16
+ import './utils-cb146a70.js';
17
+ import './index-f96c758b.js';
18
+ import './other-afc01340.js';
19
+ import './index-eaae9c13.js';
20
+ import { H as HealthToolFormWrapper } from './index-eed1ec06.js';
21
21
  import { CalendarMB } from '@hhgtech/icons/other';
22
22
 
23
23
  const AvoidPregnancy = (_a) => {
@@ -1,4 +1,4 @@
1
- import { _ as __rest } from './tslib.es6-3bb80a38.js';
1
+ import { _ as __rest } from './tslib.es6-d983aca1.js';
2
2
  import React__default from 'react';
3
3
  import styled from '@emotion/styled';
4
4
  import { theme } from './miscTheme.js';
@@ -1,7 +1,7 @@
1
- import { _ as __rest } from './tslib.es6-3bb80a38.js';
1
+ import { _ as __rest } from './tslib.es6-d983aca1.js';
2
2
  import React__default from 'react';
3
3
  import { useMantineTheme } from '@mantine/core';
4
- import { T as Text } from './index-91ab046b.js';
4
+ import { T as Text } from './index-1feb112f.js';
5
5
 
6
6
  /**
7
7
  * @deprecated Consider to use import { Title } from '@mantine/core'