@hhgtech/hhg-components 1.29.341-beta-1 → 1.29.341-beta-2

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-cf88329b.js → LastPeriod-9eefea2a.js} +1 -1
  2. package/build/{MobileBottomNavigationIcon-f14d24e4.js → MobileBottomNavigationIcon-a0ffcd8e.js} +3 -3
  3. package/build/{Spinner-d6f599de.js → Spinner-d6bb966b.js} +1 -1
  4. package/build/{WhatsApp-7db72961.js → WhatsApp-b529958a.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-7af1ad00.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-1d83981c.js} +1 -1
  24. package/build/{dataTransform-ef1152e5.js → dataTransform-6b597ed3.js} +1 -1
  25. package/build/ecom.js +4 -4
  26. package/build/{editor-64d0c27b.js → editor-35d94fad.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-c74bdd8b.js} +1 -1
  37. package/build/esm/{MobileBottomNavigationIcon-c07f3e7b.js → MobileBottomNavigationIcon-29e019c8.js} +3 -3
  38. package/build/esm/{Spinner-49091360.js → Spinner-3b1b67e0.js} +1 -1
  39. package/build/esm/{WhatsApp-93f66619.js → WhatsApp-a6e3103b.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-10fac832.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-4e786b97.js} +1 -1
  59. package/build/esm/{dataTransform-c3adaac6.js → dataTransform-5e753a25.js} +1 -1
  60. package/build/esm/ecom.js +4 -4
  61. package/build/esm/{editor-c9b0069a.js → editor-208df683.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-98892330.js → index-00d2416f.js} +6 -6
  96. package/build/esm/{index-a7c9d51f.js → index-0e75b7c4.js} +18 -18
  97. package/build/esm/{index-06946fb7.js → index-1291feef.js} +20 -20
  98. package/build/esm/{index-8d4ba262.js → index-13ac8c47.js} +3 -1
  99. package/build/esm/{index-f9de0793.js → index-180d1faa.js} +3 -3
  100. package/build/esm/{index-1b29aa3f.js → index-19f88c7e.js} +2 -2
  101. package/build/esm/{index-ad29b90b.js → index-1b06e628.js} +2 -2
  102. package/build/esm/{index-6efda9ca.js → index-1d317a46.js} +3 -3
  103. package/build/esm/{index-adf60b38.js → index-1ec63921.js} +2 -2
  104. package/build/esm/index-1fdf797b.js +106 -0
  105. package/build/esm/{index-a407c8a1.js → index-246a053e.js} +1 -1
  106. package/build/esm/{index-21d6139f.js → index-24fa332c.js} +18 -18
  107. package/build/esm/{index-1ca0ac46.js → index-2ccbdd1f.js} +2 -2
  108. package/build/esm/{index-b7a70e5b.js → index-2ed7ad8b.js} +2 -2
  109. package/build/esm/{index-f13d1df3.js → index-3c2d9188.js} +17 -17
  110. package/build/esm/{index-b3f37d06.js → index-3e9b48e7.js} +17 -17
  111. package/build/esm/{index-f51fcce2.js → index-46fe3ecd.js} +3 -3
  112. package/build/esm/{index-38e7977f.js → index-4e80521b.js} +16 -16
  113. package/build/esm/{index-47cc34c3.js → index-572335b6.js} +10 -10
  114. package/build/esm/{index-4e106eed.js → index-61db2247.js} +1 -1
  115. package/build/esm/{index-0dca8a9c.js → index-667c32a0.js} +1 -1
  116. package/build/esm/{index-29318eb5.js → index-6a731a36.js} +16 -16
  117. package/build/esm/{index-b7452697.js → index-6e01d926.js} +13 -13
  118. package/build/esm/{index-4e407882.js → index-6eb890a9.js} +6 -6
  119. package/build/esm/{index-0724154f.js → index-6eed8b3d.js} +3 -3
  120. package/build/esm/{index-e84a5757.js → index-70b8d99b.js} +7 -7
  121. package/build/esm/{index-e57296bb.js → index-74735e6d.js} +2 -2
  122. package/build/esm/{index-6e45d33f.js → index-763cdb62.js} +1 -1
  123. package/build/esm/{index-2d52b444.js → index-7bb53d5b.js} +16 -16
  124. package/build/esm/{index-fd3f610e.js → index-7ecbd997.js} +15 -15
  125. package/build/esm/{index-cd9c853f.js → index-807b078a.js} +1 -1
  126. package/build/esm/{index-e69c3b32.js → index-80c66805.js} +14 -14
  127. package/build/esm/{index-61061561.js → index-8145fc1a.js} +30 -30
  128. package/build/esm/{index-31994c6e.js → index-830617a3.js} +16 -16
  129. package/build/esm/{index-324f2caa.js → index-865aa557.js} +178 -110
  130. package/build/esm/{index-8a596453.js → index-8a2f5132.js} +24 -24
  131. package/build/esm/{index-97a1a574.js → index-8d1b0ad1.js} +2 -2
  132. package/build/esm/{index-7ad5454d.js → index-946aa38b.js} +3 -3
  133. package/build/esm/{index-a68c1e08.js → index-94d4a4e3.js} +2 -2
  134. package/build/esm/{index-73444962.js → index-97aab36e.js} +21 -21
  135. package/build/esm/{index-2fac047a.js → index-982321d5.js} +6 -6
  136. package/build/esm/{index-cfa1684f.js → index-9899a453.js} +15 -15
  137. package/build/esm/{index-33857986.js → index-9b6f74f8.js} +1 -1
  138. package/build/esm/{index-7bf03303.js → index-a45bba40.js} +2 -2
  139. package/build/esm/{index-21ba5071.js → index-ace93f70.js} +18 -18
  140. package/build/esm/{index-d10ca825.js → index-affbfb29.js} +13 -13
  141. package/build/esm/{index-f26b737f.js → index-b3c118a5.js} +5 -5
  142. package/build/esm/{index-2eda59dc.js → index-bb993df3.js} +2 -2
  143. package/build/esm/{index-3cecd31a.js → index-bbe976f0.js} +13 -13
  144. package/build/esm/{index-f13da838.js → index-c01d3a42.js} +32 -32
  145. package/build/esm/{index-37dbb392.js → index-c141fd67.js} +5 -5
  146. package/build/esm/{index-226fe5cb.js → index-c1d7b626.js} +1 -1
  147. package/build/esm/{index-c94d0b09.js → index-d074bdba.js} +2 -2
  148. package/build/esm/{index-939086e8.js → index-d6fe7854.js} +7 -7
  149. package/build/esm/{index-0cc11fb1.js → index-ddbc04ab.js} +17 -5
  150. package/build/esm/{index-e0c0f934.js → index-e061ea1b.js} +24 -24
  151. package/build/esm/{index-1415b9a0.js → index-e7e39350.js} +6 -6
  152. package/build/esm/{index-abfac3da.js → index-e901f471.js} +2 -2
  153. package/build/esm/{index-aa963a3f.js → index-eb1a6db2.js} +5 -5
  154. package/build/esm/{index-b9a07518.js → index-eb498ba6.js} +4 -4
  155. package/build/esm/{index-669fa307.js → index-ebc5d978.js} +1 -1
  156. package/build/esm/{index-f18558ab.js → index-f2502fa0.js} +13 -13
  157. package/build/esm/{index-acf0c257.js → index-f2c42d02.js} +3 -3
  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-8cac5f43.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-25fa5ebd.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-033bf211.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-53e8f82d.js → store-16e2912e.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-f09b901d.js → surveyThankyouCard-b01c7140.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-96ab1928.js → treePopoverMenu-855a4f52.js} +19 -19
  219. package/build/esm/{types-83a6449a.js → types-8e78d42b.js} +2 -2
  220. package/build/esm/types.js +2 -2
  221. package/build/esm/{useCategory-9f444e01.js → useCategory-411fa688.js} +5 -5
  222. package/build/esm/{useHealthToolCache-f527b48f.js → useHealthToolCache-c41be258.js} +1 -1
  223. package/build/esm/{useMantineLocale-94a0b8bd.js → useMantineLocale-d3f0ec10.js} +6 -6
  224. package/build/esm/{usePlacesAutocomplete-59f4f648.js → usePlacesAutocomplete-b3aa6142.js} +2 -1
  225. package/build/esm/{useScreenSize-430352d3.js → useScreenSize-7c7dd78f.js} +2 -2
  226. package/build/esm/useTogetherAuthRequiredAction.js +9 -9
  227. package/build/esm/{utils-ea179b08.js → utils-61465473.js} +2 -2
  228. package/build/esm/{utils-fb94e9f6.js → utils-c44c3f5b.js} +2 -2
  229. package/build/esm/{utils-67be06c2.js → utils-f8a59939.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-497ec6b2.js → index-027d9cf5.js} +1 -1
  256. package/build/{index-f9784b40.js → index-03415644.js} +2 -2
  257. package/build/{index-e58bf46e.js → index-0570b1ef.js} +1 -1
  258. package/build/{index-81ef98b2.js → index-09c30d26.js} +20 -20
  259. package/build/{index-6615a001.js → index-09f6f9ec.js} +3 -3
  260. package/build/{index-f68e26d8.js → index-0f73a330.js} +16 -16
  261. package/build/{index-9634ea4f.js → index-1a1eb46d.js} +6 -6
  262. package/build/{index-3a0153d3.js → index-1b75104a.js} +13 -13
  263. package/build/{index-c16e2ee8.js → index-1e16a525.js} +5 -5
  264. package/build/{index-41ee6455.js → index-2164695d.js} +2 -2
  265. package/build/{index-bde06816.js → index-27ab0db5.js} +3 -3
  266. package/build/{index-0e6525e7.js → index-2b92a7f2.js} +14 -14
  267. package/build/{index-e5d592d5.js → index-334d8879.js} +10 -10
  268. package/build/{index-c06df9c4.js → index-3aba0ee4.js} +7 -7
  269. package/build/{index-c05d9540.js → index-3af4f0a4.js} +6 -6
  270. package/build/{index-eb89c888.js → index-3b148276.js} +18 -18
  271. package/build/{index-64aa1aeb.js → index-3fdce15c.js} +16 -16
  272. package/build/{index-978d92fe.js → index-442f30e6.js} +17 -17
  273. package/build/{index-6ab08269.js → index-4471d931.js} +1 -1
  274. package/build/{index-29a72caf.js → index-4887f1d2.js} +2 -2
  275. package/build/{index-ee10965f.js → index-4eca23e2.js} +1 -1
  276. package/build/{index-5212f979.js → index-52ac7db6.js} +3 -3
  277. package/build/{index-24d7aca9.js → index-5f72166c.js} +1 -1
  278. package/build/{index-584692b0.js → index-720362b6.js} +13 -13
  279. package/build/{index-e9910fe5.js → index-75323ad7.js} +2 -2
  280. package/build/{index-3bd6c540.js → index-7c12cb71.js} +2 -2
  281. package/build/{index-9fd2b61a.js → index-7cfb98fc.js} +1 -1
  282. package/build/{index-5aabea89.js → index-85b24adb.js} +17 -17
  283. package/build/{index-d54c4e5d.js → index-8e1dbca2.js} +24 -24
  284. package/build/{index-ef131396.js → index-91ce7046.js} +24 -24
  285. package/build/{index-d5d9e0cb.js → index-92a81125.js} +30 -30
  286. package/build/{index-9641b370.js → index-93d20ef3.js} +3 -3
  287. package/build/{index-e022fbae.js → index-9624a1f5.js} +2 -2
  288. package/build/{index-9b3ee0c9.js → index-9d23de66.js} +2 -2
  289. package/build/{index-1d301112.js → index-a0b8b752.js} +21 -21
  290. package/build/{index-3929abb8.js → index-a137f57d.js} +5 -5
  291. package/build/{index-34e1a4f5.js → index-a284492f.js} +16 -16
  292. package/build/{index-707b4bdd.js → index-a83bc735.js} +3 -1
  293. package/build/{index-0df597d2.js → index-a85b6c62.js} +2 -2
  294. package/build/{index-312e796b.js → index-aa53b3b1.js} +2 -2
  295. package/build/{index-bb4d3097.js → index-adacb710.js} +2 -2
  296. package/build/{index-81083d5f.js → index-b36f7e6a.js} +6 -6
  297. package/build/{index-6cbdc527.js → index-b434a94a.js} +6 -6
  298. package/build/{index-eed94829.js → index-b9c9b3f6.js} +5 -5
  299. package/build/{index-6d9830e2.js → index-bf221387.js} +13 -13
  300. package/build/{index-0e194d65.js → index-c1e510a4.js} +7 -7
  301. package/build/index-c4e0ff93.js +113 -0
  302. package/build/{index-d0f807a8.js → index-c6246d25.js} +178 -110
  303. package/build/{index-e0354896.js → index-cb55c26a.js} +32 -32
  304. package/build/{index-ca3c4b28.js → index-cc8eab4f.js} +17 -4
  305. package/build/{index-6f361eac.js → index-ce0c12ef.js} +4 -4
  306. package/build/{index-f9b61c9b.js → index-d6b61fb2.js} +16 -16
  307. package/build/{index-910f1fb4.js → index-e138e6ed.js} +2 -2
  308. package/build/{index-13389618.js → index-e3ad6c33.js} +15 -15
  309. package/build/{index-5f6e48a3.js → index-e5a8e680.js} +18 -18
  310. package/build/{index-0fec67ff.js → index-ed245754.js} +13 -13
  311. package/build/{index-945e1013.js → index-eee099c9.js} +2 -2
  312. package/build/{index-5bbb313e.js → index-f0d39dec.js} +3 -3
  313. package/build/{index-f9cac59f.js → index-f2304e1f.js} +18 -18
  314. package/build/{index-c27e38d1.js → index-f25a2fb7.js} +1 -1
  315. package/build/{index-32adc92e.js → index-f365926c.js} +3 -3
  316. package/build/{index-33fc7f6d.js → index-f6a80236.js} +1 -1
  317. package/build/{index-cd3aca6a.js → index-f757868e.js} +15 -15
  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-205489ec.js → labelSorting-4377a645.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-70a2864c.js → logoIcon-80988ba8.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-adb71a79.js → post-1f928c0b.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-6213ddb5.js → store-61c85bcc.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-7030f3b7.js → surveyThankyouCard-1d5838d8.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-058933d8.js → treePopoverMenu-51a48327.js} +19 -19
  379. package/build/{types-667459f0.js → types-368cc9e4.js} +2 -2
  380. package/build/types.js +2 -2
  381. package/build/{useCategory-19aa9f2f.js → useCategory-f43d5734.js} +5 -5
  382. package/build/{useHealthToolCache-37a8531b.js → useHealthToolCache-b3f4625c.js} +1 -1
  383. package/build/{useMantineLocale-5c98daa7.js → useMantineLocale-8e0f0db3.js} +6 -6
  384. package/build/{usePlacesAutocomplete-44958484.js → usePlacesAutocomplete-f514fcd0.js} +2 -1
  385. package/build/{useScreenSize-faa77170.js → useScreenSize-ccc634ca.js} +2 -2
  386. package/build/useTogetherAuthRequiredAction.js +9 -9
  387. package/build/{utils-f18fd00b.js → utils-2fdb578d.js} +3 -3
  388. package/build/{utils-18c6a7fe.js → utils-3dc7a4f2.js} +2 -2
  389. package/build/{utils-5888f65c.js → utils-9d5c44e7.js} +2 -2
  390. package/build/vaccination.js +21 -21
  391. package/package.json +1 -1
  392. /package/build/{BMI_BOYS.percentile.monthly-7d9042f0.js → BMI_BOYS.percentile.monthly-02911531.js} +0 -0
  393. /package/build/{BMI_BOYS.percentile.weekly-410e5b79.js → BMI_BOYS.percentile.weekly-597e945b.js} +0 -0
  394. /package/build/{BMI_BOYS.percentile.yearly-c5a0da4b.js → BMI_BOYS.percentile.yearly-ca7e61f3.js} +0 -0
  395. /package/build/{BMI_BOYS.zscore.monthly-5dc238bd.js → BMI_BOYS.zscore.monthly-e2770173.js} +0 -0
  396. /package/build/{BMI_BOYS.zscore.weekly-35a29288.js → BMI_BOYS.zscore.weekly-b65fb031.js} +0 -0
  397. /package/build/{BMI_BOYS.zscore.yearly-c86073e0.js → BMI_BOYS.zscore.yearly-7d09e7ee.js} +0 -0
  398. /package/build/{BMI_GIRLS.percentile.monthly-00bda635.js → BMI_GIRLS.percentile.monthly-913542f8.js} +0 -0
  399. /package/build/{BMI_GIRLS.percentile.weekly-7fbea096.js → BMI_GIRLS.percentile.weekly-f5055571.js} +0 -0
  400. /package/build/{BMI_GIRLS.percentile.yearly-550a16d4.js → BMI_GIRLS.percentile.yearly-0dc6142c.js} +0 -0
  401. /package/build/{BMI_GIRLS.zscore.monthly-fdf9366d.js → BMI_GIRLS.zscore.monthly-22c58cb4.js} +0 -0
  402. /package/build/{BMI_GIRLS.zscore.weekly-3a95ed4c.js → BMI_GIRLS.zscore.weekly-8face7ac.js} +0 -0
  403. /package/build/{BMI_GIRLS.zscore.yearly-a7617731.js → BMI_GIRLS.zscore.yearly-f4af356a.js} +0 -0
  404. /package/build/{ChevronDown-0a482dd5.js → ChevronDown-f09d8d57.js} +0 -0
  405. /package/build/{Close-1e95c268.js → Close-81263912.js} +0 -0
  406. /package/build/{Google-0ff92514.js → Google-9d4c8260.js} +0 -0
  407. /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-df67cf53.js → HEAD CIRCUM_BOYS.percentile.monthly-bbe6cac3.js} +0 -0
  408. /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-9f931043.js → HEAD CIRCUM_BOYS.percentile.weekly-316251f4.js} +0 -0
  409. /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-981e1043.js → HEAD CIRCUM_BOYS.percentile.yearly-cb4197ae.js} +0 -0
  410. /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-f6131024.js → HEAD CIRCUM_BOYS.zscore.monthly-4ad81dfb.js} +0 -0
  411. /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-995abcc6.js → HEAD CIRCUM_BOYS.zscore.weekly-31767820.js} +0 -0
  412. /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-8d3d99fd.js → HEAD CIRCUM_BOYS.zscore.yearly-ad0ec53a.js} +0 -0
  413. /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-b9d5d1ef.js → HEAD CIRCUM_GIRLS.percentile.monthly-f1eb451a.js} +0 -0
  414. /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-091ce217.js → HEAD CIRCUM_GIRLS.percentile.weekly-95e95c4f.js} +0 -0
  415. /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-12a70ce5.js → HEAD CIRCUM_GIRLS.percentile.yearly-63e41f07.js} +0 -0
  416. /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-84b2a06a.js → HEAD CIRCUM_GIRLS.zscore.monthly-35c89da5.js} +0 -0
  417. /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-3e8c6327.js → HEAD CIRCUM_GIRLS.zscore.weekly-202572af.js} +0 -0
  418. /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-9372bf05.js → HEAD CIRCUM_GIRLS.zscore.yearly-85f400e0.js} +0 -0
  419. /package/build/{HEIGHT_BOYS.percentile.monthly-db1f3d3e.js → HEIGHT_BOYS.percentile.monthly-b43a0e0f.js} +0 -0
  420. /package/build/{HEIGHT_BOYS.percentile.weekly-91d68257.js → HEIGHT_BOYS.percentile.weekly-597aee7e.js} +0 -0
  421. /package/build/{HEIGHT_BOYS.percentile.yearly-ee6b57e5.js → HEIGHT_BOYS.percentile.yearly-6f2813e1.js} +0 -0
  422. /package/build/{HEIGHT_BOYS.zscore.monthly-b4061091.js → HEIGHT_BOYS.zscore.monthly-506f6627.js} +0 -0
  423. /package/build/{HEIGHT_BOYS.zscore.weekly-2371b3a9.js → HEIGHT_BOYS.zscore.weekly-19f1ec85.js} +0 -0
  424. /package/build/{HEIGHT_BOYS.zscore.yearly-25a37206.js → HEIGHT_BOYS.zscore.yearly-ae5a5cbb.js} +0 -0
  425. /package/build/{HEIGHT_GIRLS.percentile.monthly-fe459469.js → HEIGHT_GIRLS.percentile.monthly-9c994ecc.js} +0 -0
  426. /package/build/{HEIGHT_GIRLS.percentile.weekly-173f7322.js → HEIGHT_GIRLS.percentile.weekly-4f2dff00.js} +0 -0
  427. /package/build/{HEIGHT_GIRLS.percentile.yearly-4a5faf55.js → HEIGHT_GIRLS.percentile.yearly-debbec37.js} +0 -0
  428. /package/build/{HEIGHT_GIRLS.zscore.monthly-5005e0b8.js → HEIGHT_GIRLS.zscore.monthly-8d6f0970.js} +0 -0
  429. /package/build/{HEIGHT_GIRLS.zscore.weekly-05cf96f4.js → HEIGHT_GIRLS.zscore.weekly-6c2c30b6.js} +0 -0
  430. /package/build/{HEIGHT_GIRLS.zscore.yearly-d9206087.js → HEIGHT_GIRLS.zscore.yearly-f65a514b.js} +0 -0
  431. /package/build/{Locale-b7055af5.js → Locale-1e065e34.js} +0 -0
  432. /package/build/{Visible-c4aaec8f.js → Visible-8685187f.js} +0 -0
  433. /package/build/{WEIGHT_BOYS.percentile.monthly-f5efc6c4.js → WEIGHT_BOYS.percentile.monthly-e7ee06a6.js} +0 -0
  434. /package/build/{WEIGHT_BOYS.percentile.weekly-484359cb.js → WEIGHT_BOYS.percentile.weekly-123009df.js} +0 -0
  435. /package/build/{WEIGHT_BOYS.percentile.yearly-3d33298f.js → WEIGHT_BOYS.percentile.yearly-a09ebb9b.js} +0 -0
  436. /package/build/{WEIGHT_BOYS.zscore.monthly-28171234.js → WEIGHT_BOYS.zscore.monthly-3e242d32.js} +0 -0
  437. /package/build/{WEIGHT_BOYS.zscore.weekly-d492ae85.js → WEIGHT_BOYS.zscore.weekly-97cc24bc.js} +0 -0
  438. /package/build/{WEIGHT_BOYS.zscore.yearly-f4469244.js → WEIGHT_BOYS.zscore.yearly-36566f1c.js} +0 -0
  439. /package/build/{WEIGHT_GIRLS.percentile.monthly-89cc5346.js → WEIGHT_GIRLS.percentile.monthly-fd4c7a74.js} +0 -0
  440. /package/build/{WEIGHT_GIRLS.percentile.weekly-1f2358b2.js → WEIGHT_GIRLS.percentile.weekly-668b3731.js} +0 -0
  441. /package/build/{WEIGHT_GIRLS.percentile.yearly-e623ca2a.js → WEIGHT_GIRLS.percentile.yearly-5d2e1adc.js} +0 -0
  442. /package/build/{WEIGHT_GIRLS.zscore.monthly-0240aa01.js → WEIGHT_GIRLS.zscore.monthly-624ae9d7.js} +0 -0
  443. /package/build/{WEIGHT_GIRLS.zscore.weekly-85691c84.js → WEIGHT_GIRLS.zscore.weekly-c058a915.js} +0 -0
  444. /package/build/{WEIGHT_GIRLS.zscore.yearly-da900c02.js → WEIGHT_GIRLS.zscore.yearly-3bd569b3.js} +0 -0
  445. /package/build/{animation-f42782de.js → animation-99bd29ad.js} +0 -0
  446. /package/build/{constants-ceadaec4.js → constants-08bbc729.js} +0 -0
  447. /package/build/{constants-30f55480.js → constants-e08dab3d.js} +0 -0
  448. /package/build/{constants-4e43d2b1.js → constants-f48bf2f1.js} +0 -0
  449. /package/build/{dataTransform-7fcc87c5.js → dataTransform-e6127b7e.js} +0 -0
  450. /package/build/{doctor-9b1ad233.js → doctor-3fbd02e8.js} +0 -0
  451. /package/build/esm/{BMI_BOYS.percentile.monthly-a4d2b45d.js → BMI_BOYS.percentile.monthly-cde59a74.js} +0 -0
  452. /package/build/esm/{BMI_BOYS.percentile.weekly-d8d76573.js → BMI_BOYS.percentile.weekly-bf9bedac.js} +0 -0
  453. /package/build/esm/{BMI_BOYS.percentile.yearly-96445a1c.js → BMI_BOYS.percentile.yearly-bfcb4799.js} +0 -0
  454. /package/build/esm/{BMI_BOYS.zscore.monthly-6a986692.js → BMI_BOYS.zscore.monthly-ce953cda.js} +0 -0
  455. /package/build/esm/{BMI_BOYS.zscore.weekly-75bb880c.js → BMI_BOYS.zscore.weekly-9e2ecf80.js} +0 -0
  456. /package/build/esm/{BMI_BOYS.zscore.yearly-b52316f6.js → BMI_BOYS.zscore.yearly-74edb48c.js} +0 -0
  457. /package/build/esm/{BMI_GIRLS.percentile.monthly-08b9b5ff.js → BMI_GIRLS.percentile.monthly-084d89b4.js} +0 -0
  458. /package/build/esm/{BMI_GIRLS.percentile.weekly-0a9a093b.js → BMI_GIRLS.percentile.weekly-0a610e9b.js} +0 -0
  459. /package/build/esm/{BMI_GIRLS.percentile.yearly-9aff7209.js → BMI_GIRLS.percentile.yearly-c91889c3.js} +0 -0
  460. /package/build/esm/{BMI_GIRLS.zscore.monthly-84a95012.js → BMI_GIRLS.zscore.monthly-6510f76d.js} +0 -0
  461. /package/build/esm/{BMI_GIRLS.zscore.weekly-f5c7eee7.js → BMI_GIRLS.zscore.weekly-e8130bee.js} +0 -0
  462. /package/build/esm/{BMI_GIRLS.zscore.yearly-2c956a54.js → BMI_GIRLS.zscore.yearly-48749be4.js} +0 -0
  463. /package/build/esm/{ChevronDown-9b12c932.js → ChevronDown-7e1d7be3.js} +0 -0
  464. /package/build/esm/{Close-fd14a82c.js → Close-eda8cb6b.js} +0 -0
  465. /package/build/esm/{Google-30f3ff28.js → Google-12c14ae6.js} +0 -0
  466. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-469b6124.js → HEAD CIRCUM_BOYS.percentile.monthly-e877078a.js} +0 -0
  467. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-1bac7b7a.js → HEAD CIRCUM_BOYS.percentile.weekly-4aa35668.js} +0 -0
  468. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-586c62f2.js → HEAD CIRCUM_BOYS.percentile.yearly-b7083b14.js} +0 -0
  469. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-5ccd18ee.js → HEAD CIRCUM_BOYS.zscore.monthly-58e37e42.js} +0 -0
  470. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-867e8bed.js → HEAD CIRCUM_BOYS.zscore.weekly-3fc837d7.js} +0 -0
  471. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-c6bf3e89.js → HEAD CIRCUM_BOYS.zscore.yearly-f4ae1f43.js} +0 -0
  472. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-dca3aed2.js → HEAD CIRCUM_GIRLS.percentile.monthly-b7026959.js} +0 -0
  473. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-eda15a31.js → HEAD CIRCUM_GIRLS.percentile.weekly-74347545.js} +0 -0
  474. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-e4133368.js → HEAD CIRCUM_GIRLS.percentile.yearly-720df95d.js} +0 -0
  475. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-73658d41.js → HEAD CIRCUM_GIRLS.zscore.monthly-0d1e58f3.js} +0 -0
  476. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-f7aa4af9.js → HEAD CIRCUM_GIRLS.zscore.weekly-2dabd4d2.js} +0 -0
  477. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-890ac2f2.js → HEAD CIRCUM_GIRLS.zscore.yearly-61207834.js} +0 -0
  478. /package/build/esm/{HEIGHT_BOYS.percentile.monthly-044337bc.js → HEIGHT_BOYS.percentile.monthly-4d3cf734.js} +0 -0
  479. /package/build/esm/{HEIGHT_BOYS.percentile.weekly-d8f64017.js → HEIGHT_BOYS.percentile.weekly-ab647b2f.js} +0 -0
  480. /package/build/esm/{HEIGHT_BOYS.percentile.yearly-46e9513e.js → HEIGHT_BOYS.percentile.yearly-10d3af20.js} +0 -0
  481. /package/build/esm/{HEIGHT_BOYS.zscore.monthly-defe22de.js → HEIGHT_BOYS.zscore.monthly-ccfd9a17.js} +0 -0
  482. /package/build/esm/{HEIGHT_BOYS.zscore.weekly-bee7e5ce.js → HEIGHT_BOYS.zscore.weekly-3ed442e3.js} +0 -0
  483. /package/build/esm/{HEIGHT_BOYS.zscore.yearly-3690d8b2.js → HEIGHT_BOYS.zscore.yearly-1ddc0ec5.js} +0 -0
  484. /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-dd18c54d.js → HEIGHT_GIRLS.percentile.monthly-0d34da48.js} +0 -0
  485. /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-0d851969.js → HEIGHT_GIRLS.percentile.weekly-7461c975.js} +0 -0
  486. /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-8c33bc7e.js → HEIGHT_GIRLS.percentile.yearly-74138c85.js} +0 -0
  487. /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-71cf53d7.js → HEIGHT_GIRLS.zscore.monthly-ba3eb555.js} +0 -0
  488. /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-5b44b062.js → HEIGHT_GIRLS.zscore.weekly-9c79b8b1.js} +0 -0
  489. /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-6ee6e53d.js → HEIGHT_GIRLS.zscore.yearly-6e082c06.js} +0 -0
  490. /package/build/esm/{Locale-f2acbe20.js → Locale-ea6fdb5d.js} +0 -0
  491. /package/build/esm/{Visible-00991779.js → Visible-da8c1ddd.js} +0 -0
  492. /package/build/esm/{WEIGHT_BOYS.percentile.monthly-f48fb01a.js → WEIGHT_BOYS.percentile.monthly-db00be6d.js} +0 -0
  493. /package/build/esm/{WEIGHT_BOYS.percentile.weekly-566c1575.js → WEIGHT_BOYS.percentile.weekly-3a76633f.js} +0 -0
  494. /package/build/esm/{WEIGHT_BOYS.percentile.yearly-441aed8e.js → WEIGHT_BOYS.percentile.yearly-366a6367.js} +0 -0
  495. /package/build/esm/{WEIGHT_BOYS.zscore.monthly-1666929a.js → WEIGHT_BOYS.zscore.monthly-6df5573b.js} +0 -0
  496. /package/build/esm/{WEIGHT_BOYS.zscore.weekly-8df9f7ed.js → WEIGHT_BOYS.zscore.weekly-55dd9fcc.js} +0 -0
  497. /package/build/esm/{WEIGHT_BOYS.zscore.yearly-cced9193.js → WEIGHT_BOYS.zscore.yearly-6f718b77.js} +0 -0
  498. /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-c254d14e.js → WEIGHT_GIRLS.percentile.monthly-dca1eef7.js} +0 -0
  499. /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-1bc650f4.js → WEIGHT_GIRLS.percentile.weekly-a6380333.js} +0 -0
  500. /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-ff0f90c4.js → WEIGHT_GIRLS.percentile.yearly-2ed67f29.js} +0 -0
  501. /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-e2a491bb.js → WEIGHT_GIRLS.zscore.monthly-ba4f1be0.js} +0 -0
  502. /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-bf416d66.js → WEIGHT_GIRLS.zscore.weekly-36cfc8ed.js} +0 -0
  503. /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-e36d7b7a.js → WEIGHT_GIRLS.zscore.yearly-3aa18fda.js} +0 -0
  504. /package/build/esm/{animation-5d8a5006.js → animation-277ec211.js} +0 -0
  505. /package/build/esm/{constants-066568cc.js → constants-25de28fa.js} +0 -0
  506. /package/build/esm/{constants-76a688b3.js → constants-358f3638.js} +0 -0
  507. /package/build/esm/{constants-bf0f5e5f.js → constants-8489438b.js} +0 -0
  508. /package/build/esm/{dataTransform-4bb32f26.js → dataTransform-d325133c.js} +0 -0
  509. /package/build/esm/{doctor-32f76ab5.js → doctor-97e9fadc.js} +0 -0
  510. /package/build/esm/{index-35e98df8.js → index-0909c509.js} +0 -0
  511. /package/build/esm/{index-2efa5c25.js → index-29e07496.js} +0 -0
  512. /package/build/esm/{index-089318ad.js → index-31826a7c.js} +0 -0
  513. /package/build/esm/{index-03c32a45.js → index-43a93c49.js} +0 -0
  514. /package/build/esm/{index-481ac1b5.js → index-491adeb6.js} +0 -0
  515. /package/build/esm/{index-33129b88.js → index-74a0b1f7.js} +0 -0
  516. /package/build/esm/{index-4cda9886.js → index-8dcf9467.js} +0 -0
  517. /package/build/esm/{index-db167f59.js → index-9802cb1c.js} +0 -0
  518. /package/build/esm/{index.styles-b69d7b05.js → index.styles-41f74461.js} +0 -0
  519. /package/build/esm/{localizeNumberFormat-02c8950b.js → localizeNumberFormat-df38f049.js} +0 -0
  520. /package/build/esm/{normalizeLink-b2c301bb.js → normalizeLink-74f0a811.js} +0 -0
  521. /package/build/esm/{other-7217ed28.js → other-04246228.js} +0 -0
  522. /package/build/esm/{paths-15ed3ee1.js → paths-aad80498.js} +0 -0
  523. /package/build/esm/{translationsContext-8653213c.js → translationsContext-3e2e9520.js} +0 -0
  524. /package/build/esm/{tslib.es6-d6634fe6.js → tslib.es6-74e511e5.js} +0 -0
  525. /package/build/esm/{types-4a6b4d1b.js → types-b62e3998.js} +0 -0
  526. /package/build/esm/{useIsInit-6cbb6fa8.js → useIsInit-752387a1.js} +0 -0
  527. /package/build/esm/{useOutsideClick-9aa6c6fa.js → useOutsideClick-de3022ff.js} +0 -0
  528. /package/build/esm/{useScrollbarSize-5e55de5b.js → useScrollbarSize-a0baa763.js} +0 -0
  529. /package/build/esm/{useUniqueId-296671f9.js → useUniqueId-46461d21.js} +0 -0
  530. /package/build/esm/{utils-caced094.js → utils-86244ba7.js} +0 -0
  531. /package/build/{index-8ad3bb22.js → index-0eb20162.js} +0 -0
  532. /package/build/{index-51cac109.js → index-80a6be79.js} +0 -0
  533. /package/build/{index-cd7edf3d.js → index-96e4d9d8.js} +0 -0
  534. /package/build/{index-d104e4c5.js → index-c4b42bc5.js} +0 -0
  535. /package/build/{index-d9a1511b.js → index-cbcae2ca.js} +0 -0
  536. /package/build/{index-7bfa5e7a.js → index-d2aa1303.js} +0 -0
  537. /package/build/{index-15c187f1.js → index-d6c5473c.js} +0 -0
  538. /package/build/{index-26c66b56.js → index-ef3d7e43.js} +0 -0
  539. /package/build/{index.styles-36302cf2.js → index.styles-c8bfc88a.js} +0 -0
  540. /package/build/{localizeNumberFormat-baec8832.js → localizeNumberFormat-8f2bc8be.js} +0 -0
  541. /package/build/{normalizeLink-7eb11558.js → normalizeLink-512d95f0.js} +0 -0
  542. /package/build/{other-80ad2956.js → other-b0296231.js} +0 -0
  543. /package/build/{paths-ce587035.js → paths-4e0a05d4.js} +0 -0
  544. /package/build/{translationsContext-4381b7b3.js → translationsContext-669b2597.js} +0 -0
  545. /package/build/{tslib.es6-662f296b.js → tslib.es6-09b8177f.js} +0 -0
  546. /package/build/{types-4f4c94cb.js → types-79a33b97.js} +0 -0
  547. /package/build/{useIsInit-da0fc0c2.js → useIsInit-32fa67bb.js} +0 -0
  548. /package/build/{useOutsideClick-3be65019.js → useOutsideClick-d1bc615f.js} +0 -0
  549. /package/build/{useScrollbarSize-62159aa7.js → useScrollbarSize-bd3e62e4.js} +0 -0
  550. /package/build/{useUniqueId-b8898ef5.js → useUniqueId-17449f5a.js} +0 -0
  551. /package/build/{utils-dd3e8bd3.js → utils-226fb693.js} +0 -0
@@ -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-74e511e5.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-8dcf9467.js';
5
+ import { u as useTranslations } from './index-667c32a0.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-80c66805.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-e901f471.js';
12
+ import './index-13ac8c47.js';
13
+ import './index-29e07496.js';
14
+ import './useMantineLocale-d3f0ec10.js';
15
+ import { T as Text } from './index-a45bba40.js';
16
+ import { B as Button } from './index-246a053e.js';
17
+ import './index.styles-41f74461.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-86244ba7.js';
20
+ import './other-04246228.js';
21
+ import './index-1d317a46.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-24fa332c.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-f8a59939.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-5e753a25.js';
26
+ import { M as MAX_IMAGE_UPLOADS, B as BEARER_TOKEN_COOKIE } from './constants-358f3638.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-033bf211.js';
28
+ import { C as CardAuthor, L as Loading$1 } from './index-7ecbd997.js';
29
+ import { S as StyledCreatePostDescription$1, R as RichTextEditor$1, I as IconLink } from './editor-208df683.js';
30
+ import { I as Input } from './index-2ccbdd1f.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-74735e6d.js';
35
+ import { C as CardLink } from './index-c141fd67.js';
36
+ import { B as BtnChoice } from './index-9b6f74f8.js';
37
+ import { L as LOCALE } from './Locale-ea6fdb5d.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-e7e39350.js';
40
+ import { B as Button$1 } from './index-19f88c7e.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-46461d21.js';
43
+ import { U as UserAvatar } from './index-2ed7ad8b.js';
44
+ import { P as PopoverMenu } from './index-1b06e628.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,44 +1,44 @@
1
- import { _ as __rest, a as __awaiter } from './tslib.es6-d6634fe6.js';
1
+ import { _ as __rest, a as __awaiter } from './tslib.es6-74e511e5.js';
2
2
  import React__default, { useState, useImperativeHandle, useRef, useEffect, useMemo, Fragment, useCallback, forwardRef, memo } from 'react';
3
- import { R as Radio } from './index-e69c3b32.js';
3
+ import { R as Radio } from './index-80c66805.js';
4
4
  import { Stack, Group, createStyles, getStylesRef, Box } from '@mantine/core';
5
5
  import '@mantine/dates';
6
- import { L as LOCALE_SPECS, F as FAVICONS } from './index-abfac3da.js';
7
- import './index-8d4ba262.js';
8
- import { C as CommonGAssets } from './index-2efa5c25.js';
9
- import './useMantineLocale-94a0b8bd.js';
10
- import { T as Text } from './index-7bf03303.js';
11
- import { B as Button$1 } from './index-a407c8a1.js';
12
- import './index.styles-b69d7b05.js';
13
- import './translationsContext-8653213c.js';
6
+ import { L as LOCALE_SPECS, F as FAVICONS } from './index-e901f471.js';
7
+ import './index-13ac8c47.js';
8
+ import { C as CommonGAssets } from './index-29e07496.js';
9
+ import './useMantineLocale-d3f0ec10.js';
10
+ import { T as Text } from './index-a45bba40.js';
11
+ import { B as Button$1 } from './index-246a053e.js';
12
+ import './index.styles-41f74461.js';
13
+ import './translationsContext-3e2e9520.js';
14
14
  import '@mantine/hooks';
15
- import { M as MediaQueries } from './utils-caced094.js';
16
- import './other-7217ed28.js';
17
- import './index-6efda9ca.js';
18
- import { i as isInternalLink } from './index-f51fcce2.js';
15
+ import { M as MediaQueries } from './utils-86244ba7.js';
16
+ import './other-04246228.js';
17
+ import './index-1d317a46.js';
18
+ import { i as isInternalLink } from './index-46fe3ecd.js';
19
19
  import styled from '@emotion/styled';
20
20
  import { theme } from './miscTheme.js';
21
- import { C as Checkbox, P as PureInput } from './index-acf0c257.js';
22
- import { L as Logo } from './index-2fac047a.js';
21
+ import { C as Checkbox, P as PureInput } from './index-f2c42d02.js';
22
+ import { L as Logo } from './index-982321d5.js';
23
23
  import throttle from 'lodash/throttle';
24
24
  import parse from 'html-react-parser';
25
25
  import { domainLocales } from './constantsDomainLocales.js';
26
26
  import { isProduction } from './constantsIsProduction.js';
27
27
  import { isBefore, startOfMonth, addMonths, format, subMonths, getDaysInMonth, isToday, isSameDay, isWithinInterval, isAfter, isPast } from 'date-fns';
28
- import { a as useOutsideClick } from './useOutsideClick-9aa6c6fa.js';
28
+ import { a as useOutsideClick } from './useOutsideClick-de3022ff.js';
29
29
  import enUS from 'date-fns/locale/en-US';
30
30
  import id from 'date-fns/locale/id';
31
31
  import vi from 'date-fns/locale/vi';
32
32
  import zhTW from 'date-fns/locale/zh-TW';
33
- import { B as Button } from './index-1b29aa3f.js';
34
- import { u as useScreenSize } from './useScreenSize-430352d3.js';
35
- import { u as useTranslations } from './index-0dca8a9c.js';
36
- import { D as Dropdown } from './index-4cda9886.js';
33
+ import { B as Button } from './index-19f88c7e.js';
34
+ import { u as useScreenSize } from './useScreenSize-7c7dd78f.js';
35
+ import { u as useTranslations } from './index-667c32a0.js';
36
+ import { D as Dropdown } from './index-8dcf9467.js';
37
37
  import { getSocialList } from './miscGetSocialList.js';
38
- import { I as Input } from './index-1ca0ac46.js';
39
- import { D as Drawer } from './index-7ad5454d.js';
38
+ import { I as Input } from './index-2ccbdd1f.js';
39
+ import { D as Drawer } from './index-946aa38b.js';
40
40
  import { v4 } from 'uuid';
41
- import { L as LOCALE } from './Locale-f2acbe20.js';
41
+ import { L as LOCALE } from './Locale-ea6fdb5d.js';
42
42
  import { ArrowRight } from '@hhgtech/icons/arrow';
43
43
  import { MultiStar, Question } from '@hhgtech/icons/other';
44
44
  import Lottie from 'lottie-light-react';
@@ -1,7 +1,7 @@
1
- import { _ as __rest } from './tslib.es6-d6634fe6.js';
1
+ import { _ as __rest } from './tslib.es6-74e511e5.js';
2
2
  import React__default from 'react';
3
3
  import { Modal as Modal$1 } from '@mantine/core';
4
- import { u as useStyles } from './index.styles-b69d7b05.js';
4
+ import { u as useStyles } from './index.styles-41f74461.js';
5
5
 
6
6
  const Modal = (_a) => {
7
7
  var { styles, classNames, transitionProps } = _a, rest = __rest(_a, ["styles", "classNames", "transitionProps"]);
@@ -1,11 +1,11 @@
1
1
  import React__default, { useRef, useEffect } from 'react';
2
2
  import { Portal } from '@mantine/core';
3
- import { t as toggleNoScroll } from './utils-caced094.js';
3
+ import { t as toggleNoScroll } from './utils-86244ba7.js';
4
4
  import { css } from '@emotion/react';
5
5
  import styled from '@emotion/styled';
6
6
  import { theme } from './miscTheme.js';
7
- import { s as slideInUp, e as slideOutDown, b as slideInLeft, f as slideOutLeft, c as slideInRight, g as slideOutRight, a as slideInDown, d as slideOutUp } from './animation-5d8a5006.js';
8
- import { T as Text } from './index-7bf03303.js';
7
+ import { s as slideInUp, e as slideOutDown, b as slideInLeft, f as slideOutLeft, c as slideInRight, g as slideOutRight, a as slideInDown, d as slideOutUp } from './animation-277ec211.js';
8
+ import { T as Text } from './index-a45bba40.js';
9
9
 
10
10
  const DURATION = '600ms';
11
11
  const generateStyleBasedOnPlacement = (placement, open) => {
@@ -1,8 +1,8 @@
1
1
  import React__default, { useState, useRef, useEffect } from 'react';
2
- import { u as useScrollbarSize } from './useScrollbarSize-5e55de5b.js';
2
+ import { u as useScrollbarSize } from './useScrollbarSize-a0baa763.js';
3
3
  import { createPortal } from 'react-dom';
4
4
  import styled from '@emotion/styled';
5
- import { M as MediaQueries } from './utils-caced094.js';
5
+ import { M as MediaQueries } from './utils-86244ba7.js';
6
6
  import { setDefaultClass } from './miscDefaultClassWrapper.js';
7
7
  import { theme } from './miscTheme.js';
8
8