@hhgtech/hhg-components 1.29.341-beta-1 → 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 (553) hide show
  1. package/build/{LastPeriod-cf88329b.js → LastPeriod-9eaa1ef6.js} +1 -1
  2. package/build/{MobileBottomNavigationIcon-f14d24e4.js → MobileBottomNavigationIcon-6139c48b.js} +3 -3
  3. package/build/{Spinner-d6f599de.js → Spinner-df24255a.js} +1 -1
  4. package/build/{WhatsApp-7db72961.js → WhatsApp-6c83bb5f.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-e2938f34.js → constants-b8ebed17.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-e1ff7bb1.js → core-659eb53b.js} +1 -1
  24. package/build/{dataTransform-ef1152e5.js → dataTransform-5b9923ed.js} +1 -1
  25. package/build/ecom.js +4 -4
  26. package/build/{editor-64d0c27b.js → editor-a0853b63.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-46b9f4f0.js → LastPeriod-936aef76.js} +1 -1
  37. package/build/esm/{MobileBottomNavigationIcon-c07f3e7b.js → MobileBottomNavigationIcon-a4f890af.js} +3 -3
  38. package/build/esm/{Spinner-49091360.js → Spinner-4073c7bb.js} +1 -1
  39. package/build/esm/{WhatsApp-93f66619.js → WhatsApp-29064eaa.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-3dd7de10.js → constants-bf924b49.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-4bbe3aac.js → core-90b57158.js} +1 -1
  59. package/build/esm/{dataTransform-c3adaac6.js → dataTransform-49e22f3e.js} +1 -1
  60. package/build/esm/ecom.js +4 -4
  61. package/build/esm/{editor-c9b0069a.js → editor-db5f955a.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-1b29aa3f.js → index-00d608ea.js} +2 -2
  96. package/build/esm/{index-1ca0ac46.js → index-05f4b04d.js} +2 -2
  97. package/build/esm/{index-3cecd31a.js → index-09f05e0a.js} +13 -13
  98. package/build/esm/{index-2d52b444.js → index-0a260f9f.js} +16 -16
  99. package/build/esm/{index-4e407882.js → index-0ad1c6d2.js} +6 -6
  100. package/build/esm/{index-b7a70e5b.js → index-10e8ead0.js} +2 -2
  101. package/build/esm/{index-b7452697.js → index-13508eb0.js} +13 -13
  102. package/build/esm/{index-37dbb392.js → index-187c248f.js} +5 -5
  103. package/build/esm/{index-33857986.js → index-18fc41d1.js} +1 -1
  104. package/build/esm/{index-0cc11fb1.js → index-1f97faf1.js} +17 -5
  105. package/build/esm/{index-7bf03303.js → index-1feb112f.js} +2 -2
  106. package/build/esm/{index-939086e8.js → index-2449bb2d.js} +7 -7
  107. package/build/esm/{index-2fac047a.js → index-251c3b25.js} +6 -6
  108. package/build/esm/{index-f13da838.js → index-25cc9cc4.js} +32 -32
  109. package/build/esm/{index-226fe5cb.js → index-278cb1b1.js} +1 -1
  110. package/build/esm/{index-73444962.js → index-287ca64d.js} +21 -21
  111. package/build/esm/{index-cd9c853f.js → index-2b964024.js} +1 -1
  112. package/build/esm/{index-f18558ab.js → index-2de8bec7.js} +13 -13
  113. package/build/esm/{index-a68c1e08.js → index-2f7634c0.js} +2 -2
  114. package/build/esm/{index-21ba5071.js → index-2fb7e2eb.js} +18 -18
  115. package/build/esm/{index-61061561.js → index-31c13919.js} +30 -30
  116. package/build/esm/{index-98892330.js → index-3292ca19.js} +6 -6
  117. package/build/esm/{index-c94d0b09.js → index-37bca743.js} +2 -2
  118. package/build/esm/{index-acf0c257.js → index-3942f1ab.js} +3 -3
  119. package/build/esm/{index-47cc34c3.js → index-3b56986a.js} +10 -10
  120. package/build/esm/{index-7ad5454d.js → index-3fda2934.js} +3 -3
  121. package/build/esm/{index-f26b737f.js → index-433f000e.js} +5 -5
  122. package/build/esm/{index-31994c6e.js → index-43673415.js} +16 -16
  123. package/build/esm/{index-fd3f610e.js → index-4568e106.js} +15 -15
  124. package/build/esm/{index-cfa1684f.js → index-493ca3d9.js} +15 -15
  125. package/build/esm/{index-e57296bb.js → index-4ae4115a.js} +2 -2
  126. package/build/esm/{index-8d4ba262.js → index-5beca92b.js} +3 -1
  127. package/build/esm/{index-f13d1df3.js → index-5dd42e29.js} +17 -17
  128. package/build/esm/{index-a407c8a1.js → index-63dc7b02.js} +1 -1
  129. package/build/esm/{index-06946fb7.js → index-6ce16a41.js} +20 -20
  130. package/build/esm/{index-38e7977f.js → index-77bef2a5.js} +16 -16
  131. package/build/esm/{index-a7c9d51f.js → index-7e835555.js} +18 -18
  132. package/build/esm/{index-0724154f.js → index-85d9e71b.js} +3 -3
  133. package/build/esm/{index-1415b9a0.js → index-8ac33271.js} +6 -6
  134. package/build/esm/{index-324f2caa.js → index-8ad8d9a8.js} +178 -110
  135. package/build/esm/{index-669fa307.js → index-8e160543.js} +1 -1
  136. package/build/esm/{index-21d6139f.js → index-951e41c9.js} +18 -18
  137. package/build/esm/{index-29318eb5.js → index-a6186dbc.js} +16 -16
  138. package/build/esm/{index-6e45d33f.js → index-b0c6ee75.js} +1 -1
  139. package/build/esm/{index-adf60b38.js → index-b389ccb0.js} +2 -2
  140. package/build/esm/{index-e69c3b32.js → index-b99adac7.js} +14 -14
  141. package/build/esm/{index-aa963a3f.js → index-c41b3f18.js} +5 -5
  142. package/build/esm/{index-ad29b90b.js → index-c623ccda.js} +2 -2
  143. package/build/esm/{index-b3f37d06.js → index-c899cec9.js} +17 -17
  144. package/build/esm/{index-e0c0f934.js → index-cb195323.js} +24 -24
  145. package/build/esm/{index-2eda59dc.js → index-cc8a3734.js} +2 -2
  146. package/build/esm/{index-e84a5757.js → index-ce8445a3.js} +7 -7
  147. package/build/esm/{index-f9de0793.js → index-d003a87c.js} +3 -3
  148. package/build/esm/{index-8a596453.js → index-d9e6c67c.js} +24 -24
  149. package/build/esm/{index-f51fcce2.js → index-e1a764f6.js} +3 -3
  150. package/build/esm/{index-97a1a574.js → index-e66bb8ed.js} +2 -2
  151. package/build/esm/{index-4e106eed.js → index-e76c58f4.js} +1 -1
  152. package/build/esm/{index-6efda9ca.js → index-eaae9c13.js} +3 -3
  153. package/build/esm/{index-b9a07518.js → index-eed1ec06.js} +4 -4
  154. package/build/esm/{index-d10ca825.js → index-eefea318.js} +13 -13
  155. package/build/esm/index-f3d75f48.js +106 -0
  156. package/build/esm/{index-abfac3da.js → index-f96c758b.js} +2 -2
  157. package/build/esm/{index-0dca8a9c.js → index-fbce107a.js} +1 -1
  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-e4afa4c7.js → labelSorting-d38c6396.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-e03c8e59.js → logoIcon-5ec1a118.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-09b71dfc.js → post-b9963bbb.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/api/featureFlag.d.ts +1 -2
  193. package/build/esm/ssoV2.js +36 -48
  194. package/build/esm/{store-53e8f82d.js → store-9f9b8c7e.js} +4 -4
  195. package/build/esm/subot/components/dob/index.d.ts +4 -0
  196. package/build/esm/subot/components/dob/utils.d.ts +14 -0
  197. package/build/esm/subot/utils/index.d.ts +1 -0
  198. package/build/esm/subot.js +184 -45
  199. package/build/esm/surveyOrPremiumBanner.js +31 -31
  200. package/build/esm/surveyQuestionCard.js +10 -10
  201. package/build/esm/{surveyThankyouCard-f09b901d.js → surveyThankyouCard-fd56b470.js} +5 -5
  202. package/build/esm/together/components/molecules/createNewPostContentV2/createPostCommunity/commonCommunity/index.d.ts +3 -3
  203. package/build/esm/together/components/molecules/createNewPostContentV2/createPostCommunity/index.d.ts +5 -5
  204. package/build/esm/together/components/molecules/createNewPostContentV2/createPostCommunity/suggestedCommunity/index.d.ts +2 -2
  205. package/build/esm/together/components/molecules/createNewPostContentV2/index.d.ts +2 -3
  206. package/build/esm/together/components/molecules/createNewPostContentV2/topicSelectList/index.d.ts +8 -3
  207. package/build/esm/together/interfaces/types.d.ts +5 -0
  208. package/build/esm/together.js +53 -53
  209. package/build/esm/togetherApiUtils.js +4 -4
  210. package/build/esm/togetherAtoms.js +30 -30
  211. package/build/esm/togetherComponentGlobalContext.js +4 -4
  212. package/build/esm/togetherMolecules.js +48 -48
  213. package/build/esm/togetherMoleculesCardAuthor.js +27 -27
  214. package/build/esm/togetherMoleculesPostImagePreview.js +11 -11
  215. package/build/esm/togetherMoleculesProfileDetail.js +37 -37
  216. package/build/esm/togetherOrganisms.js +47 -47
  217. package/build/esm/togetherRichTextEditor.js +17 -17
  218. package/build/esm/togetherShareBox.js +10 -10
  219. package/build/esm/{treePopoverMenu-96ab1928.js → treePopoverMenu-2bdb1505.js} +19 -19
  220. package/build/esm/{types-83a6449a.js → types-d2f84e76.js} +2 -2
  221. package/build/esm/types.js +2 -2
  222. package/build/esm/{useCategory-9f444e01.js → useCategory-dfbb8514.js} +5 -5
  223. package/build/esm/{useHealthToolCache-f527b48f.js → useHealthToolCache-60c491b2.js} +1 -1
  224. package/build/esm/{useMantineLocale-94a0b8bd.js → useMantineLocale-ee453257.js} +6 -6
  225. package/build/esm/{usePlacesAutocomplete-59f4f648.js → usePlacesAutocomplete-7b0503dc.js} +2 -1
  226. package/build/esm/{useScreenSize-430352d3.js → useScreenSize-86ff79b6.js} +2 -2
  227. package/build/esm/useTogetherAuthRequiredAction.js +9 -9
  228. package/build/esm/{utils-67be06c2.js → utils-284b3857.js} +3 -3
  229. package/build/esm/{utils-ea179b08.js → utils-6d47c3ee.js} +2 -2
  230. package/build/esm/{utils-fb94e9f6.js → utils-78c52834.js} +2 -2
  231. package/build/esm/vaccination.js +21 -21
  232. package/build/footer.js +21 -21
  233. package/build/gAssets.js +2 -2
  234. package/build/healthToolsCardWrapper.js +18 -18
  235. package/build/healthToolsForm.js +33 -33
  236. package/build/hooks/useGetClientGaId.d.ts +4 -0
  237. package/build/hooks/usePlacesAutocomplete.d.ts +2 -0
  238. package/build/hooks.js +13 -13
  239. package/build/i18n/translationKeys.d.ts +1 -1
  240. package/build/i18n-values/en-PH.js +5 -0
  241. package/build/i18n-values/hi-IN.js +5 -0
  242. package/build/i18n-values/id-ID.js +5 -0
  243. package/build/i18n-values/km-KH.js +5 -0
  244. package/build/i18n-values/ms-MY.js +5 -0
  245. package/build/i18n-values/my-MM.js +5 -0
  246. package/build/i18n-values/th-TH.js +5 -0
  247. package/build/i18n-values/tl-PH.js +5 -0
  248. package/build/i18n-values/vi-VN.js +5 -0
  249. package/build/i18n-values/vi-VN_MB.js +5 -0
  250. package/build/i18n-values/zh-TW.js +5 -0
  251. package/build/i18n.js +1 -1
  252. package/build/i18nV2.js +1 -1
  253. package/build/icons/ChatbotBg.d.ts +4 -0
  254. package/build/icons/Search.d.ts +4 -0
  255. package/build/icons/index.d.ts +5 -3
  256. package/build/{index-6615a001.js → index-03817479.js} +3 -3
  257. package/build/{index-41ee6455.js → index-06c40093.js} +2 -2
  258. package/build/{index-bde06816.js → index-07303336.js} +3 -3
  259. package/build/{index-945e1013.js → index-09b696c5.js} +2 -2
  260. package/build/{index-32adc92e.js → index-09fe20ee.js} +3 -3
  261. package/build/index-0dd90e03.js +113 -0
  262. package/build/{index-ee10965f.js → index-0ebf6518.js} +1 -1
  263. package/build/{index-f68e26d8.js → index-12980629.js} +16 -16
  264. package/build/{index-5aabea89.js → index-17035df2.js} +17 -17
  265. package/build/{index-9b3ee0c9.js → index-1785577a.js} +2 -2
  266. package/build/{index-eb89c888.js → index-185e678c.js} +18 -18
  267. package/build/{index-c27e38d1.js → index-1f0a1217.js} +1 -1
  268. package/build/{index-6ab08269.js → index-215b49f9.js} +1 -1
  269. package/build/{index-f9cac59f.js → index-235da055.js} +18 -18
  270. package/build/{index-707b4bdd.js → index-2ac51c28.js} +3 -1
  271. package/build/{index-6cbdc527.js → index-31158673.js} +6 -6
  272. package/build/{index-978d92fe.js → index-318ed726.js} +17 -17
  273. package/build/{index-34e1a4f5.js → index-33141240.js} +16 -16
  274. package/build/{index-64aa1aeb.js → index-3618f3e5.js} +16 -16
  275. package/build/{index-6f361eac.js → index-38a28dc9.js} +4 -4
  276. package/build/{index-c06df9c4.js → index-3c176356.js} +7 -7
  277. package/build/{index-29a72caf.js → index-3ef55d59.js} +2 -2
  278. package/build/{index-c16e2ee8.js → index-4c30074c.js} +5 -5
  279. package/build/{index-584692b0.js → index-5046b99d.js} +13 -13
  280. package/build/{index-e58bf46e.js → index-57b95503.js} +1 -1
  281. package/build/{index-0e6525e7.js → index-6084d7d2.js} +14 -14
  282. package/build/{index-cd3aca6a.js → index-613eed69.js} +15 -15
  283. package/build/{index-3a0153d3.js → index-669bcec8.js} +13 -13
  284. package/build/{index-ca3c4b28.js → index-6791aa5b.js} +17 -4
  285. package/build/{index-d54c4e5d.js → index-67af8202.js} +24 -24
  286. package/build/{index-e022fbae.js → index-6bfe87dc.js} +2 -2
  287. package/build/{index-d5d9e0cb.js → index-71b23357.js} +30 -30
  288. package/build/{index-f9784b40.js → index-75ffffea.js} +2 -2
  289. package/build/{index-5f6e48a3.js → index-76ade849.js} +18 -18
  290. package/build/{index-9fd2b61a.js → index-7c2a27e6.js} +1 -1
  291. package/build/{index-e5d592d5.js → index-84360cc6.js} +10 -10
  292. package/build/{index-33fc7f6d.js → index-84d08231.js} +1 -1
  293. package/build/{index-f9b61c9b.js → index-85d6aff9.js} +16 -16
  294. package/build/{index-e9910fe5.js → index-8a49db48.js} +2 -2
  295. package/build/{index-3929abb8.js → index-916152e1.js} +5 -5
  296. package/build/{index-d0f807a8.js → index-96b6a45f.js} +178 -110
  297. package/build/{index-c05d9540.js → index-a67075cc.js} +6 -6
  298. package/build/{index-910f1fb4.js → index-aece5b55.js} +2 -2
  299. package/build/{index-e0354896.js → index-b38789a6.js} +32 -32
  300. package/build/{index-5212f979.js → index-b3d03730.js} +3 -3
  301. package/build/{index-eed94829.js → index-ca7bed26.js} +5 -5
  302. package/build/{index-24d7aca9.js → index-cb44a93c.js} +1 -1
  303. package/build/{index-0e194d65.js → index-d05f5c58.js} +7 -7
  304. package/build/{index-1d301112.js → index-d1d47e3e.js} +21 -21
  305. package/build/{index-312e796b.js → index-d2294ed4.js} +2 -2
  306. package/build/{index-81ef98b2.js → index-d26c8b25.js} +20 -20
  307. package/build/{index-497ec6b2.js → index-d63df4e6.js} +1 -1
  308. package/build/{index-5bbb313e.js → index-d8587b52.js} +3 -3
  309. package/build/{index-3bd6c540.js → index-e41c41b9.js} +2 -2
  310. package/build/{index-bb4d3097.js → index-e835d166.js} +2 -2
  311. package/build/{index-ef131396.js → index-e85fbfe2.js} +24 -24
  312. package/build/{index-0fec67ff.js → index-ea565aba.js} +13 -13
  313. package/build/{index-81083d5f.js → index-ea5b98ee.js} +6 -6
  314. package/build/{index-13389618.js → index-ec383f64.js} +15 -15
  315. package/build/{index-0df597d2.js → index-ef1363d4.js} +2 -2
  316. package/build/{index-9641b370.js → index-f84b402c.js} +3 -3
  317. package/build/{index-9634ea4f.js → index-f9032264.js} +6 -6
  318. package/build/{index-6d9830e2.js → index-fd0e8768.js} +13 -13
  319. package/build/index.css +1 -1
  320. package/build/index.js +211 -179
  321. package/build/interfaces/types/Subot.d.ts +1 -0
  322. package/build/{labelSorting-205489ec.js → labelSorting-36d105cb.js} +4 -4
  323. package/build/lead/components/context.d.ts +2 -0
  324. package/build/lead/components/index.d.ts +4 -2
  325. package/build/lead/index.d.ts +1 -1
  326. package/build/lead/layouts/ emptyIcon.d.ts +6 -0
  327. package/build/lead/layouts/lightbox/fields/textField/index.d.ts +13 -0
  328. package/build/lead/layouts/lightbox/fields/textField/index.styled.d.ts +11 -0
  329. package/build/lead/layouts/lightbox/index.d.ts +4 -2
  330. package/build/lead/newLeadPopup.d.ts +4 -2
  331. package/build/lead.css +1 -1
  332. package/build/lead.js +822 -351
  333. package/build/{logoIcon-70a2864c.js → logoIcon-904a4cf6.js} +2 -2
  334. package/build/mantine.js +22 -22
  335. package/build/misc.js +16 -16
  336. package/build/miscGetDynamicHealthTool.js +4 -4
  337. package/build/miscGetSocialList.js +8 -8
  338. package/build/miscScreenSizeContext.js +1 -1
  339. package/build/mobileBottomNavigation.js +5 -5
  340. package/build/mobileBottomNavigationIcon.js +5 -5
  341. package/build/molecules.js +69 -69
  342. package/build/moleculesArticleCard.js +6 -6
  343. package/build/moleculesArticleCardV2.js +16 -16
  344. package/build/navigation.js +40 -40
  345. package/build/navigationLogoutPopup.js +9 -9
  346. package/build/navigationProfileButton.js +23 -23
  347. package/build/onboardingV2.js +28 -28
  348. package/build/organisms.js +44 -44
  349. package/build/{post-adb71a79.js → post-3cba4e54.js} +2 -2
  350. package/build/profileNavigation.js +19 -19
  351. package/build/progressBar.js +1 -1
  352. package/build/pwg.js +22 -22
  353. package/build/ssoV2/api/featureFlag.d.ts +1 -2
  354. package/build/ssoV2.js +35 -47
  355. package/build/{store-6213ddb5.js → store-e1b9f2ce.js} +4 -4
  356. package/build/subot/components/dob/index.d.ts +4 -0
  357. package/build/subot/components/dob/utils.d.ts +14 -0
  358. package/build/subot/utils/index.d.ts +1 -0
  359. package/build/subot.js +187 -46
  360. package/build/surveyOrPremiumBanner.js +31 -31
  361. package/build/surveyQuestionCard.js +10 -10
  362. package/build/{surveyThankyouCard-7030f3b7.js → surveyThankyouCard-5dd83af2.js} +5 -5
  363. package/build/together/components/molecules/createNewPostContentV2/createPostCommunity/commonCommunity/index.d.ts +3 -3
  364. package/build/together/components/molecules/createNewPostContentV2/createPostCommunity/index.d.ts +5 -5
  365. package/build/together/components/molecules/createNewPostContentV2/createPostCommunity/suggestedCommunity/index.d.ts +2 -2
  366. package/build/together/components/molecules/createNewPostContentV2/index.d.ts +2 -3
  367. package/build/together/components/molecules/createNewPostContentV2/topicSelectList/index.d.ts +8 -3
  368. package/build/together/interfaces/types.d.ts +5 -0
  369. package/build/together.js +53 -53
  370. package/build/togetherApiUtils.js +4 -4
  371. package/build/togetherAtoms.js +30 -30
  372. package/build/togetherComponentGlobalContext.js +4 -4
  373. package/build/togetherMolecules.js +48 -48
  374. package/build/togetherMoleculesCardAuthor.js +27 -27
  375. package/build/togetherMoleculesPostImagePreview.js +11 -11
  376. package/build/togetherMoleculesProfileDetail.js +37 -37
  377. package/build/togetherOrganisms.js +47 -47
  378. package/build/togetherRichTextEditor.js +17 -17
  379. package/build/togetherShareBox.js +10 -10
  380. package/build/{treePopoverMenu-058933d8.js → treePopoverMenu-d53a7070.js} +19 -19
  381. package/build/{types-667459f0.js → types-3a0991d8.js} +2 -2
  382. package/build/types.js +2 -2
  383. package/build/{useCategory-19aa9f2f.js → useCategory-114d6a8a.js} +5 -5
  384. package/build/{useHealthToolCache-37a8531b.js → useHealthToolCache-441c521c.js} +1 -1
  385. package/build/{useMantineLocale-5c98daa7.js → useMantineLocale-dc446f96.js} +6 -6
  386. package/build/{usePlacesAutocomplete-44958484.js → usePlacesAutocomplete-1f9453b2.js} +2 -1
  387. package/build/{useScreenSize-faa77170.js → useScreenSize-0c0d47f5.js} +2 -2
  388. package/build/useTogetherAuthRequiredAction.js +9 -9
  389. package/build/{utils-18c6a7fe.js → utils-5b446c46.js} +2 -2
  390. package/build/{utils-5888f65c.js → utils-7d819ac1.js} +2 -2
  391. package/build/{utils-f18fd00b.js → utils-daec2540.js} +3 -3
  392. package/build/vaccination.js +21 -21
  393. package/package.json +1 -1
  394. /package/build/{BMI_BOYS.percentile.monthly-7d9042f0.js → BMI_BOYS.percentile.monthly-b30faabf.js} +0 -0
  395. /package/build/{BMI_BOYS.percentile.weekly-410e5b79.js → BMI_BOYS.percentile.weekly-21391d76.js} +0 -0
  396. /package/build/{BMI_BOYS.percentile.yearly-c5a0da4b.js → BMI_BOYS.percentile.yearly-83c7fcd2.js} +0 -0
  397. /package/build/{BMI_BOYS.zscore.monthly-5dc238bd.js → BMI_BOYS.zscore.monthly-aa8afe3f.js} +0 -0
  398. /package/build/{BMI_BOYS.zscore.weekly-35a29288.js → BMI_BOYS.zscore.weekly-81efd6dc.js} +0 -0
  399. /package/build/{BMI_BOYS.zscore.yearly-c86073e0.js → BMI_BOYS.zscore.yearly-6f98b1c3.js} +0 -0
  400. /package/build/{BMI_GIRLS.percentile.monthly-00bda635.js → BMI_GIRLS.percentile.monthly-84986191.js} +0 -0
  401. /package/build/{BMI_GIRLS.percentile.weekly-7fbea096.js → BMI_GIRLS.percentile.weekly-19f3be53.js} +0 -0
  402. /package/build/{BMI_GIRLS.percentile.yearly-550a16d4.js → BMI_GIRLS.percentile.yearly-36aa05af.js} +0 -0
  403. /package/build/{BMI_GIRLS.zscore.monthly-fdf9366d.js → BMI_GIRLS.zscore.monthly-6fd68c7e.js} +0 -0
  404. /package/build/{BMI_GIRLS.zscore.weekly-3a95ed4c.js → BMI_GIRLS.zscore.weekly-68a50af8.js} +0 -0
  405. /package/build/{BMI_GIRLS.zscore.yearly-a7617731.js → BMI_GIRLS.zscore.yearly-adfa20bd.js} +0 -0
  406. /package/build/{ChevronDown-0a482dd5.js → ChevronDown-f3d17b98.js} +0 -0
  407. /package/build/{Close-1e95c268.js → Close-127b40f9.js} +0 -0
  408. /package/build/{Google-0ff92514.js → Google-9c15fb01.js} +0 -0
  409. /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-df67cf53.js → HEAD CIRCUM_BOYS.percentile.monthly-52f2ea44.js} +0 -0
  410. /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-9f931043.js → HEAD CIRCUM_BOYS.percentile.weekly-8a9c1910.js} +0 -0
  411. /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-981e1043.js → HEAD CIRCUM_BOYS.percentile.yearly-a1da28c0.js} +0 -0
  412. /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-f6131024.js → HEAD CIRCUM_BOYS.zscore.monthly-582cfae4.js} +0 -0
  413. /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-995abcc6.js → HEAD CIRCUM_BOYS.zscore.weekly-3c2311b9.js} +0 -0
  414. /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-8d3d99fd.js → HEAD CIRCUM_BOYS.zscore.yearly-2cae4758.js} +0 -0
  415. /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-b9d5d1ef.js → HEAD CIRCUM_GIRLS.percentile.monthly-f30fbc1c.js} +0 -0
  416. /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-091ce217.js → HEAD CIRCUM_GIRLS.percentile.weekly-b26ced3c.js} +0 -0
  417. /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-12a70ce5.js → HEAD CIRCUM_GIRLS.percentile.yearly-bbfb189c.js} +0 -0
  418. /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-84b2a06a.js → HEAD CIRCUM_GIRLS.zscore.monthly-41b0f026.js} +0 -0
  419. /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-3e8c6327.js → HEAD CIRCUM_GIRLS.zscore.weekly-e0774f95.js} +0 -0
  420. /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-9372bf05.js → HEAD CIRCUM_GIRLS.zscore.yearly-b26d365d.js} +0 -0
  421. /package/build/{HEIGHT_BOYS.percentile.monthly-db1f3d3e.js → HEIGHT_BOYS.percentile.monthly-837436a9.js} +0 -0
  422. /package/build/{HEIGHT_BOYS.percentile.weekly-91d68257.js → HEIGHT_BOYS.percentile.weekly-8731d752.js} +0 -0
  423. /package/build/{HEIGHT_BOYS.percentile.yearly-ee6b57e5.js → HEIGHT_BOYS.percentile.yearly-12713e55.js} +0 -0
  424. /package/build/{HEIGHT_BOYS.zscore.monthly-b4061091.js → HEIGHT_BOYS.zscore.monthly-7f063186.js} +0 -0
  425. /package/build/{HEIGHT_BOYS.zscore.weekly-2371b3a9.js → HEIGHT_BOYS.zscore.weekly-336670c7.js} +0 -0
  426. /package/build/{HEIGHT_BOYS.zscore.yearly-25a37206.js → HEIGHT_BOYS.zscore.yearly-601f6e99.js} +0 -0
  427. /package/build/{HEIGHT_GIRLS.percentile.monthly-fe459469.js → HEIGHT_GIRLS.percentile.monthly-7806a84d.js} +0 -0
  428. /package/build/{HEIGHT_GIRLS.percentile.weekly-173f7322.js → HEIGHT_GIRLS.percentile.weekly-77fefedc.js} +0 -0
  429. /package/build/{HEIGHT_GIRLS.percentile.yearly-4a5faf55.js → HEIGHT_GIRLS.percentile.yearly-a6f75a2d.js} +0 -0
  430. /package/build/{HEIGHT_GIRLS.zscore.monthly-5005e0b8.js → HEIGHT_GIRLS.zscore.monthly-663dbe45.js} +0 -0
  431. /package/build/{HEIGHT_GIRLS.zscore.weekly-05cf96f4.js → HEIGHT_GIRLS.zscore.weekly-1795b929.js} +0 -0
  432. /package/build/{HEIGHT_GIRLS.zscore.yearly-d9206087.js → HEIGHT_GIRLS.zscore.yearly-54e8ed04.js} +0 -0
  433. /package/build/{Locale-b7055af5.js → Locale-57db1c3d.js} +0 -0
  434. /package/build/{Visible-c4aaec8f.js → Visible-4faebc9a.js} +0 -0
  435. /package/build/{WEIGHT_BOYS.percentile.monthly-f5efc6c4.js → WEIGHT_BOYS.percentile.monthly-e27a9e27.js} +0 -0
  436. /package/build/{WEIGHT_BOYS.percentile.weekly-484359cb.js → WEIGHT_BOYS.percentile.weekly-a9dc5fb0.js} +0 -0
  437. /package/build/{WEIGHT_BOYS.percentile.yearly-3d33298f.js → WEIGHT_BOYS.percentile.yearly-1f6d6a23.js} +0 -0
  438. /package/build/{WEIGHT_BOYS.zscore.monthly-28171234.js → WEIGHT_BOYS.zscore.monthly-d90a8e9e.js} +0 -0
  439. /package/build/{WEIGHT_BOYS.zscore.weekly-d492ae85.js → WEIGHT_BOYS.zscore.weekly-aadf96fc.js} +0 -0
  440. /package/build/{WEIGHT_BOYS.zscore.yearly-f4469244.js → WEIGHT_BOYS.zscore.yearly-cda41635.js} +0 -0
  441. /package/build/{WEIGHT_GIRLS.percentile.monthly-89cc5346.js → WEIGHT_GIRLS.percentile.monthly-cf66f56d.js} +0 -0
  442. /package/build/{WEIGHT_GIRLS.percentile.weekly-1f2358b2.js → WEIGHT_GIRLS.percentile.weekly-eb947b05.js} +0 -0
  443. /package/build/{WEIGHT_GIRLS.percentile.yearly-e623ca2a.js → WEIGHT_GIRLS.percentile.yearly-eb086a2e.js} +0 -0
  444. /package/build/{WEIGHT_GIRLS.zscore.monthly-0240aa01.js → WEIGHT_GIRLS.zscore.monthly-bb6b65e9.js} +0 -0
  445. /package/build/{WEIGHT_GIRLS.zscore.weekly-85691c84.js → WEIGHT_GIRLS.zscore.weekly-809ba3bf.js} +0 -0
  446. /package/build/{WEIGHT_GIRLS.zscore.yearly-da900c02.js → WEIGHT_GIRLS.zscore.yearly-defd0f5c.js} +0 -0
  447. /package/build/{animation-f42782de.js → animation-51d9f750.js} +0 -0
  448. /package/build/{constants-4e43d2b1.js → constants-345d4630.js} +0 -0
  449. /package/build/{constants-30f55480.js → constants-64bd11a4.js} +0 -0
  450. /package/build/{constants-ceadaec4.js → constants-b9c0ca76.js} +0 -0
  451. /package/build/{dataTransform-7fcc87c5.js → dataTransform-50730e70.js} +0 -0
  452. /package/build/{doctor-9b1ad233.js → doctor-b84977b0.js} +0 -0
  453. /package/build/esm/{BMI_BOYS.percentile.monthly-a4d2b45d.js → BMI_BOYS.percentile.monthly-033ff54c.js} +0 -0
  454. /package/build/esm/{BMI_BOYS.percentile.weekly-d8d76573.js → BMI_BOYS.percentile.weekly-c741ecf7.js} +0 -0
  455. /package/build/esm/{BMI_BOYS.percentile.yearly-96445a1c.js → BMI_BOYS.percentile.yearly-d8a96f52.js} +0 -0
  456. /package/build/esm/{BMI_BOYS.zscore.monthly-6a986692.js → BMI_BOYS.zscore.monthly-b83302d8.js} +0 -0
  457. /package/build/esm/{BMI_BOYS.zscore.weekly-75bb880c.js → BMI_BOYS.zscore.weekly-747bcc77.js} +0 -0
  458. /package/build/esm/{BMI_BOYS.zscore.yearly-b52316f6.js → BMI_BOYS.zscore.yearly-144e0b1a.js} +0 -0
  459. /package/build/esm/{BMI_GIRLS.percentile.monthly-08b9b5ff.js → BMI_GIRLS.percentile.monthly-cf8d61d2.js} +0 -0
  460. /package/build/esm/{BMI_GIRLS.percentile.weekly-0a9a093b.js → BMI_GIRLS.percentile.weekly-769f26db.js} +0 -0
  461. /package/build/esm/{BMI_GIRLS.percentile.yearly-9aff7209.js → BMI_GIRLS.percentile.yearly-e49b963d.js} +0 -0
  462. /package/build/esm/{BMI_GIRLS.zscore.monthly-84a95012.js → BMI_GIRLS.zscore.monthly-3084153f.js} +0 -0
  463. /package/build/esm/{BMI_GIRLS.zscore.weekly-f5c7eee7.js → BMI_GIRLS.zscore.weekly-72ec570c.js} +0 -0
  464. /package/build/esm/{BMI_GIRLS.zscore.yearly-2c956a54.js → BMI_GIRLS.zscore.yearly-56f78b21.js} +0 -0
  465. /package/build/esm/{ChevronDown-9b12c932.js → ChevronDown-8328c13d.js} +0 -0
  466. /package/build/esm/{Close-fd14a82c.js → Close-ba03577a.js} +0 -0
  467. /package/build/esm/{Google-30f3ff28.js → Google-abacb80f.js} +0 -0
  468. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-469b6124.js → HEAD CIRCUM_BOYS.percentile.monthly-48de46d8.js} +0 -0
  469. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-1bac7b7a.js → HEAD CIRCUM_BOYS.percentile.weekly-be44668d.js} +0 -0
  470. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-586c62f2.js → HEAD CIRCUM_BOYS.percentile.yearly-0eb105d2.js} +0 -0
  471. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-5ccd18ee.js → HEAD CIRCUM_BOYS.zscore.monthly-b42f2936.js} +0 -0
  472. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-867e8bed.js → HEAD CIRCUM_BOYS.zscore.weekly-0b78b9b0.js} +0 -0
  473. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-c6bf3e89.js → HEAD CIRCUM_BOYS.zscore.yearly-cfedb0f0.js} +0 -0
  474. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-dca3aed2.js → HEAD CIRCUM_GIRLS.percentile.monthly-005c83c7.js} +0 -0
  475. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-eda15a31.js → HEAD CIRCUM_GIRLS.percentile.weekly-0fc8a072.js} +0 -0
  476. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-e4133368.js → HEAD CIRCUM_GIRLS.percentile.yearly-de97ed19.js} +0 -0
  477. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-73658d41.js → HEAD CIRCUM_GIRLS.zscore.monthly-55481efe.js} +0 -0
  478. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-f7aa4af9.js → HEAD CIRCUM_GIRLS.zscore.weekly-3695b4de.js} +0 -0
  479. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-890ac2f2.js → HEAD CIRCUM_GIRLS.zscore.yearly-c97ef53a.js} +0 -0
  480. /package/build/esm/{HEIGHT_BOYS.percentile.monthly-044337bc.js → HEIGHT_BOYS.percentile.monthly-6077092f.js} +0 -0
  481. /package/build/esm/{HEIGHT_BOYS.percentile.weekly-d8f64017.js → HEIGHT_BOYS.percentile.weekly-414cf15d.js} +0 -0
  482. /package/build/esm/{HEIGHT_BOYS.percentile.yearly-46e9513e.js → HEIGHT_BOYS.percentile.yearly-d77d3e90.js} +0 -0
  483. /package/build/esm/{HEIGHT_BOYS.zscore.monthly-defe22de.js → HEIGHT_BOYS.zscore.monthly-b42af495.js} +0 -0
  484. /package/build/esm/{HEIGHT_BOYS.zscore.weekly-bee7e5ce.js → HEIGHT_BOYS.zscore.weekly-899ea3ee.js} +0 -0
  485. /package/build/esm/{HEIGHT_BOYS.zscore.yearly-3690d8b2.js → HEIGHT_BOYS.zscore.yearly-4fab9c43.js} +0 -0
  486. /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-dd18c54d.js → HEIGHT_GIRLS.percentile.monthly-50eac517.js} +0 -0
  487. /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-0d851969.js → HEIGHT_GIRLS.percentile.weekly-d64025fa.js} +0 -0
  488. /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-8c33bc7e.js → HEIGHT_GIRLS.percentile.yearly-3d2c591c.js} +0 -0
  489. /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-71cf53d7.js → HEIGHT_GIRLS.zscore.monthly-e41df4c5.js} +0 -0
  490. /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-5b44b062.js → HEIGHT_GIRLS.zscore.weekly-3a86e2c3.js} +0 -0
  491. /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-6ee6e53d.js → HEIGHT_GIRLS.zscore.yearly-3438c81d.js} +0 -0
  492. /package/build/esm/{Locale-f2acbe20.js → Locale-b85a2806.js} +0 -0
  493. /package/build/esm/{Visible-00991779.js → Visible-8cac64ac.js} +0 -0
  494. /package/build/esm/{WEIGHT_BOYS.percentile.monthly-f48fb01a.js → WEIGHT_BOYS.percentile.monthly-0bda403e.js} +0 -0
  495. /package/build/esm/{WEIGHT_BOYS.percentile.weekly-566c1575.js → WEIGHT_BOYS.percentile.weekly-1f6775b8.js} +0 -0
  496. /package/build/esm/{WEIGHT_BOYS.percentile.yearly-441aed8e.js → WEIGHT_BOYS.percentile.yearly-f4b8fcec.js} +0 -0
  497. /package/build/esm/{WEIGHT_BOYS.zscore.monthly-1666929a.js → WEIGHT_BOYS.zscore.monthly-d8bec4d2.js} +0 -0
  498. /package/build/esm/{WEIGHT_BOYS.zscore.weekly-8df9f7ed.js → WEIGHT_BOYS.zscore.weekly-41ab7d52.js} +0 -0
  499. /package/build/esm/{WEIGHT_BOYS.zscore.yearly-cced9193.js → WEIGHT_BOYS.zscore.yearly-d4500db2.js} +0 -0
  500. /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-c254d14e.js → WEIGHT_GIRLS.percentile.monthly-0739c8b1.js} +0 -0
  501. /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-1bc650f4.js → WEIGHT_GIRLS.percentile.weekly-d3efffd0.js} +0 -0
  502. /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-ff0f90c4.js → WEIGHT_GIRLS.percentile.yearly-18a23e81.js} +0 -0
  503. /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-e2a491bb.js → WEIGHT_GIRLS.zscore.monthly-d610d523.js} +0 -0
  504. /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-bf416d66.js → WEIGHT_GIRLS.zscore.weekly-f1c1ca37.js} +0 -0
  505. /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-e36d7b7a.js → WEIGHT_GIRLS.zscore.yearly-11cd4736.js} +0 -0
  506. /package/build/esm/{animation-5d8a5006.js → animation-7af31527.js} +0 -0
  507. /package/build/esm/{constants-066568cc.js → constants-61c2e12b.js} +0 -0
  508. /package/build/esm/{constants-76a688b3.js → constants-d8dcf848.js} +0 -0
  509. /package/build/esm/{constants-bf0f5e5f.js → constants-e07a91d9.js} +0 -0
  510. /package/build/esm/{dataTransform-4bb32f26.js → dataTransform-9b9ae0c6.js} +0 -0
  511. /package/build/esm/{doctor-32f76ab5.js → doctor-608c515c.js} +0 -0
  512. /package/build/esm/{index-2efa5c25.js → index-09f90c0d.js} +0 -0
  513. /package/build/esm/{index-089318ad.js → index-415ca2ef.js} +0 -0
  514. /package/build/esm/{index-4cda9886.js → index-43c80986.js} +0 -0
  515. /package/build/esm/{index-481ac1b5.js → index-9db2daf2.js} +0 -0
  516. /package/build/esm/{index-35e98df8.js → index-c4029515.js} +0 -0
  517. /package/build/esm/{index-db167f59.js → index-cb5b6e38.js} +0 -0
  518. /package/build/esm/{index-03c32a45.js → index-e595bf69.js} +0 -0
  519. /package/build/esm/{index-33129b88.js → index-fcd91927.js} +0 -0
  520. /package/build/esm/{index.styles-b69d7b05.js → index.styles-9aeabac4.js} +0 -0
  521. /package/build/esm/{localizeNumberFormat-02c8950b.js → localizeNumberFormat-6e308ec2.js} +0 -0
  522. /package/build/esm/{normalizeLink-b2c301bb.js → normalizeLink-24199d48.js} +0 -0
  523. /package/build/esm/{other-7217ed28.js → other-afc01340.js} +0 -0
  524. /package/build/esm/{paths-15ed3ee1.js → paths-a00da1f4.js} +0 -0
  525. /package/build/esm/{translationsContext-8653213c.js → translationsContext-b8b3f1f2.js} +0 -0
  526. /package/build/esm/{tslib.es6-d6634fe6.js → tslib.es6-d983aca1.js} +0 -0
  527. /package/build/esm/{types-4a6b4d1b.js → types-de17938e.js} +0 -0
  528. /package/build/esm/{useIsInit-6cbb6fa8.js → useIsInit-bb13f6c9.js} +0 -0
  529. /package/build/esm/{useOutsideClick-9aa6c6fa.js → useOutsideClick-4b7793c6.js} +0 -0
  530. /package/build/esm/{useScrollbarSize-5e55de5b.js → useScrollbarSize-74ad60e9.js} +0 -0
  531. /package/build/esm/{useUniqueId-296671f9.js → useUniqueId-3deb18e4.js} +0 -0
  532. /package/build/esm/{utils-caced094.js → utils-cb146a70.js} +0 -0
  533. /package/build/{index-15c187f1.js → index-0af5e4f9.js} +0 -0
  534. /package/build/{index-cd7edf3d.js → index-4299ca2f.js} +0 -0
  535. /package/build/{index-8ad3bb22.js → index-60134546.js} +0 -0
  536. /package/build/{index-26c66b56.js → index-68e0c498.js} +0 -0
  537. /package/build/{index-d104e4c5.js → index-6b1b32c4.js} +0 -0
  538. /package/build/{index-51cac109.js → index-748ec82e.js} +0 -0
  539. /package/build/{index-d9a1511b.js → index-bdfbb311.js} +0 -0
  540. /package/build/{index-7bfa5e7a.js → index-fa3e7daa.js} +0 -0
  541. /package/build/{index.styles-36302cf2.js → index.styles-e11d26f3.js} +0 -0
  542. /package/build/{localizeNumberFormat-baec8832.js → localizeNumberFormat-c1f19087.js} +0 -0
  543. /package/build/{normalizeLink-7eb11558.js → normalizeLink-92174959.js} +0 -0
  544. /package/build/{other-80ad2956.js → other-06fe2945.js} +0 -0
  545. /package/build/{paths-ce587035.js → paths-080e0022.js} +0 -0
  546. /package/build/{translationsContext-4381b7b3.js → translationsContext-d0d800a5.js} +0 -0
  547. /package/build/{tslib.es6-662f296b.js → tslib.es6-876a6fb8.js} +0 -0
  548. /package/build/{types-4f4c94cb.js → types-2e68b130.js} +0 -0
  549. /package/build/{useIsInit-da0fc0c2.js → useIsInit-c444006d.js} +0 -0
  550. /package/build/{useOutsideClick-3be65019.js → useOutsideClick-a88ed7dd.js} +0 -0
  551. /package/build/{useScrollbarSize-62159aa7.js → useScrollbarSize-d446d16b.js} +0 -0
  552. /package/build/{useUniqueId-b8898ef5.js → useUniqueId-5769db85.js} +0 -0
  553. /package/build/{utils-dd3e8bd3.js → utils-fdfa3e28.js} +0 -0
@@ -1,12 +1,12 @@
1
1
  import React__default, { useState, useEffect, useContext, useRef } from 'react';
2
- import { H as Heading } from './index-adf60b38.js';
3
- import { M as MediaQueries, t as toggleNoScroll } from './utils-caced094.js';
4
- import { u as useTranslations } from './index-0dca8a9c.js';
5
- import { T as TogetherComponentGlobalContext } from './utils-67be06c2.js';
2
+ import { H as Heading } from './index-b389ccb0.js';
3
+ import { M as MediaQueries, t as toggleNoScroll } from './utils-cb146a70.js';
4
+ import { u as useTranslations } from './index-fbce107a.js';
5
+ import { T as TogetherComponentGlobalContext } from './utils-284b3857.js';
6
6
  import { Portal } from '@mantine/core';
7
- import { T as Text } from './index-7bf03303.js';
7
+ import { T as Text } from './index-1feb112f.js';
8
8
  import styled from '@emotion/styled';
9
- import { _ as __rest } from './tslib.es6-d6634fe6.js';
9
+ import { _ as __rest } from './tslib.es6-d983aca1.js';
10
10
  import { theme } from './miscTheme.js';
11
11
  import { setDefaultClass } from './miscDefaultClassWrapper.js';
12
12
 
@@ -1,47 +1,47 @@
1
- import { a as __awaiter, _ as __rest } from './tslib.es6-d6634fe6.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-4cda9886.js';
5
- import { u as useTranslations } from './index-0dca8a9c.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-e69c3b32.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-abfac3da.js';
12
- import './index-8d4ba262.js';
13
- import './index-2efa5c25.js';
14
- import './useMantineLocale-94a0b8bd.js';
15
- import { T as Text } from './index-7bf03303.js';
16
- import { B as Button } from './index-a407c8a1.js';
17
- import './index.styles-b69d7b05.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-caced094.js';
20
- import './other-7217ed28.js';
21
- import './index-6efda9ca.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-21d6139f.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-67be06c2.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-c3adaac6.js';
26
- import { M as MAX_IMAGE_UPLOADS, B as BEARER_TOKEN_COOKIE } from './constants-76a688b3.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-09b71dfc.js';
28
- import { C as CardAuthor, L as Loading$1 } from './index-fd3f610e.js';
29
- import { S as StyledCreatePostDescription$1, R as RichTextEditor$1, I as IconLink } from './editor-c9b0069a.js';
30
- import { I as Input } from './index-1ca0ac46.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-e57296bb.js';
35
- import { C as CardLink } from './index-37dbb392.js';
36
- import { B as BtnChoice } from './index-33857986.js';
37
- import { L as LOCALE } from './Locale-f2acbe20.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-1415b9a0.js';
40
- import { B as Button$1 } from './index-1b29aa3f.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-296671f9.js';
43
- import { U as UserAvatar } from './index-b7a70e5b.js';
44
- import { P as PopoverMenu } from './index-ad29b90b.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-1ca0ac46.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-1b29aa3f.js';
3
- import { H as Heading } from './index-adf60b38.js';
4
- import { T as Text } from './index-7bf03303.js';
5
- import { c as safeEncodeURI, M as MediaQueries, t as toggleNoScroll, a as getPopupWrapperDom } from './utils-caced094.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-67be06c2.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-d6634fe6.js';
11
- import { I as Input } from './index-1ca0ac46.js';
12
- import { u as useTranslations } from './index-0dca8a9c.js';
13
- import { e as formatComment } from './dataTransform-c3adaac6.js';
14
- import { M as MAX_IMAGE_UPLOADS, a as DEFAULT_AVATAR_IMG, D as DEFAULT_IMG } from './constants-76a688b3.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-09b71dfc.js';
17
- import { C as CardLink } from './index-37dbb392.js';
18
- import { L as Loading } from './index-fd3f610e.js';
19
- import { U as UserAvatar } from './index-b7a70e5b.js';
20
- import { R as RichTextEditor } from './editor-c9b0069a.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-4e106eed.js';
24
- import { C as CloseIcon } from './index-1415b9a0.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-430352d3.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-d6634fe6.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-46b9f4f0.js';
6
- import { I as Input } from './index-e69c3b32.js';
7
- import { D as DatePicker } from './index-4e407882.js';
8
- import { T as Text } from './index-7bf03303.js';
9
- import './index-a407c8a1.js';
10
- import './index.styles-b69d7b05.js';
11
- import { u as useTranslations } from './index-0dca8a9c.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-94a0b8bd.js';
14
- import './index-8d4ba262.js';
15
- import './index-2efa5c25.js';
16
- import './utils-caced094.js';
17
- import './index-abfac3da.js';
18
- import './other-7217ed28.js';
19
- import './index-6efda9ca.js';
20
- import { H as HealthToolFormWrapper } from './index-b9a07518.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-d6634fe6.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-d6634fe6.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-7bf03303.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'