@hhgtech/hhg-components 1.29.310-beta-5 → 1.29.311

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 (504) hide show
  1. package/README.md +0 -2
  2. package/build/{LastPeriod-93ebc51a.js → LastPeriod-2107ce0b.js} +1 -1
  3. package/build/{MobileBottomNavigationIcon-3d454fab.js → MobileBottomNavigationIcon-2fa0dfec.js} +3 -3
  4. package/build/{Spinner-545ead79.js → Spinner-5eeed23a.js} +1 -1
  5. package/build/{WhatsApp-0ddcf5ef.js → WhatsApp-93a9b026.js} +1 -1
  6. package/build/adapters.js +19 -19
  7. package/build/atoms.js +46 -46
  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.js +90 -90
  14. package/build/{constants-29d2c733.js → constants-a3c59889.js} +1 -1
  15. package/build/constants.js +3 -3
  16. package/build/constantsDomainLocales.js +1 -1
  17. package/build/constantsRiskScreener.js +2 -2
  18. package/build/constantsSite.js +2 -2
  19. package/build/{core-79b621cd.js → core-ecc818f0.js} +1 -1
  20. package/build/{dataTransform-603cb3b7.js → dataTransform-df350bff.js} +1 -1
  21. package/build/ecom.js +4 -4
  22. package/build/{editor-ee813604.js → editor-40df96a9.js} +11 -11
  23. package/build/embeddedHeathToolCards_babyGrowth.js +23 -23
  24. package/build/embeddedHeathToolCards_babyPoop.js +19 -19
  25. package/build/embeddedHeathToolCards_babyVaccine.js +22 -22
  26. package/build/embeddedHeathToolCards_bmi_bmi.js +25 -25
  27. package/build/embeddedHeathToolCards_bmrBmr.js +25 -25
  28. package/build/embeddedHeathToolCards_dueDate_dueDate.js +22 -22
  29. package/build/embeddedHeathToolCards_ovulation_ovulation.js +22 -22
  30. package/build/embeddedHeathToolCards_pwg_pwg.js +26 -26
  31. package/build/embeddedHeathToolCards_targetHeartRate.js +27 -27
  32. package/build/esm/{LastPeriod-6427f16d.js → LastPeriod-e3951455.js} +1 -1
  33. package/build/esm/{MobileBottomNavigationIcon-54afba79.js → MobileBottomNavigationIcon-9216cca7.js} +3 -3
  34. package/build/esm/{Spinner-d9c3c089.js → Spinner-903430aa.js} +1 -1
  35. package/build/esm/{WhatsApp-3817574d.js → WhatsApp-a64943bc.js} +1 -1
  36. package/build/esm/adapters.js +19 -19
  37. package/build/esm/atoms.js +46 -46
  38. package/build/esm/babyGrowth.js +83 -83
  39. package/build/esm/cache.js +2 -2
  40. package/build/esm/care.js +17 -17
  41. package/build/esm/careBookingSearchBar.js +14 -14
  42. package/build/esm/careBookingSearchBarV2.js +15 -15
  43. package/build/esm/components.js +90 -90
  44. package/build/esm/{constants-93492225.js → constants-79f4e640.js} +1 -1
  45. package/build/esm/constants.js +3 -3
  46. package/build/esm/constantsDomainLocales.js +1 -1
  47. package/build/esm/constantsRiskScreener.js +2 -2
  48. package/build/esm/constantsSite.js +2 -2
  49. package/build/esm/{core-f0306b16.js → core-1a9ff9e4.js} +1 -1
  50. package/build/esm/{dataTransform-1ef6e73e.js → dataTransform-c881832b.js} +1 -1
  51. package/build/esm/ecom.js +4 -4
  52. package/build/esm/{editor-9e48c6c6.js → editor-cf4bd5c2.js} +11 -11
  53. package/build/esm/embeddedHeathToolCards_babyGrowth.js +23 -23
  54. package/build/esm/embeddedHeathToolCards_babyPoop.js +19 -19
  55. package/build/esm/embeddedHeathToolCards_babyVaccine.js +22 -22
  56. package/build/esm/embeddedHeathToolCards_bmi_bmi.js +25 -25
  57. package/build/esm/embeddedHeathToolCards_bmrBmr.js +25 -25
  58. package/build/esm/embeddedHeathToolCards_dueDate_dueDate.js +22 -22
  59. package/build/esm/embeddedHeathToolCards_ovulation_ovulation.js +22 -22
  60. package/build/esm/embeddedHeathToolCards_pwg_pwg.js +26 -26
  61. package/build/esm/embeddedHeathToolCards_targetHeartRate.js +27 -27
  62. package/build/esm/{fixedBottomAdBlock-1240d06b.js → fixedBottomAdBlock-46427068.js} +24 -24
  63. package/build/esm/footer.js +21 -21
  64. package/build/esm/gAssets.js +2 -2
  65. package/build/esm/healthToolsCardWrapper.js +18 -18
  66. package/build/esm/healthToolsForm.js +33 -33
  67. package/build/esm/hooks.js +13 -13
  68. package/build/esm/i18n/translationKeys.d.ts +1 -1
  69. package/build/esm/i18n-values/en-PH.js +0 -1
  70. package/build/esm/i18n-values/hi-IN.js +0 -1
  71. package/build/esm/i18n-values/id-ID.js +0 -1
  72. package/build/esm/i18n-values/km-KH.js +1 -2
  73. package/build/esm/i18n-values/ms-MY.js +0 -1
  74. package/build/esm/i18n-values/my-MM.js +0 -1
  75. package/build/esm/i18n-values/th-TH.js +0 -1
  76. package/build/esm/i18n-values/tl-PH.js +0 -1
  77. package/build/esm/i18n-values/vi-VN.js +0 -1
  78. package/build/esm/i18n-values/vi-VN_MB.js +0 -1
  79. package/build/esm/i18n-values/zh-TW.js +0 -1
  80. package/build/esm/i18n.js +2 -2
  81. package/build/esm/i18nV2.js +2 -2
  82. package/build/esm/{index-4bd879eb.js → index-0099b8f2.js} +1 -1
  83. package/build/esm/{index-334295e8.js → index-0202ef16.js} +3 -3
  84. package/build/esm/{index-efc5bd83.js → index-060736dd.js} +7 -7
  85. package/build/esm/{index-02c7eba8.js → index-0fa8c9a5.js} +5 -5
  86. package/build/esm/{index-c691a5d0.js → index-10898fb6.js} +15 -15
  87. package/build/esm/{index-84288de1.js → index-116f69cf.js} +1 -1
  88. package/build/esm/{index-333c675d.js → index-13f9bf44.js} +30 -30
  89. package/build/esm/{index-18d2773b.js → index-148c8577.js} +5 -5
  90. package/build/esm/{index-26ac0d81.js → index-14bfa2c9.js} +2 -2
  91. package/build/esm/{index-a65a00ab.js → index-16e03c09.js} +2 -2
  92. package/build/esm/{index-c6dd477d.js → index-189a9824.js} +3 -3
  93. package/build/esm/{index-de9b6c66.js → index-1d64e6cf.js} +26 -26
  94. package/build/esm/{index-f92a27e8.js → index-2bf08a6b.js} +2 -2
  95. package/build/esm/{index-30a6b0c3.js → index-2f27692b.js} +13 -13
  96. package/build/esm/{index-a6debbcc.js → index-308d4854.js} +3 -3
  97. package/build/esm/{index-556eaa5a.js → index-340d1a01.js} +24 -24
  98. package/build/esm/{index-ff0d87c0.js → index-347f6319.js} +2 -2
  99. package/build/esm/{index-6f2084f2.js → index-3afff570.js} +18 -18
  100. package/build/esm/{index-de0db7c7.js → index-3d3d0613.js} +2 -2
  101. package/build/esm/{index-53dbc2d0.js → index-41fff10e.js} +3 -3
  102. package/build/esm/{index-5915bbe9.js → index-434b8921.js} +21 -21
  103. package/build/esm/{index-a61170d8.js → index-4a13f41d.js} +1 -1
  104. package/build/esm/{index-9f703518.js → index-4c62f4db.js} +6 -6
  105. package/build/esm/{index-58646f33.js → index-4cc596e0.js} +7 -7
  106. package/build/esm/{index-43b78550.js → index-53014194.js} +13 -13
  107. package/build/esm/{index-c96c8d0b.js → index-630296c3.js} +1 -1
  108. package/build/esm/{index-6dc065e0.js → index-6354b22f.js} +3 -3
  109. package/build/esm/{index-902860a7.js → index-66c9c3c6.js} +16 -16
  110. package/build/esm/{index-88759ed1.js → index-6bb36621.js} +1 -1
  111. package/build/esm/{index-bba5d96b.js → index-6c43703a.js} +6 -6
  112. package/build/esm/{index-fe138667.js → index-75b8afb7.js} +1 -1
  113. package/build/esm/{index-6eca1b84.js → index-78e5203a.js} +13 -13
  114. package/build/esm/{index-8d741397.js → index-7da61d52.js} +2 -2
  115. package/build/esm/{index-67433083.js → index-809fc2cb.js} +32 -32
  116. package/build/esm/{index-eff9c6f6.js → index-81f30b2c.js} +6 -6
  117. package/build/esm/{index-e65a76fd.js → index-85f514dd.js} +17 -17
  118. package/build/esm/{index-1f3e450b.js → index-88358d84.js} +13 -13
  119. package/build/esm/{index-8e632574.js → index-8d5b7ebd.js} +16 -16
  120. package/build/esm/{index-d5abff8c.js → index-9e9fd42c.js} +1 -1
  121. package/build/esm/{index-9ed6478a.js → index-a7f516ad.js} +2 -2
  122. package/build/esm/{index-5bbc2e7e.js → index-ae56762e.js} +17 -17
  123. package/build/esm/{index-5756472c.js → index-b4ead995.js} +2 -2
  124. package/build/esm/{index-974c8ac0.js → index-b5a40899.js} +11 -11
  125. package/build/esm/{index-2995d38d.js → index-b6442a0d.js} +20 -20
  126. package/build/esm/{index-7cbc7122.js → index-be992c75.js} +3 -3
  127. package/build/esm/{index-5e983251.js → index-c5c3e71e.js} +2 -2
  128. package/build/esm/{index-df945777.js → index-c5c4cd20.js} +6 -6
  129. package/build/esm/{index-728d3672.js → index-c85f723d.js} +15 -15
  130. package/build/esm/{index-56166ea9.js → index-ca0e9bf8.js} +18 -18
  131. package/build/esm/{index-5e38d731.js → index-cdb8c87e.js} +1 -1
  132. package/build/esm/{index-f7a1be3d.js → index-cde9ca6c.js} +18 -18
  133. package/build/esm/{index-8d92fdfc.js → index-cf31f84c.js} +2 -2
  134. package/build/esm/{index-6d670de3.js → index-d291e7d4.js} +3 -3
  135. package/build/esm/{index-21dd1ec2.js → index-d5dc6344.js} +2 -2
  136. package/build/esm/{index-da48077f.js → index-d92ce05b.js} +17 -17
  137. package/build/esm/{index-463a73f4.js → index-dd2caaea.js} +4 -4
  138. package/build/esm/{index-eaa201ba.js → index-e33334d0.js} +2 -2
  139. package/build/esm/{index-a4d5e355.js → index-e66f15e0.js} +10 -10
  140. package/build/esm/{index-ad33b0de.js → index-e6e1a986.js} +16 -16
  141. package/build/esm/{index-2ec3c0b8.js → index-fa13fe6b.js} +1 -1
  142. package/build/esm/index.js +112 -112
  143. package/build/esm/{labelSorting-69152711.js → labelSorting-76cf0104.js} +4 -4
  144. package/build/esm/lead.js +24 -24
  145. package/build/esm/{logoIcon-f7d8a376.js → logoIcon-90c6ed4d.js} +2 -2
  146. package/build/esm/mantine.js +25 -25
  147. package/build/esm/misc.js +16 -16
  148. package/build/esm/miscGetDynamicHealthTool.js +4 -4
  149. package/build/esm/miscGetSocialList.js +8 -8
  150. package/build/esm/miscScreenSizeContext.js +1 -1
  151. package/build/esm/mobileBottomNavigation.js +5 -5
  152. package/build/esm/mobileBottomNavigationIcon.js +5 -5
  153. package/build/esm/molecules.js +69 -69
  154. package/build/esm/moleculesArticleCard.js +6 -6
  155. package/build/esm/moleculesArticleCardV2.js +16 -16
  156. package/build/esm/navigation.js +40 -40
  157. package/build/esm/navigationLogoutPopup.js +9 -9
  158. package/build/esm/navigationProfileButton.js +23 -23
  159. package/build/esm/onboardingV2.js +29 -29
  160. package/build/esm/organisms.js +44 -44
  161. package/build/esm/{post-bb0e92f7.js → post-0c8fcb47.js} +2 -2
  162. package/build/esm/profileNavigation.js +19 -19
  163. package/build/esm/progressBar.js +1 -1
  164. package/build/esm/pwg.js +22 -22
  165. package/build/esm/ssoV2/api/paths.d.ts +0 -1
  166. package/build/esm/ssoV2/index.d.ts +0 -5
  167. package/build/esm/ssoV2/screens/setup/otherSetup.d.ts +1 -1
  168. package/build/esm/ssoV2/ssoStateManager/store.d.ts +0 -14
  169. package/build/esm/ssoV2.js +247 -436
  170. package/build/esm/{store-36a2023e.js → store-2a1b6eeb.js} +5 -24
  171. package/build/esm/subot.js +33 -33
  172. package/build/esm/surveyOrPremiumBanner.js +31 -31
  173. package/build/esm/surveyQuestionCard.js +10 -10
  174. package/build/esm/{surveyThankyouCard-2fcfe267.js → surveyThankyouCard-876d3fa8.js} +5 -5
  175. package/build/esm/together.js +53 -53
  176. package/build/esm/togetherApiUtils.js +4 -4
  177. package/build/esm/togetherAtoms.js +30 -30
  178. package/build/esm/togetherComponentGlobalContext.js +4 -4
  179. package/build/esm/togetherMolecules.js +48 -48
  180. package/build/esm/togetherMoleculesCardAuthor.js +27 -27
  181. package/build/esm/togetherMoleculesPostImagePreview.js +11 -11
  182. package/build/esm/togetherMoleculesProfileDetail.js +37 -37
  183. package/build/esm/togetherOrganisms.js +47 -47
  184. package/build/esm/togetherRichTextEditor.js +17 -17
  185. package/build/esm/togetherShareBox.js +10 -10
  186. package/build/esm/{treePopoverMenu-f4cb9e8b.js → treePopoverMenu-b567b402.js} +19 -19
  187. package/build/esm/{types-2bf4e0a0.js → types-98286e03.js} +2 -2
  188. package/build/esm/types.js +2 -2
  189. package/build/esm/{useCategory-937f06fd.js → useCategory-e9703fcc.js} +5 -5
  190. package/build/esm/{useHealthToolCache-cbe233c1.js → useHealthToolCache-497b3113.js} +1 -1
  191. package/build/esm/{useMantineLocale-c2b902a7.js → useMantineLocale-bd1e758a.js} +6 -6
  192. package/build/esm/{usePlacesAutocomplete-f8b1b6ce.js → usePlacesAutocomplete-d6c6019b.js} +1 -1
  193. package/build/esm/{useScreenSize-adb5e955.js → useScreenSize-40c82c05.js} +2 -2
  194. package/build/esm/useTogetherAuthRequiredAction.js +9 -9
  195. package/build/esm/{utils-33525a90.js → utils-10430638.js} +3 -3
  196. package/build/esm/{utils-10cbbbdc.js → utils-5f291626.js} +2 -2
  197. package/build/esm/{utils-3a31fb8d.js → utils-e5d33fe3.js} +2 -2
  198. package/build/esm/vaccination.js +21 -21
  199. package/build/{fixedBottomAdBlock-2bdd69ca.js → fixedBottomAdBlock-fb98a4e6.js} +24 -24
  200. package/build/footer.js +21 -21
  201. package/build/gAssets.js +2 -2
  202. package/build/healthToolsCardWrapper.js +18 -18
  203. package/build/healthToolsForm.js +33 -33
  204. package/build/hooks.js +13 -13
  205. package/build/i18n/translationKeys.d.ts +1 -1
  206. package/build/i18n-values/en-PH.js +0 -1
  207. package/build/i18n-values/hi-IN.js +0 -1
  208. package/build/i18n-values/id-ID.js +0 -1
  209. package/build/i18n-values/km-KH.js +1 -2
  210. package/build/i18n-values/ms-MY.js +0 -1
  211. package/build/i18n-values/my-MM.js +0 -1
  212. package/build/i18n-values/th-TH.js +0 -1
  213. package/build/i18n-values/tl-PH.js +0 -1
  214. package/build/i18n-values/vi-VN.js +0 -1
  215. package/build/i18n-values/vi-VN_MB.js +0 -1
  216. package/build/i18n-values/zh-TW.js +0 -1
  217. package/build/i18n.js +1 -1
  218. package/build/i18nV2.js +1 -1
  219. package/build/{index-a8cd4428.js → index-0c5b5a40.js} +20 -20
  220. package/build/{index-cda50901.js → index-188f5a1c.js} +2 -2
  221. package/build/{index-01483c32.js → index-1d6281f6.js} +1 -1
  222. package/build/{index-c6dabd17.js → index-1e0434fd.js} +5 -5
  223. package/build/{index-3aae6ed2.js → index-1f9ad2eb.js} +1 -1
  224. package/build/{index-ad80b183.js → index-23805e05.js} +6 -6
  225. package/build/{index-c01afb63.js → index-2551c303.js} +1 -1
  226. package/build/{index-165472b7.js → index-286cce3b.js} +17 -17
  227. package/build/{index-141b85d6.js → index-2baef874.js} +1 -1
  228. package/build/{index-06cf85bd.js → index-2e0023c8.js} +15 -15
  229. package/build/{index-cb4468c0.js → index-32f52199.js} +4 -4
  230. package/build/{index-635f1e73.js → index-34fe205a.js} +10 -10
  231. package/build/{index-11a6f008.js → index-3aec5aee.js} +2 -2
  232. package/build/{index-82cf4d4f.js → index-3c10fbfa.js} +2 -2
  233. package/build/{index-8ffe558b.js → index-40771dad.js} +3 -3
  234. package/build/{index-2977f557.js → index-46b2200b.js} +16 -16
  235. package/build/{index-fddb8755.js → index-4a04c1d8.js} +7 -7
  236. package/build/{index-b541306a.js → index-4b623617.js} +2 -2
  237. package/build/{index-81b58b86.js → index-4df71ee6.js} +17 -17
  238. package/build/{index-fc6f41d4.js → index-4ee89043.js} +3 -3
  239. package/build/{index-990699bb.js → index-4f1ed7eb.js} +2 -2
  240. package/build/{index-9749de0b.js → index-53aa2337.js} +15 -15
  241. package/build/{index-e99a6160.js → index-55e75fea.js} +18 -18
  242. package/build/{index-885aede1.js → index-56fff3f2.js} +1 -1
  243. package/build/{index-21fee443.js → index-5874bcf9.js} +6 -6
  244. package/build/{index-ed995666.js → index-606a09c0.js} +1 -1
  245. package/build/{index-ea44eed5.js → index-6089f95a.js} +16 -16
  246. package/build/{index-9e32cd19.js → index-685db51a.js} +24 -24
  247. package/build/{index-eca921e1.js → index-6ee7fe98.js} +30 -30
  248. package/build/{index-1f6c4aae.js → index-76efb5fb.js} +1 -1
  249. package/build/{index-107686c2.js → index-89b71178.js} +3 -3
  250. package/build/{index-48c10a94.js → index-8aad4619.js} +18 -18
  251. package/build/{index-e3c62210.js → index-8fc3d400.js} +7 -7
  252. package/build/{index-ba55adbd.js → index-90ab1ea7.js} +3 -3
  253. package/build/{index-841cb4ad.js → index-9125292c.js} +3 -3
  254. package/build/{index-fded0d44.js → index-95320aa8.js} +1 -1
  255. package/build/{index-56d369df.js → index-95ccdb7f.js} +3 -3
  256. package/build/{index-85bca058.js → index-969cd112.js} +11 -11
  257. package/build/{index-650908cb.js → index-96be67bf.js} +2 -2
  258. package/build/{index-5fd6dce7.js → index-99410d26.js} +2 -2
  259. package/build/{index-17c0c2f6.js → index-9a625f5e.js} +13 -13
  260. package/build/{index-aee4ebbb.js → index-9de29abf.js} +16 -16
  261. package/build/{index-c253c3e4.js → index-9e2d7c97.js} +5 -5
  262. package/build/{index-a7456a60.js → index-a834d49b.js} +3 -3
  263. package/build/{index-4391c1be.js → index-ad33b8f9.js} +18 -18
  264. package/build/{index-0c5d68d1.js → index-aef6ff34.js} +32 -32
  265. package/build/{index-e957ae0f.js → index-b6d27f9a.js} +21 -21
  266. package/build/{index-998e8726.js → index-bfad3960.js} +2 -2
  267. package/build/{index-6c4992c4.js → index-c08747a6.js} +26 -26
  268. package/build/{index-d8a7becc.js → index-c3785047.js} +2 -2
  269. package/build/{index-f5f85dbf.js → index-d3872755.js} +2 -2
  270. package/build/{index-23f0f591.js → index-e1e08c25.js} +2 -2
  271. package/build/{index-e9d88ea8.js → index-e208b34a.js} +13 -13
  272. package/build/{index-390495f0.js → index-e649c3f8.js} +6 -6
  273. package/build/{index-be776730.js → index-e67c5ae1.js} +1 -1
  274. package/build/{index-a8e43760.js → index-e811fb10.js} +13 -13
  275. package/build/{index-487476a5.js → index-e8747d65.js} +13 -13
  276. package/build/{index-a1f7a19c.js → index-ea370ff2.js} +17 -17
  277. package/build/{index-54fe7b0a.js → index-ee69c925.js} +2 -2
  278. package/build/{index-cc290860.js → index-fd92c8a1.js} +6 -6
  279. package/build/index.js +112 -112
  280. package/build/{labelSorting-dc2c3bd8.js → labelSorting-95a1a528.js} +4 -4
  281. package/build/lead.js +24 -24
  282. package/build/{logoIcon-135dc217.js → logoIcon-e5bd7343.js} +2 -2
  283. package/build/mantine.js +22 -22
  284. package/build/misc.js +16 -16
  285. package/build/miscGetDynamicHealthTool.js +4 -4
  286. package/build/miscGetSocialList.js +8 -8
  287. package/build/miscScreenSizeContext.js +1 -1
  288. package/build/mobileBottomNavigation.js +5 -5
  289. package/build/mobileBottomNavigationIcon.js +5 -5
  290. package/build/molecules.js +69 -69
  291. package/build/moleculesArticleCard.js +6 -6
  292. package/build/moleculesArticleCardV2.js +16 -16
  293. package/build/navigation.js +40 -40
  294. package/build/navigationLogoutPopup.js +9 -9
  295. package/build/navigationProfileButton.js +23 -23
  296. package/build/onboardingV2.js +28 -28
  297. package/build/organisms.js +44 -44
  298. package/build/{post-8b96aa7f.js → post-88476eaa.js} +2 -2
  299. package/build/profileNavigation.js +19 -19
  300. package/build/progressBar.js +1 -1
  301. package/build/pwg.js +22 -22
  302. package/build/ssoV2/api/paths.d.ts +0 -1
  303. package/build/ssoV2/index.d.ts +0 -5
  304. package/build/ssoV2/screens/setup/otherSetup.d.ts +1 -1
  305. package/build/ssoV2/ssoStateManager/store.d.ts +0 -14
  306. package/build/ssoV2.js +244 -433
  307. package/build/{store-77e43fb8.js → store-69bb3be7.js} +4 -26
  308. package/build/subot.js +32 -32
  309. package/build/surveyOrPremiumBanner.js +31 -31
  310. package/build/surveyQuestionCard.js +10 -10
  311. package/build/{surveyThankyouCard-51d2f175.js → surveyThankyouCard-56f0ae37.js} +5 -5
  312. package/build/together.js +53 -53
  313. package/build/togetherApiUtils.js +4 -4
  314. package/build/togetherAtoms.js +30 -30
  315. package/build/togetherComponentGlobalContext.js +4 -4
  316. package/build/togetherMolecules.js +48 -48
  317. package/build/togetherMoleculesCardAuthor.js +27 -27
  318. package/build/togetherMoleculesPostImagePreview.js +11 -11
  319. package/build/togetherMoleculesProfileDetail.js +37 -37
  320. package/build/togetherOrganisms.js +47 -47
  321. package/build/togetherRichTextEditor.js +17 -17
  322. package/build/togetherShareBox.js +10 -10
  323. package/build/{treePopoverMenu-ec18536b.js → treePopoverMenu-87ca9b4c.js} +19 -19
  324. package/build/{types-e37ef133.js → types-267e6ecb.js} +2 -2
  325. package/build/types.js +2 -2
  326. package/build/{useCategory-645f6b16.js → useCategory-601dc682.js} +5 -5
  327. package/build/{useHealthToolCache-0dd32c9d.js → useHealthToolCache-fb8ea8e7.js} +1 -1
  328. package/build/{useMantineLocale-ed32e2e5.js → useMantineLocale-48052e4d.js} +6 -6
  329. package/build/{usePlacesAutocomplete-15ca451d.js → usePlacesAutocomplete-32fb6ea6.js} +1 -1
  330. package/build/{useScreenSize-ce6c2232.js → useScreenSize-e56ada5a.js} +2 -2
  331. package/build/useTogetherAuthRequiredAction.js +9 -9
  332. package/build/{utils-7b31a6bc.js → utils-51039a43.js} +2 -2
  333. package/build/{utils-03448a22.js → utils-741b2173.js} +3 -3
  334. package/build/{utils-1f5a1128.js → utils-bc112548.js} +2 -2
  335. package/build/vaccination.js +21 -21
  336. package/package.json +1 -1
  337. package/build/esm/ssoV2/screens/components/progressBar.d.ts +0 -14
  338. package/build/esm/ssoV2/screens/components/progressBar.utils.d.ts +0 -6
  339. package/build/esm/ssoV2/screens/components/setupLater.d.ts +0 -6
  340. package/build/ssoV2/screens/components/progressBar.d.ts +0 -14
  341. package/build/ssoV2/screens/components/progressBar.utils.d.ts +0 -6
  342. package/build/ssoV2/screens/components/setupLater.d.ts +0 -6
  343. /package/build/{BMI_BOYS.percentile.monthly-34bb802d.js → BMI_BOYS.percentile.monthly-93d6990e.js} +0 -0
  344. /package/build/{BMI_BOYS.percentile.weekly-b781fbf4.js → BMI_BOYS.percentile.weekly-9de93fe7.js} +0 -0
  345. /package/build/{BMI_BOYS.percentile.yearly-1b135a83.js → BMI_BOYS.percentile.yearly-a40e7b56.js} +0 -0
  346. /package/build/{BMI_BOYS.zscore.monthly-372c40c1.js → BMI_BOYS.zscore.monthly-ba9026f5.js} +0 -0
  347. /package/build/{BMI_BOYS.zscore.weekly-b9cb7209.js → BMI_BOYS.zscore.weekly-a7de23e7.js} +0 -0
  348. /package/build/{BMI_BOYS.zscore.yearly-afbab117.js → BMI_BOYS.zscore.yearly-1416c78c.js} +0 -0
  349. /package/build/{BMI_GIRLS.percentile.monthly-6c835e41.js → BMI_GIRLS.percentile.monthly-4790fce8.js} +0 -0
  350. /package/build/{BMI_GIRLS.percentile.weekly-91964c71.js → BMI_GIRLS.percentile.weekly-f929726a.js} +0 -0
  351. /package/build/{BMI_GIRLS.percentile.yearly-14ec2adc.js → BMI_GIRLS.percentile.yearly-4387c6c5.js} +0 -0
  352. /package/build/{BMI_GIRLS.zscore.monthly-ea677d60.js → BMI_GIRLS.zscore.monthly-4c264643.js} +0 -0
  353. /package/build/{BMI_GIRLS.zscore.weekly-1ddc89e0.js → BMI_GIRLS.zscore.weekly-a133bb6e.js} +0 -0
  354. /package/build/{BMI_GIRLS.zscore.yearly-c8bc48fd.js → BMI_GIRLS.zscore.yearly-a0404db2.js} +0 -0
  355. /package/build/{ChevronDown-a4736fff.js → ChevronDown-aaa35ea2.js} +0 -0
  356. /package/build/{Close-c60379ca.js → Close-6c6e9720.js} +0 -0
  357. /package/build/{Google-b0097190.js → Google-10b046ef.js} +0 -0
  358. /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-f02ba12b.js → HEAD CIRCUM_BOYS.percentile.monthly-f63b1535.js} +0 -0
  359. /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-3da81a47.js → HEAD CIRCUM_BOYS.percentile.weekly-5a387c89.js} +0 -0
  360. /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-fcfb0d59.js → HEAD CIRCUM_BOYS.percentile.yearly-e257b63e.js} +0 -0
  361. /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-cbbbcaaa.js → HEAD CIRCUM_BOYS.zscore.monthly-2676a44b.js} +0 -0
  362. /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-492600c3.js → HEAD CIRCUM_BOYS.zscore.weekly-4fee3b5b.js} +0 -0
  363. /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-c2e10d0c.js → HEAD CIRCUM_BOYS.zscore.yearly-545e264d.js} +0 -0
  364. /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-96aa3937.js → HEAD CIRCUM_GIRLS.percentile.monthly-ae0d3971.js} +0 -0
  365. /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-bd027857.js → HEAD CIRCUM_GIRLS.percentile.weekly-b472028c.js} +0 -0
  366. /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-e96a83fc.js → HEAD CIRCUM_GIRLS.percentile.yearly-7a362bfe.js} +0 -0
  367. /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-dfbce003.js → HEAD CIRCUM_GIRLS.zscore.monthly-e48d6185.js} +0 -0
  368. /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-683838ce.js → HEAD CIRCUM_GIRLS.zscore.weekly-8a9676c2.js} +0 -0
  369. /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-87483c17.js → HEAD CIRCUM_GIRLS.zscore.yearly-d213569e.js} +0 -0
  370. /package/build/{HEIGHT_BOYS.percentile.monthly-f212f0ef.js → HEIGHT_BOYS.percentile.monthly-57cf9281.js} +0 -0
  371. /package/build/{HEIGHT_BOYS.percentile.weekly-bf145456.js → HEIGHT_BOYS.percentile.weekly-155a877f.js} +0 -0
  372. /package/build/{HEIGHT_BOYS.percentile.yearly-8645cdb1.js → HEIGHT_BOYS.percentile.yearly-94b0bdeb.js} +0 -0
  373. /package/build/{HEIGHT_BOYS.zscore.monthly-6ad90703.js → HEIGHT_BOYS.zscore.monthly-4d7065ee.js} +0 -0
  374. /package/build/{HEIGHT_BOYS.zscore.weekly-a669ab0f.js → HEIGHT_BOYS.zscore.weekly-cc0f3ef4.js} +0 -0
  375. /package/build/{HEIGHT_BOYS.zscore.yearly-e6cb3749.js → HEIGHT_BOYS.zscore.yearly-1d12eeaa.js} +0 -0
  376. /package/build/{HEIGHT_GIRLS.percentile.monthly-da82bbaf.js → HEIGHT_GIRLS.percentile.monthly-5af692bf.js} +0 -0
  377. /package/build/{HEIGHT_GIRLS.percentile.weekly-71cca834.js → HEIGHT_GIRLS.percentile.weekly-82607a5b.js} +0 -0
  378. /package/build/{HEIGHT_GIRLS.percentile.yearly-5c051f8c.js → HEIGHT_GIRLS.percentile.yearly-1f188b70.js} +0 -0
  379. /package/build/{HEIGHT_GIRLS.zscore.monthly-9cc31b45.js → HEIGHT_GIRLS.zscore.monthly-20f568c9.js} +0 -0
  380. /package/build/{HEIGHT_GIRLS.zscore.weekly-3465f90a.js → HEIGHT_GIRLS.zscore.weekly-351d9c9c.js} +0 -0
  381. /package/build/{HEIGHT_GIRLS.zscore.yearly-41c11015.js → HEIGHT_GIRLS.zscore.yearly-66277de4.js} +0 -0
  382. /package/build/{Locale-edfd1e2d.js → Locale-4c8042b0.js} +0 -0
  383. /package/build/{Visible-7e79d0b4.js → Visible-fd04e5be.js} +0 -0
  384. /package/build/{WEIGHT_BOYS.percentile.monthly-d1610d56.js → WEIGHT_BOYS.percentile.monthly-98d965cb.js} +0 -0
  385. /package/build/{WEIGHT_BOYS.percentile.weekly-21585523.js → WEIGHT_BOYS.percentile.weekly-8f8e8921.js} +0 -0
  386. /package/build/{WEIGHT_BOYS.percentile.yearly-15d84bf6.js → WEIGHT_BOYS.percentile.yearly-154795f6.js} +0 -0
  387. /package/build/{WEIGHT_BOYS.zscore.monthly-6dd42b57.js → WEIGHT_BOYS.zscore.monthly-d0519c13.js} +0 -0
  388. /package/build/{WEIGHT_BOYS.zscore.weekly-51b94935.js → WEIGHT_BOYS.zscore.weekly-e1ead695.js} +0 -0
  389. /package/build/{WEIGHT_BOYS.zscore.yearly-c25c6271.js → WEIGHT_BOYS.zscore.yearly-2fe02df0.js} +0 -0
  390. /package/build/{WEIGHT_GIRLS.percentile.monthly-f8dce4e5.js → WEIGHT_GIRLS.percentile.monthly-3efc2d52.js} +0 -0
  391. /package/build/{WEIGHT_GIRLS.percentile.weekly-2f3f40df.js → WEIGHT_GIRLS.percentile.weekly-dc56f5bc.js} +0 -0
  392. /package/build/{WEIGHT_GIRLS.percentile.yearly-1300f090.js → WEIGHT_GIRLS.percentile.yearly-7e0956b7.js} +0 -0
  393. /package/build/{WEIGHT_GIRLS.zscore.monthly-7af91795.js → WEIGHT_GIRLS.zscore.monthly-cafaa82f.js} +0 -0
  394. /package/build/{WEIGHT_GIRLS.zscore.weekly-9836b82b.js → WEIGHT_GIRLS.zscore.weekly-68994c02.js} +0 -0
  395. /package/build/{WEIGHT_GIRLS.zscore.yearly-3c254b6d.js → WEIGHT_GIRLS.zscore.yearly-2981a41f.js} +0 -0
  396. /package/build/{animation-c517204e.js → animation-b507cd11.js} +0 -0
  397. /package/build/{constants-871de1bb.js → constants-10359dd4.js} +0 -0
  398. /package/build/{constants-462dad39.js → constants-2b28086d.js} +0 -0
  399. /package/build/{constants-3453d8ac.js → constants-992b0578.js} +0 -0
  400. /package/build/{dataTransform-840432fc.js → dataTransform-6e222d1a.js} +0 -0
  401. /package/build/{doctor-ed1c422f.js → doctor-b2ec210f.js} +0 -0
  402. /package/build/esm/{BMI_BOYS.percentile.monthly-1eda819d.js → BMI_BOYS.percentile.monthly-a07f0f54.js} +0 -0
  403. /package/build/esm/{BMI_BOYS.percentile.weekly-03afbbe9.js → BMI_BOYS.percentile.weekly-85dbca5e.js} +0 -0
  404. /package/build/esm/{BMI_BOYS.percentile.yearly-72e641fb.js → BMI_BOYS.percentile.yearly-f41886bc.js} +0 -0
  405. /package/build/esm/{BMI_BOYS.zscore.monthly-3c52129d.js → BMI_BOYS.zscore.monthly-ea595935.js} +0 -0
  406. /package/build/esm/{BMI_BOYS.zscore.weekly-6b460309.js → BMI_BOYS.zscore.weekly-7d9c599e.js} +0 -0
  407. /package/build/esm/{BMI_BOYS.zscore.yearly-3200e347.js → BMI_BOYS.zscore.yearly-805285c0.js} +0 -0
  408. /package/build/esm/{BMI_GIRLS.percentile.monthly-0f6539fd.js → BMI_GIRLS.percentile.monthly-540f6f76.js} +0 -0
  409. /package/build/esm/{BMI_GIRLS.percentile.weekly-37b9af79.js → BMI_GIRLS.percentile.weekly-57919e11.js} +0 -0
  410. /package/build/esm/{BMI_GIRLS.percentile.yearly-a758416c.js → BMI_GIRLS.percentile.yearly-93301c51.js} +0 -0
  411. /package/build/esm/{BMI_GIRLS.zscore.monthly-b18785f2.js → BMI_GIRLS.zscore.monthly-da84c887.js} +0 -0
  412. /package/build/esm/{BMI_GIRLS.zscore.weekly-3e68338e.js → BMI_GIRLS.zscore.weekly-0955bde2.js} +0 -0
  413. /package/build/esm/{BMI_GIRLS.zscore.yearly-bcbe13d0.js → BMI_GIRLS.zscore.yearly-971fce28.js} +0 -0
  414. /package/build/esm/{ChevronDown-7684e837.js → ChevronDown-1e78a8e7.js} +0 -0
  415. /package/build/esm/{Close-94c355de.js → Close-d0842035.js} +0 -0
  416. /package/build/esm/{Google-42d190a1.js → Google-64dc9f05.js} +0 -0
  417. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-93fffb49.js → HEAD CIRCUM_BOYS.percentile.monthly-c15a00f2.js} +0 -0
  418. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-ad5b48eb.js → HEAD CIRCUM_BOYS.percentile.weekly-954bfb7e.js} +0 -0
  419. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-e3d6819a.js → HEAD CIRCUM_BOYS.percentile.yearly-821fc4f5.js} +0 -0
  420. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-d3f9bfe1.js → HEAD CIRCUM_BOYS.zscore.monthly-db8b365a.js} +0 -0
  421. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-84436351.js → HEAD CIRCUM_BOYS.zscore.weekly-eb78ff15.js} +0 -0
  422. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-1a7c80ea.js → HEAD CIRCUM_BOYS.zscore.yearly-ec7bc0b9.js} +0 -0
  423. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-a6d1a41f.js → HEAD CIRCUM_GIRLS.percentile.monthly-4cda8496.js} +0 -0
  424. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-841c7dd7.js → HEAD CIRCUM_GIRLS.percentile.weekly-fede4105.js} +0 -0
  425. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-30807d6f.js → HEAD CIRCUM_GIRLS.percentile.yearly-dccd0acf.js} +0 -0
  426. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-e74bf964.js → HEAD CIRCUM_GIRLS.zscore.monthly-14e6354f.js} +0 -0
  427. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-b28c3d16.js → HEAD CIRCUM_GIRLS.zscore.weekly-b2f1adef.js} +0 -0
  428. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-7746023e.js → HEAD CIRCUM_GIRLS.zscore.yearly-d01b98b8.js} +0 -0
  429. /package/build/esm/{HEIGHT_BOYS.percentile.monthly-46eec644.js → HEIGHT_BOYS.percentile.monthly-82e1ff12.js} +0 -0
  430. /package/build/esm/{HEIGHT_BOYS.percentile.weekly-74ae0ace.js → HEIGHT_BOYS.percentile.weekly-2ad2d4ca.js} +0 -0
  431. /package/build/esm/{HEIGHT_BOYS.percentile.yearly-1640c7b5.js → HEIGHT_BOYS.percentile.yearly-7086aebe.js} +0 -0
  432. /package/build/esm/{HEIGHT_BOYS.zscore.monthly-d41ab946.js → HEIGHT_BOYS.zscore.monthly-838e2b31.js} +0 -0
  433. /package/build/esm/{HEIGHT_BOYS.zscore.weekly-ec199baa.js → HEIGHT_BOYS.zscore.weekly-e4449bdc.js} +0 -0
  434. /package/build/esm/{HEIGHT_BOYS.zscore.yearly-ec37fc0d.js → HEIGHT_BOYS.zscore.yearly-23327e54.js} +0 -0
  435. /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-684faf5f.js → HEIGHT_GIRLS.percentile.monthly-4d4e9eb8.js} +0 -0
  436. /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-063c3783.js → HEIGHT_GIRLS.percentile.weekly-56a63779.js} +0 -0
  437. /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-8fbf740a.js → HEIGHT_GIRLS.percentile.yearly-4489fbb4.js} +0 -0
  438. /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-f7fe5edb.js → HEIGHT_GIRLS.zscore.monthly-32157cb0.js} +0 -0
  439. /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-3e5362a9.js → HEIGHT_GIRLS.zscore.weekly-082dac9e.js} +0 -0
  440. /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-188674a2.js → HEIGHT_GIRLS.zscore.yearly-5deb5013.js} +0 -0
  441. /package/build/esm/{Locale-e7dd53a3.js → Locale-05f46f2a.js} +0 -0
  442. /package/build/esm/{Visible-76046539.js → Visible-fd6bc425.js} +0 -0
  443. /package/build/esm/{WEIGHT_BOYS.percentile.monthly-fc5c846b.js → WEIGHT_BOYS.percentile.monthly-1c1fad72.js} +0 -0
  444. /package/build/esm/{WEIGHT_BOYS.percentile.weekly-ce33d1dc.js → WEIGHT_BOYS.percentile.weekly-6d494fdd.js} +0 -0
  445. /package/build/esm/{WEIGHT_BOYS.percentile.yearly-859b9e55.js → WEIGHT_BOYS.percentile.yearly-9be5f2bb.js} +0 -0
  446. /package/build/esm/{WEIGHT_BOYS.zscore.monthly-5a20a925.js → WEIGHT_BOYS.zscore.monthly-fc1521fe.js} +0 -0
  447. /package/build/esm/{WEIGHT_BOYS.zscore.weekly-ad46a7d4.js → WEIGHT_BOYS.zscore.weekly-8485d2f3.js} +0 -0
  448. /package/build/esm/{WEIGHT_BOYS.zscore.yearly-4e795b4b.js → WEIGHT_BOYS.zscore.yearly-e232227b.js} +0 -0
  449. /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-1e70a54f.js → WEIGHT_GIRLS.percentile.monthly-4736c7aa.js} +0 -0
  450. /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-471c1aba.js → WEIGHT_GIRLS.percentile.weekly-00d5d075.js} +0 -0
  451. /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-cdd5a5e1.js → WEIGHT_GIRLS.percentile.yearly-17fafef1.js} +0 -0
  452. /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-e5c4f0cb.js → WEIGHT_GIRLS.zscore.monthly-0f34e73c.js} +0 -0
  453. /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-6e6e542b.js → WEIGHT_GIRLS.zscore.weekly-7df80bb8.js} +0 -0
  454. /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-bdc35cf0.js → WEIGHT_GIRLS.zscore.yearly-9b920f57.js} +0 -0
  455. /package/build/esm/{animation-c95ffdee.js → animation-8e63068e.js} +0 -0
  456. /package/build/esm/{constants-6f6ddc36.js → constants-1ed528a3.js} +0 -0
  457. /package/build/esm/{constants-801453a8.js → constants-25cc884e.js} +0 -0
  458. /package/build/esm/{constants-c98ae9ee.js → constants-fff0e873.js} +0 -0
  459. /package/build/esm/{dataTransform-44516f8c.js → dataTransform-7f13a99d.js} +0 -0
  460. /package/build/esm/{doctor-b4f4f389.js → doctor-e1757149.js} +0 -0
  461. /package/build/esm/{index-5ee57de7.js → index-0552435e.js} +0 -0
  462. /package/build/esm/{index-66150149.js → index-3f41e1e2.js} +0 -0
  463. /package/build/esm/{index-24663632.js → index-618f0b0c.js} +0 -0
  464. /package/build/esm/{index-0c9f015b.js → index-84bd0271.js} +0 -0
  465. /package/build/esm/{index-f18ef1e3.js → index-c02e04f4.js} +0 -0
  466. /package/build/esm/{index-45755052.js → index-cef61a9e.js} +0 -0
  467. /package/build/esm/{index-66d97368.js → index-d3f5d34b.js} +0 -0
  468. /package/build/esm/{index-565a80b0.js → index-d50c1b6d.js} +0 -0
  469. /package/build/esm/{index-ea14dc61.js → index-f4597cea.js} +0 -0
  470. /package/build/esm/{index.styles-0e5fc387.js → index.styles-dfe31537.js} +0 -0
  471. /package/build/esm/{localizeNumberFormat-236a4b14.js → localizeNumberFormat-c14eab14.js} +0 -0
  472. /package/build/esm/{normalizeLink-20a616dd.js → normalizeLink-2bf24c8c.js} +0 -0
  473. /package/build/esm/{other-d17b315d.js → other-8e7af889.js} +0 -0
  474. /package/build/esm/{paths-3b888e98.js → paths-a859c358.js} +0 -0
  475. /package/build/esm/{translationsContext-9d15b26c.js → translationsContext-b6c33e91.js} +0 -0
  476. /package/build/esm/{tslib.es6-35c86ab7.js → tslib.es6-709d7787.js} +0 -0
  477. /package/build/esm/{types-38561610.js → types-0904d32f.js} +0 -0
  478. /package/build/esm/{useIsInit-4edc15a1.js → useIsInit-3383f41b.js} +0 -0
  479. /package/build/esm/{useOutsideClick-1fe587d9.js → useOutsideClick-11006abd.js} +0 -0
  480. /package/build/esm/{useScrollbarSize-b51b8144.js → useScrollbarSize-c15fd39e.js} +0 -0
  481. /package/build/esm/{useUniqueId-310f5e9a.js → useUniqueId-cf5d6065.js} +0 -0
  482. /package/build/esm/{utils-d7279c01.js → utils-e21b8836.js} +0 -0
  483. /package/build/{index-01dde6e7.js → index-0d669510.js} +0 -0
  484. /package/build/{index-143cc75d.js → index-39237568.js} +0 -0
  485. /package/build/{index-1da6abe7.js → index-44dd2ed3.js} +0 -0
  486. /package/build/{index-2f754923.js → index-6cb41f70.js} +0 -0
  487. /package/build/{index-e4aac848.js → index-8fc12b04.js} +0 -0
  488. /package/build/{index-1c2b8342.js → index-950cbd1e.js} +0 -0
  489. /package/build/{index-906f7ec1.js → index-ba7abd78.js} +0 -0
  490. /package/build/{index-cbf82b14.js → index-c2436bb5.js} +0 -0
  491. /package/build/{index-cb131ad9.js → index-c7782352.js} +0 -0
  492. /package/build/{index.styles-7a285dc7.js → index.styles-483ecf51.js} +0 -0
  493. /package/build/{localizeNumberFormat-74bf45ff.js → localizeNumberFormat-c35b4fab.js} +0 -0
  494. /package/build/{normalizeLink-bb0c5a5d.js → normalizeLink-d98c5115.js} +0 -0
  495. /package/build/{other-43aa6d8c.js → other-a39e1798.js} +0 -0
  496. /package/build/{paths-b9ab401f.js → paths-cc67867e.js} +0 -0
  497. /package/build/{translationsContext-65682f9f.js → translationsContext-9fb25554.js} +0 -0
  498. /package/build/{tslib.es6-114a4ba8.js → tslib.es6-54d5a3b5.js} +0 -0
  499. /package/build/{types-35b59d6d.js → types-5e6fd5c4.js} +0 -0
  500. /package/build/{useIsInit-e2a88e32.js → useIsInit-044fcacb.js} +0 -0
  501. /package/build/{useOutsideClick-baeacb64.js → useOutsideClick-e29d71c0.js} +0 -0
  502. /package/build/{useScrollbarSize-1ae23b0a.js → useScrollbarSize-46c0ff33.js} +0 -0
  503. /package/build/{useUniqueId-373a4f10.js → useUniqueId-45824993.js} +0 -0
  504. /package/build/{utils-0d9945f3.js → utils-ca404e47.js} +0 -0
package/build/ssoV2.js CHANGED
@@ -2,29 +2,29 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var tslib_es6 = require('./tslib.es6-114a4ba8.js');
5
+ var tslib_es6 = require('./tslib.es6-54d5a3b5.js');
6
6
  var React = require('react');
7
- var index$5 = require('./index-85bca058.js');
8
- var store = require('./store-77e43fb8.js');
7
+ var index$5 = require('./index-969cd112.js');
8
+ var store = require('./store-69bb3be7.js');
9
9
  var arrow = require('@hhgtech/icons/arrow');
10
10
  var core$1 = require('@hhgtech/icons/core');
11
- var index$2 = require('./index-23f0f591.js');
12
- var logoIcon = require('./logoIcon-135dc217.js');
13
- var index$4 = require('./index-1f6c4aae.js');
14
- var index$1 = require('./index-82cf4d4f.js');
11
+ var index$2 = require('./index-e1e08c25.js');
12
+ var logoIcon = require('./logoIcon-e5bd7343.js');
13
+ var index$4 = require('./index-76efb5fb.js');
14
+ var index$1 = require('./index-3c10fbfa.js');
15
15
  var core = require('@mantine/core');
16
16
  require('@mantine/dates');
17
- require('./index-c01afb63.js');
18
- require('./index-1da6abe7.js');
19
- var useMantineLocale = require('./useMantineLocale-ed32e2e5.js');
20
- var index$3 = require('./index-650908cb.js');
21
- var index = require('./index-141b85d6.js');
17
+ require('./index-2551c303.js');
18
+ require('./index-44dd2ed3.js');
19
+ var useMantineLocale = require('./useMantineLocale-48052e4d.js');
20
+ var index$3 = require('./index-96be67bf.js');
21
+ var index = require('./index-2baef874.js');
22
22
  require('@mantine/hooks');
23
- require('./utils-0d9945f3.js');
24
- require('./other-43aa6d8c.js');
25
- require('./index-fc6f41d4.js');
26
- var Locale = require('./Locale-edfd1e2d.js');
27
- var Google = require('./Google-b0097190.js');
23
+ require('./utils-ca404e47.js');
24
+ require('./other-a39e1798.js');
25
+ require('./index-4ee89043.js');
26
+ var Locale = require('./Locale-4c8042b0.js');
27
+ var Google = require('./Google-10b046ef.js');
28
28
  var PhoneInputBase = require('react-phone-number-input');
29
29
  var styled = require('@emotion/styled');
30
30
  var cn = require('classnames');
@@ -32,28 +32,28 @@ var other = require('@hhgtech/icons/other');
32
32
  var debounce = require('lodash/debounce');
33
33
  var throttle = require('lodash/throttle');
34
34
  var Flags = require('react-phone-number-input/flags');
35
- var useScreenSize = require('./useScreenSize-ce6c2232.js');
35
+ var useScreenSize = require('./useScreenSize-e56ada5a.js');
36
36
  var vaul = require('vaul');
37
- var utils = require('./utils-1f5a1128.js');
38
- var index$6 = require('./index-8ffe558b.js');
37
+ var utils = require('./utils-bc112548.js');
38
+ var index$6 = require('./index-40771dad.js');
39
39
  var constantsDomainLocales = require('./constantsDomainLocales.js');
40
40
  var form = require('@mantine/form');
41
41
  var yup = require('yup');
42
42
  var dayjs = require('dayjs');
43
- var index$7 = require('./index-cc290860.js');
43
+ var index$7 = require('./index-fd92c8a1.js');
44
44
  require('@mantine/carousel');
45
45
  require('./miscTheme.js');
46
- require('./useUniqueId-373a4f10.js');
46
+ require('./useUniqueId-45824993.js');
47
47
  require('./constantsSite.js');
48
48
  require('zustand');
49
49
  require('./constantsIsProduction.js');
50
- require('./normalizeLink-bb0c5a5d.js');
50
+ require('./normalizeLink-d98c5115.js');
51
51
  require('./miscCookieHelper.js');
52
52
  require('date-fns/locale');
53
53
  require('./constantsRiskScreener.js');
54
- require('./index.styles-7a285dc7.js');
54
+ require('./index.styles-483ecf51.js');
55
55
  require('@mantine/notifications');
56
- require('./translationsContext-65682f9f.js');
56
+ require('./translationsContext-9fb25554.js');
57
57
 
58
58
  function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
59
59
 
@@ -190,200 +190,13 @@ const BackgroundHeader = () => (React__default["default"].createElement("svg", {
190
190
  React__default["default"].createElement("stop", { stopColor: "#fff", stopOpacity: "0" }),
191
191
  React__default["default"].createElement("stop", { offset: "1", stopColor: "#fff" })))));
192
192
 
193
- const isPhoneVerifedAlready = (userInfo, flowData) => {
194
- var _a;
195
- if (flowData === null || flowData === void 0 ? void 0 : flowData.metaData) {
196
- return (_a = flowData === null || flowData === void 0 ? void 0 : flowData.metaData) === null || _a === void 0 ? void 0 : _a.is_phone_verified;
197
- }
198
- return (userInfo === null || userInfo === void 0 ? void 0 : userInfo.phone_verified_at) && (userInfo === null || userInfo === void 0 ? void 0 : userInfo.phone);
199
- };
200
- const isSetupFullInfoAlready = (userInfo, flowData) => {
201
- var _a, _b, _c;
202
- if (flowData === null || flowData === void 0 ? void 0 : flowData.metaData) {
203
- return (((_a = flowData === null || flowData === void 0 ? void 0 : flowData.metaData) === null || _a === void 0 ? void 0 : _a.is_name) &&
204
- ((_b = flowData === null || flowData === void 0 ? void 0 : flowData.metaData) === null || _b === void 0 ? void 0 : _b.is_gender) &&
205
- ((_c = flowData === null || flowData === void 0 ? void 0 : flowData.metaData) === null || _c === void 0 ? void 0 : _c.is_birthday));
206
- }
207
- const hasName = !!(userInfo === null || userInfo === void 0 ? void 0 : userInfo.name);
208
- const hasGender = typeof (userInfo === null || userInfo === void 0 ? void 0 : userInfo.gender) === 'number';
209
- const hasBirthday = !!(userInfo === null || userInfo === void 0 ? void 0 : userInfo.birthday);
210
- return hasName && hasGender && hasBirthday;
211
- };
212
- const isExistUpdateEmailStep = (steps) => {
213
- return steps.find((s) => s.type === store.SSOStepTypeType.UPDATE_EMAIL);
214
- };
215
-
216
- const isSocialFlowFn = (flowData) => {
217
- return (flowData === null || flowData === void 0 ? void 0 : flowData.method) === 'google' || (flowData === null || flowData === void 0 ? void 0 : flowData.method) === 'facebook';
218
- };
219
- const isPhoneFlowFn = (flowData) => {
220
- return ((flowData === null || flowData === void 0 ? void 0 : flowData.method) === 'sms' ||
221
- (flowData === null || flowData === void 0 ? void 0 : flowData.method) === 'zalo' ||
222
- (flowData === null || flowData === void 0 ? void 0 : flowData.method) === 'phone');
223
- };
224
- const isEmailFlowFn = (flowData) => {
225
- return (flowData === null || flowData === void 0 ? void 0 : flowData.method) === 'email';
226
- };
227
- const isDisplayProgressBarFn = (flowData, step) => {
228
- const showProgressBar = (step === null || step === void 0 ? void 0 : step.type) === store.SSOStepTypeType.OTP ||
229
- (step === null || step === void 0 ? void 0 : step.type) === store.SSOStepTypeType.SETUP_FULL ||
230
- (step === null || step === void 0 ? void 0 : step.type) === store.SSOStepTypeType.VERIFY_PHONE ||
231
- (step === null || step === void 0 ? void 0 : step.type) === store.SSOStepTypeType.PASSWORD ||
232
- (step === null || step === void 0 ? void 0 : step.type) === store.SSOStepTypeType.FORGOT_PASSWORD_PHONE ||
233
- (step === null || step === void 0 ? void 0 : step.type) === store.SSOStepTypeType.FORGOT_PASSWORD_SETUP ||
234
- (step === null || step === void 0 ? void 0 : step.type) === store.SSOStepTypeType.EMAIL ||
235
- (step === null || step === void 0 ? void 0 : step.type) === store.SSOStepTypeType.UPDATE_EMAIL;
236
- const isWhiteListFlow = isSocialFlowFn(flowData) ||
237
- isPhoneFlowFn(flowData) ||
238
- isEmailFlowFn(flowData);
239
- return showProgressBar && isWhiteListFlow;
240
- };
241
- const getCurrentStepNumber = (flowData, { steps, currentStepIndex, }, userInfo) => {
242
- var _a, _b;
243
- const step = steps[currentStepIndex];
244
- const isSocialFlow = isSocialFlowFn(flowData);
245
- const isPhoneFlow = isPhoneFlowFn(flowData);
246
- const isEmailFlow = isEmailFlowFn(flowData);
247
- /** Social (Google, Facebook): FIRST => VERIFY_PHONE | OTP => STEP_FULL */
248
- if (isSocialFlow) {
249
- const arrSteps = [
250
- !isPhoneVerifedAlready(userInfo, flowData)
251
- ? [store.SSOStepTypeType.VERIFY_PHONE, store.SSOStepTypeType.OTP]
252
- : undefined,
253
- isExistUpdateEmailStep(steps)
254
- ? (step === null || step === void 0 ? void 0 : step.type) === store.SSOStepTypeType.OTP
255
- ? store.SSOStepTypeType.OTP
256
- : store.SSOStepTypeType.UPDATE_EMAIL
257
- : undefined,
258
- !userInfo || !store.isUserFinishedSetup(userInfo)
259
- ? store.SSOStepTypeType.SETUP_FULL
260
- : undefined,
261
- ]
262
- .flat()
263
- .filter(Boolean);
264
- const previousStep = steps[currentStepIndex - 1];
265
- return [
266
- arrSteps.length,
267
- (previousStep === null || previousStep === void 0 ? void 0 : previousStep.type) === store.SSOStepTypeType.UPDATE_EMAIL
268
- ? arrSteps.findLastIndex((type) => type === (step === null || step === void 0 ? void 0 : step.type)) + 1
269
- : arrSteps.findIndex((type) => type === (step === null || step === void 0 ? void 0 : step.type)) + 1,
270
- ];
271
- }
272
- if (isPhoneFlow && (flowData === null || flowData === void 0 ? void 0 : flowData.flow) === 'signup') {
273
- const arrSteps = [
274
- !isPhoneVerifedAlready(userInfo, flowData)
275
- ? store.SSOStepTypeType.OTP
276
- : undefined,
277
- !((_a = flowData === null || flowData === void 0 ? void 0 : flowData.metaData) === null || _a === void 0 ? void 0 : _a.is_pass)
278
- ? store.SSOStepTypeType.FORGOT_PASSWORD_SETUP
279
- : undefined,
280
- !isSetupFullInfoAlready(userInfo, flowData)
281
- ? store.SSOStepTypeType.SETUP_FULL
282
- : undefined,
283
- ]
284
- .flat()
285
- .filter(Boolean);
286
- return [
287
- arrSteps.length,
288
- arrSteps.findIndex((type) => type === (step === null || step === void 0 ? void 0 : step.type)) + 1,
289
- ];
290
- }
291
- if (isPhoneFlow && (flowData === null || flowData === void 0 ? void 0 : flowData.flow) === 'login') {
292
- const arrSteps = [
293
- store.SSOStepTypeType.PASSWORD,
294
- !isPhoneVerifedAlready(userInfo, flowData)
295
- ? [store.SSOStepTypeType.FORGOT_PASSWORD_PHONE, store.SSOStepTypeType.OTP]
296
- : undefined,
297
- isExistUpdateEmailStep(steps)
298
- ? (step === null || step === void 0 ? void 0 : step.type) === store.SSOStepTypeType.OTP
299
- ? store.SSOStepTypeType.OTP
300
- : store.SSOStepTypeType.UPDATE_EMAIL
301
- : undefined,
302
- !isSetupFullInfoAlready(userInfo, flowData)
303
- ? store.SSOStepTypeType.SETUP_FULL
304
- : undefined,
305
- ]
306
- .flat()
307
- .filter(Boolean);
308
- if (arrSteps.length === 2 &&
309
- arrSteps[0] === store.SSOStepTypeType.PASSWORD &&
310
- arrSteps[1] === store.SSOStepTypeType.SETUP_FULL) {
311
- return [];
312
- }
313
- const previousStep = steps[currentStepIndex - 1];
314
- return [
315
- arrSteps.length,
316
- (previousStep === null || previousStep === void 0 ? void 0 : previousStep.type) === store.SSOStepTypeType.UPDATE_EMAIL
317
- ? arrSteps.findLastIndex((type) => type === (step === null || step === void 0 ? void 0 : step.type)) + 1
318
- : arrSteps.findIndex((type) => type === (step === null || step === void 0 ? void 0 : step.type)) + 1,
319
- ];
320
- }
321
- if (isEmailFlow) {
322
- const hasPasswordStep = !((_b = flowData === null || flowData === void 0 ? void 0 : flowData.metaData) === null || _b === void 0 ? void 0 : _b.is_pass);
323
- const hasPhoneStep = !isPhoneVerifedAlready(userInfo, flowData);
324
- const hasSetupFullStep = !isSetupFullInfoAlready(userInfo, flowData);
325
- if (!hasPasswordStep && !hasPhoneStep && !hasSetupFullStep)
326
- return [];
327
- const arrSteps = [
328
- (step === null || step === void 0 ? void 0 : step.type) === store.SSOStepTypeType.OTP
329
- ? store.SSOStepTypeType.OTP
330
- : store.SSOStepTypeType.EMAIL,
331
- hasPasswordStep
332
- ? store.SSOStepTypeType.FORGOT_PASSWORD_SETUP
333
- : store.SSOStepTypeType.PASSWORD,
334
- hasPhoneStep
335
- ? (step === null || step === void 0 ? void 0 : step.type) === store.SSOStepTypeType.OTP
336
- ? store.SSOStepTypeType.OTP
337
- : store.SSOStepTypeType.VERIFY_PHONE
338
- : undefined,
339
- hasSetupFullStep ? store.SSOStepTypeType.SETUP_FULL : undefined,
340
- ]
341
- .flat()
342
- .filter(Boolean);
343
- const previousStep = steps[currentStepIndex - 1];
344
- return [
345
- arrSteps.length,
346
- (previousStep === null || previousStep === void 0 ? void 0 : previousStep.type) === store.SSOStepTypeType.VERIFY_PHONE
347
- ? arrSteps.findLastIndex((type) => type === (step === null || step === void 0 ? void 0 : step.type)) + 1
348
- : arrSteps.findIndex((type) => type === (step === null || step === void 0 ? void 0 : step.type)) + 1,
349
- ];
350
- }
351
- return [];
352
- };
353
- const ProgressBar = () => {
354
- // const initUserInfo = useRef<UserInfo | undefined | null>()
355
- const { steps, currentStepIndex } = store.useSSOSteps();
356
- const { flowData, userInfo } = store.useSSOV2Store();
357
- /** No need update state IF userInfo is changed */
358
- const initUserInfo = React.useMemo(() => userInfo, [userInfo]);
359
- const [totalStepNumber, activeStepNumber] = getCurrentStepNumber(flowData, { steps, currentStepIndex }, initUserInfo);
360
- if (!activeStepNumber || totalStepNumber === 1)
361
- return null;
362
- return (React__default["default"].createElement(core.Flex, { gap: 2 }, Array.from({ length: totalStepNumber }).map((_, idx) => {
363
- const currentStepNumber = idx + 1;
364
- return (React__default["default"].createElement(core.Box, { key: currentStepNumber, style: {
365
- width: 'auto',
366
- height: 2,
367
- flex: 1,
368
- borderRadius: 4,
369
- backgroundColor: currentStepNumber <= activeStepNumber ? '#00B16A' : '#D2D6DC',
370
- } }));
371
- })));
372
- };
373
-
374
193
  const SSOPopupWrapper = ({ children, opened, onClose, }) => {
375
194
  var _a;
376
- const { steps, goBack, currentStepIndex } = store.useSSOSteps();
377
- const { flowData } = store.useSSOV2Store();
195
+ const { steps, goBack } = store.useSSOSteps();
378
196
  const { locale, tracking } = useSSOState();
379
- const currentStep = steps[currentStepIndex];
380
- const showProgressBar = isDisplayProgressBarFn(flowData, currentStep);
381
- const showBack = (steps.length > 1 && !showProgressBar) ||
382
- (currentStep === null || currentStep === void 0 ? void 0 : currentStep.type) === store.SSOStepTypeType.OTP ||
383
- (currentStep === null || currentStep === void 0 ? void 0 : currentStep.type) === store.SSOStepTypeType.PASSWORD ||
384
- (currentStep === null || currentStep === void 0 ? void 0 : currentStep.type) === store.SSOStepTypeType.EMAIL;
385
- const showClose = (currentStep === null || currentStep === void 0 ? void 0 : currentStep.type) === store.SSOStepTypeType.FIRST;
386
- const showLogo = (steps.length === 1 || showProgressBar) && !showBack;
197
+ const showBack = steps.length > 1;
198
+ const showClose = steps.length === 1;
199
+ const showLogo = steps.length === 1;
387
200
  const logoType = (_a = index$2.LOCALE_SPECS[locale]) === null || _a === void 0 ? void 0 : _a.LOGO_TYPE;
388
201
  const [closeConfirmOpen, setCloseConfirmOpen] = React__default["default"].useState(false);
389
202
  const onCloseClick = () => {
@@ -450,7 +263,6 @@ const SSOPopupWrapper = ({ children, opened, onClose, }) => {
450
263
  borderRadius: '100%',
451
264
  }, onClick: onCloseClick, "data-event-category": tracking === null || tracking === void 0 ? void 0 : tracking.category, "data-event-action": tracking === null || tracking === void 0 ? void 0 : tracking.action, "data-event-label": "Exit" },
452
265
  React__default["default"].createElement(core$1.Close, null)))),
453
- showProgressBar && React__default["default"].createElement(ProgressBar, null),
454
266
  React__default["default"].createElement("div", { style: {
455
267
  flex: 1,
456
268
  } }, children)),
@@ -622,7 +434,6 @@ const SSOEmailScreen = ({ hidden, }) => {
622
434
  flowData: {
623
435
  method: 'email',
624
436
  flow: 'login',
625
- metaData: existRes._data,
626
437
  },
627
438
  });
628
439
  // go to password screen
@@ -640,7 +451,6 @@ const SSOEmailScreen = ({ hidden, }) => {
640
451
  flowData: {
641
452
  method: 'email',
642
453
  flow: 'signup',
643
- metaData: existRes._data,
644
454
  },
645
455
  });
646
456
  if (!((_b = existRes._data) === null || _b === void 0 ? void 0 : _b.provider)) {
@@ -659,7 +469,7 @@ const SSOEmailScreen = ({ hidden, }) => {
659
469
  config: {
660
470
  email,
661
471
  otpType: 'email',
662
- afterAction: 'forgot',
472
+ afterAction: 'setup',
663
473
  },
664
474
  });
665
475
  goNext();
@@ -2284,7 +2094,6 @@ const SSOFirstScreen = ({ hidden, config, }) => {
2284
2094
  const [errMsg, setErrMsg] = React__default["default"].useState('');
2285
2095
  const { locale, onClose, setTracking } = useSSOState();
2286
2096
  const { addStep, goNext } = store.useSSOSteps();
2287
- const { setUserInfo } = store.useSSOV2Store();
2288
2097
  const [activeTab, setActiveTab] = React__default["default"].useState('login');
2289
2098
  const { legalTextType } = config || {};
2290
2099
  const { t } = index.useTranslations();
@@ -2301,31 +2110,20 @@ const SSOFirstScreen = ({ hidden, config, }) => {
2301
2110
  }, [hidden]);
2302
2111
  const [loading, setLoading] = React__default["default"].useState(false);
2303
2112
  const handleLoginBySocial = (credential, provider) => tslib_es6.__awaiter(void 0, void 0, void 0, function* () {
2113
+ var _c, _d;
2304
2114
  const res = yield loginBySocial(credential, provider);
2305
2115
  if ((res === null || res === void 0 ? void 0 : res._status) === 1) {
2306
2116
  store.handleAuthSuccess(res === null || res === void 0 ? void 0 : res._data);
2307
2117
  const userInfo = yield store.getUserInfo();
2308
- setUserInfo(userInfo === null || userInfo === void 0 ? void 0 : userInfo._data);
2309
2118
  if ((userInfo === null || userInfo === void 0 ? void 0 : userInfo._status) === 1 && userInfo._data) {
2310
2119
  store.useSSOV2Store.setState({
2311
2120
  flowData: {
2312
2121
  method: provider,
2313
2122
  },
2314
2123
  });
2315
- const isNotHavePhone = !userInfo._data.phone || !userInfo._data.phone_verified_at;
2316
- if (isNotHavePhone) {
2317
- store.useSSOV2Store.setState((f) => ({
2318
- flowData: Object.assign(Object.assign({}, f.flowData), { flow: 'signup', isVerifyPhone: true }),
2319
- }));
2320
- addStep({
2321
- type: store.SSOStepTypeType.VERIFY_PHONE,
2322
- config: {
2323
- provider: provider,
2324
- },
2325
- });
2326
- goNext();
2327
- }
2328
- else if (!store.isUserFinishedSetup(userInfo._data)) {
2124
+ if (!store.isUserFinishedSetup(userInfo._data) ||
2125
+ !userInfo._data.phone ||
2126
+ !userInfo._data.phone_verified_at) {
2329
2127
  store.useSSOV2Store.setState((f) => ({
2330
2128
  flowData: Object.assign(Object.assign({}, f.flowData), { flow: 'signup' }),
2331
2129
  }));
@@ -2356,6 +2154,19 @@ const SSOFirstScreen = ({ hidden, config, }) => {
2356
2154
  goNext();
2357
2155
  }
2358
2156
  }
2157
+ else if (!((_c = userInfo._data) === null || _c === void 0 ? void 0 : _c.phone_verified_at) ||
2158
+ !((_d = userInfo._data) === null || _d === void 0 ? void 0 : _d.phone)) {
2159
+ store.useSSOV2Store.setState((f) => ({
2160
+ flowData: Object.assign(Object.assign({}, f.flowData), { flow: 'login', isVerifyPhone: true }),
2161
+ }));
2162
+ addStep({
2163
+ type: store.SSOStepTypeType.VERIFY_PHONE,
2164
+ config: {
2165
+ provider: provider,
2166
+ },
2167
+ });
2168
+ goNext();
2169
+ }
2359
2170
  else {
2360
2171
  onClose === null || onClose === void 0 ? void 0 : onClose(true);
2361
2172
  }
@@ -2395,7 +2206,7 @@ const SSOFirstScreen = ({ hidden, config, }) => {
2395
2206
  };
2396
2207
  }, []);
2397
2208
  const onClickContinueZalo = () => tslib_es6.__awaiter(void 0, void 0, void 0, function* () {
2398
- var _c, _d;
2209
+ var _e, _f;
2399
2210
  setLoading(true);
2400
2211
  const { areaCode, phoneNumber } = splitPhone(phone);
2401
2212
  if (!areaCode || !phoneNumber || !phone) {
@@ -2404,13 +2215,12 @@ const SSOFirstScreen = ({ hidden, config, }) => {
2404
2215
  }
2405
2216
  const userExist = yield store.checkUserExist({ phone: phoneNumber });
2406
2217
  if ((userExist === null || userExist === void 0 ? void 0 : userExist._status) === 1) {
2407
- const provider = (_c = userExist._data) === null || _c === void 0 ? void 0 : _c.provider;
2408
- if ((_d = userExist._data) === null || _d === void 0 ? void 0 : _d.is_pass) {
2218
+ const provider = (_e = userExist._data) === null || _e === void 0 ? void 0 : _e.provider;
2219
+ if ((_f = userExist._data) === null || _f === void 0 ? void 0 : _f.is_pass) {
2409
2220
  store.useSSOV2Store.setState({
2410
2221
  flowData: {
2411
2222
  method: 'zalo',
2412
2223
  flow: 'login',
2413
- metaData: userExist._data,
2414
2224
  },
2415
2225
  });
2416
2226
  addStep({
@@ -2438,7 +2248,6 @@ const SSOFirstScreen = ({ hidden, config, }) => {
2438
2248
  flowData: {
2439
2249
  method: 'zalo',
2440
2250
  flow: 'signup',
2441
- metaData: userExist._data,
2442
2251
  },
2443
2252
  });
2444
2253
  addStep({
@@ -2446,7 +2255,7 @@ const SSOFirstScreen = ({ hidden, config, }) => {
2446
2255
  config: {
2447
2256
  phone,
2448
2257
  otpType: 'phone-zalo',
2449
- afterAction: 'forgot',
2258
+ afterAction: 'setup',
2450
2259
  },
2451
2260
  });
2452
2261
  goNext();
@@ -2458,7 +2267,7 @@ const SSOFirstScreen = ({ hidden, config, }) => {
2458
2267
  setLoading(false);
2459
2268
  });
2460
2269
  const onClickContinuePhone = () => tslib_es6.__awaiter(void 0, void 0, void 0, function* () {
2461
- var _e, _f;
2270
+ var _g, _h;
2462
2271
  setLoading(true);
2463
2272
  const { areaCode, phoneNumber } = splitPhone(phone);
2464
2273
  if (!areaCode || !phoneNumber || !phone) {
@@ -2467,13 +2276,12 @@ const SSOFirstScreen = ({ hidden, config, }) => {
2467
2276
  }
2468
2277
  const userExist = yield store.checkUserExist({ phone: phoneNumber });
2469
2278
  if ((userExist === null || userExist === void 0 ? void 0 : userExist._status) === 1) {
2470
- const provider = (_e = userExist._data) === null || _e === void 0 ? void 0 : _e.provider;
2471
- if ((_f = userExist._data) === null || _f === void 0 ? void 0 : _f.is_pass) {
2279
+ const provider = (_g = userExist._data) === null || _g === void 0 ? void 0 : _g.provider;
2280
+ if ((_h = userExist._data) === null || _h === void 0 ? void 0 : _h.is_pass) {
2472
2281
  store.useSSOV2Store.setState({
2473
2282
  flowData: {
2474
2283
  method: 'sms',
2475
2284
  flow: 'login',
2476
- metaData: userExist._data,
2477
2285
  },
2478
2286
  });
2479
2287
  addStep({
@@ -2501,7 +2309,6 @@ const SSOFirstScreen = ({ hidden, config, }) => {
2501
2309
  flowData: {
2502
2310
  method: 'sms',
2503
2311
  flow: 'signup',
2504
- metaData: userExist._data,
2505
2312
  },
2506
2313
  });
2507
2314
  addStep({
@@ -2509,7 +2316,7 @@ const SSOFirstScreen = ({ hidden, config, }) => {
2509
2316
  config: {
2510
2317
  phone,
2511
2318
  otpType: 'phone-sms',
2512
- afterAction: 'forgot',
2319
+ afterAction: 'setup',
2513
2320
  },
2514
2321
  });
2515
2322
  goNext();
@@ -2521,7 +2328,7 @@ const SSOFirstScreen = ({ hidden, config, }) => {
2521
2328
  setLoading(false);
2522
2329
  });
2523
2330
  const onClickLoginWithPhone = () => tslib_es6.__awaiter(void 0, void 0, void 0, function* () {
2524
- var _g, _h;
2331
+ var _j, _k;
2525
2332
  setLoading(true);
2526
2333
  const { areaCode, phoneNumber } = splitPhone(phone);
2527
2334
  if (!areaCode || !phoneNumber || !phone) {
@@ -2530,7 +2337,7 @@ const SSOFirstScreen = ({ hidden, config, }) => {
2530
2337
  }
2531
2338
  const userExist = yield store.checkUserExist({ phone: phoneNumber });
2532
2339
  if ((userExist === null || userExist === void 0 ? void 0 : userExist._status) === 1) {
2533
- if (!userExist._data || !((_g = userExist._data) === null || _g === void 0 ? void 0 : _g.is_pass)) {
2340
+ if (!userExist._data || !((_j = userExist._data) === null || _j === void 0 ? void 0 : _j.is_pass)) {
2534
2341
  useMantineLocale.showNotification({
2535
2342
  message: t('ssov2.first.noAccountOrPass'),
2536
2343
  type: 'danger',
@@ -2538,12 +2345,11 @@ const SSOFirstScreen = ({ hidden, config, }) => {
2538
2345
  setActiveTab('signup');
2539
2346
  return setLoading(false);
2540
2347
  }
2541
- if ((_h = userExist._data) === null || _h === void 0 ? void 0 : _h.is_pass) {
2348
+ if ((_k = userExist._data) === null || _k === void 0 ? void 0 : _k.is_pass) {
2542
2349
  store.useSSOV2Store.setState({
2543
2350
  flowData: {
2544
2351
  method: 'phone',
2545
2352
  flow: 'login',
2546
- metaData: userExist._data,
2547
2353
  },
2548
2354
  });
2549
2355
  addStep({
@@ -2704,8 +2510,10 @@ const initSendUpdateEmailOtp = (email) => tslib_es6.__awaiter(void 0, void 0, vo
2704
2510
  });
2705
2511
  });
2706
2512
  const resendUpdateEmailOTP = () => tslib_es6.__awaiter(void 0, void 0, void 0, function* () {
2513
+ const formData = new FormData();
2707
2514
  return store.fetchSSOV2Api(store.SSO_V2_PATHS.ECOM_CARE.RESEND_OTP, {
2708
- method: 'GET',
2515
+ method: 'POST',
2516
+ body: formData,
2709
2517
  });
2710
2518
  });
2711
2519
  const verifyUpdateEmailOTP = (otpCode) => tslib_es6.__awaiter(void 0, void 0, void 0, function* () {
@@ -2753,7 +2561,15 @@ const SSOOTPScreen = ({ hidden, index: index$1, config, }) => {
2753
2561
  }, [hidden]);
2754
2562
  const addStepAndGoNext = (step) => {
2755
2563
  store.useSSOSteps.setState((old) => {
2564
+ var _a, _b;
2756
2565
  const oldSteps = old.steps;
2566
+ if (((_a = oldSteps[index$1 - 1]) === null || _a === void 0 ? void 0 : _a.type) === store.SSOStepTypeType.VERIFY_PHONE ||
2567
+ ((_b = oldSteps[index$1 - 1]) === null || _b === void 0 ? void 0 : _b.type) === store.SSOStepTypeType.UPDATE_EMAIL) {
2568
+ return {
2569
+ steps: oldSteps.slice(0, index$1 - 1).concat(step),
2570
+ currentStepIndex: index$1 - 1,
2571
+ };
2572
+ }
2757
2573
  return {
2758
2574
  steps: oldSteps.slice(0, index$1).concat(step),
2759
2575
  currentStepIndex: index$1,
@@ -3084,7 +2900,7 @@ const SSOOTPScreen = ({ hidden, index: index$1, config, }) => {
3084
2900
  'data-event-category': trackingCategory,
3085
2901
  'data-event-action': trackingAction,
3086
2902
  'data-event-label': 'Enter Code',
3087
- }, placeholder: "*" })),
2903
+ } })),
3088
2904
  React__default["default"].createElement(core.Group, { spacing: 8, align: "center", style: {
3089
2905
  height: 40,
3090
2906
  } },
@@ -3104,7 +2920,6 @@ const SSOOTPScreen = ({ hidden, index: index$1, config, }) => {
3104
2920
  const SSOPasswordScreen = ({ hidden, config, }) => {
3105
2921
  const { t } = index.useTranslations();
3106
2922
  const { onClose, setTracking } = useSSOState();
3107
- const { setUserInfo, flowData } = store.useSSOV2Store();
3108
2923
  const [errMsg, setErrMsg] = React__default["default"].useState('');
3109
2924
  const phone = config === null || config === void 0 ? void 0 : config.phone;
3110
2925
  const method = config === null || config === void 0 ? void 0 : config.method;
@@ -3168,13 +2983,11 @@ const SSOPasswordScreen = ({ hidden, config, }) => {
3168
2983
  setLoading(false);
3169
2984
  });
3170
2985
  const onAuthSuccess = (data) => tslib_es6.__awaiter(void 0, void 0, void 0, function* () {
2986
+ var _c, _d;
3171
2987
  store.handleAuthSuccess(data);
3172
- const userInfo = yield store.getUserInfo();
3173
- const isPhoneFlow = isPhoneFlowFn(flowData);
3174
- const isEmailFlow = isEmailFlowFn(flowData);
3175
- setUserInfo(userInfo === null || userInfo === void 0 ? void 0 : userInfo._data);
3176
2988
  if (!phone && !!email) {
3177
- if (store.isPhoneNotVerifedYet(userInfo === null || userInfo === void 0 ? void 0 : userInfo._data)) {
2989
+ const userInfo = yield store.getUserInfo();
2990
+ if (!((_c = userInfo._data) === null || _c === void 0 ? void 0 : _c.phone_verified_at) || !((_d = userInfo._data) === null || _d === void 0 ? void 0 : _d.phone)) {
3178
2991
  store.useSSOV2Store.setState((s) => ({
3179
2992
  flowData: Object.assign(Object.assign({}, s.flowData), { isVerifyPhone: true }),
3180
2993
  }));
@@ -3188,27 +3001,6 @@ const SSOPasswordScreen = ({ hidden, config, }) => {
3188
3001
  return;
3189
3002
  }
3190
3003
  }
3191
- if (store.isLoginWithPhoneNotVerifedYet(flowData, userInfo._data)) {
3192
- addStep({
3193
- type: store.SSOStepTypeType.FORGOT_PASSWORD_PHONE,
3194
- config: {
3195
- phone: `${userInfo._data.area_code}${userInfo._data.phone}`,
3196
- afterAction: 'setup',
3197
- },
3198
- });
3199
- goNext();
3200
- return;
3201
- }
3202
- if ((isPhoneFlow || isEmailFlow) && !store.isUserFinishedSetup(userInfo === null || userInfo === void 0 ? void 0 : userInfo._data)) {
3203
- addStep({
3204
- type: store.SSOStepTypeType.SETUP_FULL,
3205
- config: {
3206
- userInfo: userInfo === null || userInfo === void 0 ? void 0 : userInfo._data,
3207
- },
3208
- });
3209
- goNext();
3210
- return;
3211
- }
3212
3004
  onClose === null || onClose === void 0 ? void 0 : onClose(true);
3213
3005
  });
3214
3006
  return (React__default["default"].createElement("form", { style: {
@@ -3257,47 +3049,6 @@ const SSOPasswordScreen = ({ hidden, config, }) => {
3257
3049
  React__default["default"].createElement(index$4.Button, { type: "submit", size: "lg", variant: "primary", mt: 12, fullWidth: true, disabled: loading, loading: loading, "data-event-category": trackingCategory, "data-event-action": trackingAction, "data-event-label": "Sign In" }, t('ssov2.password.signIn'))));
3258
3050
  };
3259
3051
 
3260
- const SetupLater = ({ style = {} }) => {
3261
- const { t } = index.useTranslations();
3262
- const { onClose } = useSSOState();
3263
- const [loading, setLoading] = React.useState(false);
3264
- const { userInfo, flowData } = store.useSSOV2Store();
3265
- const { currentStepIndex, steps, addStep, goNext } = store.useSSOSteps();
3266
- const currentStep = steps[currentStepIndex];
3267
- const onClickSetupLater = () => tslib_es6.__awaiter(void 0, void 0, void 0, function* () {
3268
- if (loading)
3269
- return;
3270
- setLoading(true);
3271
- if (userInfo &&
3272
- !store.isUserFinishedSetup(userInfo) &&
3273
- ((currentStep === null || currentStep === void 0 ? void 0 : currentStep.type) === store.SSOStepTypeType.VERIFY_PHONE ||
3274
- (currentStep === null || currentStep === void 0 ? void 0 : currentStep.type) === store.SSOStepTypeType.FORGOT_PASSWORD_PHONE)) {
3275
- addStep({
3276
- type: store.SSOStepTypeType.SETUP_FULL,
3277
- config: {
3278
- userInfo,
3279
- },
3280
- });
3281
- goNext();
3282
- }
3283
- else if (!store.isFlowFinishedSetup(flowData) &&
3284
- (currentStep === null || currentStep === void 0 ? void 0 : currentStep.type) === store.SSOStepTypeType.VERIFY_PHONE) {
3285
- addStep({
3286
- type: store.SSOStepTypeType.SETUP_FULL,
3287
- config: {
3288
- userInfo,
3289
- },
3290
- });
3291
- goNext();
3292
- }
3293
- else {
3294
- onClose === null || onClose === void 0 ? void 0 : onClose(true);
3295
- }
3296
- setLoading(false);
3297
- });
3298
- return (React__default["default"].createElement(index$4.Button, { size: "sm", variant: "white", color: "#737373", style: Object.assign({ fontWeight: 400 }, style), onClick: onClickSetupLater, disabled: loading }, t('ssov2.button.setupLater')));
3299
- };
3300
-
3301
3052
  const SSOPasswordForgotPhone = ({ hidden, config, }) => {
3302
3053
  const phone = config === null || config === void 0 ? void 0 : config.phone;
3303
3054
  const { t } = index.useTranslations();
@@ -3345,7 +3096,7 @@ const SSOPasswordForgotPhone = ({ hidden, config, }) => {
3345
3096
  config: {
3346
3097
  phone,
3347
3098
  otpType: 'phone-zalo',
3348
- afterAction: config.afterAction || 'forgot',
3099
+ afterAction: 'forgot',
3349
3100
  provider: (_b = userExist._data) === null || _b === void 0 ? void 0 : _b.provider,
3350
3101
  },
3351
3102
  });
@@ -3388,7 +3139,7 @@ const SSOPasswordForgotPhone = ({ hidden, config, }) => {
3388
3139
  config: {
3389
3140
  phone,
3390
3141
  otpType: 'phone-sms',
3391
- afterAction: config.afterAction || 'forgot',
3142
+ afterAction: 'forgot',
3392
3143
  provider: (_d = userExist._data) === null || _d === void 0 ? void 0 : _d.provider,
3393
3144
  },
3394
3145
  });
@@ -3416,8 +3167,7 @@ const SSOPasswordForgotPhone = ({ hidden, config, }) => {
3416
3167
  isError: !!errMsg, required: true, disabled: true, "data-event-category": trackingCategory, "data-event-action": trackingAction, "data-event-label": "Enter Phone" }),
3417
3168
  errMsg && (React__default["default"].createElement(index$3.Text, { size: "label2", color: "red.6", mt: -12 }, errMsg)),
3418
3169
  React__default["default"].createElement(index$4.Button, { size: "lg", variant: "primary", onClick: onClickContinueZalo, disabled: loading, loading: loading, "data-event-category": trackingCategory, "data-event-action": trackingAction, "data-event-label": "Continue with Zalo" }, t('ssov2.button.continueZalo')),
3419
- React__default["default"].createElement(index$4.Button, { size: "lg", variant: "secondary", onClick: onClickContinuePhone, disabled: loading, loading: loading, "data-event-category": trackingCategory, "data-event-action": trackingAction, "data-event-label": "Continue with SMS" }, t('ssov2.button.continueSMS')),
3420
- React__default["default"].createElement(SetupLater, null))));
3170
+ React__default["default"].createElement(index$4.Button, { size: "lg", variant: "secondary", onClick: onClickContinuePhone, disabled: loading, loading: loading, "data-event-category": trackingCategory, "data-event-action": trackingAction, "data-event-label": "Continue with SMS" }, t('ssov2.button.continueSMS')))));
3421
3171
  };
3422
3172
 
3423
3173
  const CheckGrayIcon = () => (React__default["default"].createElement("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
@@ -3458,9 +3208,8 @@ const SSOPasswordForgotSetup = ({ hidden, }) => {
3458
3208
  const { t } = index.useTranslations();
3459
3209
  const [loading, setLoading] = React__default["default"].useState(false);
3460
3210
  const [errMsg, setErrMsg] = React__default["default"].useState('');
3461
- const { setTracking, onClose } = useSSOState();
3462
- const { addStep, goNext } = store.useSSOSteps();
3463
- const { flowData, setUserInfo } = store.useSSOV2Store();
3211
+ const { setTracking } = useSSOState();
3212
+ const { flowData } = store.useSSOV2Store();
3464
3213
  const trackingMethod = flowData.method;
3465
3214
  const trackingCategory = `SSO - Sign In via ${trackingMethod}`;
3466
3215
  const trackingAction = `Setup New Password`;
@@ -3498,66 +3247,22 @@ const SSOPasswordForgotSetup = ({ hidden, }) => {
3498
3247
  password.length <= 50 &&
3499
3248
  password.match(/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)/) &&
3500
3249
  password === confirmPassword) {
3501
- const isPhoneOrEmailFlow = isPhoneFlowFn(flowData) || isEmailFlowFn(flowData);
3502
- const res = isPhoneOrEmailFlow
3503
- ? yield store.updateUserInfo({
3504
- password,
3505
- confirm_password: confirmPassword,
3506
- validate: '',
3507
- })
3508
- : yield store.resetPassword(password, confirmPassword);
3250
+ const res = yield store.resetPassword(password, confirmPassword);
3509
3251
  if ((res === null || res === void 0 ? void 0 : res._status) === 1) {
3510
- if (isPhoneOrEmailFlow) {
3511
- store.handleAuthSuccess(res === null || res === void 0 ? void 0 : res._data);
3512
- const userInfo = yield store.getUserInfo();
3513
- // Phone
3514
- if (isPhoneFlowFn(flowData)) {
3515
- if (userInfo && !store.isUserFinishedSetup(userInfo === null || userInfo === void 0 ? void 0 : userInfo._data)) {
3516
- addStep({
3517
- type: store.SSOStepTypeType.SETUP_FULL,
3518
- config: {
3519
- userInfo: userInfo === null || userInfo === void 0 ? void 0 : userInfo._data,
3520
- },
3521
- });
3522
- goNext();
3523
- }
3524
- else {
3525
- onClose === null || onClose === void 0 ? void 0 : onClose(true);
3526
- }
3527
- }
3528
- // Email
3529
- if (isEmailFlowFn(flowData)) {
3530
- setUserInfo(userInfo === null || userInfo === void 0 ? void 0 : userInfo._data);
3531
- if (store.isPhoneNotVerifedYet(userInfo === null || userInfo === void 0 ? void 0 : userInfo._data)) {
3532
- addStep({
3533
- type: store.SSOStepTypeType.VERIFY_PHONE,
3534
- config: {
3535
- provider: 'email',
3536
- },
3537
- });
3538
- goNext();
3539
- }
3540
- else {
3541
- onClose === null || onClose === void 0 ? void 0 : onClose(true);
3542
- }
3543
- }
3252
+ useMantineLocale.showNotification({
3253
+ type: 'success',
3254
+ message: 'Password has been reset successfully',
3255
+ });
3256
+ // back to login step
3257
+ const foundPasswordIndex = steps.findIndex((step) => step.type === store.SSOStepTypeType.PASSWORD);
3258
+ if (foundPasswordIndex === -1) {
3259
+ // reset to first step
3260
+ setSteps((s) => [s[0]]);
3261
+ store.useSSOSteps.setState({ currentStepIndex: 0 });
3544
3262
  }
3545
3263
  else {
3546
- useMantineLocale.showNotification({
3547
- type: 'success',
3548
- message: 'Password has been reset successfully',
3549
- });
3550
- // back to login step
3551
- const foundPasswordIndex = steps.findIndex((step) => step.type === store.SSOStepTypeType.PASSWORD);
3552
- if (foundPasswordIndex === -1) {
3553
- // reset to first step
3554
- setSteps((s) => [s[0]]);
3555
- store.useSSOSteps.setState({ currentStepIndex: 0 });
3556
- }
3557
- else {
3558
- setSteps((s) => s.slice(0, foundPasswordIndex + 1));
3559
- store.useSSOSteps.setState({ currentStepIndex: foundPasswordIndex });
3560
- }
3264
+ setSteps((s) => s.slice(0, foundPasswordIndex + 1));
3265
+ store.useSSOSteps.setState({ currentStepIndex: foundPasswordIndex });
3561
3266
  }
3562
3267
  // onClose?.()
3563
3268
  }
@@ -3585,9 +3290,7 @@ const SSOPasswordForgotSetup = ({ hidden, }) => {
3585
3290
  action: trackingAction,
3586
3291
  } }),
3587
3292
  errMsg && (React__default["default"].createElement(index$3.Text, { size: "label2", color: "red.6", mt: -12 }, errMsg)),
3588
- React__default["default"].createElement(index$4.Button, { type: "submit", size: "lg", variant: "primary", fullWidth: true, disabled: loading, loading: loading, "data-event-category": trackingCategory, "data-event-action": trackingAction, "data-event-label": (flowData === null || flowData === void 0 ? void 0 : flowData.flow) === 'signup' ? 'Create New Account' : 'Save' }, (flowData === null || flowData === void 0 ? void 0 : flowData.flow) === 'signup'
3589
- ? t('ssov2.setup.button.createAccount')
3590
- : t('ssov2.button.save')))));
3293
+ React__default["default"].createElement(index$4.Button, { type: "submit", size: "lg", variant: "primary", fullWidth: true, disabled: loading, loading: loading, "data-event-category": trackingCategory, "data-event-action": trackingAction, "data-event-label": "Save" }, t('ssov2.button.save')))));
3591
3294
  };
3592
3295
 
3593
3296
  const SSOPhoneVerify = ({ hidden, config, }) => {
@@ -3608,7 +3311,6 @@ const SSOPhoneVerify = ({ hidden, config, }) => {
3608
3311
  });
3609
3312
  }
3610
3313
  }, [hidden]);
3611
- const { source } = store.useSSOV2Store();
3612
3314
  const { addStep, goNext } = store.useSSOSteps();
3613
3315
  const onClickContinueZalo = () => tslib_es6.__awaiter(void 0, void 0, void 0, function* () {
3614
3316
  setLoading(true);
@@ -3708,8 +3410,7 @@ const SSOPhoneVerify = ({ hidden, config, }) => {
3708
3410
  setErrMsg('');
3709
3411
  }, isError: !!errMsg, required: true, name: "phone", disabled: loading, "data-event-category": trackingCategory, "data-event-action": trackingAction, "data-event-label": "Enter Phone" })),
3710
3412
  React__default["default"].createElement(index$4.Button, { size: "lg", variant: "primary", onClick: onClickContinueZalo, disabled: loading, loading: loading, "data-event-category": trackingCategory, "data-event-action": trackingAction, "data-event-label": "Continue with Zalo" }, t('ssov2.button.continueZalo')),
3711
- React__default["default"].createElement(index$4.Button, { size: "lg", variant: "secondary", onClick: onClickContinuePhone, disabled: loading, loading: loading, "data-event-category": trackingCategory, "data-event-action": trackingAction, "data-event-label": "Continue with SMS" }, t('ssov2.button.continueSMS')),
3712
- source !== 'care_onboarding' && source !== 'ecom' && React__default["default"].createElement(SetupLater, null)))));
3413
+ React__default["default"].createElement(index$4.Button, { size: "lg", variant: "secondary", onClick: onClickContinuePhone, disabled: loading, loading: loading, "data-event-category": trackingCategory, "data-event-action": trackingAction, "data-event-label": "Continue with SMS" }, t('ssov2.button.continueSMS'))))));
3713
3414
  };
3714
3415
 
3715
3416
  const FemaleIcon = () => (React__default["default"].createElement("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
@@ -3741,19 +3442,39 @@ const MaleIcon = () => (React__default["default"].createElement("svg", { width:
3741
3442
  React__default["default"].createElement("path", { d: "M11.122 6.393a.157.157 0 0 1-.051-.304c.687-.234 1.688-.344 2.26-.03a.156.156 0 0 1-.15.274c-.463-.254-1.38-.163-2.009.052a.2.2 0 0 1-.05.008m-2.19.572a.16.16 0 0 1-.144-.097c-.013-.027-.123-.097-.363-.129-.325-.043-.672.016-.772.131a.156.156 0 1 1-.236-.205c.214-.245.721-.29 1.103-.228.209.034.475.116.556.311a.156.156 0 0 1-.144.217m.222-.571a.2.2 0 0 1-.05-.009c-.629-.215-1.546-.306-2.009-.051a.156.156 0 1 1-.15-.274c.572-.315 1.572-.206 2.26.03a.156.156 0 0 1-.05.304", fill: "#404040" }),
3742
3443
  React__default["default"].createElement("path", { d: "m11.12 9.547-.019.001a8 8 0 0 1-1.928 0 .156.156 0 1 0-.037.31c.665.08 1.337.08 2.003 0a.156.156 0 0 0-.019-.31", fill: "#D84023" })));
3743
3444
 
3744
- // import { StyledPhone } from '../components/phone'
3745
3445
  // always has name, gender dob
3746
- const OtherSetup = ({ form,
3747
- // needPhone,
3748
- // skipPhone,
3749
- needEmail, isEmailDisable,
3750
- // isPhoneDisabled,
3751
- loading, tracking, }) => {
3446
+ const OtherSetup = ({ form, needPhone, skipPhone, needEmail, isEmailDisable, isPhoneDisabled, loading, tracking, }) => {
3752
3447
  const { t } = index.useTranslations();
3753
- // const { locale = 'vi-VN' } = useSSOState()
3448
+ const { locale = 'vi-VN' } = useSSOState();
3754
3449
  const { setupSource } = store.useSSOV2Store();
3755
3450
  const [dobChanged, setDobChanged] = React__default["default"].useState(false);
3756
3451
  return (React__default["default"].createElement(core.Stack, { spacing: 12 },
3452
+ needPhone && (React__default["default"].createElement(React__default["default"].Fragment, null,
3453
+ React__default["default"].createElement(index$5.Input.Wrapper, Object.assign({ label: t('ssov2.setup.field.phone.label'), withAsterisk: true }, form.getInputProps('phone')),
3454
+ React__default["default"].createElement(StyledPhone, { defaultCountry: (locale ? utils.MAPPED_LOCALE[locale] || 'VN' : 'VN'), value: form.getInputProps('phone').value, onChange: (value) => {
3455
+ form.setFieldValue('phone', value);
3456
+ }, isError: !!form.getInputProps('phone').error, required: true, name: "phone", disabled: loading || isPhoneDisabled, "data-event-category": tracking === null || tracking === void 0 ? void 0 : tracking.category, "data-event-action": tracking === null || tracking === void 0 ? void 0 : tracking.action, "data-event-label": "Enter Phone" })),
3457
+ !skipPhone && (React__default["default"].createElement(core.Group, { spacing: 24 },
3458
+ React__default["default"].createElement(index$3.Text, { size: "p4" }, t('ssov2.setup.field.otp.label')),
3459
+ React__default["default"].createElement(index$5.Radio.Group, Object.assign({ name: "otpMethod", styles: {
3460
+ root: {
3461
+ display: 'flex',
3462
+ flexDirection: 'row',
3463
+ flexWrap: 'wrap',
3464
+ gap: 24,
3465
+ },
3466
+ } }, form.getInputProps('otpMethod')),
3467
+ React__default["default"].createElement(index$5.Radio, { value: "zalo", label: "Zalo", styles: {
3468
+ label: {
3469
+ paddingLeft: 8,
3470
+ },
3471
+ }, disabled: loading, "data-event-category": tracking === null || tracking === void 0 ? void 0 : tracking.category, "data-event-action": tracking === null || tracking === void 0 ? void 0 : tracking.action, "data-event-label": "Send OTP Code via Zalo" }),
3472
+ React__default["default"].createElement(index$5.Radio, { value: "sms", label: "SMS", styles: {
3473
+ label: {
3474
+ paddingLeft: 8,
3475
+ },
3476
+ }, disabled: loading, "data-event-category": tracking === null || tracking === void 0 ? void 0 : tracking.category, "data-event-action": tracking === null || tracking === void 0 ? void 0 : tracking.action, "data-event-label": "Send OTP Code via SMS" })))))),
3477
+ needEmail && (React__default["default"].createElement(index$5.Input, Object.assign({ name: "email", type: "email", label: t('ssov2.setup.field.email.label'), disabled: isEmailDisable || loading, required: setupSource === 'care' ? true : false, withAsterisk: setupSource === 'care' ? true : false, "data-event-category": tracking === null || tracking === void 0 ? void 0 : tracking.category, "data-event-action": tracking === null || tracking === void 0 ? void 0 : tracking.action, "data-event-label": "Enter Email" }, form.getInputProps('email')))),
3757
3478
  React__default["default"].createElement(index$5.Input, Object.assign({ name: "name", label: t('ssov2.setup.field.name.label'), withAsterisk: true, required: true, placeholder: t('ssov2.setup.field.name.placeholder'), disabled: loading, "data-event-category": tracking === null || tracking === void 0 ? void 0 : tracking.category, "data-event-action": tracking === null || tracking === void 0 ? void 0 : tracking.action, "data-event-label": "Enter Name" }, form.getInputProps('name'))),
3758
3479
  React__default["default"].createElement(index$5.Input.Wrapper, Object.assign({ label: t('ssov2.setup.field.gender.label'), withAsterisk: true }, form.getInputProps('gender')),
3759
3480
  React__default["default"].createElement(core.Group, null,
@@ -3788,13 +3509,9 @@ loading, tracking, }) => {
3788
3509
  if (!form.getInputProps('dob').value && !dobChanged)
3789
3510
  return;
3790
3511
  form.getInputProps('dob').onBlur(e);
3791
- } })),
3792
- needEmail && (React__default["default"].createElement(index$5.Input, Object.assign({ name: "email", type: "email", label: t('ssov2.setup.field.email.label'), disabled: isEmailDisable || loading, required: setupSource === 'care' ? true : false, withAsterisk: setupSource === 'care' ? true : false, "data-event-category": tracking === null || tracking === void 0 ? void 0 : tracking.category, "data-event-action": tracking === null || tracking === void 0 ? void 0 : tracking.action, "data-event-label": "Enter Email", style: {
3793
- display: isEmailDisable ? 'none' : 'block',
3794
- } }, form.getInputProps('email'))))));
3512
+ } }))));
3795
3513
  };
3796
3514
 
3797
- // import { SSOPasswordWithConfirm } from '../passwordForgotSetup/passwordWithConfirm'
3798
3515
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
3799
3516
  const getDefaultData = (data) => {
3800
3517
  try {
@@ -3820,6 +3537,7 @@ const SSOSetupScreen = ({ hidden, config, }) => {
3820
3537
  var _a, _b, _c;
3821
3538
  const { onClose, setTracking } = useSSOState();
3822
3539
  const { t } = index.useTranslations();
3540
+ const { goNext, addStep } = store.useSSOSteps();
3823
3541
  const { setupSource, flowData } = store.useSSOV2Store();
3824
3542
  const [errMsg, setErrMsg] = React__default["default"].useState('');
3825
3543
  const userInfo = config === null || config === void 0 ? void 0 : config.userInfo;
@@ -3829,6 +3547,13 @@ const SSOSetupScreen = ({ hidden, config, }) => {
3829
3547
  const provider = (_a = config === null || config === void 0 ? void 0 : config.userInfo) === null || _a === void 0 ? void 0 : _a.provider;
3830
3548
  const authFlow = flowData === null || flowData === void 0 ? void 0 : flowData.flow;
3831
3549
  const defaultData = getDefaultData(config === null || config === void 0 ? void 0 : config.setupDefaultData);
3550
+ const needPass = (authMethod === 'phone' ||
3551
+ authMethod === 'zalo' ||
3552
+ authMethod === 'sms' ||
3553
+ authMethod === 'email' ||
3554
+ provider === 'email' ||
3555
+ provider === 'phone') &&
3556
+ !(userInfo === null || userInfo === void 0 ? void 0 : userInfo.is_pass);
3832
3557
  const skipPhone = (userInfo === null || userInfo === void 0 ? void 0 : userInfo.phone) && !!(userInfo === null || userInfo === void 0 ? void 0 : userInfo.phone_verified_at);
3833
3558
  const isPhoneDisabled = !!(configPhone || (defaultData === null || defaultData === void 0 ? void 0 : defaultData.phone) || skipPhone);
3834
3559
  const needPhone = authFlow === 'signup' &&
@@ -3848,6 +3573,8 @@ const SSOSetupScreen = ({ hidden, config, }) => {
3848
3573
  !(flowData === null || flowData === void 0 ? void 0 : flowData.isVerifyPhone) ||
3849
3574
  authMethod === 'facebook' ||
3850
3575
  provider === 'facebook';
3576
+ // const needPhone = !userInfo?.phone_verified_at
3577
+ // const needEmail = authFlow !== 'verify-phone'
3851
3578
  const isEmailDisable = (defaultEmail &&
3852
3579
  (authMethod === 'google' ||
3853
3580
  authMethod === 'email' ||
@@ -3884,7 +3611,30 @@ const SSOSetupScreen = ({ hidden, config, }) => {
3884
3611
  ? dayjs__default["default"](defaultData.birthday, 'MM/DD/YYYY').toDate()
3885
3612
  : undefined }),
3886
3613
  validateInputOnBlur: true,
3887
- validate: form.yupResolver(yup__namespace.object().shape(Object.assign(Object.assign({}, (needEmail
3614
+ validate: form.yupResolver(yup__namespace.object().shape(Object.assign(Object.assign(Object.assign(Object.assign({}, (needPass
3615
+ ? {
3616
+ password: yup__namespace
3617
+ .string()
3618
+ .required(t('ssov2.validate.password.required'))
3619
+ .min(8, ' ')
3620
+ .max(50, ' ')
3621
+ .matches(/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)/, ' '),
3622
+ confirmPassword: yup__namespace
3623
+ .string()
3624
+ .required(t('ssov2.validate.confirmPassword.required'))
3625
+ .test('passwords-match', t('ssov2.validate.confirmPassword.match'), function (value) {
3626
+ return this.parent.password === value;
3627
+ }),
3628
+ }
3629
+ : {})), (needPhone
3630
+ ? Object.assign({ phone: yup__namespace.string().required(t('ssov2.validate.phone.required')) }, (!skipPhone
3631
+ ? {
3632
+ otpMethod: yup__namespace
3633
+ .string()
3634
+ .required(t('ssov2.validate.otp.required'))
3635
+ .oneOf(['zalo', 'sms']),
3636
+ }
3637
+ : {})) : {})), (needEmail
3888
3638
  ? {
3889
3639
  email: setupSource === 'care'
3890
3640
  ? yup__namespace
@@ -3901,13 +3651,15 @@ const SSOSetupScreen = ({ hidden, config, }) => {
3901
3651
  const onSubmit = (values) => tslib_es6.__awaiter(void 0, void 0, void 0, function* () {
3902
3652
  setLoading(true);
3903
3653
  try {
3904
- const { phone, gender, name, dob } = values;
3654
+ const { password, confirmPassword, phone, gender, name, dob, otpMethod } = values;
3905
3655
  const { phoneNumber, areaCode } = splitPhone(phone || configPhone || '');
3906
3656
  // validate only, delay set data to after otp
3907
3657
  const res = yield store.updateUserInfo({
3908
3658
  name,
3909
3659
  birthday: dayjs__default["default"](dob).format('YYYY-MM-DD'),
3910
3660
  email: values.email || undefined,
3661
+ password,
3662
+ confirm_password: confirmPassword,
3911
3663
  phone_number: phoneNumber || (userInfo === null || userInfo === void 0 ? void 0 : userInfo.phone),
3912
3664
  area_code: areaCode || (userInfo === null || userInfo === void 0 ? void 0 : userInfo.area_code) || '84',
3913
3665
  gender: gender === 'male' ? 1 : 0,
@@ -3915,23 +3667,80 @@ const SSOSetupScreen = ({ hidden, config, }) => {
3915
3667
  validate: 'true',
3916
3668
  });
3917
3669
  if ((res === null || res === void 0 ? void 0 : res._status) === 1) {
3918
- const res = yield store.updateUserInfo({
3919
- name,
3920
- birthday: dayjs__default["default"](dob).format('YYYY-MM-DD'),
3921
- email: values.email || undefined,
3922
- phone_number: phoneNumber || (userInfo === null || userInfo === void 0 ? void 0 : userInfo.phone),
3923
- area_code: areaCode || (userInfo === null || userInfo === void 0 ? void 0 : userInfo.area_code),
3924
- gender: gender === 'male' ? 1 : 0,
3925
- source: setupSource,
3926
- validate: '',
3927
- });
3928
- if ((res === null || res === void 0 ? void 0 : res._status) === 1) {
3929
- store.handleAuthSuccess(res === null || res === void 0 ? void 0 : res._data);
3930
- onClose === null || onClose === void 0 ? void 0 : onClose(true);
3670
+ // if need phone and has phone then start phone verify step, close after done
3671
+ if (needPhone && !skipPhone) {
3672
+ const setupData = {
3673
+ name,
3674
+ birthday: dayjs__default["default"](dob).format('YYYY-MM-DD'),
3675
+ email: values.email || undefined,
3676
+ password,
3677
+ confirm_password: confirmPassword,
3678
+ phone_number: phoneNumber || (userInfo === null || userInfo === void 0 ? void 0 : userInfo.phone),
3679
+ area_code: areaCode || (userInfo === null || userInfo === void 0 ? void 0 : userInfo.area_code) || '84',
3680
+ gender: gender === 'male' ? 1 : 0,
3681
+ source: setupSource,
3682
+ };
3683
+ if (otpMethod === 'zalo') {
3684
+ const res = yield resendUpdatePhoneZaloOTP(phoneNumber, areaCode);
3685
+ if ((res === null || res === void 0 ? void 0 : res._status) !== 1) {
3686
+ setErrMsg(getErrorTextFromCode(t, res === null || res === void 0 ? void 0 : res.code));
3687
+ return setLoading(false);
3688
+ }
3689
+ addStep({
3690
+ type: store.SSOStepTypeType.OTP,
3691
+ config: {
3692
+ phone,
3693
+ otpType: 'phone-zalo',
3694
+ isUpdatePhone: true,
3695
+ afterAction: 'submitSetup',
3696
+ setupData,
3697
+ provider,
3698
+ },
3699
+ });
3700
+ goNext();
3701
+ }
3702
+ else {
3703
+ const res = yield resendUpdatePhoneOTP(phoneNumber, areaCode);
3704
+ if ((res === null || res === void 0 ? void 0 : res._status) !== 1) {
3705
+ setErrMsg(getErrorTextFromCode(t, res === null || res === void 0 ? void 0 : res.code));
3706
+ return setLoading(false);
3707
+ }
3708
+ addStep({
3709
+ type: store.SSOStepTypeType.OTP,
3710
+ config: {
3711
+ phone,
3712
+ otpType: 'phone-sms',
3713
+ isUpdatePhone: true,
3714
+ afterAction: 'submitSetup',
3715
+ setupData,
3716
+ provider,
3717
+ },
3718
+ });
3719
+ goNext();
3720
+ }
3931
3721
  }
3932
3722
  else {
3933
- setErrMsg(getErrorTextFromCode(t, res === null || res === void 0 ? void 0 : res.code));
3934
- return setLoading(false);
3723
+ // close?
3724
+ const res = yield store.updateUserInfo({
3725
+ name,
3726
+ birthday: dayjs__default["default"](dob).format('YYYY-MM-DD'),
3727
+ email: values.email || undefined,
3728
+ password,
3729
+ confirm_password: confirmPassword,
3730
+ phone_number: phoneNumber || (userInfo === null || userInfo === void 0 ? void 0 : userInfo.phone),
3731
+ area_code: areaCode || (userInfo === null || userInfo === void 0 ? void 0 : userInfo.area_code),
3732
+ gender: gender === 'male' ? 1 : 0,
3733
+ source: setupSource,
3734
+ validate: '',
3735
+ });
3736
+ if ((res === null || res === void 0 ? void 0 : res._status) === 1) {
3737
+ store.handleAuthSuccess(res === null || res === void 0 ? void 0 : res._data);
3738
+ onClose === null || onClose === void 0 ? void 0 : onClose(true);
3739
+ }
3740
+ else {
3741
+ setErrMsg(getErrorTextFromCode(t, res === null || res === void 0 ? void 0 : res.code));
3742
+ return setLoading(false);
3743
+ }
3935
3744
  }
3936
3745
  }
3937
3746
  else {
@@ -3952,13 +3761,24 @@ const SSOSetupScreen = ({ hidden, config, }) => {
3952
3761
  React__default["default"].createElement(core.Stack, { spacing: 8 },
3953
3762
  React__default["default"].createElement(index$3.Text, { size: "s1", weight: "semiBold" }, t('ssov2.setup.title')),
3954
3763
  React__default["default"].createElement(index$3.Text, { size: "p4" }, t('ssov2.setup.description'))),
3764
+ needPass && (React__default["default"].createElement(SSOPasswordWithConfirm, { form: form$1, loading: loading, tracking: {
3765
+ category: trackingCategory,
3766
+ action: trackingAction,
3767
+ } })),
3955
3768
  React__default["default"].createElement(OtherSetup, { needPhone: needPhone, skipPhone: skipPhone, needEmail: needEmail, isEmailDisable: isEmailDisable, isPhoneDisabled: isPhoneDisabled, form: form$1, loading: loading, tracking: {
3956
3769
  category: trackingCategory,
3957
3770
  action: trackingAction,
3958
3771
  } }),
3959
3772
  errMsg && (React__default["default"].createElement(index$3.Text, { color: "red.6", size: "p4" }, errMsg)),
3960
- React__default["default"].createElement(index$4.Button, { type: "submit", variant: "primary", fullWidth: true, loading: loading, disabled: loading, "data-event-category": trackingCategory, "data-event-action": trackingAction, "data-event-label": "Save" }, t('ssov2.button.save')),
3961
- React__default["default"].createElement(SetupLater, { style: { marginTop: -8 } }))));
3773
+ React__default["default"].createElement(index$4.Button, { type: "submit", variant: "primary", fullWidth: true, loading: loading, disabled: loading, "data-event-category": trackingCategory, "data-event-action": trackingAction, "data-event-label": needPhone && !skipPhone
3774
+ ? 'Verify Phone Number'
3775
+ : authFlow === 'signup'
3776
+ ? 'Create New Account'
3777
+ : 'Save' }, needPhone && !skipPhone
3778
+ ? t('ssov2.setup.button.veriyPhone')
3779
+ : authFlow === 'signup'
3780
+ ? t('ssov2.setup.button.createAccount')
3781
+ : t('ssov2.button.save')))));
3962
3782
  };
3963
3783
 
3964
3784
  // import {
@@ -4067,15 +3887,6 @@ const SSOScreenRenderer = () => {
4067
3887
  })));
4068
3888
  };
4069
3889
 
4070
- if (!Array.prototype.findLastIndex) {
4071
- Array.prototype.findLastIndex = function (callback, thisArg) {
4072
- for (let i = this.length - 1; i >= 0; i--) {
4073
- if (callback.call(thisArg, this[i], i, this))
4074
- return i;
4075
- }
4076
- return -1;
4077
- };
4078
- }
4079
3890
  const SSOV2 = ({ onClose: onCloseProps, locale }) => {
4080
3891
  const { isOpen, setOpen, returnUrl, setMounted, source, overrideClose, setOnCloseProp, forceReloadOnClose, } = store.useSSOV2Store();
4081
3892
  React.useEffect(() => {