@hhgtech/hhg-components 1.29.341-beta-4 → 1.29.341-beta-5

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 (551) hide show
  1. package/build/{LastPeriod-4df2c8b1.js → LastPeriod-27df7a0a.js} +1 -1
  2. package/build/{MobileBottomNavigationIcon-791dc985.js → MobileBottomNavigationIcon-4942fc7f.js} +3 -3
  3. package/build/{Spinner-cd86fb09.js → Spinner-79c56e50.js} +1 -1
  4. package/build/{WhatsApp-4b7edd41.js → WhatsApp-49d02385.js} +1 -1
  5. package/build/adapters.js +19 -19
  6. package/build/atoms.js +49 -46
  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/adapters/button/index.d.ts +3 -1
  13. package/build/components/atoms/drawerComponent/index.d.ts +17 -0
  14. package/build/components/atoms/drawerComponent/index.styled.d.ts +7 -0
  15. package/build/components/atoms/googleLocation/index.d.ts +7 -0
  16. package/build/components/atoms/index.d.ts +1 -0
  17. package/build/components.js +134 -131
  18. package/build/{constants-b131fbd8.js → constants-97b67898.js} +1 -1
  19. package/build/constants.js +3 -3
  20. package/build/constantsDomainLocales.js +1 -1
  21. package/build/constantsRiskScreener.js +2 -2
  22. package/build/constantsSite.js +2 -2
  23. package/build/{core-9a347a8e.js → core-b454dda9.js} +1 -1
  24. package/build/{dataTransform-a15b85e7.js → dataTransform-35738d62.js} +1 -1
  25. package/build/ecom.js +4 -4
  26. package/build/{editor-ca130e52.js → editor-669a36ec.js} +11 -11
  27. package/build/embeddedHeathToolCards_babyGrowth.js +23 -23
  28. package/build/embeddedHeathToolCards_babyPoop.js +19 -19
  29. package/build/embeddedHeathToolCards_babyVaccine.js +22 -22
  30. package/build/embeddedHeathToolCards_bmi_bmi.js +25 -25
  31. package/build/embeddedHeathToolCards_bmrBmr.js +25 -25
  32. package/build/embeddedHeathToolCards_dueDate_dueDate.js +22 -22
  33. package/build/embeddedHeathToolCards_ovulation_ovulation.js +22 -22
  34. package/build/embeddedHeathToolCards_pwg_pwg.js +26 -26
  35. package/build/embeddedHeathToolCards_targetHeartRate.js +27 -27
  36. package/build/esm/{LastPeriod-eb2c8a58.js → LastPeriod-71d51df2.js} +1 -1
  37. package/build/esm/{MobileBottomNavigationIcon-a324653a.js → MobileBottomNavigationIcon-c4701e4e.js} +3 -3
  38. package/build/esm/{Spinner-489c409d.js → Spinner-d42e2aa6.js} +1 -1
  39. package/build/esm/{WhatsApp-314e285f.js → WhatsApp-89ab29e7.js} +1 -1
  40. package/build/esm/adapters.js +19 -19
  41. package/build/esm/atoms.js +48 -46
  42. package/build/esm/babyGrowth.js +83 -83
  43. package/build/esm/cache.js +2 -2
  44. package/build/esm/care.js +17 -17
  45. package/build/esm/careBookingSearchBar.js +14 -14
  46. package/build/esm/careBookingSearchBarV2.js +15 -15
  47. package/build/esm/components/adapters/button/index.d.ts +3 -1
  48. package/build/esm/components/atoms/drawerComponent/index.d.ts +17 -0
  49. package/build/esm/components/atoms/drawerComponent/index.styled.d.ts +7 -0
  50. package/build/esm/components/atoms/googleLocation/index.d.ts +7 -0
  51. package/build/esm/components/atoms/index.d.ts +1 -0
  52. package/build/esm/components.js +92 -90
  53. package/build/esm/{constants-2d6d49ae.js → constants-14b4c6ee.js} +1 -1
  54. package/build/esm/constants.js +3 -3
  55. package/build/esm/constantsDomainLocales.js +1 -1
  56. package/build/esm/constantsRiskScreener.js +2 -2
  57. package/build/esm/constantsSite.js +2 -2
  58. package/build/esm/{core-c1984e84.js → core-2fcc1568.js} +1 -1
  59. package/build/esm/{dataTransform-a32da5ec.js → dataTransform-58744e96.js} +1 -1
  60. package/build/esm/ecom.js +4 -4
  61. package/build/esm/{editor-634c24d8.js → editor-a7bc729e.js} +11 -11
  62. package/build/esm/embeddedHeathToolCards_babyGrowth.js +23 -23
  63. package/build/esm/embeddedHeathToolCards_babyPoop.js +19 -19
  64. package/build/esm/embeddedHeathToolCards_babyVaccine.js +22 -22
  65. package/build/esm/embeddedHeathToolCards_bmi_bmi.js +25 -25
  66. package/build/esm/embeddedHeathToolCards_bmrBmr.js +25 -25
  67. package/build/esm/embeddedHeathToolCards_dueDate_dueDate.js +22 -22
  68. package/build/esm/embeddedHeathToolCards_ovulation_ovulation.js +22 -22
  69. package/build/esm/embeddedHeathToolCards_pwg_pwg.js +26 -26
  70. package/build/esm/embeddedHeathToolCards_targetHeartRate.js +27 -27
  71. package/build/esm/footer.js +21 -21
  72. package/build/esm/gAssets.js +2 -2
  73. package/build/esm/healthToolsCardWrapper.js +18 -18
  74. package/build/esm/healthToolsForm.js +33 -33
  75. package/build/esm/hooks/useGetClientGaId.d.ts +4 -0
  76. package/build/esm/hooks/usePlacesAutocomplete.d.ts +2 -0
  77. package/build/esm/hooks.js +13 -13
  78. package/build/esm/i18n/translationKeys.d.ts +1 -1
  79. package/build/esm/i18n-values/en-PH.js +5 -0
  80. package/build/esm/i18n-values/hi-IN.js +5 -0
  81. package/build/esm/i18n-values/id-ID.js +5 -0
  82. package/build/esm/i18n-values/km-KH.js +5 -0
  83. package/build/esm/i18n-values/ms-MY.js +5 -0
  84. package/build/esm/i18n-values/my-MM.js +5 -0
  85. package/build/esm/i18n-values/th-TH.js +5 -0
  86. package/build/esm/i18n-values/tl-PH.js +5 -0
  87. package/build/esm/i18n-values/vi-VN.js +5 -0
  88. package/build/esm/i18n-values/vi-VN_MB.js +5 -0
  89. package/build/esm/i18n-values/zh-TW.js +5 -0
  90. package/build/esm/i18n.js +2 -2
  91. package/build/esm/i18nV2.js +2 -2
  92. package/build/esm/icons/ChatbotBg.d.ts +4 -0
  93. package/build/esm/icons/Search.d.ts +4 -0
  94. package/build/esm/icons/index.d.ts +5 -3
  95. package/build/esm/{index-dee4461c.js → index-05f8c81e.js} +24 -24
  96. package/build/esm/{index-ae8e25e7.js → index-0d74a29c.js} +17 -5
  97. package/build/esm/{index-2a8da5b2.js → index-11cf3c38.js} +1 -1
  98. package/build/esm/{index-f4c72268.js → index-1713878d.js} +7 -7
  99. package/build/esm/{index-1b96e37c.js → index-1fa9ef2d.js} +15 -15
  100. package/build/esm/{index-32988940.js → index-260a698d.js} +2 -2
  101. package/build/esm/{index-453f193f.js → index-27c9434f.js} +21 -21
  102. package/build/esm/{index-dd87b4da.js → index-28cc83cc.js} +17 -17
  103. package/build/esm/{index-0d24d252.js → index-28d58efe.js} +2 -2
  104. package/build/esm/{index-eee7f80e.js → index-2eedd7c7.js} +1 -1
  105. package/build/esm/{index-7ade79a7.js → index-3c059c5a.js} +16 -16
  106. package/build/esm/{index-3522cfb9.js → index-44ebfbe8.js} +4 -4
  107. package/build/esm/{index-9de7d709.js → index-45ed6241.js} +5 -5
  108. package/build/esm/{index-481ad938.js → index-46e95b8b.js} +2 -2
  109. package/build/esm/{index-61b8f629.js → index-4c2124e1.js} +13 -13
  110. package/build/esm/{index-2343cb0b.js → index-4c68000a.js} +16 -16
  111. package/build/esm/{index-75670317.js → index-4f9c8a88.js} +1 -1
  112. package/build/esm/{index-b659beed.js → index-506a9759.js} +6 -6
  113. package/build/esm/{index-fdb47cc4.js → index-522e4dde.js} +15 -15
  114. package/build/esm/index-52bdb705.js +106 -0
  115. package/build/esm/{index-64e7e665.js → index-52bf7e7f.js} +1 -1
  116. package/build/esm/{index-4150228a.js → index-559b96b9.js} +1 -1
  117. package/build/esm/{index-cea02a07.js → index-5900183a.js} +13 -13
  118. package/build/esm/{index-acfabf14.js → index-59e5d341.js} +3 -3
  119. package/build/esm/{index-4679b320.js → index-5a6b515a.js} +13 -13
  120. package/build/esm/{index-eabdeceb.js → index-647b7b92.js} +13 -13
  121. package/build/esm/{index-75bc5f47.js → index-6c7a1cec.js} +3 -3
  122. package/build/esm/{index-9fb8d0d3.js → index-73c778f3.js} +3 -3
  123. package/build/esm/{index-cc43fb31.js → index-747f1e80.js} +32 -32
  124. package/build/esm/{index-c2d7df1b.js → index-832e25de.js} +1 -1
  125. package/build/esm/{index-b06d4aac.js → index-83b25948.js} +3 -1
  126. package/build/esm/{index-8ca75b47.js → index-83f04dc6.js} +18 -18
  127. package/build/esm/{index-90428778.js → index-84cf55b3.js} +18 -18
  128. package/build/esm/{index-90cac9e5.js → index-856724ed.js} +14 -14
  129. package/build/esm/{index-12832709.js → index-86f399c7.js} +2 -2
  130. package/build/esm/{index-d5a7776d.js → index-8cb28ea4.js} +2 -2
  131. package/build/esm/{index-fb02c05f.js → index-92cb7683.js} +1 -1
  132. package/build/esm/{index-929059cd.js → index-a22f97b1.js} +2 -2
  133. package/build/esm/{index-8cc0a55f.js → index-aaca7e77.js} +6 -6
  134. package/build/esm/{index-8b47416e.js → index-b14461a3.js} +2 -2
  135. package/build/esm/{index-2c47a78c.js → index-b7204fcd.js} +2 -2
  136. package/build/esm/{index-fb05ea22.js → index-c157385c.js} +3 -3
  137. package/build/esm/{index-78fc08fd.js → index-c190df65.js} +6 -6
  138. package/build/esm/{index-26676d6e.js → index-c217ea52.js} +1 -1
  139. package/build/esm/{index-2bea99aa.js → index-ca6b5f7d.js} +18 -18
  140. package/build/esm/{index-67803ccd.js → index-cd179a77.js} +7 -7
  141. package/build/esm/{index-0ad2837c.js → index-ceda0505.js} +16 -16
  142. package/build/esm/{index-e7ab7147.js → index-d0976fcb.js} +16 -16
  143. package/build/esm/{index-85be1e4e.js → index-d22d0175.js} +3 -3
  144. package/build/esm/{index-f6e657f5.js → index-d610f37e.js} +24 -24
  145. package/build/esm/{index-a7e760ae.js → index-d611b510.js} +17 -17
  146. package/build/esm/{index-c903debb.js → index-d937373e.js} +2 -2
  147. package/build/esm/{index-5adc925f.js → index-e0a9183f.js} +20 -20
  148. package/build/esm/{index-87c6b14e.js → index-e7d4d5e5.js} +30 -30
  149. package/build/esm/{index-685228b7.js → index-f049f69e.js} +5 -5
  150. package/build/esm/{index-a2ec7027.js → index-f0f76c3f.js} +2 -2
  151. package/build/esm/{index-900fa51b.js → index-f2a869ea.js} +10 -10
  152. package/build/esm/{index-61053ab7.js → index-f59f0485.js} +6 -6
  153. package/build/esm/{index-55c53a67.js → index-f650bb28.js} +2 -2
  154. package/build/esm/{index-c9734a66.js → index-f8743b92.js} +178 -110
  155. package/build/esm/{index-1587e9a8.js → index-fa69ed71.js} +3 -3
  156. package/build/esm/{index-37a8a068.js → index-fcb96083.js} +2 -2
  157. package/build/esm/{index-4b903423.js → index-fd8ef2e3.js} +5 -5
  158. package/build/esm/index.css +1 -1
  159. package/build/esm/index.js +146 -117
  160. package/build/esm/interfaces/types/Subot.d.ts +1 -0
  161. package/build/esm/{labelSorting-0babe708.js → labelSorting-dc77f838.js} +4 -4
  162. package/build/esm/lead/components/context.d.ts +2 -0
  163. package/build/esm/lead/components/index.d.ts +4 -2
  164. package/build/esm/lead/index.d.ts +1 -1
  165. package/build/esm/lead/layouts/ emptyIcon.d.ts +6 -0
  166. package/build/esm/lead/layouts/lightbox/fields/textField/index.d.ts +13 -0
  167. package/build/esm/lead/layouts/lightbox/fields/textField/index.styled.d.ts +11 -0
  168. package/build/esm/lead/layouts/lightbox/index.d.ts +4 -2
  169. package/build/esm/lead/newLeadPopup.d.ts +4 -2
  170. package/build/esm/lead.css +1 -1
  171. package/build/esm/lead.js +822 -352
  172. package/build/esm/{logoIcon-927917c4.js → logoIcon-50c181ec.js} +2 -2
  173. package/build/esm/mantine.js +25 -25
  174. package/build/esm/misc.js +16 -16
  175. package/build/esm/miscGetDynamicHealthTool.js +4 -4
  176. package/build/esm/miscGetSocialList.js +8 -8
  177. package/build/esm/miscScreenSizeContext.js +1 -1
  178. package/build/esm/mobileBottomNavigation.js +5 -5
  179. package/build/esm/mobileBottomNavigationIcon.js +5 -5
  180. package/build/esm/molecules.js +69 -69
  181. package/build/esm/moleculesArticleCard.js +6 -6
  182. package/build/esm/moleculesArticleCardV2.js +16 -16
  183. package/build/esm/navigation.js +40 -40
  184. package/build/esm/navigationLogoutPopup.js +9 -9
  185. package/build/esm/navigationProfileButton.js +23 -23
  186. package/build/esm/onboardingV2.js +29 -29
  187. package/build/esm/organisms.js +44 -44
  188. package/build/esm/{post-b39031d2.js → post-b51dc320.js} +2 -2
  189. package/build/esm/profileNavigation.js +19 -19
  190. package/build/esm/progressBar.js +1 -1
  191. package/build/esm/pwg.js +22 -22
  192. package/build/esm/ssoV2.js +26 -26
  193. package/build/esm/{store-04270867.js → store-4d31051c.js} +4 -4
  194. package/build/esm/subot/components/dob/index.d.ts +4 -0
  195. package/build/esm/subot/components/dob/utils.d.ts +14 -0
  196. package/build/esm/subot/utils/index.d.ts +1 -0
  197. package/build/esm/subot.js +184 -45
  198. package/build/esm/surveyOrPremiumBanner.js +31 -31
  199. package/build/esm/surveyQuestionCard.js +10 -10
  200. package/build/esm/{surveyThankyouCard-750453b4.js → surveyThankyouCard-d303658f.js} +5 -5
  201. package/build/esm/together/components/molecules/createNewPostContentV2/createPostCommunity/commonCommunity/index.d.ts +3 -3
  202. package/build/esm/together/components/molecules/createNewPostContentV2/createPostCommunity/index.d.ts +5 -5
  203. package/build/esm/together/components/molecules/createNewPostContentV2/createPostCommunity/suggestedCommunity/index.d.ts +2 -2
  204. package/build/esm/together/components/molecules/createNewPostContentV2/index.d.ts +2 -3
  205. package/build/esm/together/components/molecules/createNewPostContentV2/topicSelectList/index.d.ts +8 -3
  206. package/build/esm/together/interfaces/types.d.ts +5 -0
  207. package/build/esm/together.js +53 -53
  208. package/build/esm/togetherApiUtils.js +4 -4
  209. package/build/esm/togetherAtoms.js +30 -30
  210. package/build/esm/togetherComponentGlobalContext.js +4 -4
  211. package/build/esm/togetherMolecules.js +48 -48
  212. package/build/esm/togetherMoleculesCardAuthor.js +27 -27
  213. package/build/esm/togetherMoleculesPostImagePreview.js +11 -11
  214. package/build/esm/togetherMoleculesProfileDetail.js +37 -37
  215. package/build/esm/togetherOrganisms.js +47 -47
  216. package/build/esm/togetherRichTextEditor.js +17 -17
  217. package/build/esm/togetherShareBox.js +10 -10
  218. package/build/esm/{treePopoverMenu-017aa3d1.js → treePopoverMenu-50b68dbd.js} +19 -19
  219. package/build/esm/{types-dc535f4e.js → types-04e01758.js} +2 -2
  220. package/build/esm/types.js +2 -2
  221. package/build/esm/{useCategory-2ab01bcd.js → useCategory-ee0fdf0a.js} +5 -5
  222. package/build/esm/{useHealthToolCache-b9949e32.js → useHealthToolCache-19cb17fc.js} +1 -1
  223. package/build/esm/{useMantineLocale-5a4595f2.js → useMantineLocale-1c62b715.js} +6 -6
  224. package/build/esm/{usePlacesAutocomplete-05366516.js → usePlacesAutocomplete-3e36095e.js} +2 -1
  225. package/build/esm/{useScreenSize-727c5292.js → useScreenSize-832ea891.js} +2 -2
  226. package/build/esm/useTogetherAuthRequiredAction.js +9 -9
  227. package/build/esm/{utils-faa45c9d.js → utils-2f20a6d6.js} +2 -2
  228. package/build/esm/{utils-3f153bc3.js → utils-595f3dab.js} +2 -2
  229. package/build/esm/{utils-e173a83d.js → utils-b1dbc1ff.js} +3 -3
  230. package/build/esm/vaccination.js +21 -21
  231. package/build/footer.js +21 -21
  232. package/build/gAssets.js +2 -2
  233. package/build/healthToolsCardWrapper.js +18 -18
  234. package/build/healthToolsForm.js +33 -33
  235. package/build/hooks/useGetClientGaId.d.ts +4 -0
  236. package/build/hooks/usePlacesAutocomplete.d.ts +2 -0
  237. package/build/hooks.js +13 -13
  238. package/build/i18n/translationKeys.d.ts +1 -1
  239. package/build/i18n-values/en-PH.js +5 -0
  240. package/build/i18n-values/hi-IN.js +5 -0
  241. package/build/i18n-values/id-ID.js +5 -0
  242. package/build/i18n-values/km-KH.js +5 -0
  243. package/build/i18n-values/ms-MY.js +5 -0
  244. package/build/i18n-values/my-MM.js +5 -0
  245. package/build/i18n-values/th-TH.js +5 -0
  246. package/build/i18n-values/tl-PH.js +5 -0
  247. package/build/i18n-values/vi-VN.js +5 -0
  248. package/build/i18n-values/vi-VN_MB.js +5 -0
  249. package/build/i18n-values/zh-TW.js +5 -0
  250. package/build/i18n.js +1 -1
  251. package/build/i18nV2.js +1 -1
  252. package/build/icons/ChatbotBg.d.ts +4 -0
  253. package/build/icons/Search.d.ts +4 -0
  254. package/build/icons/index.d.ts +5 -3
  255. package/build/{index-6c5ff1d0.js → index-0280888f.js} +2 -2
  256. package/build/{index-3fe0c60c.js → index-14523591.js} +15 -15
  257. package/build/{index-e8e4b0db.js → index-14edd2e4.js} +2 -2
  258. package/build/{index-a0823c33.js → index-19392be5.js} +5 -5
  259. package/build/{index-27c09bf6.js → index-1a29b5b0.js} +4 -4
  260. package/build/{index-b0348bdc.js → index-1a89e40c.js} +24 -24
  261. package/build/{index-4c378886.js → index-1d1ac6a2.js} +6 -6
  262. package/build/{index-081e8f90.js → index-2228078a.js} +10 -10
  263. package/build/{index-851da335.js → index-2a59805b.js} +18 -18
  264. package/build/{index-9dcc7a03.js → index-2ef16235.js} +3 -3
  265. package/build/{index-ac76bfbc.js → index-2fa2dc29.js} +2 -2
  266. package/build/{index-fc5db3e8.js → index-30387e41.js} +6 -6
  267. package/build/{index-54496c56.js → index-39cbbed1.js} +6 -6
  268. package/build/{index-57cd81cf.js → index-3f368d25.js} +3 -1
  269. package/build/{index-5a2de97e.js → index-435a9bed.js} +2 -2
  270. package/build/{index-803cf9fb.js → index-4b2a1789.js} +16 -16
  271. package/build/{index-9effb66f.js → index-60ac9e4f.js} +2 -2
  272. package/build/{index-362bc4f9.js → index-68c83e43.js} +2 -2
  273. package/build/{index-2cf33195.js → index-6a4334ac.js} +30 -30
  274. package/build/index-6c121039.js +113 -0
  275. package/build/{index-a3450adc.js → index-6f902779.js} +13 -13
  276. package/build/{index-fa9d1127.js → index-718c38a5.js} +17 -17
  277. package/build/{index-58be9dad.js → index-73feb185.js} +1 -1
  278. package/build/{index-baba72ad.js → index-789d2752.js} +16 -16
  279. package/build/{index-15d71fb1.js → index-7b0ba6b9.js} +5 -5
  280. package/build/{index-ac273880.js → index-7b7b348d.js} +15 -15
  281. package/build/{index-3b962dba.js → index-7c2cba9e.js} +3 -3
  282. package/build/{index-da6e4c71.js → index-7c6163be.js} +3 -3
  283. package/build/{index-ccc06c84.js → index-85a429a7.js} +16 -16
  284. package/build/{index-84dad248.js → index-86a102aa.js} +7 -7
  285. package/build/{index-186d54e1.js → index-87085b20.js} +1 -1
  286. package/build/{index-7c206478.js → index-89dbd54e.js} +13 -13
  287. package/build/{index-c2e6e664.js → index-8eab69ed.js} +24 -24
  288. package/build/{index-9d97b930.js → index-9073aa54.js} +17 -17
  289. package/build/{index-f67663ff.js → index-92c51829.js} +2 -2
  290. package/build/{index-690bdbc6.js → index-956bf295.js} +1 -1
  291. package/build/{index-78624ca3.js → index-956dd694.js} +5 -5
  292. package/build/{index-469c8890.js → index-95b990c7.js} +1 -1
  293. package/build/{index-29cf2fe1.js → index-9b3f7407.js} +13 -13
  294. package/build/{index-1fcad208.js → index-9d5d73b3.js} +178 -110
  295. package/build/{index-13529096.js → index-a05b98e2.js} +20 -20
  296. package/build/{index-84ae746e.js → index-a1adb71d.js} +17 -4
  297. package/build/{index-1ec2efb0.js → index-a42d4999.js} +3 -3
  298. package/build/{index-16479235.js → index-a5495fa5.js} +6 -6
  299. package/build/{index-327000b4.js → index-a66f7024.js} +13 -13
  300. package/build/{index-81ac4232.js → index-a8e1460a.js} +21 -21
  301. package/build/{index-eabe773f.js → index-ac936784.js} +32 -32
  302. package/build/{index-55d014c0.js → index-b2accd66.js} +2 -2
  303. package/build/{index-1076403d.js → index-b9c4ac93.js} +7 -7
  304. package/build/{index-be4ae18d.js → index-bb6c2f03.js} +2 -2
  305. package/build/{index-620c1a47.js → index-be72ea92.js} +18 -18
  306. package/build/{index-ede69033.js → index-bf12cb46.js} +18 -18
  307. package/build/{index-23151399.js → index-bf45850d.js} +2 -2
  308. package/build/{index-66aeb2b8.js → index-c3263683.js} +2 -2
  309. package/build/{index-98afbdc8.js → index-c9f15ff0.js} +1 -1
  310. package/build/{index-70ded784.js → index-cc01465c.js} +1 -1
  311. package/build/{index-2d2e3b0c.js → index-d4848610.js} +2 -2
  312. package/build/{index-6b71cbb2.js → index-d983a354.js} +3 -3
  313. package/build/{index-54683d40.js → index-f2f7c253.js} +14 -14
  314. package/build/{index-a1b84b97.js → index-f8f30cb2.js} +16 -16
  315. package/build/{index-722ab417.js → index-f9290063.js} +1 -1
  316. package/build/{index-bdf8592e.js → index-f93b7b79.js} +1 -1
  317. package/build/{index-3778c82e.js → index-fa40c6fa.js} +3 -3
  318. package/build/index.css +1 -1
  319. package/build/index.js +211 -179
  320. package/build/interfaces/types/Subot.d.ts +1 -0
  321. package/build/{labelSorting-637a3504.js → labelSorting-26d79e30.js} +4 -4
  322. package/build/lead/components/context.d.ts +2 -0
  323. package/build/lead/components/index.d.ts +4 -2
  324. package/build/lead/index.d.ts +1 -1
  325. package/build/lead/layouts/ emptyIcon.d.ts +6 -0
  326. package/build/lead/layouts/lightbox/fields/textField/index.d.ts +13 -0
  327. package/build/lead/layouts/lightbox/fields/textField/index.styled.d.ts +11 -0
  328. package/build/lead/layouts/lightbox/index.d.ts +4 -2
  329. package/build/lead/newLeadPopup.d.ts +4 -2
  330. package/build/lead.css +1 -1
  331. package/build/lead.js +822 -351
  332. package/build/{logoIcon-51dfe937.js → logoIcon-c12761a4.js} +2 -2
  333. package/build/mantine.js +22 -22
  334. package/build/misc.js +16 -16
  335. package/build/miscGetDynamicHealthTool.js +4 -4
  336. package/build/miscGetSocialList.js +8 -8
  337. package/build/miscScreenSizeContext.js +1 -1
  338. package/build/mobileBottomNavigation.js +5 -5
  339. package/build/mobileBottomNavigationIcon.js +5 -5
  340. package/build/molecules.js +69 -69
  341. package/build/moleculesArticleCard.js +6 -6
  342. package/build/moleculesArticleCardV2.js +16 -16
  343. package/build/navigation.js +40 -40
  344. package/build/navigationLogoutPopup.js +9 -9
  345. package/build/navigationProfileButton.js +23 -23
  346. package/build/onboardingV2.js +28 -28
  347. package/build/organisms.js +44 -44
  348. package/build/{post-7adf6e08.js → post-ee5f90af.js} +2 -2
  349. package/build/profileNavigation.js +19 -19
  350. package/build/progressBar.js +1 -1
  351. package/build/pwg.js +22 -22
  352. package/build/ssoV2.js +25 -25
  353. package/build/{store-7bfeef3a.js → store-d35149a9.js} +4 -4
  354. package/build/subot/components/dob/index.d.ts +4 -0
  355. package/build/subot/components/dob/utils.d.ts +14 -0
  356. package/build/subot/utils/index.d.ts +1 -0
  357. package/build/subot.js +187 -46
  358. package/build/surveyOrPremiumBanner.js +31 -31
  359. package/build/surveyQuestionCard.js +10 -10
  360. package/build/{surveyThankyouCard-c2a7974e.js → surveyThankyouCard-87395adc.js} +5 -5
  361. package/build/together/components/molecules/createNewPostContentV2/createPostCommunity/commonCommunity/index.d.ts +3 -3
  362. package/build/together/components/molecules/createNewPostContentV2/createPostCommunity/index.d.ts +5 -5
  363. package/build/together/components/molecules/createNewPostContentV2/createPostCommunity/suggestedCommunity/index.d.ts +2 -2
  364. package/build/together/components/molecules/createNewPostContentV2/index.d.ts +2 -3
  365. package/build/together/components/molecules/createNewPostContentV2/topicSelectList/index.d.ts +8 -3
  366. package/build/together/interfaces/types.d.ts +5 -0
  367. package/build/together.js +53 -53
  368. package/build/togetherApiUtils.js +4 -4
  369. package/build/togetherAtoms.js +30 -30
  370. package/build/togetherComponentGlobalContext.js +4 -4
  371. package/build/togetherMolecules.js +48 -48
  372. package/build/togetherMoleculesCardAuthor.js +27 -27
  373. package/build/togetherMoleculesPostImagePreview.js +11 -11
  374. package/build/togetherMoleculesProfileDetail.js +37 -37
  375. package/build/togetherOrganisms.js +47 -47
  376. package/build/togetherRichTextEditor.js +17 -17
  377. package/build/togetherShareBox.js +10 -10
  378. package/build/{treePopoverMenu-0ccf0827.js → treePopoverMenu-b8ffa288.js} +19 -19
  379. package/build/{types-3e202b50.js → types-2a5989bd.js} +2 -2
  380. package/build/types.js +2 -2
  381. package/build/{useCategory-f786d678.js → useCategory-7c16901e.js} +5 -5
  382. package/build/{useHealthToolCache-85f08a9a.js → useHealthToolCache-bf014c5a.js} +1 -1
  383. package/build/{useMantineLocale-479576d6.js → useMantineLocale-5d31eb43.js} +6 -6
  384. package/build/{usePlacesAutocomplete-1536ff39.js → usePlacesAutocomplete-46ba5c2f.js} +2 -1
  385. package/build/{useScreenSize-008ea8b8.js → useScreenSize-f25b6162.js} +2 -2
  386. package/build/useTogetherAuthRequiredAction.js +9 -9
  387. package/build/{utils-5dcf29aa.js → utils-070d8e57.js} +3 -3
  388. package/build/{utils-695e0f2a.js → utils-42f9a190.js} +2 -2
  389. package/build/{utils-77ef001a.js → utils-5089eb00.js} +2 -2
  390. package/build/vaccination.js +21 -21
  391. package/package.json +1 -1
  392. /package/build/{BMI_BOYS.percentile.monthly-f6248477.js → BMI_BOYS.percentile.monthly-0cca8635.js} +0 -0
  393. /package/build/{BMI_BOYS.percentile.weekly-dcde4451.js → BMI_BOYS.percentile.weekly-35bd5110.js} +0 -0
  394. /package/build/{BMI_BOYS.percentile.yearly-507adec0.js → BMI_BOYS.percentile.yearly-50b25137.js} +0 -0
  395. /package/build/{BMI_BOYS.zscore.monthly-d5a66ed8.js → BMI_BOYS.zscore.monthly-e377ac8b.js} +0 -0
  396. /package/build/{BMI_BOYS.zscore.weekly-2b60ac52.js → BMI_BOYS.zscore.weekly-eeb84c69.js} +0 -0
  397. /package/build/{BMI_BOYS.zscore.yearly-cade3a5e.js → BMI_BOYS.zscore.yearly-1ea48eb3.js} +0 -0
  398. /package/build/{BMI_GIRLS.percentile.monthly-276936e9.js → BMI_GIRLS.percentile.monthly-16556e4f.js} +0 -0
  399. /package/build/{BMI_GIRLS.percentile.weekly-224acb2a.js → BMI_GIRLS.percentile.weekly-39be9a1b.js} +0 -0
  400. /package/build/{BMI_GIRLS.percentile.yearly-393c9509.js → BMI_GIRLS.percentile.yearly-278bdc92.js} +0 -0
  401. /package/build/{BMI_GIRLS.zscore.monthly-72d88b06.js → BMI_GIRLS.zscore.monthly-28393f01.js} +0 -0
  402. /package/build/{BMI_GIRLS.zscore.weekly-32e66039.js → BMI_GIRLS.zscore.weekly-755c846b.js} +0 -0
  403. /package/build/{BMI_GIRLS.zscore.yearly-14a64fc6.js → BMI_GIRLS.zscore.yearly-a1c1376b.js} +0 -0
  404. /package/build/{ChevronDown-99b32e71.js → ChevronDown-d8325a77.js} +0 -0
  405. /package/build/{Close-50a057e1.js → Close-2207ced2.js} +0 -0
  406. /package/build/{Google-b0a6a799.js → Google-a69e244a.js} +0 -0
  407. /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-800f9ad6.js → HEAD CIRCUM_BOYS.percentile.monthly-34c7bafb.js} +0 -0
  408. /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-ff39e218.js → HEAD CIRCUM_BOYS.percentile.weekly-aea4995a.js} +0 -0
  409. /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-96833429.js → HEAD CIRCUM_BOYS.percentile.yearly-79828b21.js} +0 -0
  410. /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-cc6fe272.js → HEAD CIRCUM_BOYS.zscore.monthly-5ea2b038.js} +0 -0
  411. /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-391fbf23.js → HEAD CIRCUM_BOYS.zscore.weekly-5ded7af4.js} +0 -0
  412. /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-3b6e1e4b.js → HEAD CIRCUM_BOYS.zscore.yearly-4c89ac67.js} +0 -0
  413. /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-8bf89c41.js → HEAD CIRCUM_GIRLS.percentile.monthly-df8d5f17.js} +0 -0
  414. /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-0eb51033.js → HEAD CIRCUM_GIRLS.percentile.weekly-682ff0de.js} +0 -0
  415. /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-85b823c9.js → HEAD CIRCUM_GIRLS.percentile.yearly-0d130e60.js} +0 -0
  416. /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-0df24f0e.js → HEAD CIRCUM_GIRLS.zscore.monthly-35b57325.js} +0 -0
  417. /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-2ba73ae2.js → HEAD CIRCUM_GIRLS.zscore.weekly-d5fcd19e.js} +0 -0
  418. /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-82905d89.js → HEAD CIRCUM_GIRLS.zscore.yearly-689bb22b.js} +0 -0
  419. /package/build/{HEIGHT_BOYS.percentile.monthly-834a3c28.js → HEIGHT_BOYS.percentile.monthly-f60ee9db.js} +0 -0
  420. /package/build/{HEIGHT_BOYS.percentile.weekly-68536dab.js → HEIGHT_BOYS.percentile.weekly-50e1bfa5.js} +0 -0
  421. /package/build/{HEIGHT_BOYS.percentile.yearly-f5d17411.js → HEIGHT_BOYS.percentile.yearly-c68c72fb.js} +0 -0
  422. /package/build/{HEIGHT_BOYS.zscore.monthly-4769df04.js → HEIGHT_BOYS.zscore.monthly-2f2cb420.js} +0 -0
  423. /package/build/{HEIGHT_BOYS.zscore.weekly-9de082cd.js → HEIGHT_BOYS.zscore.weekly-91d0830e.js} +0 -0
  424. /package/build/{HEIGHT_BOYS.zscore.yearly-0354ad3f.js → HEIGHT_BOYS.zscore.yearly-ce843c80.js} +0 -0
  425. /package/build/{HEIGHT_GIRLS.percentile.monthly-d97e8033.js → HEIGHT_GIRLS.percentile.monthly-c618e74e.js} +0 -0
  426. /package/build/{HEIGHT_GIRLS.percentile.weekly-32df44a5.js → HEIGHT_GIRLS.percentile.weekly-c0e7ba9a.js} +0 -0
  427. /package/build/{HEIGHT_GIRLS.percentile.yearly-12035f64.js → HEIGHT_GIRLS.percentile.yearly-0925ace2.js} +0 -0
  428. /package/build/{HEIGHT_GIRLS.zscore.monthly-a8c8d847.js → HEIGHT_GIRLS.zscore.monthly-e7c6b883.js} +0 -0
  429. /package/build/{HEIGHT_GIRLS.zscore.weekly-cb50e425.js → HEIGHT_GIRLS.zscore.weekly-361bcb55.js} +0 -0
  430. /package/build/{HEIGHT_GIRLS.zscore.yearly-f2508459.js → HEIGHT_GIRLS.zscore.yearly-266a2048.js} +0 -0
  431. /package/build/{Locale-5a458df9.js → Locale-67318c96.js} +0 -0
  432. /package/build/{Visible-b0d75028.js → Visible-3be1d984.js} +0 -0
  433. /package/build/{WEIGHT_BOYS.percentile.monthly-df19f912.js → WEIGHT_BOYS.percentile.monthly-91ad1280.js} +0 -0
  434. /package/build/{WEIGHT_BOYS.percentile.weekly-2409e44d.js → WEIGHT_BOYS.percentile.weekly-d7622a88.js} +0 -0
  435. /package/build/{WEIGHT_BOYS.percentile.yearly-32a62f5c.js → WEIGHT_BOYS.percentile.yearly-e3ab9e89.js} +0 -0
  436. /package/build/{WEIGHT_BOYS.zscore.monthly-72414ef5.js → WEIGHT_BOYS.zscore.monthly-436b0d0d.js} +0 -0
  437. /package/build/{WEIGHT_BOYS.zscore.weekly-9f72fc9a.js → WEIGHT_BOYS.zscore.weekly-d5d15226.js} +0 -0
  438. /package/build/{WEIGHT_BOYS.zscore.yearly-0d59e1e7.js → WEIGHT_BOYS.zscore.yearly-267fd7bb.js} +0 -0
  439. /package/build/{WEIGHT_GIRLS.percentile.monthly-1952aff3.js → WEIGHT_GIRLS.percentile.monthly-5c56ced3.js} +0 -0
  440. /package/build/{WEIGHT_GIRLS.percentile.weekly-5540a4b2.js → WEIGHT_GIRLS.percentile.weekly-eb67fe81.js} +0 -0
  441. /package/build/{WEIGHT_GIRLS.percentile.yearly-93e8e785.js → WEIGHT_GIRLS.percentile.yearly-403c858d.js} +0 -0
  442. /package/build/{WEIGHT_GIRLS.zscore.monthly-8cf04311.js → WEIGHT_GIRLS.zscore.monthly-ff818ff3.js} +0 -0
  443. /package/build/{WEIGHT_GIRLS.zscore.weekly-e2adfd5d.js → WEIGHT_GIRLS.zscore.weekly-758bcabd.js} +0 -0
  444. /package/build/{WEIGHT_GIRLS.zscore.yearly-2ee7f10f.js → WEIGHT_GIRLS.zscore.yearly-80652df6.js} +0 -0
  445. /package/build/{animation-12e35c54.js → animation-03df4310.js} +0 -0
  446. /package/build/{constants-3c7cf264.js → constants-198d54f3.js} +0 -0
  447. /package/build/{constants-752fb6de.js → constants-879652eb.js} +0 -0
  448. /package/build/{constants-8154719d.js → constants-f418eda9.js} +0 -0
  449. /package/build/{dataTransform-ab5a74f6.js → dataTransform-66a0e5ae.js} +0 -0
  450. /package/build/{doctor-42953223.js → doctor-f2c0e296.js} +0 -0
  451. /package/build/esm/{BMI_BOYS.percentile.monthly-b62662ad.js → BMI_BOYS.percentile.monthly-714e1d7b.js} +0 -0
  452. /package/build/esm/{BMI_BOYS.percentile.weekly-8f9998cc.js → BMI_BOYS.percentile.weekly-36a79859.js} +0 -0
  453. /package/build/esm/{BMI_BOYS.percentile.yearly-a72bf4fb.js → BMI_BOYS.percentile.yearly-af4edd03.js} +0 -0
  454. /package/build/esm/{BMI_BOYS.zscore.monthly-478cbb86.js → BMI_BOYS.zscore.monthly-fb4f387f.js} +0 -0
  455. /package/build/esm/{BMI_BOYS.zscore.weekly-0b78150c.js → BMI_BOYS.zscore.weekly-043360d6.js} +0 -0
  456. /package/build/esm/{BMI_BOYS.zscore.yearly-56395f67.js → BMI_BOYS.zscore.yearly-c4f7de93.js} +0 -0
  457. /package/build/esm/{BMI_GIRLS.percentile.monthly-7afdb95b.js → BMI_GIRLS.percentile.monthly-0c29c271.js} +0 -0
  458. /package/build/esm/{BMI_GIRLS.percentile.weekly-4a5ad749.js → BMI_GIRLS.percentile.weekly-91b844ca.js} +0 -0
  459. /package/build/esm/{BMI_GIRLS.percentile.yearly-2f41621b.js → BMI_GIRLS.percentile.yearly-39187710.js} +0 -0
  460. /package/build/esm/{BMI_GIRLS.zscore.monthly-502de42b.js → BMI_GIRLS.zscore.monthly-5d7ead81.js} +0 -0
  461. /package/build/esm/{BMI_GIRLS.zscore.weekly-9f83b9d7.js → BMI_GIRLS.zscore.weekly-e649d19c.js} +0 -0
  462. /package/build/esm/{BMI_GIRLS.zscore.yearly-b40eef2f.js → BMI_GIRLS.zscore.yearly-2df134ff.js} +0 -0
  463. /package/build/esm/{ChevronDown-2e2c53a9.js → ChevronDown-c5a890aa.js} +0 -0
  464. /package/build/esm/{Close-bff77e63.js → Close-ff41bb0d.js} +0 -0
  465. /package/build/esm/{Google-b4f655d1.js → Google-41959d16.js} +0 -0
  466. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-0c8eefbd.js → HEAD CIRCUM_BOYS.percentile.monthly-e0bac857.js} +0 -0
  467. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-c0dce6a5.js → HEAD CIRCUM_BOYS.percentile.weekly-8ea26cbd.js} +0 -0
  468. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-6e753044.js → HEAD CIRCUM_BOYS.percentile.yearly-191bb1d8.js} +0 -0
  469. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-265595d2.js → HEAD CIRCUM_BOYS.zscore.monthly-66d0ca20.js} +0 -0
  470. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-2f65d229.js → HEAD CIRCUM_BOYS.zscore.weekly-5a4f3516.js} +0 -0
  471. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-7c8e6df2.js → HEAD CIRCUM_BOYS.zscore.yearly-eef4a95c.js} +0 -0
  472. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-63fb3524.js → HEAD CIRCUM_GIRLS.percentile.monthly-cdb0e1fc.js} +0 -0
  473. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-958bee8d.js → HEAD CIRCUM_GIRLS.percentile.weekly-cc733705.js} +0 -0
  474. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-601af1ad.js → HEAD CIRCUM_GIRLS.percentile.yearly-080b615e.js} +0 -0
  475. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-eaa72981.js → HEAD CIRCUM_GIRLS.zscore.monthly-dceefcca.js} +0 -0
  476. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-4dc5b657.js → HEAD CIRCUM_GIRLS.zscore.weekly-a55e7c8e.js} +0 -0
  477. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-9e0fa09d.js → HEAD CIRCUM_GIRLS.zscore.yearly-473342a0.js} +0 -0
  478. /package/build/esm/{HEIGHT_BOYS.percentile.monthly-14a41e5b.js → HEIGHT_BOYS.percentile.monthly-6a2c5f99.js} +0 -0
  479. /package/build/esm/{HEIGHT_BOYS.percentile.weekly-37b16a80.js → HEIGHT_BOYS.percentile.weekly-df56e4bd.js} +0 -0
  480. /package/build/esm/{HEIGHT_BOYS.percentile.yearly-12522a6a.js → HEIGHT_BOYS.percentile.yearly-d79dc744.js} +0 -0
  481. /package/build/esm/{HEIGHT_BOYS.zscore.monthly-e4cb8e09.js → HEIGHT_BOYS.zscore.monthly-4912de97.js} +0 -0
  482. /package/build/esm/{HEIGHT_BOYS.zscore.weekly-43b66ebd.js → HEIGHT_BOYS.zscore.weekly-1a87df95.js} +0 -0
  483. /package/build/esm/{HEIGHT_BOYS.zscore.yearly-a7f89716.js → HEIGHT_BOYS.zscore.yearly-a7060ce2.js} +0 -0
  484. /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-ab995a7e.js → HEIGHT_GIRLS.percentile.monthly-0b981810.js} +0 -0
  485. /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-aa1fa070.js → HEIGHT_GIRLS.percentile.weekly-b976a012.js} +0 -0
  486. /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-99254df4.js → HEIGHT_GIRLS.percentile.yearly-a4f14dc6.js} +0 -0
  487. /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-c5b52ddf.js → HEIGHT_GIRLS.zscore.monthly-c5f157ae.js} +0 -0
  488. /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-d6c830ac.js → HEIGHT_GIRLS.zscore.weekly-0363899e.js} +0 -0
  489. /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-fe158097.js → HEIGHT_GIRLS.zscore.yearly-4d1afb3e.js} +0 -0
  490. /package/build/esm/{Locale-5c4592c0.js → Locale-82737cba.js} +0 -0
  491. /package/build/esm/{Visible-38b6fdaf.js → Visible-241bb92e.js} +0 -0
  492. /package/build/esm/{WEIGHT_BOYS.percentile.monthly-fd207284.js → WEIGHT_BOYS.percentile.monthly-9d79bbff.js} +0 -0
  493. /package/build/esm/{WEIGHT_BOYS.percentile.weekly-ef65f0bd.js → WEIGHT_BOYS.percentile.weekly-9c34b5ca.js} +0 -0
  494. /package/build/esm/{WEIGHT_BOYS.percentile.yearly-d74c2741.js → WEIGHT_BOYS.percentile.yearly-b89683f1.js} +0 -0
  495. /package/build/esm/{WEIGHT_BOYS.zscore.monthly-0cadd974.js → WEIGHT_BOYS.zscore.monthly-bdca5451.js} +0 -0
  496. /package/build/esm/{WEIGHT_BOYS.zscore.weekly-faa93ee8.js → WEIGHT_BOYS.zscore.weekly-389312be.js} +0 -0
  497. /package/build/esm/{WEIGHT_BOYS.zscore.yearly-b5d9afeb.js → WEIGHT_BOYS.zscore.yearly-c9298e66.js} +0 -0
  498. /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-ae1cfe72.js → WEIGHT_GIRLS.percentile.monthly-d9424e46.js} +0 -0
  499. /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-54476e6f.js → WEIGHT_GIRLS.percentile.weekly-c3b85f17.js} +0 -0
  500. /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-90caedbf.js → WEIGHT_GIRLS.percentile.yearly-97beb532.js} +0 -0
  501. /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-2f3341ca.js → WEIGHT_GIRLS.zscore.monthly-72d5364d.js} +0 -0
  502. /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-f8ad0bb4.js → WEIGHT_GIRLS.zscore.weekly-483bca6f.js} +0 -0
  503. /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-9655f188.js → WEIGHT_GIRLS.zscore.yearly-6727871b.js} +0 -0
  504. /package/build/esm/{animation-8d27b4e4.js → animation-767017ef.js} +0 -0
  505. /package/build/esm/{constants-0e4c7913.js → constants-8033a6f7.js} +0 -0
  506. /package/build/esm/{constants-1c673233.js → constants-936a9fc7.js} +0 -0
  507. /package/build/esm/{constants-c1b6e6e6.js → constants-d429ea90.js} +0 -0
  508. /package/build/esm/{dataTransform-3e830ba6.js → dataTransform-01bfaef7.js} +0 -0
  509. /package/build/esm/{doctor-6a91f2a7.js → doctor-df1c73f4.js} +0 -0
  510. /package/build/esm/{index-b1b602a3.js → index-2940b1e5.js} +0 -0
  511. /package/build/esm/{index-469aca76.js → index-366cbe4d.js} +0 -0
  512. /package/build/esm/{index-77c8d3c0.js → index-51153b47.js} +0 -0
  513. /package/build/esm/{index-89875847.js → index-546912df.js} +0 -0
  514. /package/build/esm/{index-3fe65768.js → index-66cecb96.js} +0 -0
  515. /package/build/esm/{index-1ab17628.js → index-78405fbe.js} +0 -0
  516. /package/build/esm/{index-aa298135.js → index-7f345a65.js} +0 -0
  517. /package/build/esm/{index-3e095706.js → index-f37cd68a.js} +0 -0
  518. /package/build/esm/{index.styles-b22f6e1f.js → index.styles-241e597c.js} +0 -0
  519. /package/build/esm/{localizeNumberFormat-2d00f0d6.js → localizeNumberFormat-bce4d77f.js} +0 -0
  520. /package/build/esm/{normalizeLink-a8b6e66c.js → normalizeLink-227b684f.js} +0 -0
  521. /package/build/esm/{other-c7b41bb1.js → other-c98cc85f.js} +0 -0
  522. /package/build/esm/{paths-2cebbd7c.js → paths-aad11b44.js} +0 -0
  523. /package/build/esm/{translationsContext-b378aad7.js → translationsContext-e77c3167.js} +0 -0
  524. /package/build/esm/{tslib.es6-a28612e9.js → tslib.es6-b13d9bb6.js} +0 -0
  525. /package/build/esm/{types-50d3bb6c.js → types-d026fc20.js} +0 -0
  526. /package/build/esm/{useIsInit-dfcf70a1.js → useIsInit-060c3dee.js} +0 -0
  527. /package/build/esm/{useOutsideClick-43a2ed0b.js → useOutsideClick-db23ae98.js} +0 -0
  528. /package/build/esm/{useScrollbarSize-2e99c67d.js → useScrollbarSize-38d032c0.js} +0 -0
  529. /package/build/esm/{useUniqueId-adb5c890.js → useUniqueId-1968e55d.js} +0 -0
  530. /package/build/esm/{utils-f9df87ad.js → utils-b095b5f7.js} +0 -0
  531. /package/build/{index-53735eff.js → index-23f71ff9.js} +0 -0
  532. /package/build/{index-d0dee133.js → index-3c1fcd6a.js} +0 -0
  533. /package/build/{index-3eda77c6.js → index-63ebb255.js} +0 -0
  534. /package/build/{index-cecd41a8.js → index-7aeccaac.js} +0 -0
  535. /package/build/{index-51298ce7.js → index-a1e10b80.js} +0 -0
  536. /package/build/{index-72754c1f.js → index-a4bcc0d9.js} +0 -0
  537. /package/build/{index-ec9173d8.js → index-d19a8f4a.js} +0 -0
  538. /package/build/{index-f044180a.js → index-e875e6d7.js} +0 -0
  539. /package/build/{index.styles-be64e85f.js → index.styles-00fb0f57.js} +0 -0
  540. /package/build/{localizeNumberFormat-f489eb10.js → localizeNumberFormat-84c04922.js} +0 -0
  541. /package/build/{normalizeLink-e1acde98.js → normalizeLink-4f4ec65f.js} +0 -0
  542. /package/build/{other-f704af7f.js → other-2aef6e7b.js} +0 -0
  543. /package/build/{paths-7a6aa986.js → paths-53a4bcab.js} +0 -0
  544. /package/build/{translationsContext-ac37a205.js → translationsContext-78a38d7d.js} +0 -0
  545. /package/build/{tslib.es6-4dedca11.js → tslib.es6-1e89b599.js} +0 -0
  546. /package/build/{types-9f509ead.js → types-237181b2.js} +0 -0
  547. /package/build/{useIsInit-9bf00bd0.js → useIsInit-e02ecb42.js} +0 -0
  548. /package/build/{useOutsideClick-9d4aa36b.js → useOutsideClick-937935da.js} +0 -0
  549. /package/build/{useScrollbarSize-5c089b9f.js → useScrollbarSize-2d34ec5c.js} +0 -0
  550. /package/build/{useUniqueId-30cb684a.js → useUniqueId-fe9aa36d.js} +0 -0
  551. /package/build/{utils-26666340.js → utils-0f489780.js} +0 -0
@@ -1,47 +1,47 @@
1
- import { a as __awaiter, _ as __rest } from './tslib.es6-a28612e9.js';
1
+ import { a as __awaiter, _ as __rest } from './tslib.es6-b13d9bb6.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-469aca76.js';
5
- import { u as useTranslations } from './index-eee7f80e.js';
4
+ import { D as Dropdown } from './index-366cbe4d.js';
5
+ import { u as useTranslations } from './index-2eedd7c7.js';
6
6
  import innertext from 'innertext';
7
7
  import { theme } from './miscTheme.js';
8
- import { I as Input$1 } from './index-90cac9e5.js';
8
+ import { I as Input$1 } from './index-856724ed.js';
9
9
  import { useMantineTheme, Switch, Popover } from '@mantine/core';
10
10
  import '@mantine/dates';
11
- import './index-481ad938.js';
12
- import './index-b06d4aac.js';
13
- import './index-3e095706.js';
14
- import './useMantineLocale-5a4595f2.js';
15
- import { T as Text } from './index-8b47416e.js';
16
- import { B as Button } from './index-c2d7df1b.js';
17
- import './index.styles-b22f6e1f.js';
11
+ import './index-46e95b8b.js';
12
+ import './index-83b25948.js';
13
+ import './index-f37cd68a.js';
14
+ import './useMantineLocale-1c62b715.js';
15
+ import { T as Text } from './index-b14461a3.js';
16
+ import { B as Button } from './index-832e25de.js';
17
+ import './index.styles-241e597c.js';
18
18
  import '@mantine/hooks';
19
- import { M as MediaQueries } from './utils-f9df87ad.js';
20
- import './other-c7b41bb1.js';
21
- import './index-9fb8d0d3.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-8ca75b47.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-e173a83d.js';
19
+ import { M as MediaQueries } from './utils-b095b5f7.js';
20
+ import './other-c98cc85f.js';
21
+ import './index-73c778f3.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-83f04dc6.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-b1dbc1ff.js';
24
24
  import styled from '@emotion/styled';
25
- import { b as formatPost, c as formatTopic } from './dataTransform-a32da5ec.js';
26
- import { M as MAX_IMAGE_UPLOADS, B as BEARER_TOKEN_COOKIE } from './constants-c1b6e6e6.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-b39031d2.js';
28
- import { C as CardAuthor, L as Loading$1 } from './index-1b96e37c.js';
29
- import { S as StyledCreatePostDescription$1, R as RichTextEditor$1, I as IconLink } from './editor-634c24d8.js';
30
- import { I as Input } from './index-d5a7776d.js';
25
+ import { b as formatPost, a as formatCommunity, c as formatTopic } from './dataTransform-58744e96.js';
26
+ import { M as MAX_IMAGE_UPLOADS, B as BEARER_TOKEN_COOKIE } from './constants-d429ea90.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-b51dc320.js';
28
+ import { C as CardAuthor, L as Loading$1 } from './index-1fa9ef2d.js';
29
+ import { S as StyledCreatePostDescription$1, R as RichTextEditor$1, I as IconLink } from './editor-a7bc729e.js';
30
+ import { I as Input } from './index-8cb28ea4.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-2c47a78c.js';
35
- import { C as CardLink } from './index-4b903423.js';
36
- import { B as BtnChoice } from './index-26676d6e.js';
37
- import { L as LOCALE } from './Locale-5c4592c0.js';
34
+ import { L as Loading } from './index-b7204fcd.js';
35
+ import { C as CardLink } from './index-fd8ef2e3.js';
36
+ import { B as BtnChoice } from './index-c217ea52.js';
37
+ import { L as LOCALE } from './Locale-82737cba.js';
38
38
  import * as ReactDOM from 'react-dom';
39
- import { b as IconArrowLeft } from './index-61053ab7.js';
40
- import { B as Button$1 } from './index-12832709.js';
39
+ import { b as IconArrowLeft } from './index-f59f0485.js';
40
+ import { B as Button$1 } from './index-86f399c7.js';
41
41
  import { getCookie } from './miscCookieHelper.js';
42
- import { a as useUniqueId } from './useUniqueId-adb5c890.js';
43
- import { U as UserAvatar } from './index-32988940.js';
44
- import { P as PopoverMenu } from './index-37a8a068.js';
42
+ import { a as useUniqueId } from './useUniqueId-1968e55d.js';
43
+ import { U as UserAvatar } from './index-260a698d.js';
44
+ import { P as PopoverMenu } from './index-fcb96083.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]);
@@ -3389,9 +3421,11 @@ const applySpecialCharSite = [
3389
3421
  LOCALE.Malaysia,
3390
3422
  LOCALE.Vietnam,
3391
3423
  ];
3392
- const CreateNewPostContentV2 = ({ className, style, onClose, forceSelectCommunity, articleId, editPostData, defaultCommunity, defaultTopics, userInfo, isMarryBaby = false, }) => {
3424
+ const CreateNewPostContentV2 = ({ className, style, onClose, onPostCreatedEdited, forceSelectCommunity, forceSelectTopics, articleId, editPostData, defaultCommunity, communities, userInfo, isMarryBaby = false, }) => {
3393
3425
  const isInEditMode = !!(editPostData === null || editPostData === void 0 ? void 0 : editPostData.id);
3394
- const { data: { locale, env: { togetherBasePath }, }, action: { pushNotifications, sanitizeFunction }, } = useContext(TogetherComponentGlobalContext);
3426
+ const { data: { locale,
3427
+ // env: { togetherBasePath },
3428
+ }, action: { pushNotifications, sanitizeFunction }, } = useContext(TogetherComponentGlobalContext);
3395
3429
  const { t } = useTranslations();
3396
3430
  const containerRef = useRef(null);
3397
3431
  const [isAskDoctor, setIsAskDoctor] = useState(false);
@@ -3402,7 +3436,7 @@ const CreateNewPostContentV2 = ({ className, style, onClose, forceSelectCommunit
3402
3436
  label: t('community.choose'),
3403
3437
  value: '',
3404
3438
  });
3405
- const [selectedTopics, setSelectedTopics] = useState([]);
3439
+ const [selectedTopics, setSelectedTopics] = useState([...forceSelectTopics] || []);
3406
3440
  const [error, setError] = useState({});
3407
3441
  const [imageFiles, setImageFiles] = useState([]);
3408
3442
  const [bannedWords, setBannedWords] = useState([]);
@@ -3441,14 +3475,16 @@ const CreateNewPostContentV2 = ({ className, style, onClose, forceSelectCommunit
3441
3475
  } })),
3442
3476
  },
3443
3477
  ];
3444
- const currentCommunity = useMemo(() => {
3445
- if (!communityValue.value)
3446
- return null;
3447
- const result = communitiesList.find((item) => String(item.id) === String(communityValue.value));
3448
- if (!result)
3449
- return null;
3450
- return result;
3451
- }, [communityValue, communitiesList]);
3478
+ // const currentCommunity = useMemo(() => {
3479
+ // if (!communityValue.value) return null
3480
+ // const result = communitiesList.find(
3481
+ // (item) => String(item.id) === String(communityValue.value),
3482
+ // )
3483
+ // if (!result) return null
3484
+ // return result
3485
+ // }, [communityValue, communitiesList])
3486
+ const currentCommunity = forceSelectCommunity ||
3487
+ communities.find((c) => `${c.id || ''}-${c.mappedCategoryId || ''}` === communityValue.value);
3452
3488
  // HANDLE etra action when OPEN AND CLOSE
3453
3489
  useEffect(() => {
3454
3490
  if (editPostData) {
@@ -3459,7 +3495,7 @@ const CreateNewPostContentV2 = ({ className, style, onClose, forceSelectCommunit
3459
3495
  label: post.community.name,
3460
3496
  value: `${post.community.id || ''}-${post.community.mappedCategoryId || ''}`,
3461
3497
  });
3462
- setSelectedTopics(post.topics || []);
3498
+ // setSelectedTopics(post.topics || [])
3463
3499
  setImageFiles(post.photos || []);
3464
3500
  setIsAskDoctor(!!post.isAskDoctor || false);
3465
3501
  }
@@ -3470,9 +3506,9 @@ const CreateNewPostContentV2 = ({ className, style, onClose, forceSelectCommunit
3470
3506
  value: `${defaultCommunity.id || ''}-${defaultCommunity.mappedCategoryId || ''}`,
3471
3507
  });
3472
3508
  }
3473
- if (defaultTopics) {
3474
- setSelectedTopics(defaultTopics);
3475
- }
3509
+ // if (defaultTopics) {
3510
+ // setSelectedTopics(defaultTopics)
3511
+ // }
3476
3512
  }
3477
3513
  }, []);
3478
3514
  useEffect(() => {
@@ -3499,7 +3535,8 @@ const CreateNewPostContentV2 = ({ className, style, onClose, forceSelectCommunit
3499
3535
  ]);
3500
3536
  const communitiesApi = (_a = resListCommunity === null || resListCommunity === void 0 ? void 0 : resListCommunity.data) === null || _a === void 0 ? void 0 : _a.communities;
3501
3537
  if (Array.isArray(communitiesApi) && communitiesApi.length) {
3502
- setCommunitiesList(communitiesApi);
3538
+ const resultFormat = communitiesApi.map((item) => formatCommunity(item));
3539
+ setCommunitiesList(resultFormat);
3503
3540
  }
3504
3541
  const topicRes = (_b = resListTopic === null || resListTopic === void 0 ? void 0 : resListTopic.data) === null || _b === void 0 ? void 0 : _b.topics;
3505
3542
  if (Array.isArray(topicRes)) {
@@ -3511,6 +3548,12 @@ const CreateNewPostContentV2 = ({ className, style, onClose, forceSelectCommunit
3511
3548
  }
3512
3549
  }))();
3513
3550
  }, []);
3551
+ const onCreateEditSuccess = (res) => {
3552
+ if (onPostCreatedEdited) {
3553
+ onPostCreatedEdited(formatPost(res), isInEditMode);
3554
+ }
3555
+ onClose && onClose();
3556
+ };
3514
3557
  const validationUploadPhoto = (files) => {
3515
3558
  const errorMessage = Object.assign({}, error);
3516
3559
  if (files && files.length > 10) {
@@ -3593,22 +3636,20 @@ const CreateNewPostContentV2 = ({ className, style, onClose, forceSelectCommunit
3593
3636
  console.log(value);
3594
3637
  }
3595
3638
  };
3639
+ console.log(uncategorizedId);
3640
+ console.log(topicsList);
3596
3641
  const submitPost = (uncategorized) => __awaiter(void 0, void 0, void 0, function* () {
3597
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
3642
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
3598
3643
  const isError = validationPost();
3599
3644
  if (isError)
3600
3645
  return;
3601
3646
  const bodyFormData = yield getPostFormData({
3602
3647
  title: titleValue,
3603
3648
  description: descriptionValue,
3604
- communityId: uncategorized
3605
- ? uncategorizedId
3606
- : String((currentCommunity === null || currentCommunity === void 0 ? void 0 : currentCommunity.id) || ''),
3649
+ communityId: String((currentCommunity === null || currentCommunity === void 0 ? void 0 : currentCommunity.id) || ''),
3607
3650
  imageFiles,
3608
3651
  previewUrl,
3609
- topicIds: uncategorized
3610
- ? []
3611
- : selectedTopics === null || selectedTopics === void 0 ? void 0 : selectedTopics.map((topic) => String(topic.id || '')).filter(Boolean),
3652
+ topicIds: selectedTopics === null || selectedTopics === void 0 ? void 0 : selectedTopics.map((topic) => String(topic.id || '')).filter(Boolean),
3612
3653
  locale,
3613
3654
  sanitizeFunction,
3614
3655
  categoryCommunityId: String((currentCommunity === null || currentCommunity === void 0 ? void 0 : currentCommunity.mappedCategoryId) || ''),
@@ -3620,6 +3661,7 @@ const CreateNewPostContentV2 = ({ className, style, onClose, forceSelectCommunit
3620
3661
  if (articleId) {
3621
3662
  bodyFormData.append('article_id', articleId);
3622
3663
  }
3664
+ console.log(uncategorized);
3623
3665
  let res;
3624
3666
  if (isInEditMode) {
3625
3667
  if (editPostData === null || editPostData === void 0 ? void 0 : editPostData.id) {
@@ -3634,17 +3676,28 @@ const CreateNewPostContentV2 = ({ className, style, onClose, forceSelectCommunit
3634
3676
  res = yield createPost({
3635
3677
  formData: bodyFormData,
3636
3678
  locale,
3637
- isArticleComment: !(currentCommunity === null || currentCommunity === void 0 ? void 0 : currentCommunity.id) && !!(currentCommunity === null || currentCommunity === void 0 ? void 0 : currentCommunity.mappedCategoryId),
3679
+ isArticleComment: true,
3638
3680
  });
3639
3681
  }
3640
3682
  const resData = res === null || res === void 0 ? void 0 : res.data;
3641
3683
  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)) {
3642
- const params = `action=${editPostData ? 'editPost' : 'createPost'}&askDoctor=${(resData === null || resData === void 0 ? void 0 : resData.is_question) ? 'true' : 'false'}`;
3643
- 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}`;
3644
- window.location.href = postHref;
3684
+ // const params = `action=${
3685
+ // editPostData ? 'editPost' : 'createPost'
3686
+ // }&askDoctor=${resData?.is_question ? 'true' : 'false'}`
3687
+ // const postHref = `${getCurrentBaseUrl(locale)}${togetherBasePath}/${
3688
+ // resData?.community?.slug
3689
+ // }/${resData?.slug}/?${params}`
3690
+ // window.location.href = postHref
3691
+ pushNotifications({
3692
+ message: isInEditMode
3693
+ ? t('updatePost.popup.success')
3694
+ : t('createPost.popup.success'),
3695
+ type: 'success',
3696
+ });
3697
+ onCreateEditSuccess(resData);
3645
3698
  }
3646
3699
  else {
3647
- 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') {
3700
+ 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') {
3648
3701
  pushNotifications({
3649
3702
  title: t('notification.post.blocked.title'),
3650
3703
  message: t('notification.post.blocked.message'),
@@ -3654,7 +3707,7 @@ const CreateNewPostContentV2 = ({ className, style, onClose, forceSelectCommunit
3654
3707
  setBannedWords(res.messages.moderation.words);
3655
3708
  }
3656
3709
  }
3657
- 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') {
3710
+ 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') {
3658
3711
  pushNotifications({
3659
3712
  title: t('notification.post.suspect.title'),
3660
3713
  message: t('notification.post.suspect.message'),
@@ -3662,7 +3715,7 @@ const CreateNewPostContentV2 = ({ className, style, onClose, forceSelectCommunit
3662
3715
  });
3663
3716
  onClose && onClose();
3664
3717
  }
3665
- 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')); })) {
3718
+ 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')); })) {
3666
3719
  pushNotifications({
3667
3720
  message: t('notification.suspend.message'),
3668
3721
  type: 'danger',
@@ -3671,7 +3724,7 @@ const CreateNewPostContentV2 = ({ className, style, onClose, forceSelectCommunit
3671
3724
  }
3672
3725
  else {
3673
3726
  pushNotifications({
3674
- message: ((_k = res === null || res === void 0 ? void 0 : res.messages) === null || _k === void 0 ? void 0 : _k[0]) || t('notification.failure'),
3727
+ message: ((_j = res === null || res === void 0 ? void 0 : res.messages) === null || _j === void 0 ? void 0 : _j[0]) || t('notification.failure'),
3675
3728
  type: 'danger',
3676
3729
  });
3677
3730
  }
@@ -3703,13 +3756,20 @@ const CreateNewPostContentV2 = ({ className, style, onClose, forceSelectCommunit
3703
3756
  }
3704
3757
  };
3705
3758
  const onSubmitContinuePost = () => __awaiter(void 0, void 0, void 0, function* () {
3706
- var _l;
3759
+ var _k;
3707
3760
  const isError = validationPost();
3708
3761
  if (isError) {
3709
3762
  const keyElmToScroll = getFirstOrderErroKey(orderErrorFieldKey);
3710
3763
  handleScrollToError(keyElmToScroll);
3711
3764
  return;
3712
3765
  }
3766
+ submitPost();
3767
+ if (stepPost)
3768
+ return;
3769
+ if (isInEditMode) {
3770
+ submitPost();
3771
+ return;
3772
+ }
3713
3773
  setStepPost('step_community');
3714
3774
  // Current just apply ai suggest community for Vietnam site
3715
3775
  if (locale === LOCALE.Vietnam && !isMarryBaby && !isInEditMode) {
@@ -3741,11 +3801,16 @@ const CreateNewPostContentV2 = ({ className, style, onClose, forceSelectCommunit
3741
3801
  topic_in: listTopicId.join(),
3742
3802
  pageSize: 100,
3743
3803
  }), 'GET');
3744
- const topicsApi = (_l = resTopic === null || resTopic === void 0 ? void 0 : resTopic.data) === null || _l === void 0 ? void 0 : _l.topics;
3745
- const topicSuggested = topicsApi
3746
- ? topicsApi.map((item) => formatTopic(item))
3747
- : [];
3748
- setSelectedTopics(topicSuggested);
3804
+ const topicsApi = (_k = resTopic === null || resTopic === void 0 ? void 0 : resTopic.data) === null || _k === void 0 ? void 0 : _k.topics;
3805
+ // const topicSuggested = topicsApi
3806
+ // ? topicsApi.map((item) => formatTopic(item))
3807
+ // : ([] as Topic[])
3808
+ let newTopics = [];
3809
+ topicsApi === null || topicsApi === void 0 ? void 0 : topicsApi.forEach((item) => {
3810
+ newTopics = newTopics.concat(item.discover_category);
3811
+ });
3812
+ // setTopics(newTopics)
3813
+ setSelectedTopics(newTopics);
3749
3814
  }
3750
3815
  }
3751
3816
  }
@@ -3758,7 +3823,6 @@ const CreateNewPostContentV2 = ({ className, style, onClose, forceSelectCommunit
3758
3823
  }
3759
3824
  }
3760
3825
  });
3761
- console.log('topicsList: ', topicsList);
3762
3826
  return (React__default.createElement(StyledCreateNewPost, { className: `${className} create-post-popup-frame`, style: style },
3763
3827
  React__default.createElement("div", { className: "input-group-container", ref: containerRef },
3764
3828
  React__default.createElement(StyledFormGroupInner, null,
@@ -3832,7 +3896,11 @@ const CreateNewPostContentV2 = ({ className, style, onClose, forceSelectCommunit
3832
3896
  validationUploadPhoto(data);
3833
3897
  } }),
3834
3898
  React__default.createElement("div", { className: "action-wrapper" },
3835
- 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'))))));
3899
+ 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 },
3900
+ /* {isInEditMode
3901
+ ? t('createPost.popup.submit')
3902
+ : t('onboarding.button.continue')} */
3903
+ t('createPost.popup.submit'))))));
3836
3904
  };
3837
3905
 
3838
3906
  const StyledTopicSelectList = styled.div `
@@ -1,8 +1,8 @@
1
- import { _ as __rest } from './tslib.es6-a28612e9.js';
1
+ import { _ as __rest } from './tslib.es6-b13d9bb6.js';
2
2
  import React__default, { useMemo } from 'react';
3
3
  import { Spoiler as Spoiler$1 } from '@mantine/core';
4
- import { T as Text } from './index-8b47416e.js';
5
- import { u as useTranslations } from './index-eee7f80e.js';
4
+ import { T as Text } from './index-b14461a3.js';
5
+ import { u as useTranslations } from './index-2eedd7c7.js';
6
6
  import { theme } from './miscTheme.js';
7
7
 
8
8
  const Spoiler = (_a) => {
@@ -1,6 +1,6 @@
1
1
  import React__default, { useContext, useState, useRef, useEffect } from 'react';
2
- import { B as Button } from './index-12832709.js';
3
- import { T as TogetherComponentGlobalContext } from './utils-e173a83d.js';
2
+ import { B as Button } from './index-86f399c7.js';
3
+ import { T as TogetherComponentGlobalContext } from './utils-b1dbc1ff.js';
4
4
  import styled from '@emotion/styled';
5
5
  import { theme } from './miscTheme.js';
6
6
 
@@ -1,12 +1,12 @@
1
- import { a as __awaiter } from './tslib.es6-a28612e9.js';
1
+ import { a as __awaiter } from './tslib.es6-b13d9bb6.js';
2
2
  import React__default, { useContext, useState, useRef, useEffect } from 'react';
3
3
  import { useMantineTheme } from '@mantine/core';
4
- import { H as Heading } from './index-c903debb.js';
5
- import { T as Text } from './index-8b47416e.js';
6
- import { T as TogetherComponentGlobalContext, c as callApi, d as getApiPath } from './utils-e173a83d.js';
4
+ import { H as Heading } from './index-d937373e.js';
5
+ import { T as Text } from './index-b14461a3.js';
6
+ import { T as TogetherComponentGlobalContext, c as callApi, d as getApiPath } from './utils-b1dbc1ff.js';
7
7
  import styled from '@emotion/styled';
8
8
  import { PATHS } from './togetherApiPaths.js';
9
- import { D as DEFAULT_IMG } from './constants-c1b6e6e6.js';
9
+ import { D as DEFAULT_IMG } from './constants-d429ea90.js';
10
10
 
11
11
  const StyledCardLink = styled.div `
12
12
  .link-info-container {