@hhgtech/hhg-components 1.29.314-beta-14 → 1.29.315

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/{LastPeriod-d69eca06.js → LastPeriod-399127f3.js} +1 -1
  2. package/build/{MobileBottomNavigationIcon-ceb73c53.js → MobileBottomNavigationIcon-85bb8186.js} +3 -3
  3. package/build/{Spinner-19113ea7.js → Spinner-831813bd.js} +1 -1
  4. package/build/{WhatsApp-76ca0f91.js → WhatsApp-c4c30a46.js} +1 -1
  5. package/build/adapters.js +19 -19
  6. package/build/atoms.js +46 -46
  7. package/build/babyGrowth.js +83 -83
  8. package/build/cache.js +2 -2
  9. package/build/care/components/organisms/bookingSearchBar/index.styled.d.ts +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/drawer/helpers.d.ts +1 -1
  14. package/build/components/mantine/helpers.d.ts +1 -1
  15. package/build/components/molecules/mobileBottomNavigation/index.styled.d.ts +1 -6
  16. package/build/components/onboardingV2/frisoForm/index.d.ts +1 -1
  17. package/build/components/onboardingV2/index.d.ts +1 -1
  18. package/build/components.js +90 -90
  19. package/build/{constants-4f288ba0.js → constants-2f3f4a32.js} +1 -1
  20. package/build/constants.js +3 -3
  21. package/build/constantsDomainLocales.js +1 -1
  22. package/build/constantsRiskScreener.js +2 -2
  23. package/build/constantsSite.js +2 -2
  24. package/build/{core-fb1a3ee5.js → core-a175766a.js} +1 -1
  25. package/build/{dataTransform-5d86d4aa.js → dataTransform-cce542ae.js} +1 -1
  26. package/build/ecom.js +4 -4
  27. package/build/{editor-f2b18131.js → editor-e43de058.js} +11 -11
  28. package/build/embeddedHeathToolCards_babyGrowth.js +23 -23
  29. package/build/embeddedHeathToolCards_babyPoop.js +19 -19
  30. package/build/embeddedHeathToolCards_babyVaccine.js +22 -22
  31. package/build/embeddedHeathToolCards_bmi_bmi.js +25 -25
  32. package/build/embeddedHeathToolCards_bmrBmr.js +25 -25
  33. package/build/embeddedHeathToolCards_dueDate_dueDate.js +22 -22
  34. package/build/embeddedHeathToolCards_ovulation_ovulation.js +22 -22
  35. package/build/embeddedHeathToolCards_pwg_pwg.js +26 -26
  36. package/build/embeddedHeathToolCards_targetHeartRate.js +27 -27
  37. package/build/esm/{LastPeriod-fe7bc209.js → LastPeriod-e1a56a9d.js} +1 -1
  38. package/build/esm/{MobileBottomNavigationIcon-54a90796.js → MobileBottomNavigationIcon-3123ba15.js} +3 -3
  39. package/build/esm/{Spinner-56331978.js → Spinner-d28e2789.js} +1 -1
  40. package/build/esm/{WhatsApp-8254e72f.js → WhatsApp-e917af5d.js} +1 -1
  41. package/build/esm/adapters.js +19 -19
  42. package/build/esm/atoms.js +46 -46
  43. package/build/esm/babyGrowth.js +83 -83
  44. package/build/esm/cache.js +2 -2
  45. package/build/esm/care/components/organisms/bookingSearchBar/index.styled.d.ts +2 -2
  46. package/build/esm/care.js +17 -17
  47. package/build/esm/careBookingSearchBar.js +14 -14
  48. package/build/esm/careBookingSearchBarV2.js +15 -15
  49. package/build/esm/components/atoms/drawer/helpers.d.ts +1 -1
  50. package/build/esm/components/mantine/helpers.d.ts +1 -1
  51. package/build/esm/components/molecules/mobileBottomNavigation/index.styled.d.ts +1 -6
  52. package/build/esm/components/onboardingV2/frisoForm/index.d.ts +1 -1
  53. package/build/esm/components/onboardingV2/index.d.ts +1 -1
  54. package/build/esm/components.js +90 -90
  55. package/build/esm/{constants-b3c0de30.js → constants-a30059db.js} +1 -1
  56. package/build/esm/constants.js +3 -3
  57. package/build/esm/constantsDomainLocales.js +1 -1
  58. package/build/esm/constantsRiskScreener.js +2 -2
  59. package/build/esm/constantsSite.js +2 -2
  60. package/build/esm/{core-92270d00.js → core-2278a3f4.js} +1 -1
  61. package/build/esm/{dataTransform-ed569492.js → dataTransform-e7d04f1a.js} +1 -1
  62. package/build/esm/ecom.js +4 -4
  63. package/build/esm/{editor-14e431aa.js → editor-01cf4588.js} +11 -11
  64. package/build/esm/embeddedHeathToolCards_babyGrowth.js +23 -23
  65. package/build/esm/embeddedHeathToolCards_babyPoop.js +19 -19
  66. package/build/esm/embeddedHeathToolCards_babyVaccine.js +22 -22
  67. package/build/esm/embeddedHeathToolCards_bmi_bmi.js +25 -25
  68. package/build/esm/embeddedHeathToolCards_bmrBmr.js +25 -25
  69. package/build/esm/embeddedHeathToolCards_dueDate_dueDate.js +22 -22
  70. package/build/esm/embeddedHeathToolCards_ovulation_ovulation.js +22 -22
  71. package/build/esm/embeddedHeathToolCards_pwg_pwg.js +26 -26
  72. package/build/esm/embeddedHeathToolCards_targetHeartRate.js +27 -27
  73. package/build/esm/{fixedBottomAdBlock-6e0698f1.js → fixedBottomAdBlock-246390aa.js} +24 -24
  74. package/build/esm/footer.js +21 -21
  75. package/build/esm/gAssets.js +2 -2
  76. package/build/esm/healthToolsCardWrapper.js +18 -18
  77. package/build/esm/healthToolsForm.js +33 -33
  78. package/build/esm/hooks.js +13 -13
  79. package/build/esm/i18n/translationKeys.d.ts +1 -1
  80. package/build/esm/i18n-values/en-PH.js +1 -5
  81. package/build/esm/i18n-values/hi-IN.js +1 -5
  82. package/build/esm/i18n-values/id-ID.js +172 -176
  83. package/build/esm/i18n-values/km-KH.js +1 -5
  84. package/build/esm/i18n-values/ms-MY.js +313 -317
  85. package/build/esm/i18n-values/my-MM.js +0 -4
  86. package/build/esm/i18n-values/th-TH.js +0 -4
  87. package/build/esm/i18n-values/tl-PH.js +0 -4
  88. package/build/esm/i18n-values/vi-VN.js +0 -4
  89. package/build/esm/i18n-values/vi-VN_MB.js +0 -4
  90. package/build/esm/i18n-values/zh-TW.js +1 -5
  91. package/build/esm/i18n.js +2 -2
  92. package/build/esm/i18nV2.js +2 -2
  93. package/build/esm/{index-cf646e5b.js → index-0218cd4c.js} +2 -2
  94. package/build/esm/{index-423ca167.js → index-0528c887.js} +1 -1
  95. package/build/esm/{index-d00fbd4b.js → index-095d65c4.js} +15 -15
  96. package/build/esm/{index-652d77eb.js → index-09ae8772.js} +3 -3
  97. package/build/esm/{index-e29992a0.js → index-09e90ce8.js} +7 -7
  98. package/build/esm/{index-358b56f1.js → index-0ab3dc50.js} +3 -3
  99. package/build/esm/{index-50a1ad54.js → index-0b52c6d7.js} +16 -16
  100. package/build/esm/{index-06560e8a.js → index-113b0d38.js} +2 -2
  101. package/build/esm/{index-1898d32b.js → index-162fd73d.js} +21 -21
  102. package/build/esm/{index-feaf791d.js → index-16867b47.js} +2 -2
  103. package/build/esm/{index-cc5a647d.js → index-16ff2dcb.js} +13 -13
  104. package/build/esm/{index-3dfa9349.js → index-208f847c.js} +11 -11
  105. package/build/esm/{index-3a3b6cbe.js → index-25a8eee9.js} +5 -5
  106. package/build/esm/{index-89bba1bc.js → index-2f1118a0.js} +3 -3
  107. package/build/esm/{index-3be07119.js → index-3566e22e.js} +2 -2
  108. package/build/esm/{index-bb807a69.js → index-372b192c.js} +13 -13
  109. package/build/esm/{index-d28b54f2.js → index-38e7df62.js} +2 -2
  110. package/build/esm/{index-fc544012.js → index-42893067.js} +10 -10
  111. package/build/esm/{index-8e56ec89.js → index-45839ff0.js} +24 -24
  112. package/build/esm/{index-2ddebe13.js → index-4584ac41.js} +17 -17
  113. package/build/esm/{index-565d7f57.js → index-470db0b9.js} +30 -30
  114. package/build/esm/{index-e1a17eae.js → index-49e1625e.js} +2 -2
  115. package/build/esm/{index-16ac98f0.js → index-4ba32059.js} +1 -1
  116. package/build/esm/{index-4c84452a.js → index-4e1a25c5.js} +3 -3
  117. package/build/esm/{index-c884fcbe.js → index-56dceb35.js} +13 -13
  118. package/build/esm/{index-33ffdd43.js → index-5b374418.js} +32 -32
  119. package/build/esm/{index-7e34b9b0.js → index-5b7bc292.js} +16 -16
  120. package/build/esm/{index-7a7a0172.js → index-64243680.js} +1 -1
  121. package/build/esm/{index-b04816c8.js → index-684aad84.js} +20 -20
  122. package/build/esm/{index-5f55ac8f.js → index-6a9fb840.js} +7 -7
  123. package/build/esm/index-708e9c73.js +275 -0
  124. package/build/esm/{index-2851c41d.js → index-72469c93.js} +16 -16
  125. package/build/esm/{index-0b74abbf.js → index-7b032cb2.js} +2 -2
  126. package/build/esm/{index-9d6d73bf.js → index-8724abda.js} +1 -1
  127. package/build/esm/{index-20b50b83.js → index-8daf228c.js} +16 -16
  128. package/build/esm/{index-b0c6b8ba.js → index-8f767550.js} +6 -6
  129. package/build/esm/{index-84b37ca1.js → index-9ada7ed7.js} +15 -15
  130. package/build/esm/{index-67a05e8b.js → index-a8aa5875.js} +1 -1
  131. package/build/esm/{index-f62f2c51.js → index-a918e93d.js} +6 -6
  132. package/build/esm/{index-9cb11355.js → index-a9d08a7a.js} +2 -2
  133. package/build/esm/{index-cbb3fcd6.js → index-ab7a2034.js} +18 -18
  134. package/build/esm/{index-d0a2d7ee.js → index-af8b68f3.js} +2 -2
  135. package/build/esm/{index-5c633cc6.js → index-b3cc4c4e.js} +6 -6
  136. package/build/esm/{index-678ef23e.js → index-b551f961.js} +1 -1
  137. package/build/esm/{index-fb788953.js → index-bb1ff84d.js} +3 -3
  138. package/build/esm/{index-4e863234.js → index-bb35ce33.js} +26 -26
  139. package/build/esm/{index-d994fc09.js → index-bfd40ed5.js} +3 -3
  140. package/build/esm/{index-e66b62ac.js → index-c800a73c.js} +1 -1
  141. package/build/esm/{index-cd4f1483.js → index-d85c6d43.js} +5 -2
  142. package/build/esm/{index-7e82709d.js → index-dddecf13.js} +6 -6
  143. package/build/esm/{index-589c02a3.js → index-de51ef01.js} +2 -2
  144. package/build/esm/{index-c6d57c2b.js → index-df6c41d1.js} +4 -4
  145. package/build/esm/{index-21f7be62.js → index-ec2353dd.js} +5 -5
  146. package/build/esm/{index-188e5960.js → index-ecbfffdb.js} +3 -3
  147. package/build/esm/{index-47de3558.js → index-ef1f0ceb.js} +13 -13
  148. package/build/esm/{index-181058d9.js → index-ef46126e.js} +17 -17
  149. package/build/esm/{index-11d162e1.js → index-f5ca6734.js} +18 -18
  150. package/build/esm/{index-386a16ee.js → index-fbbfa8e1.js} +2 -2
  151. package/build/esm/{index-fce22db0.js → index-fdca539f.js} +1 -1
  152. package/build/esm/{index-0b0e75d8.js → index-fe12e954.js} +2 -2
  153. package/build/esm/{index-4fcd03f2.js → index-ff203f0f.js} +17 -17
  154. package/build/esm/index.js +112 -112
  155. package/build/esm/interfaces/constants/index.d.ts +4 -1
  156. package/build/esm/{labelSorting-21c6fed8.js → labelSorting-371d5720.js} +4 -4
  157. package/build/esm/lead.js +24 -24
  158. package/build/esm/{logoIcon-a74e2c16.js → logoIcon-c230ea02.js} +2 -2
  159. package/build/esm/mantine.js +25 -25
  160. package/build/esm/misc/animation.d.ts +9 -54
  161. package/build/esm/misc.js +16 -16
  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 +69 -69
  168. package/build/esm/moleculesArticleCard.js +6 -6
  169. package/build/esm/moleculesArticleCardV2.js +16 -16
  170. package/build/esm/navigation.js +40 -40
  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 +44 -44
  175. package/build/esm/{post-3727191a.js → post-3c3525dc.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/index.d.ts +0 -1
  180. package/build/esm/ssoV2/api/paths.d.ts +0 -7
  181. package/build/esm/ssoV2/api/phoneUtils.d.ts +1 -1
  182. package/build/esm/ssoV2/screens/components/progressBar.d.ts +0 -1
  183. package/build/esm/ssoV2/screens/otp.d.ts +1 -1
  184. package/build/esm/ssoV2/ssoStateManager/store.d.ts +1 -1
  185. package/build/esm/ssoV2.js +64 -343
  186. package/build/esm/{store-73ff33b5.js → store-d17bd9ef.js} +9 -21
  187. package/build/esm/subot/utils/index.d.ts +1 -1
  188. package/build/esm/subot.js +174 -137
  189. package/build/esm/surveyOrPremiumBanner.js +31 -31
  190. package/build/esm/surveyQuestionCard.js +10 -10
  191. package/build/esm/{surveyThankyouCard-b5de25f4.js → surveyThankyouCard-dae6de80.js} +5 -5
  192. package/build/esm/together.js +53 -53
  193. package/build/esm/togetherApiUtils.js +4 -4
  194. package/build/esm/togetherAtoms.js +30 -30
  195. package/build/esm/togetherComponentGlobalContext.js +4 -4
  196. package/build/esm/togetherMolecules.js +48 -48
  197. package/build/esm/togetherMoleculesCardAuthor.js +27 -27
  198. package/build/esm/togetherMoleculesPostImagePreview.js +11 -11
  199. package/build/esm/togetherMoleculesProfileDetail.js +37 -37
  200. package/build/esm/togetherOrganisms.js +47 -47
  201. package/build/esm/togetherRichTextEditor.js +17 -17
  202. package/build/esm/togetherShareBox.js +10 -10
  203. package/build/esm/{treePopoverMenu-258cb43f.js → treePopoverMenu-306841ea.js} +19 -19
  204. package/build/esm/{types-d6f28ecb.js → types-5996a251.js} +2 -2
  205. package/build/esm/types.js +2 -2
  206. package/build/esm/{useCategory-35c4e36d.js → useCategory-09d3585b.js} +5 -5
  207. package/build/esm/{useHealthToolCache-2cacb90e.js → useHealthToolCache-5a7f86be.js} +1 -1
  208. package/build/esm/{useMantineLocale-0ba0ecb6.js → useMantineLocale-d71ce863.js} +6 -6
  209. package/build/esm/{usePlacesAutocomplete-479dc7c7.js → usePlacesAutocomplete-09c8cc83.js} +1 -1
  210. package/build/esm/{useScreenSize-809adcd8.js → useScreenSize-fbbdb880.js} +2 -2
  211. package/build/esm/useTogetherAuthRequiredAction.js +9 -9
  212. package/build/esm/{utils-c83bdd26.js → utils-1a19bf54.js} +2 -2
  213. package/build/esm/{utils-813533ea.js → utils-c6ca6c1f.js} +2 -2
  214. package/build/esm/{utils-cb6cc1fc.js → utils-f8a0118f.js} +3 -3
  215. package/build/esm/vaccination.js +21 -21
  216. package/build/{fixedBottomAdBlock-b5612f89.js → fixedBottomAdBlock-26545433.js} +24 -24
  217. package/build/footer.js +21 -21
  218. package/build/gAssets.js +2 -2
  219. package/build/healthToolsCardWrapper.js +18 -18
  220. package/build/healthToolsForm.js +33 -33
  221. package/build/hooks.js +13 -13
  222. package/build/i18n/translationKeys.d.ts +1 -1
  223. package/build/i18n-values/en-PH.js +1 -5
  224. package/build/i18n-values/hi-IN.js +1 -5
  225. package/build/i18n-values/id-ID.js +172 -176
  226. package/build/i18n-values/km-KH.js +1 -5
  227. package/build/i18n-values/ms-MY.js +313 -317
  228. package/build/i18n-values/my-MM.js +0 -4
  229. package/build/i18n-values/th-TH.js +0 -4
  230. package/build/i18n-values/tl-PH.js +0 -4
  231. package/build/i18n-values/vi-VN.js +0 -4
  232. package/build/i18n-values/vi-VN_MB.js +0 -4
  233. package/build/i18n-values/zh-TW.js +1 -5
  234. package/build/i18n.js +1 -1
  235. package/build/i18nV2.js +1 -1
  236. package/build/{index-c2706343.js → index-03b5388a.js} +4 -4
  237. package/build/{index-813c123e.js → index-057c5667.js} +6 -6
  238. package/build/{index-7087de20.js → index-07bfb8de.js} +1 -1
  239. package/build/{index-5b9515a4.js → index-089e4816.js} +2 -2
  240. package/build/{index-17b20abb.js → index-11cfbfc6.js} +6 -6
  241. package/build/{index-41cfc156.js → index-1c545b22.js} +1 -1
  242. package/build/{index-88313670.js → index-1de56fca.js} +3 -3
  243. package/build/{index-5e52769d.js → index-22ee39ae.js} +3 -3
  244. package/build/{index-a4c0de8c.js → index-24703e8f.js} +5 -2
  245. package/build/{index-3b6e5460.js → index-24a26c24.js} +13 -13
  246. package/build/{index-e55ef1b8.js → index-2556df99.js} +17 -17
  247. package/build/{index-c68b8879.js → index-26c1154c.js} +26 -26
  248. package/build/{index-e900ba25.js → index-28d5cd45.js} +13 -13
  249. package/build/{index-888ee1c9.js → index-3103ff2e.js} +18 -18
  250. package/build/{index-667057a4.js → index-3578de33.js} +2 -2
  251. package/build/{index-c1f41988.js → index-38c79b62.js} +5 -5
  252. package/build/{index-568d1e34.js → index-38e8e374.js} +6 -6
  253. package/build/{index-bf887d09.js → index-3a03c4db.js} +16 -16
  254. package/build/{index-c7b962b6.js → index-3ec3e2fe.js} +2 -2
  255. package/build/index-40080fb4.js +277 -0
  256. package/build/{index-44bf96a1.js → index-4248215f.js} +3 -3
  257. package/build/{index-1c99f510.js → index-437b5a73.js} +2 -2
  258. package/build/{index-30767393.js → index-4e288c53.js} +1 -1
  259. package/build/{index-58e75230.js → index-53d6a276.js} +13 -13
  260. package/build/{index-ae27bb9c.js → index-57470259.js} +21 -21
  261. package/build/{index-67258b98.js → index-5b8f0ddf.js} +30 -30
  262. package/build/{index-86ada07b.js → index-6412753c.js} +1 -1
  263. package/build/{index-b3eb909d.js → index-67be90f0.js} +16 -16
  264. package/build/{index-0615e5cb.js → index-6926c114.js} +7 -7
  265. package/build/{index-40a82e6a.js → index-6f1ce4f1.js} +2 -2
  266. package/build/{index-1e1a8d68.js → index-70faa125.js} +3 -3
  267. package/build/{index-0ac2752e.js → index-735554f4.js} +2 -2
  268. package/build/{index-9233100e.js → index-77ba4766.js} +32 -32
  269. package/build/{index-4c64613f.js → index-7cafd690.js} +3 -3
  270. package/build/{index-679587fc.js → index-7e6afe52.js} +10 -10
  271. package/build/{index-6a137573.js → index-7ebfc000.js} +5 -5
  272. package/build/{index-8cf2aea5.js → index-80350077.js} +24 -24
  273. package/build/{index-d34a57a4.js → index-877cc53a.js} +16 -16
  274. package/build/{index-653c41cd.js → index-896d1932.js} +18 -18
  275. package/build/{index-7d21aaab.js → index-8e6c5fb1.js} +2 -2
  276. package/build/{index-780d2816.js → index-9f60ef69.js} +16 -16
  277. package/build/{index-895977d8.js → index-a99e0254.js} +2 -2
  278. package/build/{index-a1cde0ec.js → index-aa3468fd.js} +2 -2
  279. package/build/{index-3457576b.js → index-ad8df46f.js} +7 -7
  280. package/build/{index-cbe5944e.js → index-b4b2076e.js} +17 -17
  281. package/build/{index-b7e27dc8.js → index-bc6d0c9e.js} +15 -15
  282. package/build/{index-8e52a15d.js → index-be8d8de4.js} +3 -3
  283. package/build/{index-839b3b8f.js → index-c07785a9.js} +2 -2
  284. package/build/{index-a5e81644.js → index-d1b9e7ac.js} +15 -15
  285. package/build/{index-96f3c31b.js → index-d4f0cea1.js} +13 -13
  286. package/build/{index-e0bc1a9e.js → index-e0761f4a.js} +1 -1
  287. package/build/{index-c6b86772.js → index-e3af0d00.js} +2 -2
  288. package/build/{index-47aa8d5a.js → index-e562d832.js} +3 -3
  289. package/build/{index-379f63de.js → index-e6f53fbf.js} +17 -17
  290. package/build/{index-7b77e111.js → index-e9163a92.js} +1 -1
  291. package/build/{index-eb43fd61.js → index-eb7ca401.js} +1 -1
  292. package/build/{index-9837cf92.js → index-ebb62b99.js} +1 -1
  293. package/build/{index-ee88f5a5.js → index-ebec9d07.js} +20 -20
  294. package/build/{index-2d5909e7.js → index-f024ff39.js} +2 -2
  295. package/build/{index-03ab0027.js → index-f24da7fa.js} +6 -6
  296. package/build/{index-885f6871.js → index-f9254156.js} +11 -11
  297. package/build/index.js +112 -112
  298. package/build/interfaces/constants/index.d.ts +4 -1
  299. package/build/{labelSorting-b951437d.js → labelSorting-7a548a9f.js} +4 -4
  300. package/build/lead.js +24 -24
  301. package/build/{logoIcon-48a8700d.js → logoIcon-23de57dc.js} +2 -2
  302. package/build/mantine.js +22 -22
  303. package/build/misc/animation.d.ts +9 -54
  304. package/build/misc.js +16 -16
  305. package/build/miscGetDynamicHealthTool.js +4 -4
  306. package/build/miscGetSocialList.js +8 -8
  307. package/build/miscScreenSizeContext.js +1 -1
  308. package/build/mobileBottomNavigation.js +5 -5
  309. package/build/mobileBottomNavigationIcon.js +5 -5
  310. package/build/molecules.js +69 -69
  311. package/build/moleculesArticleCard.js +6 -6
  312. package/build/moleculesArticleCardV2.js +16 -16
  313. package/build/navigation.js +40 -40
  314. package/build/navigationLogoutPopup.js +9 -9
  315. package/build/navigationProfileButton.js +23 -23
  316. package/build/onboardingV2.js +28 -28
  317. package/build/organisms.js +44 -44
  318. package/build/{post-62af3f2a.js → post-aa0ddebc.js} +2 -2
  319. package/build/profileNavigation.js +19 -19
  320. package/build/progressBar.js +1 -1
  321. package/build/pwg.js +22 -22
  322. package/build/ssoV2/api/index.d.ts +0 -1
  323. package/build/ssoV2/api/paths.d.ts +0 -7
  324. package/build/ssoV2/api/phoneUtils.d.ts +1 -1
  325. package/build/ssoV2/screens/components/progressBar.d.ts +0 -1
  326. package/build/ssoV2/screens/otp.d.ts +1 -1
  327. package/build/ssoV2/ssoStateManager/store.d.ts +1 -1
  328. package/build/ssoV2.js +76 -355
  329. package/build/{store-b92e2b20.js → store-f2722742.js} +8 -21
  330. package/build/subot/utils/index.d.ts +1 -1
  331. package/build/subot.js +173 -136
  332. package/build/surveyOrPremiumBanner.js +31 -31
  333. package/build/surveyQuestionCard.js +10 -10
  334. package/build/{surveyThankyouCard-a2f97beb.js → surveyThankyouCard-b1d823e1.js} +5 -5
  335. package/build/together.js +53 -53
  336. package/build/togetherApiUtils.js +4 -4
  337. package/build/togetherAtoms.js +30 -30
  338. package/build/togetherComponentGlobalContext.js +4 -4
  339. package/build/togetherMolecules.js +48 -48
  340. package/build/togetherMoleculesCardAuthor.js +27 -27
  341. package/build/togetherMoleculesPostImagePreview.js +11 -11
  342. package/build/togetherMoleculesProfileDetail.js +37 -37
  343. package/build/togetherOrganisms.js +47 -47
  344. package/build/togetherRichTextEditor.js +17 -17
  345. package/build/togetherShareBox.js +10 -10
  346. package/build/{treePopoverMenu-0e657caf.js → treePopoverMenu-5ff541a6.js} +19 -19
  347. package/build/{types-4194be81.js → types-e576b6a9.js} +2 -2
  348. package/build/types.js +2 -2
  349. package/build/{useCategory-71ce198d.js → useCategory-8ffecf7e.js} +5 -5
  350. package/build/{useHealthToolCache-b490b209.js → useHealthToolCache-61e43a7c.js} +1 -1
  351. package/build/{useMantineLocale-2f14fd9c.js → useMantineLocale-0e8caa51.js} +6 -6
  352. package/build/{usePlacesAutocomplete-8666d83d.js → usePlacesAutocomplete-9f40b301.js} +1 -1
  353. package/build/{useScreenSize-a0254a25.js → useScreenSize-13312268.js} +2 -2
  354. package/build/useTogetherAuthRequiredAction.js +9 -9
  355. package/build/{utils-42fc2cfa.js → utils-72804395.js} +2 -2
  356. package/build/{utils-7456fa06.js → utils-ca8344ca.js} +3 -3
  357. package/build/{utils-1c21bc99.js → utils-d5c452cc.js} +2 -2
  358. package/build/vaccination.js +21 -21
  359. package/package.json +1 -1
  360. package/build/esm/index-4adb8d96.js +0 -339
  361. package/build/esm/ssoV2/api/whatsapp.d.ts +0 -6
  362. package/build/esm/ssoV2/screens/components/whatsapp.d.ts +0 -5
  363. package/build/esm/ssoV2/utils.d.ts +0 -3
  364. package/build/index-d677aeea.js +0 -341
  365. package/build/ssoV2/api/whatsapp.d.ts +0 -6
  366. package/build/ssoV2/screens/components/whatsapp.d.ts +0 -5
  367. package/build/ssoV2/utils.d.ts +0 -3
  368. /package/build/{BMI_BOYS.percentile.monthly-143e1559.js → BMI_BOYS.percentile.monthly-f9b3c3ed.js} +0 -0
  369. /package/build/{BMI_BOYS.percentile.weekly-082e571f.js → BMI_BOYS.percentile.weekly-e874e4f8.js} +0 -0
  370. /package/build/{BMI_BOYS.percentile.yearly-c3c03ed7.js → BMI_BOYS.percentile.yearly-4f0502db.js} +0 -0
  371. /package/build/{BMI_BOYS.zscore.monthly-7ee6b4e9.js → BMI_BOYS.zscore.monthly-9a9feb02.js} +0 -0
  372. /package/build/{BMI_BOYS.zscore.weekly-2b89c99d.js → BMI_BOYS.zscore.weekly-7e72d595.js} +0 -0
  373. /package/build/{BMI_BOYS.zscore.yearly-3e42936a.js → BMI_BOYS.zscore.yearly-108178e3.js} +0 -0
  374. /package/build/{BMI_GIRLS.percentile.monthly-6a5385d0.js → BMI_GIRLS.percentile.monthly-6242c62b.js} +0 -0
  375. /package/build/{BMI_GIRLS.percentile.weekly-7fd003f4.js → BMI_GIRLS.percentile.weekly-0add5702.js} +0 -0
  376. /package/build/{BMI_GIRLS.percentile.yearly-e3c5d01a.js → BMI_GIRLS.percentile.yearly-4152167d.js} +0 -0
  377. /package/build/{BMI_GIRLS.zscore.monthly-503623b4.js → BMI_GIRLS.zscore.monthly-128ca194.js} +0 -0
  378. /package/build/{BMI_GIRLS.zscore.weekly-8960f640.js → BMI_GIRLS.zscore.weekly-ca676528.js} +0 -0
  379. /package/build/{BMI_GIRLS.zscore.yearly-80e3236b.js → BMI_GIRLS.zscore.yearly-e08c29d1.js} +0 -0
  380. /package/build/{ChevronDown-b2195c3c.js → ChevronDown-57bc884b.js} +0 -0
  381. /package/build/{Close-bca677b0.js → Close-df830c4c.js} +0 -0
  382. /package/build/{Google-84cbf269.js → Google-c89265b8.js} +0 -0
  383. /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-fb7f7331.js → HEAD CIRCUM_BOYS.percentile.monthly-87429d30.js} +0 -0
  384. /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-673c8341.js → HEAD CIRCUM_BOYS.percentile.weekly-91c4b200.js} +0 -0
  385. /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-3b21eb40.js → HEAD CIRCUM_BOYS.percentile.yearly-8bc1adee.js} +0 -0
  386. /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-a826c61a.js → HEAD CIRCUM_BOYS.zscore.monthly-5d01881c.js} +0 -0
  387. /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-f08720c4.js → HEAD CIRCUM_BOYS.zscore.weekly-ee5e76f3.js} +0 -0
  388. /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-a4a95115.js → HEAD CIRCUM_BOYS.zscore.yearly-ae4aa4e7.js} +0 -0
  389. /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-f796e3ba.js → HEAD CIRCUM_GIRLS.percentile.monthly-fe6a2c2f.js} +0 -0
  390. /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-825ef172.js → HEAD CIRCUM_GIRLS.percentile.weekly-67dfd40d.js} +0 -0
  391. /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-d3e58242.js → HEAD CIRCUM_GIRLS.percentile.yearly-ed0b2c26.js} +0 -0
  392. /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-0088061b.js → HEAD CIRCUM_GIRLS.zscore.monthly-2aa3bb52.js} +0 -0
  393. /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-512d3c8d.js → HEAD CIRCUM_GIRLS.zscore.weekly-15d544c3.js} +0 -0
  394. /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-bc09260b.js → HEAD CIRCUM_GIRLS.zscore.yearly-6f8e2015.js} +0 -0
  395. /package/build/{HEIGHT_BOYS.percentile.monthly-acbba3b0.js → HEIGHT_BOYS.percentile.monthly-60f64abd.js} +0 -0
  396. /package/build/{HEIGHT_BOYS.percentile.weekly-f31dbf8e.js → HEIGHT_BOYS.percentile.weekly-ab66b5ed.js} +0 -0
  397. /package/build/{HEIGHT_BOYS.percentile.yearly-eb19d191.js → HEIGHT_BOYS.percentile.yearly-fe761b28.js} +0 -0
  398. /package/build/{HEIGHT_BOYS.zscore.monthly-c095e6e0.js → HEIGHT_BOYS.zscore.monthly-ae155fb0.js} +0 -0
  399. /package/build/{HEIGHT_BOYS.zscore.weekly-2d2b1c4a.js → HEIGHT_BOYS.zscore.weekly-98c6c53f.js} +0 -0
  400. /package/build/{HEIGHT_BOYS.zscore.yearly-49cde907.js → HEIGHT_BOYS.zscore.yearly-c813016f.js} +0 -0
  401. /package/build/{HEIGHT_GIRLS.percentile.monthly-ac2c2dd8.js → HEIGHT_GIRLS.percentile.monthly-98798d5e.js} +0 -0
  402. /package/build/{HEIGHT_GIRLS.percentile.weekly-69849d79.js → HEIGHT_GIRLS.percentile.weekly-c01b3d34.js} +0 -0
  403. /package/build/{HEIGHT_GIRLS.percentile.yearly-d97a4570.js → HEIGHT_GIRLS.percentile.yearly-7cce68f3.js} +0 -0
  404. /package/build/{HEIGHT_GIRLS.zscore.monthly-5ff0b909.js → HEIGHT_GIRLS.zscore.monthly-991a2021.js} +0 -0
  405. /package/build/{HEIGHT_GIRLS.zscore.weekly-194e2a2a.js → HEIGHT_GIRLS.zscore.weekly-815080ba.js} +0 -0
  406. /package/build/{HEIGHT_GIRLS.zscore.yearly-489a3bce.js → HEIGHT_GIRLS.zscore.yearly-475186f4.js} +0 -0
  407. /package/build/{Locale-0b1d80be.js → Locale-242593ca.js} +0 -0
  408. /package/build/{Visible-909376d8.js → Visible-403b3b1f.js} +0 -0
  409. /package/build/{WEIGHT_BOYS.percentile.monthly-250a81e3.js → WEIGHT_BOYS.percentile.monthly-1d5b3264.js} +0 -0
  410. /package/build/{WEIGHT_BOYS.percentile.weekly-1444f8c1.js → WEIGHT_BOYS.percentile.weekly-6e79f3ee.js} +0 -0
  411. /package/build/{WEIGHT_BOYS.percentile.yearly-f7ee893d.js → WEIGHT_BOYS.percentile.yearly-51cbb059.js} +0 -0
  412. /package/build/{WEIGHT_BOYS.zscore.monthly-3987bfa1.js → WEIGHT_BOYS.zscore.monthly-4fbc17bb.js} +0 -0
  413. /package/build/{WEIGHT_BOYS.zscore.weekly-2601a41a.js → WEIGHT_BOYS.zscore.weekly-b97b36d9.js} +0 -0
  414. /package/build/{WEIGHT_BOYS.zscore.yearly-106561c8.js → WEIGHT_BOYS.zscore.yearly-7ee60f4f.js} +0 -0
  415. /package/build/{WEIGHT_GIRLS.percentile.monthly-6fecf09d.js → WEIGHT_GIRLS.percentile.monthly-93cb34fd.js} +0 -0
  416. /package/build/{WEIGHT_GIRLS.percentile.weekly-9b726644.js → WEIGHT_GIRLS.percentile.weekly-ce75b87e.js} +0 -0
  417. /package/build/{WEIGHT_GIRLS.percentile.yearly-02e4b9e2.js → WEIGHT_GIRLS.percentile.yearly-ea8b7b42.js} +0 -0
  418. /package/build/{WEIGHT_GIRLS.zscore.monthly-4841a113.js → WEIGHT_GIRLS.zscore.monthly-9d891d7f.js} +0 -0
  419. /package/build/{WEIGHT_GIRLS.zscore.weekly-233b33ec.js → WEIGHT_GIRLS.zscore.weekly-19a1b907.js} +0 -0
  420. /package/build/{WEIGHT_GIRLS.zscore.yearly-1f338cde.js → WEIGHT_GIRLS.zscore.yearly-706d9c0a.js} +0 -0
  421. /package/build/{animation-9d4fa861.js → animation-8bc157b4.js} +0 -0
  422. /package/build/{constants-f69f3ae9.js → constants-0656cf3a.js} +0 -0
  423. /package/build/{constants-e4dd5974.js → constants-db39434e.js} +0 -0
  424. /package/build/{constants-3cfe089e.js → constants-fc951ce9.js} +0 -0
  425. /package/build/{dataTransform-937fbf8e.js → dataTransform-95bd8bda.js} +0 -0
  426. /package/build/{doctor-707b977f.js → doctor-99f2c57d.js} +0 -0
  427. /package/build/esm/{BMI_BOYS.percentile.monthly-e8f373a4.js → BMI_BOYS.percentile.monthly-e8ebdb94.js} +0 -0
  428. /package/build/esm/{BMI_BOYS.percentile.weekly-13679f12.js → BMI_BOYS.percentile.weekly-582ded52.js} +0 -0
  429. /package/build/esm/{BMI_BOYS.percentile.yearly-167daa76.js → BMI_BOYS.percentile.yearly-663ac5fd.js} +0 -0
  430. /package/build/esm/{BMI_BOYS.zscore.monthly-d9943cd1.js → BMI_BOYS.zscore.monthly-0620b23d.js} +0 -0
  431. /package/build/esm/{BMI_BOYS.zscore.weekly-8a5749e8.js → BMI_BOYS.zscore.weekly-1f02f80f.js} +0 -0
  432. /package/build/esm/{BMI_BOYS.zscore.yearly-42bdf525.js → BMI_BOYS.zscore.yearly-382d10df.js} +0 -0
  433. /package/build/esm/{BMI_GIRLS.percentile.monthly-f747a2af.js → BMI_GIRLS.percentile.monthly-9ea00934.js} +0 -0
  434. /package/build/esm/{BMI_GIRLS.percentile.weekly-f6a8533a.js → BMI_GIRLS.percentile.weekly-0789b422.js} +0 -0
  435. /package/build/esm/{BMI_GIRLS.percentile.yearly-a8c7a70b.js → BMI_GIRLS.percentile.yearly-12b1fb8a.js} +0 -0
  436. /package/build/esm/{BMI_GIRLS.zscore.monthly-04cecdf6.js → BMI_GIRLS.zscore.monthly-2ed8477a.js} +0 -0
  437. /package/build/esm/{BMI_GIRLS.zscore.weekly-062a63c2.js → BMI_GIRLS.zscore.weekly-f9953d35.js} +0 -0
  438. /package/build/esm/{BMI_GIRLS.zscore.yearly-0cef297e.js → BMI_GIRLS.zscore.yearly-1c9c86dd.js} +0 -0
  439. /package/build/esm/{ChevronDown-5d212e51.js → ChevronDown-9fcd68d0.js} +0 -0
  440. /package/build/esm/{Close-d5d7d753.js → Close-f60d99d7.js} +0 -0
  441. /package/build/esm/{Google-fd41df78.js → Google-3d9747c5.js} +0 -0
  442. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-8a80c5f6.js → HEAD CIRCUM_BOYS.percentile.monthly-5946fa4a.js} +0 -0
  443. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-dfffb841.js → HEAD CIRCUM_BOYS.percentile.weekly-4510dce5.js} +0 -0
  444. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-cc3c77f6.js → HEAD CIRCUM_BOYS.percentile.yearly-71af8065.js} +0 -0
  445. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-619f0eb9.js → HEAD CIRCUM_BOYS.zscore.monthly-846647a4.js} +0 -0
  446. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-9b4cba3e.js → HEAD CIRCUM_BOYS.zscore.weekly-9cc1d8f0.js} +0 -0
  447. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-bc2a079d.js → HEAD CIRCUM_BOYS.zscore.yearly-6c5e9144.js} +0 -0
  448. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-c4c3a423.js → HEAD CIRCUM_GIRLS.percentile.monthly-ac83bbb4.js} +0 -0
  449. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-fe35fc4b.js → HEAD CIRCUM_GIRLS.percentile.weekly-f476d80b.js} +0 -0
  450. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-859d0685.js → HEAD CIRCUM_GIRLS.percentile.yearly-892afbe2.js} +0 -0
  451. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-c224e26b.js → HEAD CIRCUM_GIRLS.zscore.monthly-89904c4c.js} +0 -0
  452. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-8a524cd1.js → HEAD CIRCUM_GIRLS.zscore.weekly-cfb89312.js} +0 -0
  453. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-d033f069.js → HEAD CIRCUM_GIRLS.zscore.yearly-3add5de9.js} +0 -0
  454. /package/build/esm/{HEIGHT_BOYS.percentile.monthly-e82dabda.js → HEIGHT_BOYS.percentile.monthly-ec52a52c.js} +0 -0
  455. /package/build/esm/{HEIGHT_BOYS.percentile.weekly-f4d3f6db.js → HEIGHT_BOYS.percentile.weekly-38e8dfde.js} +0 -0
  456. /package/build/esm/{HEIGHT_BOYS.percentile.yearly-6d8ce066.js → HEIGHT_BOYS.percentile.yearly-26c68fa1.js} +0 -0
  457. /package/build/esm/{HEIGHT_BOYS.zscore.monthly-08789f52.js → HEIGHT_BOYS.zscore.monthly-b6d13ac8.js} +0 -0
  458. /package/build/esm/{HEIGHT_BOYS.zscore.weekly-15946bcc.js → HEIGHT_BOYS.zscore.weekly-aabe88d4.js} +0 -0
  459. /package/build/esm/{HEIGHT_BOYS.zscore.yearly-5115008b.js → HEIGHT_BOYS.zscore.yearly-d9d437c9.js} +0 -0
  460. /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-7323f760.js → HEIGHT_GIRLS.percentile.monthly-671b7012.js} +0 -0
  461. /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-232a0d31.js → HEIGHT_GIRLS.percentile.weekly-19dba3e3.js} +0 -0
  462. /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-4f2c24d7.js → HEIGHT_GIRLS.percentile.yearly-f6e97862.js} +0 -0
  463. /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-eece140e.js → HEIGHT_GIRLS.zscore.monthly-73a3b24e.js} +0 -0
  464. /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-e352f20b.js → HEIGHT_GIRLS.zscore.weekly-eefa287a.js} +0 -0
  465. /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-197417db.js → HEIGHT_GIRLS.zscore.yearly-6cac7595.js} +0 -0
  466. /package/build/esm/{Locale-594fa927.js → Locale-ea5b7a07.js} +0 -0
  467. /package/build/esm/{Visible-fe199608.js → Visible-0368c2c5.js} +0 -0
  468. /package/build/esm/{WEIGHT_BOYS.percentile.monthly-de97408e.js → WEIGHT_BOYS.percentile.monthly-a6a629ac.js} +0 -0
  469. /package/build/esm/{WEIGHT_BOYS.percentile.weekly-59a954fa.js → WEIGHT_BOYS.percentile.weekly-e9031c78.js} +0 -0
  470. /package/build/esm/{WEIGHT_BOYS.percentile.yearly-5deffc53.js → WEIGHT_BOYS.percentile.yearly-76f771cc.js} +0 -0
  471. /package/build/esm/{WEIGHT_BOYS.zscore.monthly-cde94dd5.js → WEIGHT_BOYS.zscore.monthly-f2c3a740.js} +0 -0
  472. /package/build/esm/{WEIGHT_BOYS.zscore.weekly-6cb7323e.js → WEIGHT_BOYS.zscore.weekly-f7356de4.js} +0 -0
  473. /package/build/esm/{WEIGHT_BOYS.zscore.yearly-668c884b.js → WEIGHT_BOYS.zscore.yearly-5caa0a8c.js} +0 -0
  474. /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-88906906.js → WEIGHT_GIRLS.percentile.monthly-a0c07f1d.js} +0 -0
  475. /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-9fd46273.js → WEIGHT_GIRLS.percentile.weekly-be886c27.js} +0 -0
  476. /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-9a79a32a.js → WEIGHT_GIRLS.percentile.yearly-616bf909.js} +0 -0
  477. /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-5e140879.js → WEIGHT_GIRLS.zscore.monthly-3a0b6fec.js} +0 -0
  478. /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-34da2e3c.js → WEIGHT_GIRLS.zscore.weekly-1a874a64.js} +0 -0
  479. /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-d00b3874.js → WEIGHT_GIRLS.zscore.yearly-bc5062be.js} +0 -0
  480. /package/build/esm/{animation-ef7ea164.js → animation-ff8066cf.js} +0 -0
  481. /package/build/esm/{constants-69bf5cfc.js → constants-735a8fb5.js} +0 -0
  482. /package/build/esm/{constants-e648570c.js → constants-7877bb54.js} +0 -0
  483. /package/build/esm/{constants-95ebcefd.js → constants-87b40898.js} +0 -0
  484. /package/build/esm/{dataTransform-3179e50f.js → dataTransform-c2734aea.js} +0 -0
  485. /package/build/esm/{doctor-a80f71c8.js → doctor-f8cb51da.js} +0 -0
  486. /package/build/esm/{index-7b444cf3.js → index-02936787.js} +0 -0
  487. /package/build/esm/{index-d93a8bf0.js → index-2b64172a.js} +0 -0
  488. /package/build/esm/{index-82e35e12.js → index-3fd53512.js} +0 -0
  489. /package/build/esm/{index-4f3302b0.js → index-75400acc.js} +0 -0
  490. /package/build/esm/{index-56032b6b.js → index-8006e885.js} +0 -0
  491. /package/build/esm/{index-0b74f9c8.js → index-857c8603.js} +0 -0
  492. /package/build/esm/{index-70dab8b2.js → index-87d5c0ba.js} +0 -0
  493. /package/build/esm/{index-9871844d.js → index-96b6c9bc.js} +0 -0
  494. /package/build/esm/{index.styles-5235bc78.js → index.styles-d3a3af89.js} +0 -0
  495. /package/build/esm/{localizeNumberFormat-6ce6b65e.js → localizeNumberFormat-e2322900.js} +0 -0
  496. /package/build/esm/{normalizeLink-d54d50da.js → normalizeLink-45cf86db.js} +0 -0
  497. /package/build/esm/{other-bd29096b.js → other-8260abb5.js} +0 -0
  498. /package/build/esm/{paths-c80414d2.js → paths-2fc7e615.js} +0 -0
  499. /package/build/esm/{translationsContext-c1266e59.js → translationsContext-fe99a5d1.js} +0 -0
  500. /package/build/esm/{tslib.es6-d17cda6d.js → tslib.es6-efe99217.js} +0 -0
  501. /package/build/esm/{types-4ab90aae.js → types-8a1e28b7.js} +0 -0
  502. /package/build/esm/{useIsInit-d14af901.js → useIsInit-2ff78903.js} +0 -0
  503. /package/build/esm/{useOutsideClick-90e911b0.js → useOutsideClick-73ac8dde.js} +0 -0
  504. /package/build/esm/{useScrollbarSize-7ea06d6e.js → useScrollbarSize-4eb2cf40.js} +0 -0
  505. /package/build/esm/{useUniqueId-00511b5a.js → useUniqueId-c65d984d.js} +0 -0
  506. /package/build/esm/{utils-73a530da.js → utils-8ec017e2.js} +0 -0
  507. /package/build/{index-746dfea4.js → index-0c801d40.js} +0 -0
  508. /package/build/{index-d09bf1b2.js → index-5e198610.js} +0 -0
  509. /package/build/{index-072562aa.js → index-65c24006.js} +0 -0
  510. /package/build/{index-641e3a99.js → index-789d670e.js} +0 -0
  511. /package/build/{index-dfc7a7d0.js → index-7a02d5c4.js} +0 -0
  512. /package/build/{index-61a0b233.js → index-98746357.js} +0 -0
  513. /package/build/{index-2dc0185a.js → index-9fed4f5a.js} +0 -0
  514. /package/build/{index-27dbd9d0.js → index-d9e8c344.js} +0 -0
  515. /package/build/{index.styles-5be6c8af.js → index.styles-4c55fb99.js} +0 -0
  516. /package/build/{localizeNumberFormat-16b8105c.js → localizeNumberFormat-f94f5164.js} +0 -0
  517. /package/build/{normalizeLink-74fc68f9.js → normalizeLink-9b8b57c4.js} +0 -0
  518. /package/build/{other-81897f29.js → other-fe759449.js} +0 -0
  519. /package/build/{paths-68477740.js → paths-d32e0bfd.js} +0 -0
  520. /package/build/{translationsContext-4384ed9c.js → translationsContext-70cdca66.js} +0 -0
  521. /package/build/{tslib.es6-c3c8c8ca.js → tslib.es6-2b428e0e.js} +0 -0
  522. /package/build/{types-b2d34cec.js → types-105aedd6.js} +0 -0
  523. /package/build/{useIsInit-41c76ece.js → useIsInit-c48ba996.js} +0 -0
  524. /package/build/{useOutsideClick-69ca2136.js → useOutsideClick-0d18ed47.js} +0 -0
  525. /package/build/{useScrollbarSize-86a5638b.js → useScrollbarSize-fb344ed9.js} +0 -0
  526. /package/build/{useUniqueId-c0f31b4e.js → useUniqueId-e8768fb8.js} +0 -0
  527. /package/build/{utils-9a0cbb29.js → utils-e96269e2.js} +0 -0
@@ -1,12 +1,11 @@
1
1
  'use strict';
2
2
 
3
- var tslib_es6 = require('./tslib.es6-c3c8c8ca.js');
3
+ var tslib_es6 = require('./tslib.es6-2b428e0e.js');
4
4
  var zustand = require('zustand');
5
5
  var constantsIsProduction = require('./constantsIsProduction.js');
6
- var normalizeLink = require('./normalizeLink-74fc68f9.js');
7
- var index = require('./index-a4c0de8c.js');
6
+ var normalizeLink = require('./normalizeLink-9b8b57c4.js');
7
+ var index = require('./index-24703e8f.js');
8
8
  var miscCookieHelper = require('./miscCookieHelper.js');
9
- var Locale = require('./Locale-0b1d80be.js');
10
9
  var constantsDomainLocales = require('./constantsDomainLocales.js');
11
10
 
12
11
  const SSO_V2_PATHS = {
@@ -25,13 +24,6 @@ const SSO_V2_PATHS = {
25
24
  UPDATE_PHONE_SEND_OTP: 'login/sms-social/sent-otp',
26
25
  UPDATE_PHONE_VERIFY_OTP: 'login/sms-social/phone-verify-code',
27
26
  },
28
- WHATSAPP: {
29
- REGISTER_BY_SEND_OTP: 'login/login-with-whatsapp',
30
- SEND_OTP: 'login/whatsapp/sent-otp',
31
- UPDATE_PHONE_SEND_OTP: 'login/sms-social/whatsapp/sent-otp',
32
- UPDATE_PHONE_VERIFY_OTP: 'login/sms-social/whatsapp-verify-code',
33
- VERIFY_BY_OTP: 'login/whatsapp-verify-code',
34
- },
35
27
  ZALO: {
36
28
  REGISTER_BY_SEND_OTP: 'login/login-with-zalo',
37
29
  SEND_OTP: 'login/zalo/sent-otp',
@@ -50,12 +42,8 @@ const SSO_V2_PATHS = {
50
42
  },
51
43
  };
52
44
 
53
- const locale = process.env.NEXT_PUBLIC_DEPLOY_LOCALE || 'vi-VN';
54
- const websiteId = {
55
- [Locale.LOCALE.Vietnam]: '1',
56
- [Locale.LOCALE.Indonesia]: '2',
57
- [Locale.LOCALE.Malaysia]: '3',
58
- }[locale];
45
+ const locale = process.env.UNIFY_LOCALE || 'vi-VN';
46
+ const websiteId = index.LOCALE_SPECS[locale].SITE_ID;
59
47
  index.LOCALE_SPECS[locale].PHONE;
60
48
  const getSSOV2ApiUrl = (path) => {
61
49
  return normalizeLink.normalizeLinkSlash(`${normalizeLink.getCurrentSsoUrl(locale)}/api/v2/${path}`);
@@ -168,14 +156,14 @@ const handleAuthSuccess = (res) => {
168
156
  miscCookieHelper.setCookie(BEARER_TOKEN_COOKIE, res.token, {
169
157
  domain: window.location.hostname === 'localhost'
170
158
  ? 'localhost'
171
- : `.${constantsDomainLocales.domainLocales[locale]}`,
159
+ : `.${constantsDomainLocales.domainLocales[process.env.UNIFY_LOCALE || 'vi-VN']}`,
172
160
  expires: new Date(res.expire_in * 1000).toUTCString(),
173
161
  });
174
162
  (res === null || res === void 0 ? void 0 : res.refresh_token) &&
175
163
  miscCookieHelper.setCookie(index.BEARER_REFRESH_TOKEN_COOKIE, res.refresh_token, {
176
164
  domain: window.location.hostname === 'localhost'
177
165
  ? 'localhost'
178
- : `.${constantsDomainLocales.domainLocales[locale]}`,
166
+ : `.${constantsDomainLocales.domainLocales[process.env.UNIFY_LOCALE || 'vi-VN']}`,
179
167
  });
180
168
  };
181
169
 
@@ -453,7 +441,7 @@ const redirect = (returnUrl, source, forceReload) => {
453
441
  return;
454
442
  }
455
443
  };
456
- const SSOV2_LOCALES = ['vi-VN', 'id-ID', 'ms-MY'];
444
+ const SSOV2_LOCALES = ['vi-VN'];
457
445
  const IS_SSOV2_ENABLED = (locale) => {
458
446
  return (!process.env.NEXT_PUBLIC_MARRY_BABY &&
459
447
  SSOV2_LOCALES.includes(locale ||
@@ -509,7 +497,6 @@ exports.isFlowFinishedSetup = isFlowFinishedSetup;
509
497
  exports.isLoginWithPhoneNotVerifedYet = isLoginWithPhoneNotVerifedYet;
510
498
  exports.isPhoneNotVerifedYet = isPhoneNotVerifedYet;
511
499
  exports.isUserFinishedSetup = isUserFinishedSetup;
512
- exports.locale = locale;
513
500
  exports.redirect = redirect;
514
501
  exports.resetPassword = resetPassword;
515
502
  exports.updateUserInfo = updateUserInfo;
@@ -17,7 +17,7 @@ export declare const getUserInfoFromCookie: (reqCookie?: string) => {
17
17
  email: any;
18
18
  id: any;
19
19
  };
20
- export declare const getWindowId: () => string;
20
+ export declare const getWindowId: () => any;
21
21
  export declare const getHelloSitesUrl: (locale: LOCALE | LocaleType, ignoreLocal?: boolean) => string;
22
22
  export declare const checkMobile: (userAgent: string) => boolean;
23
23
  export declare const clickAndOpenInNewTab: (url: string) => void;
package/build/subot.js CHANGED
@@ -3,74 +3,74 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var React = require('react');
6
- var index$2 = require('./index-41cfc156.js');
7
- var tslib_es6 = require('./tslib.es6-c3c8c8ca.js');
8
- var index$3 = require('./index-a4c0de8c.js');
6
+ var index$2 = require('./index-1c545b22.js');
7
+ var tslib_es6 = require('./tslib.es6-2b428e0e.js');
8
+ var index$3 = require('./index-24703e8f.js');
9
9
  var Cookies = require('js-cookie');
10
10
  var fd = require('fastdom');
11
11
  var fastdomPromised = require('fastdom/extensions/fastdom-promised');
12
- var togetherComponentGlobalContext = require('./utils-7456fa06.js');
12
+ var togetherComponentGlobalContext = require('./utils-ca8344ca.js');
13
13
  var formatString = require('string-format');
14
- var index$1 = require('./index-8e52a15d.js');
14
+ var index$1 = require('./index-be8d8de4.js');
15
15
  var constantsDomainLocales = require('./constantsDomainLocales.js');
16
16
  var cn = require('classnames');
17
- var index$c = require('./index-61a0b233.js');
18
- var index$b = require('./index-667057a4.js');
17
+ var index$c = require('./index-98746357.js');
18
+ var index$b = require('./index-3578de33.js');
19
19
  var framerMotion = require('framer-motion');
20
20
  var styled = require('@emotion/styled');
21
- var utils = require('./utils-9a0cbb29.js');
22
- var index$4 = require('./index-a1cde0ec.js');
21
+ var utils = require('./utils-e96269e2.js');
22
+ var index$4 = require('./index-aa3468fd.js');
23
23
  var remarkable = require('remarkable');
24
24
  var other = require('@hhgtech/icons/other');
25
25
  var reactIntersectionObserver = require('react-intersection-observer');
26
26
  var core = require('@mantine/core');
27
- var index$5 = require('./index-072562aa.js');
27
+ var index$5 = require('./index-65c24006.js');
28
28
  var dayjs = require('dayjs');
29
29
  var isSameOrBefore = require('dayjs/plugin/isSameOrBefore');
30
- var constants = require('./constants-e4dd5974.js');
30
+ var constants = require('./constants-db39434e.js');
31
31
  var uuid = require('uuid');
32
- var index$6 = require('./index-839b3b8f.js');
32
+ var index$6 = require('./index-c07785a9.js');
33
33
  var miscTheme = require('./miscTheme.js');
34
34
  var constantsIsProduction = require('./constantsIsProduction.js');
35
- var index$7 = require('./index-885f6871.js');
35
+ var index$7 = require('./index-f9254156.js');
36
36
  require('@mantine/dates');
37
- require('./useMantineLocale-2f14fd9c.js');
38
- require('./index.styles-5be6c8af.js');
39
- require('./translationsContext-4384ed9c.js');
37
+ require('./useMantineLocale-0e8caa51.js');
38
+ require('./index.styles-4c55fb99.js');
39
+ require('./translationsContext-70cdca66.js');
40
40
  require('@mantine/hooks');
41
- require('./other-81897f29.js');
42
- require('./index-44bf96a1.js');
41
+ require('./other-fe759449.js');
42
+ require('./index-4248215f.js');
43
43
  var isEmpty = require('lodash/isEmpty');
44
44
  var reactHookForm = require('react-hook-form');
45
45
  var PhoneInputBase = require('react-phone-number-input');
46
46
  var api = require('@react-google-maps/api');
47
- var usePlacesAutocomplete = require('./usePlacesAutocomplete-8666d83d.js');
47
+ var usePlacesAutocomplete = require('./usePlacesAutocomplete-9f40b301.js');
48
48
  var miscDefaultClassWrapper = require('./miscDefaultClassWrapper.js');
49
- var Locale = require('./Locale-0b1d80be.js');
50
- var index$9 = require('./index-2dc0185a.js');
51
- var index$a = require('./index-dfc7a7d0.js');
52
- var index$8 = require('./index-895977d8.js');
53
- var store = require('./store-b92e2b20.js');
49
+ var Locale = require('./Locale-242593ca.js');
50
+ var index$9 = require('./index-9fed4f5a.js');
51
+ var index$a = require('./index-7a02d5c4.js');
52
+ var index$8 = require('./index-a99e0254.js');
53
+ var store = require('./store-f2722742.js');
54
54
  require('date-fns/locale');
55
55
  require('./constantsSite.js');
56
56
  require('./constantsRiskScreener.js');
57
- require('./index-d677aeea.js');
57
+ require('./index-40080fb4.js');
58
58
  require('./miscCookieHelper.js');
59
59
  require('slugify');
60
60
  require('./togetherApiPaths.js');
61
- require('./index-4c64613f.js');
62
- require('./WhatsApp-76ca0f91.js');
63
- require('./Spinner-19113ea7.js');
64
- require('./index-7087de20.js');
65
- require('./useScreenSize-a0254a25.js');
61
+ require('./index-7cafd690.js');
62
+ require('./WhatsApp-c4c30a46.js');
63
+ require('./Spinner-831813bd.js');
64
+ require('./index-07bfb8de.js');
65
+ require('./useScreenSize-13312268.js');
66
66
  require('@mantine/carousel');
67
- require('./useUniqueId-c0f31b4e.js');
67
+ require('./useUniqueId-e8768fb8.js');
68
68
  require('@hhgtech/icons/core');
69
69
  require('@mantine/notifications');
70
70
  require('date-fns');
71
71
  require('react-day-picker/DayPickerInput');
72
72
  require('zustand');
73
- require('./normalizeLink-74fc68f9.js');
73
+ require('./normalizeLink-9b8b57c4.js');
74
74
 
75
75
  function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
76
76
 
@@ -1555,7 +1555,7 @@ const excludeNodeList = [
1555
1555
  // return false
1556
1556
  // }
1557
1557
  const Container$u = () => {
1558
- var _a, _b, _c;
1558
+ var _a, _b, _c, _d, _e;
1559
1559
  const { formatMessage: f, action: { pushNotifications }, } = React.useContext(togetherComponentGlobalContext.TogetherComponentGlobalContext);
1560
1560
  const currentUrl = useCurrentUrl();
1561
1561
  const { listNodes, activeId, isShowFooter, onNext, onPrev, params, onStartOver, loading, } = React.useContext(SubotInlineContext);
@@ -1566,16 +1566,15 @@ const Container$u = () => {
1566
1566
  const actionNextChoice = (_a = node === null || node === void 0 ? void 0 : node.actions) === null || _a === void 0 ? void 0 : _a.find((act) => act.type === index$2.NodeActionType.USER_CHOICE_NEXT);
1567
1567
  const actionPollSubmit = (_b = node === null || node === void 0 ? void 0 : node.actions) === null || _b === void 0 ? void 0 : _b.find(({ type }) => type == index$2.NodeActionType.POLL_BUTTON);
1568
1568
  const actionMultipleSubmit = (_c = node === null || node === void 0 ? void 0 : node.actions) === null || _c === void 0 ? void 0 : _c.find(({ type }) => type == index$2.NodeActionType.ACTION_MULTIPLE_BUTTON);
1569
- // const selectedWithOtherInput =
1570
- // node?.actions?.find(({ id }) => id === value.action_id)?.type ===
1571
- // NodeActionType.USER_CHOICE_TEXT_BY_INPUT
1569
+ const selectedWithOtherInput = ((_e = (_d = node === null || node === void 0 ? void 0 : node.actions) === null || _d === void 0 ? void 0 : _d.find(({ id }) => id === value.action_id)) === null || _e === void 0 ? void 0 : _e.type) ===
1570
+ index$2.NodeActionType.USER_CHOICE_TEXT_BY_INPUT;
1572
1571
  const handleNextChoice = () => {
1573
1572
  const nextValue = {
1574
1573
  node_id: node.id,
1575
1574
  action_id: actionNextChoice === null || actionNextChoice === void 0 ? void 0 : actionNextChoice.id,
1576
1575
  action_value: actionNextChoice === null || actionNextChoice === void 0 ? void 0 : actionNextChoice.key,
1577
1576
  };
1578
- onNext(Object.assign(Object.assign(Object.assign({}, params), node === null || node === void 0 ? void 0 : node._message), nextValue));
1577
+ onNext(Object.assign(Object.assign(Object.assign({}, params), nextValue), node === null || node === void 0 ? void 0 : node._message));
1579
1578
  };
1580
1579
  const handlePollSubmit = () => {
1581
1580
  var _a;
@@ -1620,15 +1619,15 @@ const Container$u = () => {
1620
1619
  });
1621
1620
  }
1622
1621
  else {
1623
- onNext(Object.assign(Object.assign(Object.assign({}, params), node === null || node === void 0 ? void 0 : node._message), value));
1622
+ onNext(Object.assign(Object.assign(Object.assign({}, params), value), node === null || node === void 0 ? void 0 : node._message));
1624
1623
  }
1625
1624
  };
1626
1625
  if (!isShowFooter)
1627
1626
  return null;
1628
1627
  const found = listNodes.find((nodeItem) => nodeItem.id == activeId);
1629
1628
  const isDisabled = disabledNodeList.includes((found === null || found === void 0 ? void 0 : found.type) || '') ||
1630
- disabledPositionList.includes((found === null || found === void 0 ? void 0 : found.position) || '');
1631
- // selectedWithOtherInput
1629
+ disabledPositionList.includes((found === null || found === void 0 ? void 0 : found.position) || '') ||
1630
+ selectedWithOtherInput;
1632
1631
  const isDisplayAction = !excludeNodeList.includes((found === null || found === void 0 ? void 0 : found.type) || '');
1633
1632
  return (React__default["default"].createElement(StyledWrap$p, { "data-show-action": isDisplayAction },
1634
1633
  React__default["default"].createElement("button", { onClick: onStartOver, "data-event-category": "Service Connection", "data-event-action": "Risk Screening Start Over", "data-event-label": currentUrl, "data-bot-id": params.bot_id, className: "si-footer-start-over", disabled: Boolean((botItem === null || botItem === void 0 ? void 0 : botItem.subot_field_type) && activeId == (listNodes === null || listNodes === void 0 ? void 0 : listNodes[1].id)) },
@@ -5434,9 +5433,21 @@ const stylesTextarea = {
5434
5433
  boxShadow: '0px 0px 0px 2px var(--subot-inline-primary-color-300) !important',
5435
5434
  },
5436
5435
  },
5436
+ };
5437
+ const stylesButtonSubmitOther = {
5438
+ root: {
5439
+ ':not(:disabled)': {
5440
+ backgroundColor: 'var(--subot-inline-primary-color) !important',
5441
+ '&:hover': {
5442
+ backgroundColor: 'var(--subot-inline-primary-color-hover) !important',
5443
+ },
5444
+ },
5445
+ },
5437
5446
  };
5438
5447
 
5439
5448
  const Container$a = ({ action, onChange, active, htmlType, formSubmitMeta, }) => {
5449
+ const timeoutId = React.useRef(null);
5450
+ const { formatMessage: f } = React.useContext(togetherComponentGlobalContext.TogetherComponentGlobalContext);
5440
5451
  const currentUrl = useCurrentUrl();
5441
5452
  const inputRef = React.useRef(null);
5442
5453
  const [otherText, setOtherText] = React.useState('');
@@ -5444,6 +5455,14 @@ const Container$a = ({ action, onChange, active, htmlType, formSubmitMeta, }) =>
5444
5455
  const isActionPollWithOther = (action === null || action === void 0 ? void 0 : action.type) === index$2.NodeActionType.POLL_CHOICE_TEXT_BY_INPUT;
5445
5456
  const isActionSelectWithOther = (action === null || action === void 0 ? void 0 : action.type) === index$2.NodeActionType.USER_CHOICE_TEXT_BY_INPUT ||
5446
5457
  isActionPollWithOther;
5458
+ const actionSubmitted = isActionPollWithOther
5459
+ ? {
5460
+ key: action === null || action === void 0 ? void 0 : action.key,
5461
+ control: index$2.ELEMENT_CONTROL_INPUT_TYPE[action === null || action === void 0 ? void 0 : action.type],
5462
+ value: '',
5463
+ action_id: action === null || action === void 0 ? void 0 : action.id,
5464
+ }
5465
+ : action;
5447
5466
  React.useEffect(() => {
5448
5467
  var _a, _b;
5449
5468
  if (active) {
@@ -5451,24 +5470,45 @@ const Container$a = ({ action, onChange, active, htmlType, formSubmitMeta, }) =>
5451
5470
  (_b = inputRef.current) === null || _b === void 0 ? void 0 : _b.focus();
5452
5471
  }
5453
5472
  }, [active, formSubmitMeta]);
5473
+ const handleClickWithFormMeta = () => {
5474
+ if (otherText) {
5475
+ onChange &&
5476
+ onChange(actionSubmitted, [
5477
+ {
5478
+ key: KEY_OF_TEXT_CHOICE_WITH_OTHER_FIELD,
5479
+ control: 'text',
5480
+ value: otherText,
5481
+ },
5482
+ ]);
5483
+ }
5484
+ };
5454
5485
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
5455
5486
  const onChangeTextArea = (evt) => {
5456
5487
  setOtherText(evt.target.value);
5457
- onChange === null || onChange === void 0 ? void 0 : onChange(action, [
5458
- {
5459
- key: KEY_OF_TEXT_CHOICE_WITH_OTHER_FIELD,
5460
- control: 'text',
5461
- value: evt.target.value,
5462
- action_id: action === null || action === void 0 ? void 0 : action.id,
5463
- },
5464
- ]);
5488
+ if (isActionPollWithOther) {
5489
+ timeoutId.current && clearTimeout(timeoutId.current);
5490
+ timeoutId.current = setTimeout(() => {
5491
+ onChange &&
5492
+ onChange(actionSubmitted, [
5493
+ {
5494
+ key: KEY_OF_TEXT_CHOICE_WITH_OTHER_FIELD,
5495
+ control: 'text',
5496
+ value: evt.target.value,
5497
+ },
5498
+ ]);
5499
+ }, 300);
5500
+ }
5465
5501
  };
5466
5502
  return (React__default["default"].createElement(React__default["default"].Fragment, null,
5467
- React__default["default"].createElement(StyledWrap$5, { id: "si-action-text-choice", active: !!active, onClick: () => onChange === null || onChange === void 0 ? void 0 : onChange(action), "data-event-category": "Service Connection", "data-event-action": "Risk Screening Answer Click", "data-event-label": currentUrl, "data-bot-id": params.bot_id },
5503
+ React__default["default"].createElement(StyledWrap$5, { id: "si-action-text-choice", active: !!active, onClick: () => onChange && onChange(actionSubmitted), "data-event-category": "Service Connection", "data-event-action": "Risk Screening Answer Click", "data-event-label": currentUrl, "data-bot-id": params.bot_id },
5468
5504
  React__default["default"].createElement(StyledRadioIcon, { active: !!active }, htmlType === 'checkbox' && (React__default["default"].createElement(Checkbox, { className: "icon-checkbox", viewBox: "0 0 22 22" }))),
5469
5505
  React__default["default"].createElement("div", { className: "label" }, action === null || action === void 0 ? void 0 : action.label)),
5470
5506
  isActionSelectWithOther && active && (React__default["default"].createElement(core.Box, { px: "2px", style: { textAlign: 'right' } },
5471
- React__default["default"].createElement(core.Textarea, { ref: inputRef, placeholder: action === null || action === void 0 ? void 0 : action.label, styles: stylesTextarea, value: otherText, onChange: onChangeTextArea, maxLength: 360 })))));
5507
+ React__default["default"].createElement(core.Textarea, { ref: inputRef, placeholder: action === null || action === void 0 ? void 0 : action.label, styles: stylesTextarea, value: otherText, onChange: onChangeTextArea, maxLength: 360 }),
5508
+ !isActionPollWithOther && (React__default["default"].createElement(index$4.Button, { size: "sm", mt: "5px", styles: stylesButtonSubmitOther, disabled: !otherText, onClick: handleClickWithFormMeta }, f({
5509
+ id: 'feedback.submit',
5510
+ defaultMessage: 'Submit',
5511
+ })))))));
5472
5512
  };
5473
5513
  Container$a.displayName = 'SubotInlineActionTextChoice';
5474
5514
 
@@ -5628,49 +5668,34 @@ const Container$5 = ({ node, indexNumber }) => {
5628
5668
  }
5629
5669
  return [];
5630
5670
  }, [value, value === null || value === void 0 ? void 0 : value.selected_actions]);
5631
- const handleOnChange = (action, formSubmitMeta) => tslib_es6.__awaiter(void 0, void 0, void 0, function* () {
5632
- var _b, _c;
5633
- if (action) {
5634
- const _value = JSON.parse(JSON.stringify(Object.assign(Object.assign({}, value), { action_id: submitButton === null || submitButton === void 0 ? void 0 : submitButton.id, action_value: submitButton === null || submitButton === void 0 ? void 0 : submitButton.key, selected_actions: Object.assign({}, value === null || value === void 0 ? void 0 : value.selected_actions) })));
5635
- if ((action === null || action === void 0 ? void 0 : action.type) === index$2.NodeActionType.POLL_CHOICE_TEXT_BY_INPUT ||
5636
- (action === null || action === void 0 ? void 0 : action.type) === index$2.NodeActionType.USER_CHOICE_TEXT_BY_INPUT) {
5637
- const isExistedPoll = (_value === null || _value === void 0 ? void 0 : _value.selected_actions) && action.id in _value.selected_actions;
5638
- if (isExistedPoll) {
5639
- if (formSubmitMeta) {
5640
- _value.form_submit_meta = formSubmitMeta;
5641
- }
5642
- else {
5643
- delete _value.form_submit_meta;
5644
- (_b = _value.selected_actions) === null || _b === void 0 ? true : delete _b[action.id];
5645
- }
5646
- }
5647
- else {
5648
- if (action === null || action === void 0 ? void 0 : action.id) {
5649
- _value.selected_actions = Object.assign(Object.assign({}, _value.selected_actions), { [action.id]: action.key || '' });
5650
- }
5651
- }
5652
- setValue(_value);
5653
- onChange === null || onChange === void 0 ? void 0 : onChange(_value);
5654
- return;
5655
- }
5656
- if (!((_c = _value.selected_actions) === null || _c === void 0 ? void 0 : _c[action.id])) {
5657
- _value.selected_actions = Object.assign(Object.assign({}, _value.selected_actions), { [action.id]: action.key || '' });
5658
- onChange && onChange(_value);
5659
- setValue(_value);
5660
- return;
5661
- }
5662
- if (_value.selected_actions[action.id]) {
5663
- delete _value.selected_actions[action.id];
5664
- onChange && onChange(_value);
5665
- setValue(_value);
5666
- return;
5667
- }
5671
+ const handleOnChange = (action) => tslib_es6.__awaiter(void 0, void 0, void 0, function* () {
5672
+ if (!action) {
5673
+ return;
5674
+ }
5675
+ const _value = Object.assign(Object.assign({}, value), { action_id: submitButton === null || submitButton === void 0 ? void 0 : submitButton.id, action_value: submitButton === null || submitButton === void 0 ? void 0 : submitButton.key });
5676
+ if (!_value.selected_actions) {
5677
+ const tmp = {};
5678
+ tmp[action.id] = action === null || action === void 0 ? void 0 : action.key;
5679
+ setValue(Object.assign(Object.assign({}, _value), { selected_actions: Object.assign({}, tmp) }));
5680
+ return;
5681
+ }
5682
+ if (!_value.selected_actions[action.id]) {
5683
+ _value.selected_actions[action.id] = action === null || action === void 0 ? void 0 : action.key;
5684
+ onChange && onChange(_value);
5685
+ setValue(_value);
5686
+ return;
5687
+ }
5688
+ if (_value.selected_actions[action.id]) {
5689
+ delete _value.selected_actions[action.id];
5690
+ onChange && onChange(_value);
5691
+ setValue(_value);
5692
+ return;
5668
5693
  }
5669
5694
  });
5670
5695
  const actionsRemoveMultipleBtn = (_a = node === null || node === void 0 ? void 0 : node.actions) === null || _a === void 0 ? void 0 : _a.filter((a) => a.type !== index$2.NodeActionType.ACTION_MULTIPLE_BUTTON);
5671
5696
  return (React__default["default"].createElement(StyledWrap$3, { id: "si-node-text" },
5672
5697
  React__default["default"].createElement(Container$h, { intents: (node === null || node === void 0 ? void 0 : node.intents) || [], indexNumber: indexNumber }),
5673
- React__default["default"].createElement(Container$7, { value: activeActions, actions: actionsRemoveMultipleBtn, onChange: handleOnChange, formSubmitMeta: value === null || value === void 0 ? void 0 : value.form_submit_meta })));
5698
+ React__default["default"].createElement(Container$7, { value: activeActions, actions: actionsRemoveMultipleBtn, onChange: handleOnChange })));
5674
5699
  };
5675
5700
  Container$5.displayName = 'SubotInlineNodeMultipleContainer';
5676
5701
 
@@ -5714,7 +5739,8 @@ const StyledWrap$2 = styled__default["default"].div `
5714
5739
  `;
5715
5740
 
5716
5741
  const Container$4 = ({ node, indexNumber }) => {
5717
- const { onChange, setIsShowFooter } = React.useContext(SubotInlineContext);
5742
+ var _a;
5743
+ const { params, setIsShowFooter } = React.useContext(SubotInlineContext);
5718
5744
  const { value, setValue } = React.useContext(NodeContext);
5719
5745
  const descriptionNode = useDescriptionPollNode({ node });
5720
5746
  React.useMemo(() => {
@@ -5731,41 +5757,48 @@ const Container$4 = ({ node, indexNumber }) => {
5731
5757
  return null;
5732
5758
  }, [node === null || node === void 0 ? void 0 : node.actions]);
5733
5759
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
5734
- const handleOnChange = (action, formSubmitMeta) => {
5735
- var _a, _b, _c, _d, _e, _f, _g;
5736
- const newValue = JSON.parse(JSON.stringify(Object.assign(Object.assign({}, value), { node_id: node.id, action_id: submitButton === null || submitButton === void 0 ? void 0 : submitButton.id, action_value: submitButton === null || submitButton === void 0 ? void 0 : submitButton.key, form_submit_meta: [...((value === null || value === void 0 ? void 0 : value.form_submit_meta) || [])] })));
5737
- if ((action === null || action === void 0 ? void 0 : action.type) === index$2.NodeActionType.POLL_CHOICE_TEXT_BY_INPUT ||
5738
- (action === null || action === void 0 ? void 0 : action.type) === index$2.NodeActionType.USER_CHOICE_TEXT_BY_INPUT) {
5739
- const isExistedPoll = (_a = newValue.form_submit_meta) === null || _a === void 0 ? void 0 : _a.some(({ action_id }) => action_id === action.id);
5740
- if (isExistedPoll) {
5741
- newValue.form_submit_meta =
5742
- typeof formSubmitMeta === 'undefined'
5743
- ? (_b = newValue.form_submit_meta) === null || _b === void 0 ? void 0 : _b.filter(({ action_id }) => action_id !== action.id)
5744
- : (_c = newValue.form_submit_meta) === null || _c === void 0 ? void 0 : _c.filter(({ action_id }) => action_id !== action.id).concat(formSubmitMeta);
5760
+ const handleOnChange = (formValue, formSubmitMetaWithOther) => {
5761
+ if (formValue) {
5762
+ const { is_multi_select } = node;
5763
+ const _message = Object.assign(Object.assign(Object.assign({}, params), value), { node_id: node.id, action_id: submitButton === null || submitButton === void 0 ? void 0 : submitButton.id, action_value: submitButton === null || submitButton === void 0 ? void 0 : submitButton.key, form_submit_meta: (value === null || value === void 0 ? void 0 : value.form_submit_meta)
5764
+ ? [...value === null || value === void 0 ? void 0 : value.form_submit_meta]
5765
+ : [] });
5766
+ let tmpFormSubmitMeta = [];
5767
+ const currentSubmitMeta = [
5768
+ ..._message === null || _message === void 0 ? void 0 : _message.form_submit_meta,
5769
+ ];
5770
+ if (!formSubmitMetaWithOther) {
5771
+ const formUpdateIndex = currentSubmitMeta.findIndex(({ action_id }) => action_id === formValue.action_id);
5772
+ /**
5773
+ * The current logic when onChange is called will remove/add this poll action in the submit meta
5774
+ * But IF the onChange is called due to the input text other, this action will be not removed from the previous list
5775
+ */
5776
+ if (formUpdateIndex !== -1) {
5777
+ tmpFormSubmitMeta = [
5778
+ ...currentSubmitMeta.slice(0, formUpdateIndex),
5779
+ ...currentSubmitMeta.slice(formUpdateIndex + 1),
5780
+ ];
5781
+ }
5782
+ else {
5783
+ if (!is_multi_select) {
5784
+ tmpFormSubmitMeta = [Object.assign({}, formValue)];
5785
+ }
5786
+ else {
5787
+ tmpFormSubmitMeta = [...currentSubmitMeta];
5788
+ tmpFormSubmitMeta.push(formValue);
5789
+ }
5790
+ }
5745
5791
  }
5746
5792
  else {
5747
- newValue.form_submit_meta = (_d = newValue.form_submit_meta) === null || _d === void 0 ? void 0 : _d.concat([
5748
- {
5749
- key: action === null || action === void 0 ? void 0 : action.key,
5750
- control: index$2.ELEMENT_CONTROL_INPUT_TYPE[action === null || action === void 0 ? void 0 : action.type] || 'text',
5751
- value: '',
5752
- action_id: action === null || action === void 0 ? void 0 : action.id,
5753
- },
5754
- ]);
5793
+ tmpFormSubmitMeta = currentSubmitMeta;
5755
5794
  }
5756
- setValue(newValue);
5757
- onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
5758
- return;
5759
- }
5760
- const isPoll = (_e = newValue.form_submit_meta) === null || _e === void 0 ? void 0 : _e.some(({ action_id }) => action_id === (action === null || action === void 0 ? void 0 : action.action_id));
5761
- if (isPoll) {
5762
- newValue.form_submit_meta = (_f = newValue.form_submit_meta) === null || _f === void 0 ? void 0 : _f.filter(({ action_id }) => action_id !== (action === null || action === void 0 ? void 0 : action.action_id));
5795
+ _message.form_submit_meta = [...tmpFormSubmitMeta]
5796
+ .filter((item) => formSubmitMetaWithOther
5797
+ ? item.key !== KEY_OF_TEXT_CHOICE_WITH_OTHER_FIELD
5798
+ : true)
5799
+ .concat(formSubmitMetaWithOther || []);
5800
+ setValue(_message);
5763
5801
  }
5764
- else {
5765
- newValue.form_submit_meta = (_g = newValue.form_submit_meta) === null || _g === void 0 ? void 0 : _g.concat([action]);
5766
- }
5767
- setValue(newValue);
5768
- onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
5769
5802
  };
5770
5803
  const activeActions = React.useMemo(() => {
5771
5804
  if (value === null || value === void 0 ? void 0 : value.form_submit_meta) {
@@ -5773,14 +5806,10 @@ const Container$4 = ({ node, indexNumber }) => {
5773
5806
  }
5774
5807
  return [];
5775
5808
  }, [value, value === null || value === void 0 ? void 0 : value.form_submit_meta]);
5776
- React.useEffect(() => {
5777
- console.log('adfsafsdf');
5778
- setValue(node === null || node === void 0 ? void 0 : node._message);
5779
- }, []);
5780
5809
  return (React__default["default"].createElement(StyledWrap$2, null,
5781
5810
  React__default["default"].createElement(Container$h, { intents: node.intents || [], indexNumber: indexNumber }),
5782
5811
  React__default["default"].createElement("p", { className: "si-poll-description" }, descriptionNode),
5783
- React__default["default"].createElement(Container$7, { node_type: node === null || node === void 0 ? void 0 : node.type, value: activeActions, actions: node === null || node === void 0 ? void 0 : node.actions, onChange: handleOnChange, formSubmitMeta: value === null || value === void 0 ? void 0 : value.form_submit_meta })));
5812
+ React__default["default"].createElement(Container$7, { node_type: node === null || node === void 0 ? void 0 : node.type, value: activeActions, actions: node === null || node === void 0 ? void 0 : node.actions, onChange: handleOnChange, formSubmitMeta: (_a = node._message) === null || _a === void 0 ? void 0 : _a.form_submit_meta })));
5784
5813
  };
5785
5814
  Container$4.displayName = 'SubotinlineNodePoll';
5786
5815
 
@@ -5851,6 +5880,7 @@ const StyledWrap = styled__default["default"].div `
5851
5880
  `;
5852
5881
 
5853
5882
  const Container$2 = ({ node, indexNumber }) => {
5883
+ var _a;
5854
5884
  const { params, onSubmit, setIsShowFooter, listNodes, activeId, setLoading, onChange, } = React.useContext(SubotInlineContext);
5855
5885
  const { value, setValue } = React.useContext(NodeContext);
5856
5886
  React.useMemo(() => {
@@ -5870,7 +5900,7 @@ const Container$2 = ({ node, indexNumber }) => {
5870
5900
  const res = yield subotInlineMessage(newParams);
5871
5901
  setLoading(false);
5872
5902
  if ((res === null || res === void 0 ? void 0 : res._status) === 1) {
5873
- const _a = res === null || res === void 0 ? void 0 : res._data, { node } = _a, restData = tslib_es6.__rest(_a, ["node"]);
5903
+ const _b = res === null || res === void 0 ? void 0 : res._data, { node } = _b, restData = tslib_es6.__rest(_b, ["node"]);
5874
5904
  const nextNode = Object.assign(Object.assign({}, node), { _message: Object.assign(Object.assign({}, restData), { node_id: node.id }) });
5875
5905
  onSubmit(nextNode, newParams);
5876
5906
  }
@@ -5878,21 +5908,28 @@ const Container$2 = ({ node, indexNumber }) => {
5878
5908
  const handleOnChange = (action, formSubmitMeta) => tslib_es6.__awaiter(void 0, void 0, void 0, function* () {
5879
5909
  if (!action)
5880
5910
  return;
5881
- const actionWithOther = (action === null || action === void 0 ? void 0 : action.type) === index$2.NodeActionType.USER_CHOICE_TEXT_BY_INPUT ||
5882
- (action === null || action === void 0 ? void 0 : action.type) === index$2.NodeActionType.POLL_CHOICE_TEXT_BY_INPUT;
5883
- const newValue = Object.assign(Object.assign({}, value), { action_id: action === null || action === void 0 ? void 0 : action.id, action_value: action === null || action === void 0 ? void 0 : action.key, form_submit_meta: formSubmitMeta });
5884
- if (actionWithOther) {
5885
- setValue(newValue);
5886
- onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
5911
+ const isActionSelectWithOther = action.type === index$2.NodeActionType.USER_CHOICE_TEXT_BY_INPUT;
5912
+ setValue(Object.assign(Object.assign({}, value), { action_id: action === null || action === void 0 ? void 0 : action.id, action_value: action === null || action === void 0 ? void 0 : action.key }));
5913
+ if (!isActionSelectWithOther) {
5914
+ handleOnChangeNormal(action);
5887
5915
  return;
5888
5916
  }
5889
- delete newValue.form_submit_meta;
5890
- setValue(newValue);
5891
- handleOnChangeNormal(action);
5917
+ if (formSubmitMeta) {
5918
+ const newParams = Object.assign(Object.assign(Object.assign(Object.assign({}, params), value), { node_id: node.id, action_id: action === null || action === void 0 ? void 0 : action.id, action_value: action === null || action === void 0 ? void 0 : action.key, form_submit_meta: formSubmitMeta }), getCurrentTotalDynamicScore(listNodes, activeId, action.id));
5919
+ onChange(newParams);
5920
+ setLoading(true);
5921
+ const res = yield subotInlineMessage(newParams);
5922
+ setLoading(false);
5923
+ if ((res === null || res === void 0 ? void 0 : res._status) === 1) {
5924
+ const _c = res === null || res === void 0 ? void 0 : res._data, { node } = _c, restData = tslib_es6.__rest(_c, ["node"]);
5925
+ const nextNode = Object.assign(Object.assign({}, node), { _message: Object.assign(Object.assign({}, restData), { node_id: node.id }) });
5926
+ onSubmit(nextNode, newParams);
5927
+ }
5928
+ }
5892
5929
  });
5893
5930
  return (React__default["default"].createElement(StyledWrap, { id: "si-node-text" },
5894
5931
  React__default["default"].createElement(Container$h, { intents: (node === null || node === void 0 ? void 0 : node.intents) || [], indexNumber: indexNumber }),
5895
- React__default["default"].createElement(Container$7, { value: (value === null || value === void 0 ? void 0 : value.action_id) ? [value === null || value === void 0 ? void 0 : value.action_id] : [], actions: node === null || node === void 0 ? void 0 : node.actions, onChange: handleOnChange, formSubmitMeta: value === null || value === void 0 ? void 0 : value.form_submit_meta })));
5932
+ React__default["default"].createElement(Container$7, { value: (value === null || value === void 0 ? void 0 : value.action_id) ? [value === null || value === void 0 ? void 0 : value.action_id] : [], actions: node === null || node === void 0 ? void 0 : node.actions, onChange: handleOnChange, formSubmitMeta: (_a = node === null || node === void 0 ? void 0 : node._message) === null || _a === void 0 ? void 0 : _a.form_submit_meta })));
5896
5933
  };
5897
5934
  Container$2.displayName = 'SubotInlineNodeTextContainer';
5898
5935