@hhgtech/hhg-components 1.29.395 → 1.29.396-beta-1

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 (527) hide show
  1. package/build/{InputDate-fc12be26.js → InputDate-447dc7cd.js} +17 -7
  2. package/build/{LastPeriod-f79b5164.js → LastPeriod-b669b2f2.js} +1 -1
  3. package/build/{MobileBottomNavigationIcon-cd4ec4f2.js → MobileBottomNavigationIcon-b0886d86.js} +3 -3
  4. package/build/{Spinner-cb9e87ee.js → Spinner-3c8c27c3.js} +1 -1
  5. package/build/{WhatsApp-15bbd681.js → WhatsApp-1f79b73b.js} +1 -1
  6. package/build/adapters.js +19 -19
  7. package/build/atoms.js +54 -55
  8. package/build/babyGrowth.js +83 -83
  9. package/build/cache.js +2 -2
  10. package/build/care.js +17 -17
  11. package/build/careBookingSearchBar.js +14 -14
  12. package/build/careBookingSearchBarV2.js +15 -15
  13. package/build/components/atoms/drawerComponent/index.d.ts +7 -0
  14. package/build/components.js +146 -147
  15. package/build/{constants-d472f11c.js → constants-94270f7b.js} +1 -1
  16. package/build/constants.js +3 -3
  17. package/build/constantsDomainLocales.js +1 -1
  18. package/build/constantsRiskScreener.js +2 -2
  19. package/build/constantsSite.js +2 -2
  20. package/build/{core-e3d62143.js → core-52796312.js} +1 -1
  21. package/build/{dataTransform-a492e3be.js → dataTransform-8edb2946.js} +1 -1
  22. package/build/ecom.js +4 -4
  23. package/build/{editor-8ec0a4db.js → editor-4763e9d5.js} +11 -11
  24. package/build/embeddedHeathToolCards_babyGrowth.js +23 -23
  25. package/build/embeddedHeathToolCards_babyPoop.js +19 -19
  26. package/build/embeddedHeathToolCards_babyVaccine.js +22 -22
  27. package/build/embeddedHeathToolCards_bmi_bmi.js +25 -25
  28. package/build/embeddedHeathToolCards_bmrBmr.js +25 -25
  29. package/build/embeddedHeathToolCards_dueDate_dueDate.js +22 -22
  30. package/build/embeddedHeathToolCards_ovulation_ovulation.js +22 -22
  31. package/build/embeddedHeathToolCards_pwg_pwg.js +26 -26
  32. package/build/embeddedHeathToolCards_targetHeartRate.js +27 -27
  33. package/build/esm/{InputDate-602f65e7.js → InputDate-38aa8aa5.js} +17 -7
  34. package/build/esm/{LastPeriod-58eaee50.js → LastPeriod-64c834cd.js} +1 -1
  35. package/build/esm/{MobileBottomNavigationIcon-8ef484de.js → MobileBottomNavigationIcon-19d1e51e.js} +3 -3
  36. package/build/esm/{Spinner-79a88fe7.js → Spinner-76779b34.js} +1 -1
  37. package/build/esm/{WhatsApp-12d95fb8.js → WhatsApp-27635c21.js} +1 -1
  38. package/build/esm/adapters.js +19 -19
  39. package/build/esm/atoms.js +53 -54
  40. package/build/esm/babyGrowth.js +83 -83
  41. package/build/esm/cache.js +2 -2
  42. package/build/esm/care.js +17 -17
  43. package/build/esm/careBookingSearchBar.js +14 -14
  44. package/build/esm/careBookingSearchBarV2.js +15 -15
  45. package/build/esm/components/atoms/drawerComponent/index.d.ts +7 -0
  46. package/build/esm/components.js +102 -103
  47. package/build/esm/{constants-1e984837.js → constants-af7253a7.js} +1 -1
  48. package/build/esm/constants.js +3 -3
  49. package/build/esm/constantsDomainLocales.js +1 -1
  50. package/build/esm/constantsRiskScreener.js +2 -2
  51. package/build/esm/constantsSite.js +2 -2
  52. package/build/esm/{core-503d0e19.js → core-ac28b26c.js} +1 -1
  53. package/build/esm/{dataTransform-851fe21a.js → dataTransform-eb4d2fca.js} +1 -1
  54. package/build/esm/ecom.js +4 -4
  55. package/build/esm/{editor-dc662240.js → editor-d4d8b299.js} +11 -11
  56. package/build/esm/embeddedHeathToolCards_babyGrowth.js +23 -23
  57. package/build/esm/embeddedHeathToolCards_babyPoop.js +19 -19
  58. package/build/esm/embeddedHeathToolCards_babyVaccine.js +22 -22
  59. package/build/esm/embeddedHeathToolCards_bmi_bmi.js +25 -25
  60. package/build/esm/embeddedHeathToolCards_bmrBmr.js +25 -25
  61. package/build/esm/embeddedHeathToolCards_dueDate_dueDate.js +22 -22
  62. package/build/esm/embeddedHeathToolCards_ovulation_ovulation.js +22 -22
  63. package/build/esm/embeddedHeathToolCards_pwg_pwg.js +26 -26
  64. package/build/esm/embeddedHeathToolCards_targetHeartRate.js +27 -27
  65. package/build/esm/footer.js +21 -21
  66. package/build/esm/gAssets.js +2 -2
  67. package/build/esm/{healthTools-42f6cb06.js → healthTools-08296437.js} +1 -1
  68. package/build/esm/healthToolsCardWrapper.js +18 -18
  69. package/build/esm/healthToolsForm.js +33 -33
  70. package/build/esm/hooks.js +13 -13
  71. package/build/esm/i18n/translationKeys.d.ts +1 -1
  72. package/build/esm/i18n-values/en-PH.js +1 -0
  73. package/build/esm/i18n-values/hi-IN.js +1 -0
  74. package/build/esm/i18n-values/id-ID.js +1 -0
  75. package/build/esm/i18n-values/km-KH.js +1 -0
  76. package/build/esm/i18n-values/ms-MY.js +1 -0
  77. package/build/esm/i18n-values/my-MM.js +1 -0
  78. package/build/esm/i18n-values/th-TH.js +1 -0
  79. package/build/esm/i18n-values/tl-PH.js +1 -0
  80. package/build/esm/i18n-values/vi-VN.js +1 -0
  81. package/build/esm/i18n-values/vi-VN_MB.js +1 -0
  82. package/build/esm/i18n-values/zh-CN.js +1 -0
  83. package/build/esm/i18n-values/zh-TW.js +1 -0
  84. package/build/esm/i18n.js +2 -2
  85. package/build/esm/i18nV2.js +2 -2
  86. package/build/esm/{index-da28a165.js → index-01e1d0a9.js} +1 -1
  87. package/build/esm/{index-f1d3e579.js → index-03d20532.js} +17 -17
  88. package/build/esm/{index-1d1c153c.js → index-066de70e.js} +3 -3
  89. package/build/esm/{index-d26d4613.js → index-12a685a7.js} +31 -31
  90. package/build/esm/{index-15466f63.js → index-14bdf901.js} +16 -16
  91. package/build/esm/{index-a77b0610.js → index-170dc8e7.js} +18 -18
  92. package/build/esm/{index-c73a0c60.js → index-1ae8f23f.js} +7 -7
  93. package/build/esm/{index-62749f00.js → index-1b3289d5.js} +3 -3
  94. package/build/esm/{index-c807b0bb.js → index-1c55614d.js} +2 -2
  95. package/build/esm/{index-57001be3.js → index-1ec296c2.js} +1 -1
  96. package/build/esm/{index-5c13dc6e.js → index-26f70107.js} +16 -16
  97. package/build/esm/{index-af7a0b48.js → index-31abf014.js} +2 -2
  98. package/build/esm/{index-2ec8dc46.js → index-340347f6.js} +22 -22
  99. package/build/esm/{index-d722456d.js → index-3795e29d.js} +2 -2
  100. package/build/esm/{index-6a7dde31.js → index-37b1a285.js} +3 -3
  101. package/build/esm/{index-b74df050.js → index-41295bb6.js} +6 -6
  102. package/build/esm/{index-1ea52ac0.js → index-41463c1e.js} +17 -17
  103. package/build/esm/{index-7fef2002.js → index-4291bd60.js} +17 -17
  104. package/build/esm/{index-c14e1320.js → index-47602782.js} +6 -6
  105. package/build/esm/{index-f9473851.js → index-477fc6c1.js} +2 -2
  106. package/build/esm/{index-de4ba53a.js → index-4827124c.js} +6 -6
  107. package/build/esm/{index-c9060602.js → index-4c69e34c.js} +4 -4
  108. package/build/esm/{index-a6a2c6fb.js → index-5e843efa.js} +13 -13
  109. package/build/esm/{index-21607c99.js → index-601a29de.js} +25 -25
  110. package/build/esm/{index-837d93d2.js → index-60b3d6f6.js} +1 -1
  111. package/build/esm/{index-b4681e39.js → index-6552b816.js} +16 -16
  112. package/build/esm/{index-b131d036.js → index-65997623.js} +10 -10
  113. package/build/esm/{index-f8dbf8e4.js → index-7556bac7.js} +1 -1
  114. package/build/esm/{index-17634690.js → index-75ebf5fc.js} +15 -15
  115. package/build/esm/{index-78dddce6.js → index-771517c7.js} +13 -13
  116. package/build/esm/{index-a89ca14c.js → index-7aa26a94.js} +3 -3
  117. package/build/esm/{index-37da7797.js → index-7df71eb7.js} +3 -3
  118. package/build/esm/{index-238f0df7.js → index-7ee9cbcf.js} +120 -7
  119. package/build/esm/{index-6b1727a2.js → index-817bb162.js} +4 -4
  120. package/build/esm/{index-08f34ff2.js → index-87543c4f.js} +18 -18
  121. package/build/esm/{index-5c0e8412.js → index-8ebcc74b.js} +2 -2
  122. package/build/esm/{index-ba3fc512.js → index-904f67a1.js} +31 -31
  123. package/build/esm/{index-c00fe542.js → index-91884f56.js} +1 -1
  124. package/build/esm/{index-8184d2b2.js → index-974bf026.js} +2 -2
  125. package/build/esm/{index-6adac14f.js → index-97731978.js} +21 -21
  126. package/build/esm/{index-e032ebdc.js → index-9781543a.js} +1 -1
  127. package/build/esm/{index-f789dae3.js → index-9e6c3dfc.js} +2 -2
  128. package/build/esm/{index-304b48b8.js → index-a072ba50.js} +2 -2
  129. package/build/esm/{index-27e47866.js → index-a121832a.js} +17 -17
  130. package/build/esm/{index-8eed7b63.js → index-a5cf85c9.js} +2 -2
  131. package/build/esm/{index-ab281b8b.js → index-a7db238d.js} +24 -24
  132. package/build/esm/{index-a84d28d5.js → index-ba927603.js} +2 -2
  133. package/build/esm/{index-ec274641.js → index-bc4a90ac.js} +2 -2
  134. package/build/esm/{index-c3c35151.js → index-beb7dce4.js} +1 -1
  135. package/build/esm/{index-713619a6.js → index-c0402f6a.js} +2 -2
  136. package/build/esm/{index-2021b3c1.js → index-c6afd9b4.js} +13 -13
  137. package/build/esm/{index-8c190b12.js → index-ca3f766e.js} +8 -8
  138. package/build/esm/{index-77dab0fe.js → index-ca7f4b79.js} +5 -5
  139. package/build/esm/{index-966f3431.js → index-cada24de.js} +1 -1
  140. package/build/esm/{index-bc1a843d.js → index-d54d1f9d.js} +16 -16
  141. package/build/esm/{index-a497ef67.js → index-da9c2413.js} +231 -147
  142. package/build/esm/{index-ed1b642a.js → index-db1844f3.js} +11 -11
  143. package/build/esm/{index-8df3750e.js → index-e1a7a3bc.js} +7 -7
  144. package/build/esm/{index-a31be151.js → index-e207b990.js} +6 -6
  145. package/build/esm/{index-e745710b.js → index-e282043a.js} +1 -1
  146. package/build/esm/{index-b631b150.js → index-e5a3f29c.js} +3 -3
  147. package/build/esm/{index-694ed585.js → index-e5c38ad1.js} +13 -13
  148. package/build/esm/{index-0056050c.js → index-eb69a154.js} +2 -2
  149. package/build/esm/{index-ac5cb397.js → index-f21a7db0.js} +6 -6
  150. package/build/esm/index.js +118 -119
  151. package/build/esm/{labelSorting-038ca47e.js → labelSorting-3556a10e.js} +4 -4
  152. package/build/esm/lead/LeadGenForm/LeadGenEmpty.d.ts +8 -0
  153. package/build/esm/lead/LeadGenLightBoxB/LeadGenLightBoxB.styled.d.ts +262 -0
  154. package/build/esm/lead/icons/NoData.d.ts +3 -0
  155. package/build/esm/lead/icons/index.d.ts +5 -0
  156. package/build/esm/lead/index.d.ts +1 -0
  157. package/build/esm/lead.css +1 -1
  158. package/build/esm/lead.js +423 -130
  159. package/build/esm/{logoIcon-60510914.js → logoIcon-ad1cd6cf.js} +2 -2
  160. package/build/esm/mantine.js +25 -25
  161. package/build/esm/misc.js +17 -17
  162. package/build/esm/miscGetDynamicHealthTool.js +4 -4
  163. package/build/esm/miscGetSocialList.js +8 -8
  164. package/build/esm/miscScreenSizeContext.js +1 -1
  165. package/build/esm/mobileBottomNavigation.js +5 -5
  166. package/build/esm/mobileBottomNavigationIcon.js +5 -5
  167. package/build/esm/molecules.js +74 -74
  168. package/build/esm/moleculesArticleCard.js +6 -6
  169. package/build/esm/moleculesArticleCardV2.js +16 -16
  170. package/build/esm/navigation.js +46 -46
  171. package/build/esm/navigationLogoutPopup.js +9 -9
  172. package/build/esm/navigationProfileButton.js +23 -23
  173. package/build/esm/onboardingV2.js +29 -29
  174. package/build/esm/organisms.js +50 -50
  175. package/build/esm/{post-4cdb64fd.js → post-7808a8b6.js} +2 -2
  176. package/build/esm/profileNavigation.js +19 -19
  177. package/build/esm/progressBar.js +1 -1
  178. package/build/esm/pwg.js +22 -22
  179. package/build/esm/ssoV2/api/featureFlag.d.ts +2 -1
  180. package/build/esm/ssoV2.js +52 -40
  181. package/build/esm/{store-a147d34d.js → store-58173d70.js} +3 -3
  182. package/build/esm/subot.js +36 -36
  183. package/build/esm/surveyOrPremiumBanner.js +33 -33
  184. package/build/esm/surveyQuestionCard.js +10 -10
  185. package/build/esm/{surveyThankyouCard-d77f3101.js → surveyThankyouCard-948cecbe.js} +5 -5
  186. package/build/esm/together/components/molecules/createNewPostContentV2/index.styled.d.ts +7 -0
  187. package/build/esm/together/utils/index.d.ts +1 -0
  188. package/build/esm/together.js +56 -56
  189. package/build/esm/togetherApiUtils.js +4 -4
  190. package/build/esm/togetherAtoms.js +30 -30
  191. package/build/esm/togetherComponentGlobalContext.js +4 -4
  192. package/build/esm/togetherMolecules.js +51 -51
  193. package/build/esm/togetherMoleculesCardAuthor.js +28 -28
  194. package/build/esm/togetherMoleculesPostImagePreview.js +11 -11
  195. package/build/esm/togetherMoleculesProfileDetail.js +39 -39
  196. package/build/esm/togetherOrganisms.js +50 -50
  197. package/build/esm/togetherRichTextEditor.js +17 -17
  198. package/build/esm/togetherShareBox.js +10 -10
  199. package/build/esm/{translationsProvider-bb4a8191.js → translationsProvider-485381eb.js} +1 -1
  200. package/build/esm/{treePopoverMenu-3c09d18e.js → treePopoverMenu-d8da212f.js} +19 -19
  201. package/build/esm/{types-2ac9ccf9.js → types-4b4ad41e.js} +2 -2
  202. package/build/esm/types.js +2 -2
  203. package/build/esm/{useCategory-95d061fe.js → useCategory-900a5611.js} +5 -5
  204. package/build/esm/{useHealthToolCache-6ea42c9e.js → useHealthToolCache-d6340265.js} +1 -1
  205. package/build/esm/{useMantineLocale-738fc2b0.js → useMantineLocale-e39c9e93.js} +6 -6
  206. package/build/esm/{usePlacesAutocomplete-bff32c4f.js → usePlacesAutocomplete-886b32b6.js} +1 -1
  207. package/build/esm/{useScreenSize-e572cdeb.js → useScreenSize-7a9e9932.js} +2 -2
  208. package/build/esm/useTogetherAuthRequiredAction.js +10 -10
  209. package/build/esm/{utils-8ddecfa9.js → utils-6b557765.js} +2 -2
  210. package/build/esm/{utils-2139a37f.js → utils-8884c83c.js} +2 -2
  211. package/build/esm/{utils-71fab448.js → utils-e49471d4.js} +5 -5
  212. package/build/esm/{utils-c0714c25.js → utils-e693413b.js} +3 -3
  213. package/build/esm/vaccination.js +21 -21
  214. package/build/footer.js +21 -21
  215. package/build/gAssets.js +2 -2
  216. package/build/{healthTools-8cc86c2e.js → healthTools-80d85223.js} +1 -1
  217. package/build/healthToolsCardWrapper.js +18 -18
  218. package/build/healthToolsForm.js +33 -33
  219. package/build/hooks.js +13 -13
  220. package/build/i18n/translationKeys.d.ts +1 -1
  221. package/build/i18n-values/en-PH.js +1 -0
  222. package/build/i18n-values/hi-IN.js +1 -0
  223. package/build/i18n-values/id-ID.js +1 -0
  224. package/build/i18n-values/km-KH.js +1 -0
  225. package/build/i18n-values/ms-MY.js +1 -0
  226. package/build/i18n-values/my-MM.js +1 -0
  227. package/build/i18n-values/th-TH.js +1 -0
  228. package/build/i18n-values/tl-PH.js +1 -0
  229. package/build/i18n-values/vi-VN.js +1 -0
  230. package/build/i18n-values/vi-VN_MB.js +1 -0
  231. package/build/i18n-values/zh-CN.js +1 -0
  232. package/build/i18n-values/zh-TW.js +1 -0
  233. package/build/i18n.js +2 -2
  234. package/build/i18nV2.js +1 -1
  235. package/build/{index-8f5dfec3.js → index-046a13f8.js} +2 -2
  236. package/build/{index-8027d859.js → index-04eb198a.js} +7 -7
  237. package/build/{index-fc0eb3be.js → index-088c0ece.js} +16 -16
  238. package/build/{index-46e11d17.js → index-097e9aed.js} +1 -1
  239. package/build/{index-fd327f0c.js → index-09e3bbab.js} +2 -2
  240. package/build/{index-da80faa7.js → index-0a09bbda.js} +2 -2
  241. package/build/{index-65984000.js → index-0ab93f4d.js} +4 -4
  242. package/build/{index-e1b23425.js → index-0d806e92.js} +2 -2
  243. package/build/{index-dbb1bebb.js → index-12240ee2.js} +1 -1
  244. package/build/{index-2ed4f902.js → index-12e5b46c.js} +6 -6
  245. package/build/{index-1e7df97e.js → index-15114fee.js} +1 -1
  246. package/build/{index-3cc91040.js → index-15cedf01.js} +18 -18
  247. package/build/{index-eff2e9c9.js → index-28a3b72f.js} +2 -2
  248. package/build/{index-9b576850.js → index-2a195f87.js} +13 -13
  249. package/build/{index-77fdc39c.js → index-2f081b4b.js} +2 -2
  250. package/build/{index-c31a6ab5.js → index-30074a3e.js} +6 -6
  251. package/build/{index-4d08b61f.js → index-31927336.js} +7 -7
  252. package/build/{index-24d6833c.js → index-342a0b38.js} +13 -13
  253. package/build/{index-faaa418b.js → index-34415942.js} +3 -3
  254. package/build/{index-afa2b601.js → index-34af133d.js} +2 -2
  255. package/build/{index-3405d280.js → index-37ef6382.js} +8 -8
  256. package/build/{index-39f52073.js → index-3eb7bebf.js} +21 -21
  257. package/build/{index-1cf38580.js → index-3edb7da4.js} +13 -13
  258. package/build/{index-e6d09057.js → index-439cd504.js} +16 -16
  259. package/build/{index-7dcea0bb.js → index-4a6716fc.js} +10 -10
  260. package/build/{index-21308aef.js → index-4bf608c8.js} +3 -3
  261. package/build/{index-5cc0648e.js → index-5397aa1e.js} +17 -17
  262. package/build/{index-c4ecc316.js → index-5604896e.js} +2 -2
  263. package/build/{index-5a971e8e.js → index-5bfcf89e.js} +18 -18
  264. package/build/{index-efbe5dd2.js → index-5c21c1ec.js} +1 -1
  265. package/build/{index-e1251fad.js → index-5c94373c.js} +16 -16
  266. package/build/{index-9a8b67e3.js → index-5ddcdb33.js} +3 -3
  267. package/build/{index-52a845a4.js → index-5ec61cb2.js} +3 -3
  268. package/build/{index-7da7f107.js → index-61db7d50.js} +119 -5
  269. package/build/{index-526bc8b7.js → index-67651ff0.js} +24 -24
  270. package/build/{index-3463357d.js → index-6c70d190.js} +1 -1
  271. package/build/{index-a98012d1.js → index-7369042e.js} +2 -2
  272. package/build/{index-b8ef9b27.js → index-7689833d.js} +2 -2
  273. package/build/{index-53fb12f7.js → index-77294c40.js} +17 -17
  274. package/build/{index-9e846c33.js → index-77f51d25.js} +5 -5
  275. package/build/{index-3e30f43e.js → index-7a8ac16c.js} +2 -2
  276. package/build/{index-8cb21bf0.js → index-7b9aed51.js} +1 -1
  277. package/build/{index-7b39ca5a.js → index-80158559.js} +31 -31
  278. package/build/{index-65877f7f.js → index-80f5d3b1.js} +2 -2
  279. package/build/{index-2505a385.js → index-87700d02.js} +11 -11
  280. package/build/{index-e8bdf884.js → index-8d1cb634.js} +3 -3
  281. package/build/{index-265dbfc8.js → index-8e62f7dd.js} +13 -13
  282. package/build/{index-b0a12329.js → index-a02d458c.js} +4 -4
  283. package/build/{index-ecfed0d6.js → index-a3b36cc8.js} +6 -6
  284. package/build/{index-ae53eeda.js → index-a93141f5.js} +31 -31
  285. package/build/{index-037289ae.js → index-b3696306.js} +1 -1
  286. package/build/{index-dc4e5b57.js → index-b859547f.js} +1 -1
  287. package/build/{index-ae76aeb3.js → index-b8cb46dc.js} +16 -16
  288. package/build/{index-8cd605a4.js → index-c2ec63f6.js} +6 -6
  289. package/build/{index-50399c69.js → index-c76aa731.js} +15 -15
  290. package/build/{index-6f4e9376.js → index-c7740e91.js} +22 -22
  291. package/build/{index-2b633262.js → index-c8908416.js} +6 -6
  292. package/build/{index-90a33d63.js → index-cf2e893f.js} +2 -2
  293. package/build/{index-5aa6e32c.js → index-cf84f632.js} +230 -146
  294. package/build/{index-0535210b.js → index-db9a2a60.js} +1 -1
  295. package/build/{index-0fa88470.js → index-e203fc70.js} +17 -17
  296. package/build/{index-50b1eef5.js → index-e9c3b9d8.js} +3 -3
  297. package/build/{index-c4288d81.js → index-ea0f9f0f.js} +17 -17
  298. package/build/{index-5805b3ec.js → index-f7025957.js} +25 -25
  299. package/build/index.js +184 -185
  300. package/build/{labelSorting-c9059bb9.js → labelSorting-0440092f.js} +4 -4
  301. package/build/lead/LeadGenForm/LeadGenEmpty.d.ts +8 -0
  302. package/build/lead/LeadGenLightBoxB/LeadGenLightBoxB.styled.d.ts +262 -0
  303. package/build/lead/icons/NoData.d.ts +3 -0
  304. package/build/lead/icons/index.d.ts +5 -0
  305. package/build/lead/index.d.ts +1 -0
  306. package/build/lead.css +1 -1
  307. package/build/lead.js +422 -129
  308. package/build/{logoIcon-2f519cbc.js → logoIcon-d733eb9a.js} +2 -2
  309. package/build/mantine.js +22 -22
  310. package/build/misc.js +17 -17
  311. package/build/miscGetDynamicHealthTool.js +4 -4
  312. package/build/miscGetSocialList.js +8 -8
  313. package/build/miscScreenSizeContext.js +1 -1
  314. package/build/mobileBottomNavigation.js +5 -5
  315. package/build/mobileBottomNavigationIcon.js +5 -5
  316. package/build/molecules.js +74 -74
  317. package/build/moleculesArticleCard.js +6 -6
  318. package/build/moleculesArticleCardV2.js +16 -16
  319. package/build/navigation.js +46 -46
  320. package/build/navigationLogoutPopup.js +9 -9
  321. package/build/navigationProfileButton.js +23 -23
  322. package/build/onboardingV2.js +28 -28
  323. package/build/organisms.js +50 -50
  324. package/build/{post-a3532f10.js → post-1eacf940.js} +2 -2
  325. package/build/profileNavigation.js +19 -19
  326. package/build/progressBar.js +1 -1
  327. package/build/pwg.js +22 -22
  328. package/build/ssoV2/api/featureFlag.d.ts +2 -1
  329. package/build/ssoV2.js +50 -38
  330. package/build/{store-7039961b.js → store-882b3271.js} +3 -3
  331. package/build/subot.js +35 -35
  332. package/build/surveyOrPremiumBanner.js +33 -33
  333. package/build/surveyQuestionCard.js +10 -10
  334. package/build/{surveyThankyouCard-a517374c.js → surveyThankyouCard-b5513c9e.js} +5 -5
  335. package/build/together/components/molecules/createNewPostContentV2/index.styled.d.ts +7 -0
  336. package/build/together/utils/index.d.ts +1 -0
  337. package/build/together.js +56 -56
  338. package/build/togetherApiUtils.js +4 -4
  339. package/build/togetherAtoms.js +30 -30
  340. package/build/togetherComponentGlobalContext.js +4 -4
  341. package/build/togetherMolecules.js +51 -51
  342. package/build/togetherMoleculesCardAuthor.js +28 -28
  343. package/build/togetherMoleculesPostImagePreview.js +11 -11
  344. package/build/togetherMoleculesProfileDetail.js +39 -39
  345. package/build/togetherOrganisms.js +50 -50
  346. package/build/togetherRichTextEditor.js +17 -17
  347. package/build/togetherShareBox.js +10 -10
  348. package/build/{translationsProvider-f2a3687b.js → translationsProvider-7fb695da.js} +1 -1
  349. package/build/{treePopoverMenu-7054a35f.js → treePopoverMenu-7bec7948.js} +19 -19
  350. package/build/{types-16068ff8.js → types-4273f6a9.js} +2 -2
  351. package/build/types.js +2 -2
  352. package/build/{useCategory-5be6ce06.js → useCategory-44e5ba3d.js} +5 -5
  353. package/build/{useHealthToolCache-2a4c9939.js → useHealthToolCache-85d85f58.js} +1 -1
  354. package/build/{useMantineLocale-0181b664.js → useMantineLocale-2afb16de.js} +6 -6
  355. package/build/{usePlacesAutocomplete-e11e1d43.js → usePlacesAutocomplete-7fbff4ee.js} +1 -1
  356. package/build/{useScreenSize-5240f3ae.js → useScreenSize-e8bfe4eb.js} +2 -2
  357. package/build/useTogetherAuthRequiredAction.js +10 -10
  358. package/build/{utils-1057ad4d.js → utils-018d760d.js} +5 -5
  359. package/build/{utils-eaf83096.js → utils-0665996a.js} +3 -3
  360. package/build/{utils-9d2704c6.js → utils-4fc6fcfa.js} +2 -2
  361. package/build/{utils-c1e7ebc0.js → utils-9fbda441.js} +2 -2
  362. package/build/vaccination.js +21 -21
  363. package/package.json +1 -1
  364. package/build/esm/index-ae09d6db.js +0 -118
  365. package/build/index-f337b4a8.js +0 -125
  366. /package/build/{BMI_BOYS.percentile.monthly-5e7a7d21.js → BMI_BOYS.percentile.monthly-4fa248d0.js} +0 -0
  367. /package/build/{BMI_BOYS.percentile.weekly-abe9fb43.js → BMI_BOYS.percentile.weekly-65ffeadd.js} +0 -0
  368. /package/build/{BMI_BOYS.percentile.yearly-b84043f6.js → BMI_BOYS.percentile.yearly-daa65b2d.js} +0 -0
  369. /package/build/{BMI_BOYS.zscore.monthly-11bd8873.js → BMI_BOYS.zscore.monthly-10e0cb20.js} +0 -0
  370. /package/build/{BMI_BOYS.zscore.weekly-13579b6b.js → BMI_BOYS.zscore.weekly-5c3f9459.js} +0 -0
  371. /package/build/{BMI_BOYS.zscore.yearly-7ec2f26b.js → BMI_BOYS.zscore.yearly-220a676d.js} +0 -0
  372. /package/build/{BMI_GIRLS.percentile.monthly-2043a009.js → BMI_GIRLS.percentile.monthly-0c30b755.js} +0 -0
  373. /package/build/{BMI_GIRLS.percentile.weekly-10661219.js → BMI_GIRLS.percentile.weekly-6e2a1609.js} +0 -0
  374. /package/build/{BMI_GIRLS.percentile.yearly-f1ba055f.js → BMI_GIRLS.percentile.yearly-9f266f14.js} +0 -0
  375. /package/build/{BMI_GIRLS.zscore.monthly-818d02de.js → BMI_GIRLS.zscore.monthly-0e1ed6da.js} +0 -0
  376. /package/build/{BMI_GIRLS.zscore.weekly-ffa1becc.js → BMI_GIRLS.zscore.weekly-e9d54675.js} +0 -0
  377. /package/build/{BMI_GIRLS.zscore.yearly-248d1f00.js → BMI_GIRLS.zscore.yearly-9c73ef4e.js} +0 -0
  378. /package/build/{ChevronDown-a8f20798.js → ChevronDown-27c6d55e.js} +0 -0
  379. /package/build/{Close-3dee5eb4.js → Close-ba1a9b9c.js} +0 -0
  380. /package/build/{Google-d7b3fb6f.js → Google-3caf5175.js} +0 -0
  381. /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-659fdd75.js → HEAD CIRCUM_BOYS.percentile.monthly-d120236c.js} +0 -0
  382. /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-b857c60a.js → HEAD CIRCUM_BOYS.percentile.weekly-c07c821f.js} +0 -0
  383. /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-455204fc.js → HEAD CIRCUM_BOYS.percentile.yearly-80dbe9a2.js} +0 -0
  384. /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-20d49e4e.js → HEAD CIRCUM_BOYS.zscore.monthly-db2e872f.js} +0 -0
  385. /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-c71c1b67.js → HEAD CIRCUM_BOYS.zscore.weekly-80dc4532.js} +0 -0
  386. /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-9d400bdf.js → HEAD CIRCUM_BOYS.zscore.yearly-f0477d66.js} +0 -0
  387. /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-25107f5d.js → HEAD CIRCUM_GIRLS.percentile.monthly-97cd2be9.js} +0 -0
  388. /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-d22b4ba9.js → HEAD CIRCUM_GIRLS.percentile.weekly-76c22f7e.js} +0 -0
  389. /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-f81b47b8.js → HEAD CIRCUM_GIRLS.percentile.yearly-ca785dce.js} +0 -0
  390. /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-9dac5192.js → HEAD CIRCUM_GIRLS.zscore.monthly-4de0c675.js} +0 -0
  391. /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-2a4de654.js → HEAD CIRCUM_GIRLS.zscore.weekly-d4123bba.js} +0 -0
  392. /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-169cbe2e.js → HEAD CIRCUM_GIRLS.zscore.yearly-561f298d.js} +0 -0
  393. /package/build/{HEIGHT_BOYS.percentile.monthly-0dd808c8.js → HEIGHT_BOYS.percentile.monthly-52594d7f.js} +0 -0
  394. /package/build/{HEIGHT_BOYS.percentile.weekly-5093ce73.js → HEIGHT_BOYS.percentile.weekly-acacc233.js} +0 -0
  395. /package/build/{HEIGHT_BOYS.percentile.yearly-6bb333f9.js → HEIGHT_BOYS.percentile.yearly-e44128a6.js} +0 -0
  396. /package/build/{HEIGHT_BOYS.zscore.monthly-63892e13.js → HEIGHT_BOYS.zscore.monthly-c8a1ba6e.js} +0 -0
  397. /package/build/{HEIGHT_BOYS.zscore.weekly-5ffcba95.js → HEIGHT_BOYS.zscore.weekly-96141ced.js} +0 -0
  398. /package/build/{HEIGHT_BOYS.zscore.yearly-9c0c11d4.js → HEIGHT_BOYS.zscore.yearly-ad723790.js} +0 -0
  399. /package/build/{HEIGHT_GIRLS.percentile.monthly-53c268db.js → HEIGHT_GIRLS.percentile.monthly-624a473f.js} +0 -0
  400. /package/build/{HEIGHT_GIRLS.percentile.weekly-54c3cfc8.js → HEIGHT_GIRLS.percentile.weekly-2b335066.js} +0 -0
  401. /package/build/{HEIGHT_GIRLS.percentile.yearly-e6a80d29.js → HEIGHT_GIRLS.percentile.yearly-1c0cfc8f.js} +0 -0
  402. /package/build/{HEIGHT_GIRLS.zscore.monthly-64e1c783.js → HEIGHT_GIRLS.zscore.monthly-96866e91.js} +0 -0
  403. /package/build/{HEIGHT_GIRLS.zscore.weekly-c850968a.js → HEIGHT_GIRLS.zscore.weekly-d61776d3.js} +0 -0
  404. /package/build/{HEIGHT_GIRLS.zscore.yearly-36146fa2.js → HEIGHT_GIRLS.zscore.yearly-94b5a212.js} +0 -0
  405. /package/build/{Locale-88496264.js → Locale-9f7ef683.js} +0 -0
  406. /package/build/{Visible-5d07546b.js → Visible-9a1815bc.js} +0 -0
  407. /package/build/{WEIGHT_BOYS.percentile.monthly-ea3e2766.js → WEIGHT_BOYS.percentile.monthly-f1cc4e14.js} +0 -0
  408. /package/build/{WEIGHT_BOYS.percentile.weekly-a9a02d1f.js → WEIGHT_BOYS.percentile.weekly-24069e9b.js} +0 -0
  409. /package/build/{WEIGHT_BOYS.percentile.yearly-a748d552.js → WEIGHT_BOYS.percentile.yearly-009de7b7.js} +0 -0
  410. /package/build/{WEIGHT_BOYS.zscore.monthly-f85ca094.js → WEIGHT_BOYS.zscore.monthly-9a747d4c.js} +0 -0
  411. /package/build/{WEIGHT_BOYS.zscore.weekly-5c8b4958.js → WEIGHT_BOYS.zscore.weekly-a4893fa5.js} +0 -0
  412. /package/build/{WEIGHT_BOYS.zscore.yearly-ff5f37bb.js → WEIGHT_BOYS.zscore.yearly-8df3960e.js} +0 -0
  413. /package/build/{WEIGHT_GIRLS.percentile.monthly-6b44cdbf.js → WEIGHT_GIRLS.percentile.monthly-bdbff1a9.js} +0 -0
  414. /package/build/{WEIGHT_GIRLS.percentile.weekly-db014a3a.js → WEIGHT_GIRLS.percentile.weekly-729ead49.js} +0 -0
  415. /package/build/{WEIGHT_GIRLS.percentile.yearly-28d618d0.js → WEIGHT_GIRLS.percentile.yearly-b4ae0518.js} +0 -0
  416. /package/build/{WEIGHT_GIRLS.zscore.monthly-a6572603.js → WEIGHT_GIRLS.zscore.monthly-66a63658.js} +0 -0
  417. /package/build/{WEIGHT_GIRLS.zscore.weekly-6a50107a.js → WEIGHT_GIRLS.zscore.weekly-1fb58f46.js} +0 -0
  418. /package/build/{WEIGHT_GIRLS.zscore.yearly-d3b1b039.js → WEIGHT_GIRLS.zscore.yearly-a9f50e8f.js} +0 -0
  419. /package/build/{animation-70de288d.js → animation-cbd11a76.js} +0 -0
  420. /package/build/{constants-a52d8bc7.js → constants-aac9089e.js} +0 -0
  421. /package/build/{constants-fd080c68.js → constants-ceaca792.js} +0 -0
  422. /package/build/{constants-2a1dedfc.js → constants-d0de8862.js} +0 -0
  423. /package/build/{dataTransform-60ff96e1.js → dataTransform-61c36720.js} +0 -0
  424. /package/build/esm/{BMI_BOYS.percentile.monthly-f868265e.js → BMI_BOYS.percentile.monthly-ced4675f.js} +0 -0
  425. /package/build/esm/{BMI_BOYS.percentile.weekly-70165c6e.js → BMI_BOYS.percentile.weekly-769aff00.js} +0 -0
  426. /package/build/esm/{BMI_BOYS.percentile.yearly-ea04f4ef.js → BMI_BOYS.percentile.yearly-312eedab.js} +0 -0
  427. /package/build/esm/{BMI_BOYS.zscore.monthly-c37b9ec4.js → BMI_BOYS.zscore.monthly-4361b3a3.js} +0 -0
  428. /package/build/esm/{BMI_BOYS.zscore.weekly-290b30dd.js → BMI_BOYS.zscore.weekly-700675ab.js} +0 -0
  429. /package/build/esm/{BMI_BOYS.zscore.yearly-28119ee2.js → BMI_BOYS.zscore.yearly-d81f81aa.js} +0 -0
  430. /package/build/esm/{BMI_GIRLS.percentile.monthly-20315b0a.js → BMI_GIRLS.percentile.monthly-bbf429f6.js} +0 -0
  431. /package/build/esm/{BMI_GIRLS.percentile.weekly-69bbfd7b.js → BMI_GIRLS.percentile.weekly-4aada2ef.js} +0 -0
  432. /package/build/esm/{BMI_GIRLS.percentile.yearly-68aa4e79.js → BMI_GIRLS.percentile.yearly-dfc44a8b.js} +0 -0
  433. /package/build/esm/{BMI_GIRLS.zscore.monthly-53760c29.js → BMI_GIRLS.zscore.monthly-65522d7d.js} +0 -0
  434. /package/build/esm/{BMI_GIRLS.zscore.weekly-05cc67da.js → BMI_GIRLS.zscore.weekly-5a3686ab.js} +0 -0
  435. /package/build/esm/{BMI_GIRLS.zscore.yearly-5e31f5a5.js → BMI_GIRLS.zscore.yearly-57831f02.js} +0 -0
  436. /package/build/esm/{ChevronDown-f2b7c27e.js → ChevronDown-5be73e0e.js} +0 -0
  437. /package/build/esm/{Close-7a83967c.js → Close-038cfb22.js} +0 -0
  438. /package/build/esm/{Google-99e06df8.js → Google-f37a28bc.js} +0 -0
  439. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-55f8f39f.js → HEAD CIRCUM_BOYS.percentile.monthly-34798cb2.js} +0 -0
  440. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-6343de83.js → HEAD CIRCUM_BOYS.percentile.weekly-ff21afc9.js} +0 -0
  441. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-322bf824.js → HEAD CIRCUM_BOYS.percentile.yearly-88ce1d13.js} +0 -0
  442. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-d6e472c2.js → HEAD CIRCUM_BOYS.zscore.monthly-2ec9e22b.js} +0 -0
  443. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-c8166f4f.js → HEAD CIRCUM_BOYS.zscore.weekly-69a89b10.js} +0 -0
  444. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-c5bf924e.js → HEAD CIRCUM_BOYS.zscore.yearly-bef239d4.js} +0 -0
  445. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-b987eb52.js → HEAD CIRCUM_GIRLS.percentile.monthly-92b849d7.js} +0 -0
  446. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-1dfcdad2.js → HEAD CIRCUM_GIRLS.percentile.weekly-7ebfb96e.js} +0 -0
  447. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-baab7647.js → HEAD CIRCUM_GIRLS.percentile.yearly-abc53001.js} +0 -0
  448. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-354f642c.js → HEAD CIRCUM_GIRLS.zscore.monthly-1c5d0dfc.js} +0 -0
  449. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-f1bf5aad.js → HEAD CIRCUM_GIRLS.zscore.weekly-0a9b2604.js} +0 -0
  450. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-f8413045.js → HEAD CIRCUM_GIRLS.zscore.yearly-809f3316.js} +0 -0
  451. /package/build/esm/{HEIGHT_BOYS.percentile.monthly-89325647.js → HEIGHT_BOYS.percentile.monthly-b4b82e73.js} +0 -0
  452. /package/build/esm/{HEIGHT_BOYS.percentile.weekly-aaab57cb.js → HEIGHT_BOYS.percentile.weekly-7d74e905.js} +0 -0
  453. /package/build/esm/{HEIGHT_BOYS.percentile.yearly-e177183d.js → HEIGHT_BOYS.percentile.yearly-a7b4f65a.js} +0 -0
  454. /package/build/esm/{HEIGHT_BOYS.zscore.monthly-a78c2e2a.js → HEIGHT_BOYS.zscore.monthly-e8b26ffd.js} +0 -0
  455. /package/build/esm/{HEIGHT_BOYS.zscore.weekly-b68e6b79.js → HEIGHT_BOYS.zscore.weekly-1b6268d1.js} +0 -0
  456. /package/build/esm/{HEIGHT_BOYS.zscore.yearly-31c6712a.js → HEIGHT_BOYS.zscore.yearly-24a0f6ab.js} +0 -0
  457. /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-a6feb85a.js → HEIGHT_GIRLS.percentile.monthly-02550fc7.js} +0 -0
  458. /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-d24f3dd1.js → HEIGHT_GIRLS.percentile.weekly-57485981.js} +0 -0
  459. /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-9e60e51c.js → HEIGHT_GIRLS.percentile.yearly-22106307.js} +0 -0
  460. /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-1cd29116.js → HEIGHT_GIRLS.zscore.monthly-1ef8d38a.js} +0 -0
  461. /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-a95b1607.js → HEIGHT_GIRLS.zscore.weekly-913273db.js} +0 -0
  462. /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-d1ee58dc.js → HEIGHT_GIRLS.zscore.yearly-c85db5e8.js} +0 -0
  463. /package/build/esm/{Locale-e37edea6.js → Locale-881d8700.js} +0 -0
  464. /package/build/esm/{Visible-675fa92b.js → Visible-f567a01d.js} +0 -0
  465. /package/build/esm/{WEIGHT_BOYS.percentile.monthly-abc23c30.js → WEIGHT_BOYS.percentile.monthly-45cb3c30.js} +0 -0
  466. /package/build/esm/{WEIGHT_BOYS.percentile.weekly-6c756b20.js → WEIGHT_BOYS.percentile.weekly-89af785a.js} +0 -0
  467. /package/build/esm/{WEIGHT_BOYS.percentile.yearly-3e772832.js → WEIGHT_BOYS.percentile.yearly-728f15c2.js} +0 -0
  468. /package/build/esm/{WEIGHT_BOYS.zscore.monthly-01cd4a9e.js → WEIGHT_BOYS.zscore.monthly-7d96ca88.js} +0 -0
  469. /package/build/esm/{WEIGHT_BOYS.zscore.weekly-da6a708e.js → WEIGHT_BOYS.zscore.weekly-4029b5db.js} +0 -0
  470. /package/build/esm/{WEIGHT_BOYS.zscore.yearly-e15e6eed.js → WEIGHT_BOYS.zscore.yearly-ee6e4fa2.js} +0 -0
  471. /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-3d01ae32.js → WEIGHT_GIRLS.percentile.monthly-a1d3e572.js} +0 -0
  472. /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-558bddbf.js → WEIGHT_GIRLS.percentile.weekly-ce9618a1.js} +0 -0
  473. /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-176576c3.js → WEIGHT_GIRLS.percentile.yearly-4b99cecf.js} +0 -0
  474. /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-f95a3ce4.js → WEIGHT_GIRLS.zscore.monthly-ed4b6db7.js} +0 -0
  475. /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-668444ba.js → WEIGHT_GIRLS.zscore.weekly-bb4e7218.js} +0 -0
  476. /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-218eb559.js → WEIGHT_GIRLS.zscore.yearly-b0fc1844.js} +0 -0
  477. /package/build/esm/{animation-365cf7d0.js → animation-7b426494.js} +0 -0
  478. /package/build/esm/{constants-c6cbd6b8.js → constants-1a1f3a6b.js} +0 -0
  479. /package/build/esm/{constants-4a3e6669.js → constants-5d4b6d6f.js} +0 -0
  480. /package/build/esm/{constants-5b713e5a.js → constants-66bc01b6.js} +0 -0
  481. /package/build/esm/{dataTransform-72d9c084.js → dataTransform-db920048.js} +0 -0
  482. /package/build/esm/{index-18c6be13.js → index-1e4e6053.js} +0 -0
  483. /package/build/esm/{index-a225ce93.js → index-3c7bf79d.js} +0 -0
  484. /package/build/esm/{index-311edc1b.js → index-452805e3.js} +0 -0
  485. /package/build/esm/{index-1850d594.js → index-4a6e094a.js} +0 -0
  486. /package/build/esm/{index-e41e9e9c.js → index-53ff598e.js} +0 -0
  487. /package/build/esm/{index-2bf5f78a.js → index-8b5d08dc.js} +0 -0
  488. /package/build/esm/{index-be290ad5.js → index-98e994f0.js} +0 -0
  489. /package/build/esm/{index-2ce468ee.js → index-d4a744fe.js} +0 -0
  490. /package/build/esm/{index.styles-2ae2bbf8.js → index.styles-3e9b4ae2.js} +0 -0
  491. /package/build/esm/lead/layouts/{ emptyIcon.d.ts → emptyIcon.d.ts} +0 -0
  492. /package/build/esm/{localizeNumberFormat-d59db151.js → localizeNumberFormat-291de7da.js} +0 -0
  493. /package/build/esm/{normalizeLink-dc941d98.js → normalizeLink-faf74af9.js} +0 -0
  494. /package/build/esm/{number-3dbd5a3f.js → number-f8d7cbf0.js} +0 -0
  495. /package/build/esm/{other-cef0261a.js → other-80ce14bc.js} +0 -0
  496. /package/build/esm/{paths-2bbcf72d.js → paths-d1b500bb.js} +0 -0
  497. /package/build/esm/{translationsContext-f94ca99c.js → translationsContext-6eda2918.js} +0 -0
  498. /package/build/esm/{tslib.es6-b97b9ccd.js → tslib.es6-8575ebaf.js} +0 -0
  499. /package/build/esm/{types-cb6a987c.js → types-0edeaaf8.js} +0 -0
  500. /package/build/esm/{useIsInit-2050867e.js → useIsInit-b4ff9a5e.js} +0 -0
  501. /package/build/esm/{useOutsideClick-4b5e00d9.js → useOutsideClick-69fc4e34.js} +0 -0
  502. /package/build/esm/{useScrollbarSize-2d07896b.js → useScrollbarSize-207bd880.js} +0 -0
  503. /package/build/esm/{useUniqueId-0499a705.js → useUniqueId-07b6393f.js} +0 -0
  504. /package/build/esm/{utils-1a4cbdae.js → utils-09d00ae2.js} +0 -0
  505. /package/build/{index-533f3d32.js → index-073fb815.js} +0 -0
  506. /package/build/{index-f1064487.js → index-253925f6.js} +0 -0
  507. /package/build/{index-c4a9e670.js → index-41d0833c.js} +0 -0
  508. /package/build/{index-f65dc62b.js → index-6015b933.js} +0 -0
  509. /package/build/{index-fd7ba516.js → index-6ba2d74e.js} +0 -0
  510. /package/build/{index-ae2a1c0e.js → index-74240327.js} +0 -0
  511. /package/build/{index-079d5fc4.js → index-c7480bb6.js} +0 -0
  512. /package/build/{index-93e10656.js → index-cc903c0f.js} +0 -0
  513. /package/build/{index.styles-7e0b347b.js → index.styles-117def5a.js} +0 -0
  514. /package/build/lead/layouts/{ emptyIcon.d.ts → emptyIcon.d.ts} +0 -0
  515. /package/build/{localizeNumberFormat-32defeda.js → localizeNumberFormat-afc60897.js} +0 -0
  516. /package/build/{normalizeLink-4f6bff54.js → normalizeLink-ec1d30ea.js} +0 -0
  517. /package/build/{number-a3af3e32.js → number-647a7bfd.js} +0 -0
  518. /package/build/{other-c84abbc7.js → other-c7a2b70c.js} +0 -0
  519. /package/build/{paths-6cad97fb.js → paths-34e6d704.js} +0 -0
  520. /package/build/{translationsContext-778e8e71.js → translationsContext-dab34f37.js} +0 -0
  521. /package/build/{tslib.es6-7b54318f.js → tslib.es6-feb576c4.js} +0 -0
  522. /package/build/{types-1897ec38.js → types-3d9f062f.js} +0 -0
  523. /package/build/{useIsInit-291cefb0.js → useIsInit-fda70e90.js} +0 -0
  524. /package/build/{useOutsideClick-34c2ff7b.js → useOutsideClick-4e1663f4.js} +0 -0
  525. /package/build/{useScrollbarSize-1f0e2534.js → useScrollbarSize-dec928de.js} +0 -0
  526. /package/build/{useUniqueId-6ebe2cda.js → useUniqueId-61f4aa0e.js} +0 -0
  527. /package/build/{utils-38a21716.js → utils-76c6d95e.js} +0 -0
@@ -1,48 +1,48 @@
1
- import { a as __awaiter, _ as __rest } from './tslib.es6-b97b9ccd.js';
1
+ import { a as __awaiter, _ as __rest } from './tslib.es6-8575ebaf.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-1850d594.js';
5
- import { u as useTranslations } from './index-f8dbf8e4.js';
4
+ import { D as Dropdown } from './index-4a6e094a.js';
5
+ import { u as useTranslations } from './index-7556bac7.js';
6
6
  import innertext from 'innertext';
7
7
  import { theme } from './miscTheme.js';
8
- import { I as Input$1 } from './index-ed1b642a.js';
9
- import { useMantineTheme, Switch, Popover } from '@mantine/core';
8
+ import { I as Input$1 } from './index-db1844f3.js';
9
+ import { useMantineTheme, SegmentedControl, Popover } from '@mantine/core';
10
10
  import '@mantine/dates';
11
- import './index-d722456d.js';
12
- import './index-57001be3.js';
13
- import './index-2bf5f78a.js';
14
- import './useMantineLocale-738fc2b0.js';
15
- import { T as Text } from './index-5c0e8412.js';
16
- import { B as Button } from './index-966f3431.js';
17
- import './index.styles-2ae2bbf8.js';
11
+ import './index-3795e29d.js';
12
+ import './index-1ec296c2.js';
13
+ import './index-8b5d08dc.js';
14
+ import './useMantineLocale-e39c9e93.js';
15
+ import { T as Text } from './index-8ebcc74b.js';
16
+ import { B as Button } from './index-cada24de.js';
17
+ import './index.styles-3e9b4ae2.js';
18
18
  import '@mantine/hooks';
19
- import { M as MediaQueries } from './utils-1a4cbdae.js';
20
- import './other-cef0261a.js';
21
- import './index-6a7dde31.js';
22
- import { u as useImagePicker, a as PopupFrame, c as IconCloseCircle, g as getDefaultFailNoti, d as getPostFormData, e as editPost, f as createPost } from './index-27e47866.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-c0714c25.js';
19
+ import { M as MediaQueries } from './utils-09d00ae2.js';
20
+ import './other-80ce14bc.js';
21
+ import './index-37b1a285.js';
22
+ import { u as useImagePicker, a as PopupFrame, c as IconCloseCircle, g as getDefaultFailNoti, d as getPostFormData, e as editPost, f as createPost } from './index-a121832a.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-e693413b.js';
24
24
  import styled from '@emotion/styled';
25
- import { b as formatPost, a as formatCommunity, c as formatTopic } from './dataTransform-851fe21a.js';
26
- import { M as MAX_IMAGE_UPLOADS, B as BEARER_TOKEN_COOKIE } from './constants-5b713e5a.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-4cdb64fd.js';
28
- import { C as CardAuthor } from './index-bc1a843d.js';
29
- import { S as StyledCreatePostDescription$1, R as RichTextEditor$1, I as IconLink } from './editor-dc662240.js';
30
- import { I as Input } from './index-0056050c.js';
25
+ import { b as formatPost, a as formatCommunity, c as formatTopic } from './dataTransform-eb4d2fca.js';
26
+ import { M as MAX_IMAGE_UPLOADS, B as BEARER_TOKEN_COOKIE } from './constants-66bc01b6.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-7808a8b6.js';
28
+ import { C as CardAuthor } from './index-d54d1f9d.js';
29
+ import { S as StyledCreatePostDescription$1, R as RichTextEditor$1, I as IconLink } from './editor-d4d8b299.js';
30
+ import { I as Input } from './index-eb69a154.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-713619a6.js';
35
- import { C as CardLink } from './index-77dab0fe.js';
36
- import { B as BtnChoice } from './index-837d93d2.js';
37
- import { L as LOCALE } from './Locale-e37edea6.js';
34
+ import { L as Loading } from './index-c0402f6a.js';
35
+ import { C as CardLink } from './index-ca7f4b79.js';
36
+ import { B as BtnChoice } from './index-60b3d6f6.js';
37
+ import { L as LOCALE } from './Locale-881d8700.js';
38
38
  import * as ReactDOM from 'react-dom';
39
- import { L as Loading$1 } from './index-304b48b8.js';
40
- import { b as IconArrowLeft } from './index-a31be151.js';
41
- import { B as Button$1 } from './index-f9473851.js';
39
+ import { L as Loading$1 } from './index-a072ba50.js';
40
+ import { b as IconArrowLeft } from './index-e207b990.js';
41
+ import { B as Button$1 } from './index-477fc6c1.js';
42
42
  import { getCookie } from './miscCookieHelper.js';
43
- import { a as useUniqueId } from './useUniqueId-0499a705.js';
44
- import { U as UserAvatar } from './index-af7a0b48.js';
45
- import { P as PopoverMenu } from './index-ec274641.js';
43
+ import { a as useUniqueId } from './useUniqueId-07b6393f.js';
44
+ import { U as UserAvatar } from './index-31abf014.js';
45
+ import { P as PopoverMenu } from './index-bc4a90ac.js';
46
46
  import { Close, Check } from '@hhgtech/icons/core';
47
47
 
48
48
  const StyledCreateNewPost$1 = styled.div `
@@ -1358,6 +1358,11 @@ const CreateNewPostContent = ({ className, style, onPostCreatedEdited, onClose,
1358
1358
  }), disabled: !isReadyToSubmit, loading: isSubmitting }, t('createPost.popup.submit'))))));
1359
1359
  };
1360
1360
 
1361
+ function toBoolean(str) {
1362
+ const strFormat = str.toLowerCase();
1363
+ return strFormat === 'true' || strFormat === '1' || strFormat === 'yes';
1364
+ }
1365
+
1361
1366
  const StyleContainer$2 = styled.div ``;
1362
1367
  const StyleContentWrapper$1 = styled.div `
1363
1368
  display: flex;
@@ -3025,8 +3030,7 @@ const StyledIsQuestion = styled.div `
3025
3030
  width: 100%;
3026
3031
  align-items: center;
3027
3032
  justify-content: space-between;
3028
- padding: 12px;
3029
- border-radius: 0 0 8px 8px;
3033
+ border-radius: 8px;
3030
3034
  background: ${theme.colors.neutral50};
3031
3035
  gap: 12px;
3032
3036
 
@@ -3221,10 +3225,13 @@ const StyleSessionRow = styled.div `
3221
3225
  }
3222
3226
  `;
3223
3227
  const StyledIsQuestionWrapper = styled.div `
3224
- padding: 8px 8px;
3225
- border: 1px solid ${theme.colors.gray200};
3228
+ padding: 10px 16px;
3226
3229
  border-top: none;
3227
- border-radius: 0 0 8px 8px;
3230
+ border-radius: 12px;
3231
+ background: ${theme.colors.neutral50};
3232
+ display: flex;
3233
+ flex-direction: column;
3234
+ gap: 8px;
3228
3235
  &.has-error {
3229
3236
  border: 1px solid ${theme.colors.red600};
3230
3237
  }
@@ -3254,6 +3261,85 @@ const StyleActionFooter = styled.div `
3254
3261
  .input-group {
3255
3262
  margin-bottom: 0 !important;
3256
3263
  }
3264
+ `;
3265
+ const StyledQuestionWrapperContainer = styled.div `
3266
+ padding: 8px 8px;
3267
+ border: 1px solid ${theme.colors.gray200};
3268
+ border-top: none;
3269
+ border-radius: 0 0 8px 8px;
3270
+ &.has-error {
3271
+ border: 1px solid ${theme.colors.red600};
3272
+ }
3273
+ &.error-description {
3274
+ border: 1px solid ${theme.colors.red600};
3275
+ border-top: none;
3276
+ }
3277
+ .error-choice-question {
3278
+ color: ${theme.colors.red600};
3279
+ font-size: 12px;
3280
+ font-weight: 400;
3281
+ line-height: 22px;
3282
+ letter-spacing: -0.2px;
3283
+ }
3284
+ `;
3285
+ const StyleSwitchButton = styled(SegmentedControl) `
3286
+ gap: 8px;
3287
+ &.mantine-SegmentedControl-root {
3288
+ background-color: transparent;
3289
+ padding: 0px;
3290
+ }
3291
+ .mantine-SegmentedControl-indicator {
3292
+ display: none;
3293
+ }
3294
+ .mantine-SegmentedControl-label {
3295
+ margin-bottom: 0px !important;
3296
+ display: flex;
3297
+ padding: 5px 12px;
3298
+ justify-content: center;
3299
+ align-items: center;
3300
+ gap: 8px;
3301
+ height: 32px;
3302
+ border: 1px solid ${theme.colors.neutral100};
3303
+ }
3304
+
3305
+ .mantine-SegmentedControl-control {
3306
+ color: ${theme.colors.gray800};
3307
+ font-size: 14px;
3308
+ font-style: normal;
3309
+ font-weight: 600;
3310
+ line-height: 22px;
3311
+ border-radius: 8px;
3312
+ background: ${theme.colors.white};
3313
+ border-width: 0 !important;
3314
+ }
3315
+
3316
+ .mantine-SegmentedControl-controlActive {
3317
+ border-radius: 8px;
3318
+ background: ${theme.colors.blue50};
3319
+
3320
+ .mantine-SegmentedControl-label {
3321
+ color: ${theme.colors.primaryBase};
3322
+ border: 1px solid ${theme.colors.blue50};
3323
+ }
3324
+ }
3325
+
3326
+ &.segmented-marry-baby {
3327
+ .mantine-SegmentedControl-control {
3328
+ border-radius: 16px;
3329
+ }
3330
+ .mantine-SegmentedControl-label {
3331
+ border-radius: 16px;
3332
+ }
3333
+ .mantine-SegmentedControl-controlActive {
3334
+ border-radius: 16px;
3335
+ background: ${theme.colors.pink500};
3336
+
3337
+ .mantine-SegmentedControl-label {
3338
+ color: ${theme.colors.white};
3339
+ border: 1px solid ${theme.colors.pink500};
3340
+ }
3341
+ }
3342
+ }
3257
3343
  `;
3258
3344
 
3259
3345
  const CreatePostPhotos = ({ imageFiles: imageFilesInit, setImageFiles, }) => {
@@ -3424,12 +3510,10 @@ const applySpecialCharSite = [
3424
3510
  ];
3425
3511
  const CreateNewPostContentV2 = ({ className, style, onClose, onPostCreatedEdited, forceSelectCommunity, forceSelectTopics, articleId, editPostData, defaultCommunity, communities, userInfo, isMarryBaby = false, }) => {
3426
3512
  const isInEditMode = !!(editPostData === null || editPostData === void 0 ? void 0 : editPostData.id);
3427
- const { data: { locale,
3428
- // env: { togetherBasePath },
3429
- }, action: { pushNotifications, sanitizeFunction }, } = useContext(TogetherComponentGlobalContext);
3513
+ const { data: { locale }, action: { pushNotifications, sanitizeFunction }, } = useContext(TogetherComponentGlobalContext);
3430
3514
  const { t } = useTranslations();
3431
3515
  const containerRef = useRef(null);
3432
- const [isAskDoctor, setIsAskDoctor] = useState(false);
3516
+ const [isAskDoctor, setIsAskDoctor] = useState('');
3433
3517
  const [specialCharErr, setspecialCharErr] = useState(false);
3434
3518
  const [titleValue, setTitleValue] = useState('');
3435
3519
  const [descriptionValue, setDescriptionValue] = useState('');
@@ -3454,6 +3538,7 @@ const CreateNewPostContentV2 = ({ className, style, onClose, onPostCreatedEdited
3454
3538
  const [stepPost, setStepPost] = useState('step_info');
3455
3539
  const [isLoadingSuggest, setIsLoadingSuggest] = useState(false);
3456
3540
  const [uncategorizedId, setUncategorizedId] = useState('');
3541
+ const [isLoadingSubmit, setIsLoadingSubmit] = useState(false);
3457
3542
  const postActionType = [
3458
3543
  {
3459
3544
  label: t('cardPost.public'),
@@ -3476,18 +3561,11 @@ const CreateNewPostContentV2 = ({ className, style, onClose, onPostCreatedEdited
3476
3561
  } })),
3477
3562
  },
3478
3563
  ];
3479
- // const currentCommunity = useMemo(() => {
3480
- // if (!communityValue.value) return null
3481
- // const result = communitiesList.find(
3482
- // (item) => String(item.id) === String(communityValue.value),
3483
- // )
3484
- // if (!result) return null
3485
- // return result
3486
- // }, [communityValue, communitiesList])
3487
3564
  const currentCommunity = forceSelectCommunity ||
3488
3565
  communities.find((c) => `${c.id || ''}-${c.mappedCategoryId || ''}` === communityValue.value);
3489
3566
  // HANDLE etra action when OPEN AND CLOSE
3490
3567
  useEffect(() => {
3568
+ var _a;
3491
3569
  if (editPostData) {
3492
3570
  const post = editPostData;
3493
3571
  setTitleValue(post.title || '');
@@ -3496,9 +3574,8 @@ const CreateNewPostContentV2 = ({ className, style, onClose, onPostCreatedEdited
3496
3574
  label: post.community.name,
3497
3575
  value: `${post.community.id || ''}-${post.community.mappedCategoryId || ''}`,
3498
3576
  });
3499
- // setSelectedTopics(post.topics || [])
3500
3577
  setImageFiles(post.photos || []);
3501
- setIsAskDoctor(!!post.isAskDoctor || false);
3578
+ setIsAskDoctor(((_a = (!!post.isAskDoctor)) === null || _a === void 0 ? void 0 : _a.toString()) || 'false');
3502
3579
  }
3503
3580
  else {
3504
3581
  if (defaultCommunity) {
@@ -3507,9 +3584,6 @@ const CreateNewPostContentV2 = ({ className, style, onClose, onPostCreatedEdited
3507
3584
  value: `${defaultCommunity.id || ''}-${defaultCommunity.mappedCategoryId || ''}`,
3508
3585
  });
3509
3586
  }
3510
- // if (defaultTopics) {
3511
- // setSelectedTopics(defaultTopics)
3512
- // }
3513
3587
  }
3514
3588
  }, []);
3515
3589
  useEffect(() => {
@@ -3593,6 +3667,10 @@ const CreateNewPostContentV2 = ({ className, style, onClose, onPostCreatedEdited
3593
3667
  });
3594
3668
  hasError = true;
3595
3669
  }
3670
+ if (!isAskDoctor) {
3671
+ errorMessage.askDoctor = t('createPost.message.askDoctor');
3672
+ hasError = true;
3673
+ }
3596
3674
  if (imageFiles && imageFiles.length > 10) {
3597
3675
  errorMessage.photos = t('createPost.message.photoMaxium');
3598
3676
  hasError = true;
@@ -3633,94 +3711,92 @@ const CreateNewPostContentV2 = ({ className, style, onClose, onPostCreatedEdited
3633
3711
  console.log(topicsList);
3634
3712
  const submitPost = (uncategorized) => __awaiter(void 0, void 0, void 0, function* () {
3635
3713
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
3636
- const isError = validationPost();
3637
- if (isError)
3638
- return;
3639
- const bodyFormData = yield getPostFormData({
3640
- title: titleValue,
3641
- description: descriptionValue,
3642
- communityId: String((currentCommunity === null || currentCommunity === void 0 ? void 0 : currentCommunity.id) || ''),
3643
- imageFiles,
3644
- previewUrl,
3645
- topicIds: selectedTopics === null || selectedTopics === void 0 ? void 0 : selectedTopics.map((topic) => String(topic.id || '')).filter(Boolean),
3646
- locale,
3647
- sanitizeFunction,
3648
- categoryCommunityId: String((currentCommunity === null || currentCommunity === void 0 ? void 0 : currentCommunity.mappedCategoryId) || ''),
3649
- categoryTopicIds: selectedTopics === null || selectedTopics === void 0 ? void 0 : selectedTopics.map((topic) => String((topic === null || topic === void 0 ? void 0 : topic.mappedCategoryId) || '')).filter(Boolean),
3650
- isAnonymous: (postActionValue === null || postActionValue === void 0 ? void 0 : postActionValue.value) === 'anonymous' ? 1 : 0,
3651
- isAskDoctor: isAskDoctor ? 1 : 0,
3652
- introUrl: '',
3653
- });
3654
- if (articleId) {
3655
- bodyFormData.append('article_id', articleId);
3656
- }
3657
- console.log(uncategorized);
3658
- let res;
3659
- if (isInEditMode) {
3660
- if (editPostData === null || editPostData === void 0 ? void 0 : editPostData.id) {
3661
- res = yield editPost({
3662
- id: editPostData.id,
3663
- formData: bodyFormData,
3664
- locale,
3665
- });
3714
+ if (!isLoadingSubmit) {
3715
+ setIsLoadingSubmit(true);
3716
+ const isError = validationPost();
3717
+ if (isError) {
3718
+ return setIsLoadingSubmit(false);
3666
3719
  }
3667
- }
3668
- else {
3669
- res = yield createPost({
3670
- formData: bodyFormData,
3720
+ const bodyFormData = yield getPostFormData({
3721
+ title: titleValue,
3722
+ description: descriptionValue,
3723
+ communityId: String((currentCommunity === null || currentCommunity === void 0 ? void 0 : currentCommunity.id) || ''),
3724
+ imageFiles,
3725
+ previewUrl,
3726
+ topicIds: selectedTopics === null || selectedTopics === void 0 ? void 0 : selectedTopics.map((topic) => String(topic.id || '')).filter(Boolean),
3671
3727
  locale,
3672
- isArticleComment: true,
3673
- });
3674
- }
3675
- const resData = res === null || res === void 0 ? void 0 : res.data;
3676
- 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)) {
3677
- // const params = `action=${
3678
- // editPostData ? 'editPost' : 'createPost'
3679
- // }&askDoctor=${resData?.is_question ? 'true' : 'false'}`
3680
- // const postHref = `${getCurrentBaseUrl(locale)}${togetherBasePath}/${
3681
- // resData?.community?.slug
3682
- // }/${resData?.slug}/?${params}`
3683
- // window.location.href = postHref
3684
- pushNotifications({
3685
- message: isInEditMode
3686
- ? t('updatePost.popup.success')
3687
- : t('createPost.popup.success'),
3688
- type: 'success',
3728
+ sanitizeFunction,
3729
+ categoryCommunityId: String((currentCommunity === null || currentCommunity === void 0 ? void 0 : currentCommunity.mappedCategoryId) || ''),
3730
+ categoryTopicIds: selectedTopics === null || selectedTopics === void 0 ? void 0 : selectedTopics.map((topic) => String((topic === null || topic === void 0 ? void 0 : topic.mappedCategoryId) || '')).filter(Boolean),
3731
+ isAnonymous: (postActionValue === null || postActionValue === void 0 ? void 0 : postActionValue.value) === 'anonymous' ? 1 : 0,
3732
+ isAskDoctor: toBoolean(isAskDoctor) ? 1 : 0,
3733
+ introUrl: '',
3689
3734
  });
3690
- onCreateEditSuccess(resData);
3691
- }
3692
- else {
3693
- 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') {
3694
- pushNotifications({
3695
- title: t('notification.post.blocked.title'),
3696
- message: t('notification.post.blocked.message'),
3697
- type: 'danger',
3698
- });
3699
- if (res.messages.moderation.words) {
3700
- setBannedWords(res.messages.moderation.words);
3735
+ if (articleId) {
3736
+ bodyFormData.append('article_id', articleId);
3737
+ }
3738
+ console.log(uncategorized);
3739
+ let res;
3740
+ if (isInEditMode) {
3741
+ if (editPostData === null || editPostData === void 0 ? void 0 : editPostData.id) {
3742
+ res = yield editPost({
3743
+ id: editPostData.id,
3744
+ formData: bodyFormData,
3745
+ locale,
3746
+ });
3701
3747
  }
3702
3748
  }
3703
- 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') {
3704
- pushNotifications({
3705
- title: t('notification.post.suspect.title'),
3706
- message: t('notification.post.suspect.message'),
3707
- type: 'warning',
3749
+ else {
3750
+ res = yield createPost({
3751
+ formData: bodyFormData,
3752
+ locale,
3753
+ isArticleComment: true,
3708
3754
  });
3709
- onClose && onClose();
3710
3755
  }
3711
- 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')); })) {
3756
+ const resData = res === null || res === void 0 ? void 0 : res.data;
3757
+ 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)) {
3712
3758
  pushNotifications({
3713
- message: t('notification.suspend.message'),
3714
- type: 'danger',
3759
+ message: isInEditMode
3760
+ ? t('updatePost.popup.success')
3761
+ : t('createPost.popup.success'),
3762
+ type: 'success',
3715
3763
  });
3716
- onClose && onClose();
3764
+ onCreateEditSuccess(resData);
3717
3765
  }
3718
3766
  else {
3719
- pushNotifications({
3720
- message: ((_j = res === null || res === void 0 ? void 0 : res.messages) === null || _j === void 0 ? void 0 : _j[0]) || t('notification.failure'),
3721
- type: 'danger',
3722
- });
3767
+ 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') {
3768
+ pushNotifications({
3769
+ title: t('notification.post.blocked.title'),
3770
+ message: t('notification.post.blocked.message'),
3771
+ type: 'danger',
3772
+ });
3773
+ if (res.messages.moderation.words) {
3774
+ setBannedWords(res.messages.moderation.words);
3775
+ }
3776
+ }
3777
+ 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') {
3778
+ pushNotifications({
3779
+ title: t('notification.post.suspect.title'),
3780
+ message: t('notification.post.suspect.message'),
3781
+ type: 'warning',
3782
+ });
3783
+ onClose && onClose();
3784
+ }
3785
+ 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')); })) {
3786
+ pushNotifications({
3787
+ message: t('notification.suspend.message'),
3788
+ type: 'danger',
3789
+ });
3790
+ onClose && onClose();
3791
+ }
3792
+ else {
3793
+ pushNotifications({
3794
+ message: ((_j = res === null || res === void 0 ? void 0 : res.messages) === null || _j === void 0 ? void 0 : _j[0]) || t('notification.failure'),
3795
+ type: 'danger',
3796
+ });
3797
+ }
3723
3798
  }
3799
+ setIsLoadingSubmit(false);
3724
3800
  }
3725
3801
  });
3726
3802
  const getFirstOrderErroKey = (orderKey) => {
@@ -3757,6 +3833,7 @@ const CreateNewPostContentV2 = ({ className, style, onClose, onPostCreatedEdited
3757
3833
  return;
3758
3834
  }
3759
3835
  submitPost();
3836
+ // TODO: Current hard to keep AI suggest community
3760
3837
  if (stepPost)
3761
3838
  return;
3762
3839
  if (isInEditMode) {
@@ -3857,28 +3934,39 @@ const CreateNewPostContentV2 = ({ className, style, onClose, onPostCreatedEdited
3857
3934
  zIndex: 10,
3858
3935
  width: 'calc(100% + 20px)',
3859
3936
  } })))),
3860
- React__default.createElement(CreatePostTitle, { className: "input-group", bannedWords: bannedWords, value: titleValue, error: error, placeholder: isAskDoctor
3937
+ React__default.createElement(CreatePostTitle, { className: "input-group", bannedWords: bannedWords, value: titleValue, error: error, placeholder: toBoolean(isAskDoctor)
3861
3938
  ? t('createPost.post.askDoctor.title')
3862
3939
  : t('createPost.post.title'), onChange: setTitleValue }),
3863
3940
  specialCharErr && (React__default.createElement(StyledError, null,
3864
3941
  React__default.createElement(Info, { isSolid: true, color: theme.colors.red700, size: 14 }),
3865
3942
  React__default.createElement(Text, { size: "p3", as: "span", color: theme.colors.red700 }, t('createPost.popup.specialCharErr')))),
3866
3943
  React__default.createElement("div", { className: "input-group" },
3867
- React__default.createElement(CreatePostDescription, { bannedWords: bannedWords, value: descriptionValue, placeholder: isAskDoctor
3944
+ React__default.createElement(CreatePostDescription, { bannedWords: bannedWords, value: descriptionValue, placeholder: toBoolean(isAskDoctor)
3868
3945
  ? t('createPost.post.askDoctor.description')
3869
3946
  : t('createPost.post.description'), onChange: (v) => {
3870
3947
  setDescriptionValue(v);
3871
3948
  removeKeyError('description');
3872
3949
  }, onPreviewUrlChange: setPreviewUrl, onInvalidUrlsChange: setInvalidUrls, onImageFilesChange: setImageFiles, imageFiles: imageFiles, className: `${error && (error === null || error === void 0 ? void 0 : error.description) ? 'error-description' : ''}`, footerEditor: React__default.createElement(React__default.Fragment, null,
3873
- React__default.createElement(StyledIsQuestionWrapper, { className: `${error && (error === null || error === void 0 ? void 0 : error.description) ? 'error-description' : ''}` },
3874
- React__default.createElement(StyledIsQuestion, { color: theme.colors.primaryBase },
3875
- React__default.createElement("div", { className: "switch-label" },
3876
- React__default.createElement(Ask, { isMarryBaby: isMarryBaby, size: isMarryBaby ? 32 : 24, color: theme.colors.primaryBase, className: "label-icon" }),
3877
- React__default.createElement("div", { className: "wrapper-text" },
3878
- React__default.createElement("div", { className: "label-txt" }, t('createPost.askDoctor.description')))),
3879
- React__default.createElement(Switch, { checked: isAskDoctor, label: "", className: "switch-btn", size: "md", onChange: (v) => {
3880
- setIsAskDoctor(v.target.checked);
3881
- } }))),
3950
+ React__default.createElement(StyledQuestionWrapperContainer, { className: error && (error === null || error === void 0 ? void 0 : error.description) ? 'error-description' : '' },
3951
+ React__default.createElement(StyledIsQuestionWrapper, null,
3952
+ React__default.createElement(StyledIsQuestion, { color: theme.colors.primaryBase },
3953
+ React__default.createElement("div", { className: "switch-label" },
3954
+ React__default.createElement(Ask, { isMarryBaby: isMarryBaby, size: isMarryBaby ? 32 : 24, color: theme.colors.primaryBase, className: "label-icon" }),
3955
+ React__default.createElement("div", { className: "wrapper-text" },
3956
+ React__default.createElement("div", { className: "label-txt" }, t('createPost.askDoctor.description')))),
3957
+ React__default.createElement(StyleSwitchButton, { value: isAskDoctor, onChange: (val) => {
3958
+ setIsAskDoctor(val);
3959
+ }, className: isMarryBaby ? 'segmented-marry-baby' : '', data: [
3960
+ {
3961
+ label: t('createPost.askDoctorChoice.yes'),
3962
+ value: 'true',
3963
+ },
3964
+ {
3965
+ label: t('createPost.askDoctorChoice.no'),
3966
+ value: 'false',
3967
+ },
3968
+ ] })),
3969
+ error && (error === null || error === void 0 ? void 0 : error.askDoctor) && (React__default.createElement("div", { className: "error-choice-question" }, error.askDoctor)))),
3882
3970
  error && (error === null || error === void 0 ? void 0 : error.description) && (React__default.createElement(StyledError, { style: { margin: '4px 0 0' } },
3883
3971
  React__default.createElement(Text, { size: "p5", as: "span", color: theme.colors.red600 }, error.description)))) })),
3884
3972
  stepPost === 'step_community' && (React__default.createElement(CreatePostCommunity, { communitiesList: communitiesList, currentCommunity: currentCommunity, selectedTopics: selectedTopics, communityValue: communityValue, defaultCommunity: forceSelectCommunity, error: error, isFullscreen: false, isMarryBaby: isMarryBaby, isInEditMode: isInEditMode, isLoadingSuggest: isLoadingSuggest, setSelectedTopics: setSelectedTopics, setCommunityValue: setCommunityValue, removeKeyError: removeKeyError, setStepPost: setStepPost, onSubmitPost: submitPost })),
@@ -3889,11 +3977,7 @@ const CreateNewPostContentV2 = ({ className, style, onClose, onPostCreatedEdited
3889
3977
  validationUploadPhoto(data);
3890
3978
  } }),
3891
3979
  React__default.createElement("div", { className: "action-wrapper" },
3892
- 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 },
3893
- /* {isInEditMode
3894
- ? t('createPost.popup.submit')
3895
- : t('onboarding.button.continue')} */
3896
- t('createPost.popup.submit'))))));
3980
+ 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 || isLoadingSubmit, disabled: isLoadingSuggest || isLoadingSubmit }, t('createPost.popup.submit'))))));
3897
3981
  };
3898
3982
 
3899
3983
  const StyledTopicSelectList = styled.div `
@@ -1,23 +1,23 @@
1
- import { _ as __rest, a as __awaiter } from './tslib.es6-b97b9ccd.js';
1
+ import { _ as __rest, a as __awaiter } from './tslib.es6-8575ebaf.js';
2
2
  import * as React from 'react';
3
3
  import React__default, { forwardRef, Component, useState, useCallback, useEffect, createContext, useContext, useRef, useMemo, useImperativeHandle } from 'react';
4
4
  import { ArrowDown } from '@hhgtech/icons/other';
5
5
  import { em, Autocomplete, Image, ActionIcon, Select as Select$1, createStyles, AspectRatio as AspectRatio$1, useMantineTheme, Box, Breadcrumbs as Breadcrumbs$1, Textarea, Accordion as Accordion$1, Indicator, Avatar as Avatar$1, FileInput as FileInput$1, createEmotionCache, NumberInput as NumberInput$1, PasswordInput as PasswordInput$1, TextInput, Input as Input$1, Checkbox as Checkbox$1, Slider, Radio as Radio$1, Flex, Popover as Popover$1, rem, Chip } from '@mantine/core';
6
6
  import { useUncontrolled, useDebouncedValue, useViewportSize, useResizeObserver, useDisclosure, useClickOutside } from '@mantine/hooks';
7
- import { C as CommonGAssets } from './index-2bf5f78a.js';
8
- import { I as ImageWrap, u as useScreenSize } from './useScreenSize-e572cdeb.js';
7
+ import { C as CommonGAssets } from './index-8b5d08dc.js';
8
+ import { I as ImageWrap, u as useScreenSize } from './useScreenSize-7a9e9932.js';
9
9
  import styled from '@emotion/styled';
10
10
  import { Carousel as Carousel$1 } from '@mantine/carousel';
11
- import { T as Text } from './index-5c0e8412.js';
12
- import './index-57001be3.js';
11
+ import { T as Text } from './index-8ebcc74b.js';
12
+ import './index-1ec296c2.js';
13
13
  import { theme } from './miscTheme.js';
14
- import { B as Breakpoints } from './utils-1a4cbdae.js';
15
- import { G as GlobalHeadingStyle, a as GlobalContainerStyle } from './useMantineLocale-738fc2b0.js';
16
- import { I as ISO_FORMAT } from './index-d722456d.js';
17
- import { A as ANIMATION_DURATION, B as Button } from './index-966f3431.js';
18
- import { L as LOCALE } from './Locale-e37edea6.js';
14
+ import { B as Breakpoints } from './utils-09d00ae2.js';
15
+ import { G as GlobalHeadingStyle, a as GlobalContainerStyle } from './useMantineLocale-e39c9e93.js';
16
+ import { I as ISO_FORMAT } from './index-3795e29d.js';
17
+ import { A as ANIMATION_DURATION, B as Button } from './index-cada24de.js';
18
+ import { L as LOCALE } from './Locale-881d8700.js';
19
19
  import cn from 'classnames';
20
- import { a as useUniqueId } from './useUniqueId-0499a705.js';
20
+ import { a as useUniqueId } from './useUniqueId-07b6393f.js';
21
21
  import { siteOptions } from './constantsSite.js';
22
22
  import { Check, Plus } from '@hhgtech/icons/core';
23
23
 
@@ -1,13 +1,13 @@
1
- import { _ as __rest } from './tslib.es6-b97b9ccd.js';
1
+ import { _ as __rest } from './tslib.es6-8575ebaf.js';
2
2
  import React__default, { useMemo, useState, useEffect } from 'react';
3
- import './index-57001be3.js';
3
+ import './index-1ec296c2.js';
4
4
  import styled from '@emotion/styled';
5
- import { C as CommonGAssets } from './index-2bf5f78a.js';
5
+ import { C as CommonGAssets } from './index-8b5d08dc.js';
6
6
  import { theme } from './miscTheme.js';
7
- import { I as ImageWrap } from './useScreenSize-e572cdeb.js';
8
- import { T as Text } from './index-a6a2c6fb.js';
9
- import { L as LOCALE } from './Locale-e37edea6.js';
10
- import { c as CentralCarousel } from './index-ed1b642a.js';
7
+ import { I as ImageWrap } from './useScreenSize-7a9e9932.js';
8
+ import { T as Text } from './index-5e843efa.js';
9
+ import { L as LOCALE } from './Locale-881d8700.js';
10
+ import { c as CentralCarousel } from './index-db1844f3.js';
11
11
 
12
12
  const StyledIconContainer = styled.div `
13
13
  display: inline-flex;
@@ -1,12 +1,12 @@
1
1
  import React__default, { useState, useEffect, useContext, useRef } from 'react';
2
- import { H as Heading } from './index-c807b0bb.js';
3
- import { M as MediaQueries, t as toggleNoScroll } from './utils-1a4cbdae.js';
4
- import { u as useTranslations } from './index-f8dbf8e4.js';
5
- import { T as TogetherComponentGlobalContext } from './utils-c0714c25.js';
2
+ import { H as Heading } from './index-1c55614d.js';
3
+ import { M as MediaQueries, t as toggleNoScroll } from './utils-09d00ae2.js';
4
+ import { u as useTranslations } from './index-7556bac7.js';
5
+ import { T as TogetherComponentGlobalContext } from './utils-e693413b.js';
6
6
  import { Portal } from '@mantine/core';
7
- import { T as Text } from './index-5c0e8412.js';
7
+ import { T as Text } from './index-8ebcc74b.js';
8
8
  import styled from '@emotion/styled';
9
- import { _ as __rest } from './tslib.es6-b97b9ccd.js';
9
+ import { _ as __rest } from './tslib.es6-8575ebaf.js';
10
10
  import { theme } from './miscTheme.js';
11
11
  import { setDefaultClass } from './miscDefaultClassWrapper.js';
12
12
 
@@ -1,6 +1,6 @@
1
1
  import React__default from 'react';
2
2
  import styled from '@emotion/styled';
3
- import { M as MediaQueries } from './utils-1a4cbdae.js';
3
+ import { M as MediaQueries } from './utils-09d00ae2.js';
4
4
  import { theme } from './miscTheme.js';
5
5
 
6
6
  const StyledPopup = styled.div `
@@ -1,9 +1,9 @@
1
- import { _ as __rest } from './tslib.es6-b97b9ccd.js';
1
+ import { _ as __rest } from './tslib.es6-8575ebaf.js';
2
2
  import React__default, { useState } from 'react';
3
3
  import styled from '@emotion/styled';
4
- import { M as MediaQueries } from './utils-1a4cbdae.js';
4
+ import { M as MediaQueries } from './utils-09d00ae2.js';
5
5
  import { theme } from './miscTheme.js';
6
- import { L as Label, S as StyledDisplayIcon, a as StyledActionIcon, b as StyledErrorLabel } from './index-0056050c.js';
6
+ import { L as Label, S as StyledDisplayIcon, a as StyledActionIcon, b as StyledErrorLabel } from './index-eb69a154.js';
7
7
 
8
8
  const StyledInput = styled.div `
9
9
  position: relative;