@hhgtech/hhg-components 1.29.362 → 1.29.363-beta-1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (585) hide show
  1. package/build/InputDate-ce2a409e.js +416 -0
  2. package/build/{LastPeriod-eb5cfea6.js → LastPeriod-629c6d2e.js} +1 -1
  3. package/build/{Locale-8424b413.js → Locale-043d083b.js} +1 -0
  4. package/build/{MobileBottomNavigationIcon-1c8f1782.js → MobileBottomNavigationIcon-a19ba2a4.js} +3 -3
  5. package/build/{Spinner-b9257ddf.js → Spinner-4a032444.js} +1 -1
  6. package/build/{WhatsApp-b20d8887.js → WhatsApp-1347df20.js} +1 -1
  7. package/build/adapters.js +19 -19
  8. package/build/atoms.js +49 -47
  9. package/build/babyGrowth.js +83 -83
  10. package/build/cache.js +2 -2
  11. package/build/care.js +17 -17
  12. package/build/careBookingSearchBar.js +14 -14
  13. package/build/careBookingSearchBarV2.js +15 -15
  14. package/build/components/atoms/icons/IUI.d.ts +4 -0
  15. package/build/components/atoms/icons/Info.d.ts +4 -0
  16. package/build/components/atoms/icons/Ultrasound.d.ts +4 -0
  17. package/build/components/atoms/index.d.ts +1 -0
  18. package/build/components/atoms/inputDate/InputDate.d.ts +12 -4
  19. package/build/components/atoms/inputDate/InputDate.helpers.d.ts +5 -3
  20. package/build/components/atoms/inputMB/index.styled.d.ts +2 -2
  21. package/build/components/atoms/logo/index.d.ts +1 -1
  22. package/build/components/molecules/embeddedHeathToolCards/due-date/dueDate.d.ts +5 -2
  23. package/build/components/molecules/healthTools/components/borderInlineControl/index.d.ts +2 -2
  24. package/build/components/molecules/healthTools/form/dueDateForm/context.d.ts +1 -1
  25. package/build/components/molecules/healthTools/form/dueDateForm/index.d.ts +3 -1
  26. package/build/components/molecules/healthTools/form/dueDateForm/iuiForm/context.d.ts +7 -0
  27. package/build/components/molecules/healthTools/form/dueDateForm/iuiForm/defaultLayout.d.ts +2 -0
  28. package/build/components/molecules/healthTools/form/dueDateForm/iuiForm/index.d.ts +6 -0
  29. package/build/components/molecules/healthTools/form/dueDateForm/iuiForm/inlineLayout.d.ts +2 -0
  30. package/build/components/molecules/healthTools/form/dueDateForm/iuiForm/mbLayout.d.ts +2 -0
  31. package/build/components/molecules/healthTools/form/dueDateForm/ultrasoundForm/context.d.ts +7 -0
  32. package/build/components/molecules/healthTools/form/dueDateForm/ultrasoundForm/defaultLayout.d.ts +2 -0
  33. package/build/components/molecules/healthTools/form/dueDateForm/ultrasoundForm/index.d.ts +8 -0
  34. package/build/components/molecules/healthTools/form/dueDateForm/ultrasoundForm/inlineLayout.d.ts +2 -0
  35. package/build/components/molecules/healthTools/form/dueDateForm/ultrasoundForm/mbLayout.d.ts +2 -0
  36. package/build/components/molecules/healthTools/form/dueDateForm/utils.d.ts +5 -1
  37. package/build/components/molecules/toolBannerCard/index.d.ts +3 -1
  38. package/build/components.js +122 -121
  39. package/build/constants/keyCode.d.ts +5 -0
  40. package/build/{constants-b5640ab3.js → constants-c98c9f86.js} +1 -0
  41. package/build/{constants-bf5a6242.js → constants-e73888d7.js} +1 -1
  42. package/build/constants.js +3 -3
  43. package/build/constantsDomainLocales.js +3 -1
  44. package/build/constantsRiskScreener.js +2 -2
  45. package/build/constantsSite.js +2 -2
  46. package/build/{core-fc1b679c.js → core-b9574056.js} +1 -1
  47. package/build/{dataTransform-99aef06b.js → dataTransform-36801523.js} +1 -1
  48. package/build/ecom.js +4 -4
  49. package/build/{editor-0234fb2f.js → editor-3d728a52.js} +11 -11
  50. package/build/embeddedHeathToolCards_babyGrowth.js +23 -23
  51. package/build/embeddedHeathToolCards_babyPoop.js +19 -19
  52. package/build/embeddedHeathToolCards_babyVaccine.js +22 -22
  53. package/build/embeddedHeathToolCards_bmi_bmi.js +25 -25
  54. package/build/embeddedHeathToolCards_bmrBmr.js +25 -25
  55. package/build/embeddedHeathToolCards_dueDate_dueDate.js +27 -26
  56. package/build/embeddedHeathToolCards_ovulation_ovulation.js +22 -22
  57. package/build/embeddedHeathToolCards_pwg_pwg.js +26 -26
  58. package/build/embeddedHeathToolCards_targetHeartRate.js +27 -27
  59. package/build/esm/InputDate-59904635.js +407 -0
  60. package/build/esm/{LastPeriod-e8d99ec6.js → LastPeriod-fbf8fbf3.js} +1 -1
  61. package/build/esm/{Locale-23142efe.js → Locale-37e2792b.js} +1 -0
  62. package/build/esm/{MobileBottomNavigationIcon-5f4ee3f4.js → MobileBottomNavigationIcon-6b3bd20f.js} +3 -3
  63. package/build/esm/{Spinner-6ffe5c0f.js → Spinner-a518c119.js} +1 -1
  64. package/build/esm/{WhatsApp-1c55868a.js → WhatsApp-1c47f4a0.js} +1 -1
  65. package/build/esm/adapters.js +19 -19
  66. package/build/esm/atoms.js +48 -47
  67. package/build/esm/babyGrowth.js +83 -83
  68. package/build/esm/cache.js +2 -2
  69. package/build/esm/care.js +17 -17
  70. package/build/esm/careBookingSearchBar.js +14 -14
  71. package/build/esm/careBookingSearchBarV2.js +15 -15
  72. package/build/esm/components/atoms/icons/IUI.d.ts +4 -0
  73. package/build/esm/components/atoms/icons/Info.d.ts +4 -0
  74. package/build/esm/components/atoms/icons/Ultrasound.d.ts +4 -0
  75. package/build/esm/components/atoms/index.d.ts +1 -0
  76. package/build/esm/components/atoms/inputDate/InputDate.d.ts +12 -4
  77. package/build/esm/components/atoms/inputDate/InputDate.helpers.d.ts +5 -3
  78. package/build/esm/components/atoms/inputMB/index.styled.d.ts +2 -2
  79. package/build/esm/components/atoms/logo/index.d.ts +1 -1
  80. package/build/esm/components/molecules/embeddedHeathToolCards/due-date/dueDate.d.ts +5 -2
  81. package/build/esm/components/molecules/healthTools/components/borderInlineControl/index.d.ts +2 -2
  82. package/build/esm/components/molecules/healthTools/form/dueDateForm/context.d.ts +1 -1
  83. package/build/esm/components/molecules/healthTools/form/dueDateForm/index.d.ts +3 -1
  84. package/build/esm/components/molecules/healthTools/form/dueDateForm/iuiForm/context.d.ts +7 -0
  85. package/build/esm/components/molecules/healthTools/form/dueDateForm/iuiForm/defaultLayout.d.ts +2 -0
  86. package/build/esm/components/molecules/healthTools/form/dueDateForm/iuiForm/index.d.ts +6 -0
  87. package/build/esm/components/molecules/healthTools/form/dueDateForm/iuiForm/inlineLayout.d.ts +2 -0
  88. package/build/esm/components/molecules/healthTools/form/dueDateForm/iuiForm/mbLayout.d.ts +2 -0
  89. package/build/esm/components/molecules/healthTools/form/dueDateForm/ultrasoundForm/context.d.ts +7 -0
  90. package/build/esm/components/molecules/healthTools/form/dueDateForm/ultrasoundForm/defaultLayout.d.ts +2 -0
  91. package/build/esm/components/molecules/healthTools/form/dueDateForm/ultrasoundForm/index.d.ts +8 -0
  92. package/build/esm/components/molecules/healthTools/form/dueDateForm/ultrasoundForm/inlineLayout.d.ts +2 -0
  93. package/build/esm/components/molecules/healthTools/form/dueDateForm/ultrasoundForm/mbLayout.d.ts +2 -0
  94. package/build/esm/components/molecules/healthTools/form/dueDateForm/utils.d.ts +5 -1
  95. package/build/esm/components/molecules/toolBannerCard/index.d.ts +3 -1
  96. package/build/esm/components.js +98 -98
  97. package/build/esm/constants/keyCode.d.ts +5 -0
  98. package/build/esm/{constants-343513d8.js → constants-3f8c9086.js} +1 -1
  99. package/build/esm/{constants-7e8a9103.js → constants-e80852b3.js} +1 -0
  100. package/build/esm/constants.js +3 -3
  101. package/build/esm/constantsDomainLocales.js +3 -1
  102. package/build/esm/constantsRiskScreener.js +2 -2
  103. package/build/esm/constantsSite.js +2 -2
  104. package/build/esm/{core-d9fb3c8c.js → core-bf7d9c08.js} +1 -1
  105. package/build/esm/{dataTransform-fa355ead.js → dataTransform-59b288d4.js} +1 -1
  106. package/build/esm/ecom.js +4 -4
  107. package/build/esm/{editor-8c46a4c4.js → editor-cc380bcb.js} +11 -11
  108. package/build/esm/embeddedHeathToolCards_babyGrowth.js +23 -23
  109. package/build/esm/embeddedHeathToolCards_babyPoop.js +19 -19
  110. package/build/esm/embeddedHeathToolCards_babyVaccine.js +22 -22
  111. package/build/esm/embeddedHeathToolCards_bmi_bmi.js +25 -25
  112. package/build/esm/embeddedHeathToolCards_bmrBmr.js +25 -25
  113. package/build/esm/embeddedHeathToolCards_dueDate_dueDate.js +27 -26
  114. package/build/esm/embeddedHeathToolCards_ovulation_ovulation.js +22 -22
  115. package/build/esm/embeddedHeathToolCards_pwg_pwg.js +26 -26
  116. package/build/esm/embeddedHeathToolCards_targetHeartRate.js +27 -27
  117. package/build/esm/footer.js +21 -21
  118. package/build/esm/gAssets.js +2 -2
  119. package/build/esm/{healthTools-4cffe096.js → healthTools-98d943f7.js} +1 -1
  120. package/build/esm/healthToolsCardWrapper.js +18 -18
  121. package/build/esm/healthToolsForm.js +34 -34
  122. package/build/esm/hooks.js +13 -13
  123. package/build/esm/i18n/translationKeys.d.ts +1 -1
  124. package/build/esm/i18n-values/en-PH.js +8 -0
  125. package/build/esm/i18n-values/hi-IN.js +8 -0
  126. package/build/esm/i18n-values/id-ID.js +11 -3
  127. package/build/esm/i18n-values/km-KH.js +12 -4
  128. package/build/esm/i18n-values/ms-MY.js +11 -3
  129. package/build/esm/i18n-values/my-MM.js +12 -4
  130. package/build/esm/i18n-values/th-TH.js +12 -4
  131. package/build/esm/i18n-values/tl-PH.js +11 -3
  132. package/build/esm/i18n-values/vi-VN.js +8 -0
  133. package/build/esm/i18n-values/vi-VN_MB.js +9 -1
  134. package/build/esm/i18n-values/zh-TW.js +12 -4
  135. package/build/esm/i18n.js +3 -2
  136. package/build/esm/i18nV2.js +2 -2
  137. package/build/esm/{index-11c1e9b1.js → index-03218be0.js} +1 -1
  138. package/build/esm/{index-7e805ed6.js → index-0827175d.js} +5 -5
  139. package/build/esm/{index-4157d466.js → index-08da9bcd.js} +6 -6
  140. package/build/esm/{index-4364ba68.js → index-0ad19085.js} +44 -16
  141. package/build/esm/{index-1fd51a1e.js → index-10b5b290.js} +3 -3
  142. package/build/esm/{index-6c04281f.js → index-18221a27.js} +2 -2
  143. package/build/esm/index-1da1d1c7.js +689 -0
  144. package/build/esm/{index-ab71391f.js → index-27127bd9.js} +2 -2
  145. package/build/esm/{index-f4d43595.js → index-27db860a.js} +7 -7
  146. package/build/esm/{index-85965d53.js → index-2f8470bb.js} +32 -32
  147. package/build/esm/{index-90917b32.js → index-30302950.js} +17 -17
  148. package/build/esm/{index-264f679d.js → index-336c3713.js} +15 -15
  149. package/build/esm/{index-8d885690.js → index-3741d01f.js} +3 -3
  150. package/build/esm/{index-41831dd2.js → index-45c471e2.js} +32 -32
  151. package/build/esm/{index-a0ef2f51.js → index-45e0fcc8.js} +11 -11
  152. package/build/esm/{index-93f05cbd.js → index-48c3a543.js} +9 -3
  153. package/build/esm/{index-3d551854.js → index-494cc118.js} +21 -21
  154. package/build/esm/{index-33f74b99.js → index-504a6907.js} +2 -2
  155. package/build/esm/{index-1a18f0d3.js → index-5115bbe8.js} +1 -1
  156. package/build/esm/{index-02b8ada7.js → index-53e0484f.js} +3 -3
  157. package/build/esm/{index-4df7bd0e.js → index-6e841f43.js} +2 -2
  158. package/build/esm/{index-74bc8897.js → index-714514ca.js} +31 -31
  159. package/build/esm/{index-1c7f348a.js → index-722e3b57.js} +1 -1
  160. package/build/esm/{index-c57e9049.js → index-72c4476f.js} +625 -27
  161. package/build/esm/{index-765bca50.js → index-73191fff.js} +13 -13
  162. package/build/esm/{index-98df08d3.js → index-73afd4b1.js} +1 -1
  163. package/build/esm/{index-b61495a6.js → index-759618f3.js} +18 -18
  164. package/build/esm/{index-65c29124.js → index-77decacc.js} +18 -18
  165. package/build/esm/{index-69598671.js → index-7d2e7bf9.js} +2 -2
  166. package/build/esm/{index-3cb8cb4b.js → index-7e02a49f.js} +1 -1
  167. package/build/esm/{index-34e46c3b.js → index-7e119bf6.js} +2 -2
  168. package/build/esm/{index-419ed52f.js → index-7e1f46f2.js} +2 -2
  169. package/build/esm/{index-3504643c.js → index-8281b68f.js} +2 -2
  170. package/build/esm/{index-cba80946.js → index-8500185e.js} +5 -5
  171. package/build/esm/{index-004e7f99.js → index-8b03e644.js} +2 -2
  172. package/build/esm/{index-0e0b8184.js → index-8f15e5ab.js} +10 -10
  173. package/build/esm/{index-7665c530.js → index-98d4a8ed.js} +16 -16
  174. package/build/esm/{index-345a0cd5.js → index-9c450b30.js} +16 -16
  175. package/build/esm/{index-cd0bc16f.js → index-9eb37432.js} +5 -4
  176. package/build/esm/{index-1bd2d4fd.js → index-a850b85b.js} +7 -7
  177. package/build/esm/{index-7c39e7fe.js → index-a85ac951.js} +6 -6
  178. package/build/esm/{index-77f49076.js → index-a87e7614.js} +2 -2
  179. package/build/esm/{index-4b4487ff.js → index-a9adebb2.js} +3 -3
  180. package/build/esm/{index-6f2df485.js → index-a9cbd573.js} +17 -17
  181. package/build/esm/{index-61d13d80.js → index-af2ef7b5.js} +1 -1
  182. package/build/esm/{index-423a6b89.js → index-b0d28c86.js} +6 -6
  183. package/build/esm/{index-2e1e583c.js → index-b16c48d2.js} +25 -25
  184. package/build/esm/{index-e9206ea6.js → index-b23edf1c.js} +2 -2
  185. package/build/esm/{index-5b2d87c3.js → index-be3016c1.js} +13 -13
  186. package/build/esm/{index-7dfd3707.js → index-be4f004c.js} +16 -16
  187. package/build/esm/{index-2d4afd18.js → index-c3fd4f33.js} +13 -13
  188. package/build/esm/{index-c167c204.js → index-cab2a871.js} +2 -2
  189. package/build/esm/{index-cf3b66bf.js → index-cbfbc970.js} +10 -10
  190. package/build/esm/{index-8b789e0b.js → index-cccfe96e.js} +17 -17
  191. package/build/esm/{index-6ecbccef.js → index-d45871a3.js} +1 -1
  192. package/build/esm/{index-2d8c745d.js → index-dd79f31a.js} +1 -1
  193. package/build/esm/{index-9b470a3d.js → index-dff96f37.js} +16 -16
  194. package/build/esm/{index-4eb912b7.js → index-e3ea3d25.js} +22 -22
  195. package/build/esm/{index-c17eb826.js → index-edbca095.js} +2 -2
  196. package/build/esm/{index-7fe3b2e9.js → index-f25c8c90.js} +6 -6
  197. package/build/esm/{index-4ea9c741.js → index-f49d5819.js} +3 -3
  198. package/build/esm/{index-a7ef127e.js → index-fdec3777.js} +39 -2
  199. package/build/esm/{index-02e3a578.js → index-ff370bf1.js} +6 -6
  200. package/build/esm/{index-71a0ce1b.js → index-ffad68e5.js} +3 -3
  201. package/build/esm/index.js +119 -119
  202. package/build/esm/interfaces/constants/domainLocales.d.ts +2 -0
  203. package/build/esm/interfaces/constants/index.d.ts +1 -1
  204. package/build/esm/interfaces/types/Locale.d.ts +2 -1
  205. package/build/esm/interfaces/types/Subot.d.ts +2 -0
  206. package/build/esm/interfaces/types/index.d.ts +15 -1
  207. package/build/esm/{labelSorting-abc38cd3.js → labelSorting-e6cfeaf9.js} +4 -4
  208. package/build/esm/lead/components/close.d.ts +1 -1
  209. package/build/esm/lead.js +26 -25
  210. package/build/esm/{logoIcon-63898b50.js → logoIcon-387f0c6e.js} +3 -2
  211. package/build/esm/mantine.js +25 -25
  212. package/build/esm/misc.js +17 -17
  213. package/build/esm/miscGetDynamicHealthTool.js +4 -4
  214. package/build/esm/miscGetSocialList.js +8 -8
  215. package/build/esm/miscScreenSizeContext.js +1 -1
  216. package/build/esm/mobileBottomNavigation.js +5 -5
  217. package/build/esm/mobileBottomNavigationIcon.js +5 -5
  218. package/build/esm/molecules.js +75 -76
  219. package/build/esm/moleculesArticleCard.js +6 -6
  220. package/build/esm/moleculesArticleCardV2.js +16 -16
  221. package/build/esm/navigation.js +45 -45
  222. package/build/esm/navigationLogoutPopup.js +9 -9
  223. package/build/esm/navigationProfileButton.js +23 -23
  224. package/build/esm/onboardingV2.js +29 -29
  225. package/build/esm/organisms.js +49 -49
  226. package/build/esm/{post-aca2b953.js → post-698058bb.js} +2 -2
  227. package/build/esm/profileNavigation.js +19 -19
  228. package/build/esm/progressBar.js +1 -1
  229. package/build/esm/pwg.js +22 -22
  230. package/build/esm/ssoV2/api/featureFlag.d.ts +2 -1
  231. package/build/esm/ssoV2.js +51 -39
  232. package/build/esm/{store-55bc0306.js → store-e077dbf0.js} +9 -5
  233. package/build/esm/subot/components/dob/utils.d.ts +4 -2
  234. package/build/esm/subot/components/userInfoForm/utils.d.ts +2 -0
  235. package/build/esm/subot.js +446 -340
  236. package/build/esm/surveyOrPremiumBanner.js +32 -32
  237. package/build/esm/surveyQuestionCard.js +10 -10
  238. package/build/esm/{surveyThankyouCard-dea7be18.js → surveyThankyouCard-e3d0e10e.js} +5 -5
  239. package/build/esm/together.js +55 -55
  240. package/build/esm/togetherApiUtils.js +4 -4
  241. package/build/esm/togetherAtoms.js +30 -30
  242. package/build/esm/togetherComponentGlobalContext.js +4 -4
  243. package/build/esm/togetherMolecules.js +50 -50
  244. package/build/esm/togetherMoleculesCardAuthor.js +28 -28
  245. package/build/esm/togetherMoleculesPostImagePreview.js +11 -11
  246. package/build/esm/togetherMoleculesProfileDetail.js +38 -38
  247. package/build/esm/togetherOrganisms.js +49 -49
  248. package/build/esm/togetherRichTextEditor.js +17 -17
  249. package/build/esm/togetherShareBox.js +10 -10
  250. package/build/esm/{treePopoverMenu-958e524b.js → treePopoverMenu-1e0d7db1.js} +19 -19
  251. package/build/esm/{types-079b1d47.js → types-f1f5b658.js} +2 -2
  252. package/build/esm/types.js +2 -2
  253. package/build/esm/{useCategory-455d8510.js → useCategory-289556d6.js} +18 -5
  254. package/build/esm/{useHealthToolCache-1db108ec.js → useHealthToolCache-cd30911e.js} +1 -1
  255. package/build/esm/{useMantineLocale-1d78bb2f.js → useMantineLocale-a4edc099.js} +8 -6
  256. package/build/esm/{usePlacesAutocomplete-ba00126b.js → usePlacesAutocomplete-413ae27a.js} +1 -1
  257. package/build/esm/{useScreenSize-245884d6.js → useScreenSize-d72ccba0.js} +2 -2
  258. package/build/esm/useTogetherAuthRequiredAction.js +9 -9
  259. package/build/esm/{utils-69c2b171.js → utils-0d9e1d16.js} +4 -4
  260. package/build/esm/{utils-5b23c988.js → utils-25be72bf.js} +2 -2
  261. package/build/esm/{utils-951a523a.js → utils-3804023d.js} +2 -2
  262. package/build/esm/{utils-fb814a53.js → utils-8bacfdec.js} +3 -3
  263. package/build/esm/vaccination.js +21 -21
  264. package/build/footer.js +21 -21
  265. package/build/gAssets.js +2 -2
  266. package/build/{healthTools-8d4d21e8.js → healthTools-d9cd9a0a.js} +1 -1
  267. package/build/healthToolsCardWrapper.js +18 -18
  268. package/build/healthToolsForm.js +34 -34
  269. package/build/hooks.js +13 -13
  270. package/build/i18n/translationKeys.d.ts +1 -1
  271. package/build/i18n-values/en-PH.js +8 -0
  272. package/build/i18n-values/hi-IN.js +8 -0
  273. package/build/i18n-values/id-ID.js +11 -3
  274. package/build/i18n-values/km-KH.js +12 -4
  275. package/build/i18n-values/ms-MY.js +11 -3
  276. package/build/i18n-values/my-MM.js +12 -4
  277. package/build/i18n-values/th-TH.js +12 -4
  278. package/build/i18n-values/tl-PH.js +11 -3
  279. package/build/i18n-values/vi-VN.js +8 -0
  280. package/build/i18n-values/vi-VN_MB.js +9 -1
  281. package/build/i18n-values/zh-TW.js +12 -4
  282. package/build/i18n.js +2 -1
  283. package/build/i18nV2.js +1 -1
  284. package/build/{index-a8c2eeb9.js → index-047516bf.js} +13 -13
  285. package/build/{index-eafbbe5d.js → index-049b0c91.js} +6 -6
  286. package/build/{index-e9fb386a.js → index-05ddebba.js} +39 -2
  287. package/build/{index-80d944f3.js → index-10da6d8b.js} +43 -15
  288. package/build/{index-f68d8f40.js → index-1748e506.js} +1 -1
  289. package/build/{index-6cb86f78.js → index-195f6e5b.js} +11 -11
  290. package/build/{index-652b939b.js → index-1a106910.js} +21 -21
  291. package/build/{index-1ad6dabc.js → index-1a6c466a.js} +16 -16
  292. package/build/{index-e9f022f9.js → index-1b70a895.js} +10 -10
  293. package/build/{index-8e577b03.js → index-1c23777a.js} +6 -6
  294. package/build/{index-8f7ccbb3.js → index-1f7eb8a6.js} +1 -1
  295. package/build/{index-e502976f.js → index-2020f735.js} +17 -17
  296. package/build/{index-6881089f.js → index-24fead63.js} +1 -1
  297. package/build/{index-d4f98d06.js → index-2a1f1415.js} +16 -16
  298. package/build/{index-74e3f2df.js → index-2a5a3aa6.js} +2 -2
  299. package/build/{index-9eccde6f.js → index-2eae91af.js} +2 -2
  300. package/build/{index-95159081.js → index-32cfdd3a.js} +3 -3
  301. package/build/{index-61c62e0f.js → index-3357816d.js} +3 -3
  302. package/build/{index-cf5ab11f.js → index-35f0e932.js} +7 -7
  303. package/build/{index-ef154db0.js → index-3c33283d.js} +1 -1
  304. package/build/{index-1e9e3c74.js → index-3c6acda3.js} +15 -15
  305. package/build/{index-9f31bdf3.js → index-409bba66.js} +2 -2
  306. package/build/{index-5cd23f1e.js → index-42307958.js} +16 -16
  307. package/build/{index-f3a871c5.js → index-42946da1.js} +1 -1
  308. package/build/{index-06d8f4c6.js → index-43ae933f.js} +1 -1
  309. package/build/{index-167e1ca6.js → index-4597d53c.js} +9 -2
  310. package/build/{index-99d339ff.js → index-459e2e96.js} +17 -17
  311. package/build/{index-a7e501b8.js → index-47fa4748.js} +3 -3
  312. package/build/{index-045c0fb5.js → index-51549a76.js} +2 -2
  313. package/build/{index-cb5353f3.js → index-540fe94c.js} +32 -32
  314. package/build/{index-cd8cdac0.js → index-5992647e.js} +2 -2
  315. package/build/{index-54decaa7.js → index-5e05d913.js} +16 -16
  316. package/build/{index-cf24b488.js → index-5ed6e196.js} +17 -17
  317. package/build/{index-6528e7a9.js → index-65f555ca.js} +625 -25
  318. package/build/{index-6025ae75.js → index-66464a41.js} +6 -6
  319. package/build/{index-1e69287b.js → index-67cc0791.js} +2 -2
  320. package/build/{index-c6ed23e0.js → index-6805e1a3.js} +2 -2
  321. package/build/{index-369fc772.js → index-762b1d06.js} +6 -6
  322. package/build/{index-b9e15de3.js → index-76bec0b7.js} +2 -2
  323. package/build/{index-93c19a42.js → index-8c612276.js} +5 -5
  324. package/build/index-8cb70286.js +696 -0
  325. package/build/{index-82b1fba7.js → index-919e2b48.js} +25 -25
  326. package/build/{index-ae5aa3a2.js → index-95ce3c17.js} +18 -18
  327. package/build/{index-6e720c8f.js → index-97bd9308.js} +5 -4
  328. package/build/{index-80d7b6b7.js → index-9b582642.js} +13 -13
  329. package/build/{index-9e62bfa0.js → index-a8e0ea94.js} +3 -3
  330. package/build/{index-90b88af0.js → index-a95a0812.js} +3 -3
  331. package/build/{index-4896bce9.js → index-a9ee3fc1.js} +31 -31
  332. package/build/{index-3b8a44be.js → index-b68c3e2a.js} +2 -2
  333. package/build/{index-f0827e71.js → index-bffdf6e7.js} +7 -7
  334. package/build/{index-2a91877d.js → index-c09f77ca.js} +1 -1
  335. package/build/{index-684bf9d8.js → index-caf7ac75.js} +3 -3
  336. package/build/{index-eb61030b.js → index-cbc64d5f.js} +10 -10
  337. package/build/{index-e9c7436a.js → index-cea7df83.js} +1 -1
  338. package/build/{index-9115b007.js → index-d2b401c8.js} +2 -2
  339. package/build/{index-dad75e0a.js → index-d319dd9e.js} +2 -2
  340. package/build/{index-cde3684e.js → index-d74b757f.js} +5 -5
  341. package/build/{index-c0b7233b.js → index-da7f2fff.js} +22 -22
  342. package/build/{index-17b8cc3b.js → index-dde6cf10.js} +2 -2
  343. package/build/{index-24dfd213.js → index-df64e24f.js} +2 -2
  344. package/build/{index-bc1e7b8f.js → index-e5df581c.js} +32 -32
  345. package/build/{index-f987d8ac.js → index-eace968d.js} +18 -18
  346. package/build/{index-b2826d24.js → index-eb7ce304.js} +6 -6
  347. package/build/{index-81ce2d77.js → index-f997a2d6.js} +13 -13
  348. package/build/index.js +165 -164
  349. package/build/interfaces/constants/domainLocales.d.ts +2 -0
  350. package/build/interfaces/constants/index.d.ts +1 -1
  351. package/build/interfaces/types/Locale.d.ts +2 -1
  352. package/build/interfaces/types/Subot.d.ts +2 -0
  353. package/build/interfaces/types/index.d.ts +15 -1
  354. package/build/{labelSorting-cdab818b.js → labelSorting-76f9c19c.js} +4 -4
  355. package/build/lead/components/close.d.ts +1 -1
  356. package/build/lead.js +26 -25
  357. package/build/{logoIcon-0e2a19d8.js → logoIcon-6e7e979e.js} +3 -2
  358. package/build/mantine.js +22 -22
  359. package/build/misc.js +17 -17
  360. package/build/miscGetDynamicHealthTool.js +4 -4
  361. package/build/miscGetSocialList.js +8 -8
  362. package/build/miscScreenSizeContext.js +1 -1
  363. package/build/mobileBottomNavigation.js +5 -5
  364. package/build/mobileBottomNavigationIcon.js +5 -5
  365. package/build/molecules.js +91 -92
  366. package/build/moleculesArticleCard.js +6 -6
  367. package/build/moleculesArticleCardV2.js +16 -16
  368. package/build/navigation.js +45 -45
  369. package/build/navigationLogoutPopup.js +9 -9
  370. package/build/navigationProfileButton.js +23 -23
  371. package/build/onboardingV2.js +28 -28
  372. package/build/organisms.js +49 -49
  373. package/build/{post-cd894bd5.js → post-538e3147.js} +2 -2
  374. package/build/profileNavigation.js +19 -19
  375. package/build/progressBar.js +1 -1
  376. package/build/pwg.js +22 -22
  377. package/build/ssoV2/api/featureFlag.d.ts +2 -1
  378. package/build/ssoV2.js +49 -37
  379. package/build/{store-f713fb4f.js → store-4613ec9c.js} +8 -4
  380. package/build/subot/components/dob/utils.d.ts +4 -2
  381. package/build/subot/components/userInfoForm/utils.d.ts +2 -0
  382. package/build/subot.js +449 -344
  383. package/build/surveyOrPremiumBanner.js +32 -32
  384. package/build/surveyQuestionCard.js +10 -10
  385. package/build/{surveyThankyouCard-1d7606f1.js → surveyThankyouCard-55739523.js} +5 -5
  386. package/build/together.js +55 -55
  387. package/build/togetherApiUtils.js +4 -4
  388. package/build/togetherAtoms.js +30 -30
  389. package/build/togetherComponentGlobalContext.js +4 -4
  390. package/build/togetherMolecules.js +50 -50
  391. package/build/togetherMoleculesCardAuthor.js +28 -28
  392. package/build/togetherMoleculesPostImagePreview.js +11 -11
  393. package/build/togetherMoleculesProfileDetail.js +38 -38
  394. package/build/togetherOrganisms.js +49 -49
  395. package/build/togetherRichTextEditor.js +17 -17
  396. package/build/togetherShareBox.js +10 -10
  397. package/build/{treePopoverMenu-a243163c.js → treePopoverMenu-b46bd475.js} +19 -19
  398. package/build/{types-5a9f59b9.js → types-8aa1b980.js} +2 -2
  399. package/build/types.js +3 -2
  400. package/build/{useCategory-52540c0e.js → useCategory-c8559667.js} +18 -5
  401. package/build/{useHealthToolCache-0c768f4c.js → useHealthToolCache-e14fec74.js} +1 -1
  402. package/build/{useMantineLocale-b8a79d56.js → useMantineLocale-6426be99.js} +8 -6
  403. package/build/{usePlacesAutocomplete-23fb3031.js → usePlacesAutocomplete-2f527f55.js} +1 -1
  404. package/build/{useScreenSize-7806176e.js → useScreenSize-b501ca79.js} +2 -2
  405. package/build/useTogetherAuthRequiredAction.js +9 -9
  406. package/build/{utils-e6efa11e.js → utils-2a5c3c9d.js} +2 -2
  407. package/build/{utils-a2cd3f70.js → utils-5447fbbf.js} +2 -2
  408. package/build/{utils-4ee2cb9c.js → utils-b20e2a7f.js} +4 -4
  409. package/build/{utils-54be35b1.js → utils-b30189c1.js} +3 -3
  410. package/build/vaccination.js +21 -21
  411. package/package.json +1 -1
  412. package/build/components/molecules/dueDateCalculator/dueDateFormConception.d.ts +0 -12
  413. package/build/components/molecules/dueDateCalculator/dueDateFormIVF.d.ts +0 -12
  414. package/build/components/molecules/dueDateCalculator/dueDateFormLastPeriod.d.ts +0 -12
  415. package/build/components/molecules/dueDateCalculator/index.d.ts +0 -12
  416. package/build/components/molecules/dueDateCalculator/index.styled.d.ts +0 -33
  417. package/build/components/molecules/dueDateCalculator/utils.d.ts +0 -12
  418. package/build/esm/components/molecules/dueDateCalculator/dueDateFormConception.d.ts +0 -12
  419. package/build/esm/components/molecules/dueDateCalculator/dueDateFormIVF.d.ts +0 -12
  420. package/build/esm/components/molecules/dueDateCalculator/dueDateFormLastPeriod.d.ts +0 -12
  421. package/build/esm/components/molecules/dueDateCalculator/index.d.ts +0 -12
  422. package/build/esm/components/molecules/dueDateCalculator/index.styled.d.ts +0 -33
  423. package/build/esm/components/molecules/dueDateCalculator/utils.d.ts +0 -12
  424. package/build/esm/index-1fb033dd.js +0 -372
  425. package/build/esm/index-4f082205.js +0 -604
  426. package/build/index-20253671.js +0 -612
  427. package/build/index-6de5d67e.js +0 -379
  428. /package/build/{BMI_BOYS.percentile.monthly-7bd9cca9.js → BMI_BOYS.percentile.monthly-20c0e419.js} +0 -0
  429. /package/build/{BMI_BOYS.percentile.weekly-821e86aa.js → BMI_BOYS.percentile.weekly-2cefa50b.js} +0 -0
  430. /package/build/{BMI_BOYS.percentile.yearly-1ce7e28b.js → BMI_BOYS.percentile.yearly-efc6b248.js} +0 -0
  431. /package/build/{BMI_BOYS.zscore.monthly-d5358fcc.js → BMI_BOYS.zscore.monthly-b6a4d115.js} +0 -0
  432. /package/build/{BMI_BOYS.zscore.weekly-ff90aead.js → BMI_BOYS.zscore.weekly-7cd0ff4b.js} +0 -0
  433. /package/build/{BMI_BOYS.zscore.yearly-381df8e7.js → BMI_BOYS.zscore.yearly-102af208.js} +0 -0
  434. /package/build/{BMI_GIRLS.percentile.monthly-6b514dd8.js → BMI_GIRLS.percentile.monthly-b7f22c4d.js} +0 -0
  435. /package/build/{BMI_GIRLS.percentile.weekly-ba4fca15.js → BMI_GIRLS.percentile.weekly-418a7ec9.js} +0 -0
  436. /package/build/{BMI_GIRLS.percentile.yearly-a1eafb9e.js → BMI_GIRLS.percentile.yearly-f50dc5d3.js} +0 -0
  437. /package/build/{BMI_GIRLS.zscore.monthly-2d5679c7.js → BMI_GIRLS.zscore.monthly-d4ab0a86.js} +0 -0
  438. /package/build/{BMI_GIRLS.zscore.weekly-820e90ba.js → BMI_GIRLS.zscore.weekly-585971a4.js} +0 -0
  439. /package/build/{BMI_GIRLS.zscore.yearly-93be0423.js → BMI_GIRLS.zscore.yearly-bb362af5.js} +0 -0
  440. /package/build/{ChevronDown-8db65738.js → ChevronDown-2ad1c773.js} +0 -0
  441. /package/build/{Close-6f1a29c2.js → Close-5f56ea5c.js} +0 -0
  442. /package/build/{Google-b3858fb2.js → Google-0461c1cf.js} +0 -0
  443. /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-c6537dae.js → HEAD CIRCUM_BOYS.percentile.monthly-a24fa8de.js} +0 -0
  444. /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-a9409c76.js → HEAD CIRCUM_BOYS.percentile.weekly-45adba61.js} +0 -0
  445. /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-fcb76bd5.js → HEAD CIRCUM_BOYS.percentile.yearly-aca29074.js} +0 -0
  446. /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-088cfc6b.js → HEAD CIRCUM_BOYS.zscore.monthly-ed56bc06.js} +0 -0
  447. /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-e85d79b9.js → HEAD CIRCUM_BOYS.zscore.weekly-4ae52976.js} +0 -0
  448. /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-26396c15.js → HEAD CIRCUM_BOYS.zscore.yearly-6fe7f4f9.js} +0 -0
  449. /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-466e611e.js → HEAD CIRCUM_GIRLS.percentile.monthly-95eb83a8.js} +0 -0
  450. /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-3884eef6.js → HEAD CIRCUM_GIRLS.percentile.weekly-bc762f79.js} +0 -0
  451. /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-bdb12ec2.js → HEAD CIRCUM_GIRLS.percentile.yearly-d54b5fd9.js} +0 -0
  452. /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-1414b5bb.js → HEAD CIRCUM_GIRLS.zscore.monthly-fef51b91.js} +0 -0
  453. /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-ecca5443.js → HEAD CIRCUM_GIRLS.zscore.weekly-29554698.js} +0 -0
  454. /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-b83f13da.js → HEAD CIRCUM_GIRLS.zscore.yearly-2df38ac8.js} +0 -0
  455. /package/build/{HEIGHT_BOYS.percentile.monthly-757826fd.js → HEIGHT_BOYS.percentile.monthly-a3dcda6c.js} +0 -0
  456. /package/build/{HEIGHT_BOYS.percentile.weekly-7d469cc8.js → HEIGHT_BOYS.percentile.weekly-a074b577.js} +0 -0
  457. /package/build/{HEIGHT_BOYS.percentile.yearly-436a8da0.js → HEIGHT_BOYS.percentile.yearly-9f119380.js} +0 -0
  458. /package/build/{HEIGHT_BOYS.zscore.monthly-c606ab30.js → HEIGHT_BOYS.zscore.monthly-d3773147.js} +0 -0
  459. /package/build/{HEIGHT_BOYS.zscore.weekly-b567ca19.js → HEIGHT_BOYS.zscore.weekly-b0c2332e.js} +0 -0
  460. /package/build/{HEIGHT_BOYS.zscore.yearly-2b101282.js → HEIGHT_BOYS.zscore.yearly-96816070.js} +0 -0
  461. /package/build/{HEIGHT_GIRLS.percentile.monthly-3834b792.js → HEIGHT_GIRLS.percentile.monthly-953346a2.js} +0 -0
  462. /package/build/{HEIGHT_GIRLS.percentile.weekly-b0cb287b.js → HEIGHT_GIRLS.percentile.weekly-533cc841.js} +0 -0
  463. /package/build/{HEIGHT_GIRLS.percentile.yearly-78a93718.js → HEIGHT_GIRLS.percentile.yearly-9dc39ab0.js} +0 -0
  464. /package/build/{HEIGHT_GIRLS.zscore.monthly-5ba760ed.js → HEIGHT_GIRLS.zscore.monthly-0aad1479.js} +0 -0
  465. /package/build/{HEIGHT_GIRLS.zscore.weekly-a1bcb8c5.js → HEIGHT_GIRLS.zscore.weekly-770173d8.js} +0 -0
  466. /package/build/{HEIGHT_GIRLS.zscore.yearly-500a14ff.js → HEIGHT_GIRLS.zscore.yearly-6776d85d.js} +0 -0
  467. /package/build/{Visible-047d1970.js → Visible-7f3119bb.js} +0 -0
  468. /package/build/{WEIGHT_BOYS.percentile.monthly-df68990f.js → WEIGHT_BOYS.percentile.monthly-6ac6ea4d.js} +0 -0
  469. /package/build/{WEIGHT_BOYS.percentile.weekly-b022cb25.js → WEIGHT_BOYS.percentile.weekly-0a785dd0.js} +0 -0
  470. /package/build/{WEIGHT_BOYS.percentile.yearly-5d8ca4e9.js → WEIGHT_BOYS.percentile.yearly-e5a93b2e.js} +0 -0
  471. /package/build/{WEIGHT_BOYS.zscore.monthly-9a645a93.js → WEIGHT_BOYS.zscore.monthly-e7700f35.js} +0 -0
  472. /package/build/{WEIGHT_BOYS.zscore.weekly-509ec466.js → WEIGHT_BOYS.zscore.weekly-0fab9ea1.js} +0 -0
  473. /package/build/{WEIGHT_BOYS.zscore.yearly-a0c4faae.js → WEIGHT_BOYS.zscore.yearly-a7843c70.js} +0 -0
  474. /package/build/{WEIGHT_GIRLS.percentile.monthly-33cb1313.js → WEIGHT_GIRLS.percentile.monthly-1094b048.js} +0 -0
  475. /package/build/{WEIGHT_GIRLS.percentile.weekly-ac0690b5.js → WEIGHT_GIRLS.percentile.weekly-5691d004.js} +0 -0
  476. /package/build/{WEIGHT_GIRLS.percentile.yearly-0b68de4d.js → WEIGHT_GIRLS.percentile.yearly-0ed8eda2.js} +0 -0
  477. /package/build/{WEIGHT_GIRLS.zscore.monthly-51cd36f2.js → WEIGHT_GIRLS.zscore.monthly-83c0ff31.js} +0 -0
  478. /package/build/{WEIGHT_GIRLS.zscore.weekly-7e18c745.js → WEIGHT_GIRLS.zscore.weekly-ac310a51.js} +0 -0
  479. /package/build/{WEIGHT_GIRLS.zscore.yearly-e14b0b34.js → WEIGHT_GIRLS.zscore.yearly-cd9b5694.js} +0 -0
  480. /package/build/{animation-fcea7611.js → animation-b4ac0c82.js} +0 -0
  481. /package/build/{constants-346f1e34.js → constants-414d9053.js} +0 -0
  482. /package/build/{constants-a79017ab.js → constants-6846ba29.js} +0 -0
  483. /package/build/{dataTransform-64ef46ac.js → dataTransform-32a14da0.js} +0 -0
  484. /package/build/{doctor-9bed311e.js → doctor-96b9e472.js} +0 -0
  485. /package/build/esm/{BMI_BOYS.percentile.monthly-ffa66b36.js → BMI_BOYS.percentile.monthly-6c6658c1.js} +0 -0
  486. /package/build/esm/{BMI_BOYS.percentile.weekly-ac9a5856.js → BMI_BOYS.percentile.weekly-dd35f97a.js} +0 -0
  487. /package/build/esm/{BMI_BOYS.percentile.yearly-902f0b93.js → BMI_BOYS.percentile.yearly-f0302b07.js} +0 -0
  488. /package/build/esm/{BMI_BOYS.zscore.monthly-d5849e19.js → BMI_BOYS.zscore.monthly-185bfbe2.js} +0 -0
  489. /package/build/esm/{BMI_BOYS.zscore.weekly-6178c788.js → BMI_BOYS.zscore.weekly-44a40909.js} +0 -0
  490. /package/build/esm/{BMI_BOYS.zscore.yearly-2ff5db4d.js → BMI_BOYS.zscore.yearly-a3d14504.js} +0 -0
  491. /package/build/esm/{BMI_GIRLS.percentile.monthly-7f857304.js → BMI_GIRLS.percentile.monthly-51802e4d.js} +0 -0
  492. /package/build/esm/{BMI_GIRLS.percentile.weekly-9b81d7a8.js → BMI_GIRLS.percentile.weekly-b5f0f420.js} +0 -0
  493. /package/build/esm/{BMI_GIRLS.percentile.yearly-854701a4.js → BMI_GIRLS.percentile.yearly-e2c8f54d.js} +0 -0
  494. /package/build/esm/{BMI_GIRLS.zscore.monthly-9ffe688d.js → BMI_GIRLS.zscore.monthly-1eb5e176.js} +0 -0
  495. /package/build/esm/{BMI_GIRLS.zscore.weekly-58e51b14.js → BMI_GIRLS.zscore.weekly-cdbc6794.js} +0 -0
  496. /package/build/esm/{BMI_GIRLS.zscore.yearly-98018354.js → BMI_GIRLS.zscore.yearly-1d3d9cce.js} +0 -0
  497. /package/build/esm/{ChevronDown-1e80d818.js → ChevronDown-18ccee3b.js} +0 -0
  498. /package/build/esm/{Close-218e750a.js → Close-fe0f87d3.js} +0 -0
  499. /package/build/esm/{Google-370a6f1a.js → Google-3234b34b.js} +0 -0
  500. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-9120321c.js → HEAD CIRCUM_BOYS.percentile.monthly-c40f13c4.js} +0 -0
  501. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-d4a8532e.js → HEAD CIRCUM_BOYS.percentile.weekly-4f711de9.js} +0 -0
  502. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-a9210cf2.js → HEAD CIRCUM_BOYS.percentile.yearly-8bdb1e9c.js} +0 -0
  503. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-4c111e5c.js → HEAD CIRCUM_BOYS.zscore.monthly-6d9eb28b.js} +0 -0
  504. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-651972ff.js → HEAD CIRCUM_BOYS.zscore.weekly-f1a33d33.js} +0 -0
  505. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-fec03c75.js → HEAD CIRCUM_BOYS.zscore.yearly-67451b1c.js} +0 -0
  506. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-3dc39954.js → HEAD CIRCUM_GIRLS.percentile.monthly-23679c6b.js} +0 -0
  507. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-49da4f7f.js → HEAD CIRCUM_GIRLS.percentile.weekly-a17be4e2.js} +0 -0
  508. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-91d18834.js → HEAD CIRCUM_GIRLS.percentile.yearly-48b8a25f.js} +0 -0
  509. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-db82e848.js → HEAD CIRCUM_GIRLS.zscore.monthly-41e36be2.js} +0 -0
  510. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-0fb52b88.js → HEAD CIRCUM_GIRLS.zscore.weekly-21300a8b.js} +0 -0
  511. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-a2db290d.js → HEAD CIRCUM_GIRLS.zscore.yearly-6fd9d24e.js} +0 -0
  512. /package/build/esm/{HEIGHT_BOYS.percentile.monthly-6e710248.js → HEIGHT_BOYS.percentile.monthly-78259f22.js} +0 -0
  513. /package/build/esm/{HEIGHT_BOYS.percentile.weekly-3fb3fe32.js → HEIGHT_BOYS.percentile.weekly-df83fc33.js} +0 -0
  514. /package/build/esm/{HEIGHT_BOYS.percentile.yearly-9a5f599a.js → HEIGHT_BOYS.percentile.yearly-7af3224f.js} +0 -0
  515. /package/build/esm/{HEIGHT_BOYS.zscore.monthly-b46ef65d.js → HEIGHT_BOYS.zscore.monthly-cacdfbfa.js} +0 -0
  516. /package/build/esm/{HEIGHT_BOYS.zscore.weekly-952421e8.js → HEIGHT_BOYS.zscore.weekly-b0785817.js} +0 -0
  517. /package/build/esm/{HEIGHT_BOYS.zscore.yearly-a01537be.js → HEIGHT_BOYS.zscore.yearly-66c400f8.js} +0 -0
  518. /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-f8d50e2a.js → HEIGHT_GIRLS.percentile.monthly-4b68dbac.js} +0 -0
  519. /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-b9120261.js → HEIGHT_GIRLS.percentile.weekly-c723a2ea.js} +0 -0
  520. /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-87951788.js → HEIGHT_GIRLS.percentile.yearly-f2035930.js} +0 -0
  521. /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-b92ea262.js → HEIGHT_GIRLS.zscore.monthly-22e72425.js} +0 -0
  522. /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-30900806.js → HEIGHT_GIRLS.zscore.weekly-faceb5d1.js} +0 -0
  523. /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-a1b819bb.js → HEIGHT_GIRLS.zscore.yearly-ceebcf11.js} +0 -0
  524. /package/build/esm/{Visible-4de68fea.js → Visible-6100a0cc.js} +0 -0
  525. /package/build/esm/{WEIGHT_BOYS.percentile.monthly-bedc7af5.js → WEIGHT_BOYS.percentile.monthly-02261712.js} +0 -0
  526. /package/build/esm/{WEIGHT_BOYS.percentile.weekly-79bed6e4.js → WEIGHT_BOYS.percentile.weekly-e5503234.js} +0 -0
  527. /package/build/esm/{WEIGHT_BOYS.percentile.yearly-df4f20d6.js → WEIGHT_BOYS.percentile.yearly-e91dbfc3.js} +0 -0
  528. /package/build/esm/{WEIGHT_BOYS.zscore.monthly-9659fdeb.js → WEIGHT_BOYS.zscore.monthly-51b6fc30.js} +0 -0
  529. /package/build/esm/{WEIGHT_BOYS.zscore.weekly-ea4c0332.js → WEIGHT_BOYS.zscore.weekly-759480a8.js} +0 -0
  530. /package/build/esm/{WEIGHT_BOYS.zscore.yearly-02ea0da7.js → WEIGHT_BOYS.zscore.yearly-f79a9ccb.js} +0 -0
  531. /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-d39d355c.js → WEIGHT_GIRLS.percentile.monthly-32cd81d4.js} +0 -0
  532. /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-a0c92336.js → WEIGHT_GIRLS.percentile.weekly-e79a791e.js} +0 -0
  533. /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-ec031e52.js → WEIGHT_GIRLS.percentile.yearly-205b4e23.js} +0 -0
  534. /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-fc78e900.js → WEIGHT_GIRLS.zscore.monthly-8529c0e6.js} +0 -0
  535. /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-bf56ff58.js → WEIGHT_GIRLS.zscore.weekly-a5016260.js} +0 -0
  536. /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-1c519e0d.js → WEIGHT_GIRLS.zscore.yearly-816fada9.js} +0 -0
  537. /package/build/esm/{animation-4e80d44f.js → animation-55f49957.js} +0 -0
  538. /package/build/esm/{constants-9df11f36.js → constants-219a6453.js} +0 -0
  539. /package/build/esm/{constants-fc431ad1.js → constants-4109be9f.js} +0 -0
  540. /package/build/esm/{dataTransform-d489f6a8.js → dataTransform-067743e8.js} +0 -0
  541. /package/build/esm/{doctor-3d4909a0.js → doctor-2db81095.js} +0 -0
  542. /package/build/esm/{index-d50723f9.js → index-25f78be2.js} +0 -0
  543. /package/build/esm/{index-0a460405.js → index-279a16e7.js} +0 -0
  544. /package/build/esm/{index-9f9fa32d.js → index-46243bb4.js} +0 -0
  545. /package/build/esm/{index-4fadd89c.js → index-48993ecb.js} +0 -0
  546. /package/build/esm/{index-0167ffe4.js → index-6698aa36.js} +0 -0
  547. /package/build/esm/{index-fa4aed4f.js → index-9103b9eb.js} +0 -0
  548. /package/build/esm/{index-1ae63c79.js → index-9c57914e.js} +0 -0
  549. /package/build/esm/{index-fbf3c6e1.js → index-da2d88b9.js} +0 -0
  550. /package/build/esm/{index.styles-756b61f3.js → index.styles-76c9a592.js} +0 -0
  551. /package/build/esm/{localizeNumberFormat-2d28ab00.js → localizeNumberFormat-401d2b4d.js} +0 -0
  552. /package/build/esm/{normalizeLink-6b1a2f2a.js → normalizeLink-40e255bd.js} +0 -0
  553. /package/build/esm/{number-49291c9b.js → number-f68ef63b.js} +0 -0
  554. /package/build/esm/{other-9f3c0383.js → other-9be7cf1c.js} +0 -0
  555. /package/build/esm/{paths-eefeda8b.js → paths-b97cde38.js} +0 -0
  556. /package/build/esm/{translationsContext-feb0f31b.js → translationsContext-1cfdc69b.js} +0 -0
  557. /package/build/esm/{tslib.es6-2571f98c.js → tslib.es6-ae0c9cc7.js} +0 -0
  558. /package/build/esm/{types-043c25d4.js → types-7f63c1b0.js} +0 -0
  559. /package/build/esm/{useIsInit-86319274.js → useIsInit-5c1fb8fc.js} +0 -0
  560. /package/build/esm/{useOutsideClick-9225f4e5.js → useOutsideClick-8e333ffd.js} +0 -0
  561. /package/build/esm/{useScrollbarSize-f614e3bf.js → useScrollbarSize-2fb11e2b.js} +0 -0
  562. /package/build/esm/{useUniqueId-31d70d4b.js → useUniqueId-44fdf47f.js} +0 -0
  563. /package/build/esm/{utils-213d1bf3.js → utils-a220d748.js} +0 -0
  564. /package/build/{index-2f650ddf.js → index-189e2348.js} +0 -0
  565. /package/build/{index-52b55bf6.js → index-317dae80.js} +0 -0
  566. /package/build/{index-76bc8ed0.js → index-6d1715f5.js} +0 -0
  567. /package/build/{index-d95a2116.js → index-74e750b0.js} +0 -0
  568. /package/build/{index-17063ec3.js → index-93b1571a.js} +0 -0
  569. /package/build/{index-f8312234.js → index-93bedae1.js} +0 -0
  570. /package/build/{index-feab9a46.js → index-9e0eb6a9.js} +0 -0
  571. /package/build/{index-af3a7e2b.js → index-ab81ccf1.js} +0 -0
  572. /package/build/{index.styles-ff03980e.js → index.styles-0207515c.js} +0 -0
  573. /package/build/{localizeNumberFormat-b36cb8e4.js → localizeNumberFormat-8cb05113.js} +0 -0
  574. /package/build/{normalizeLink-3c8a02ba.js → normalizeLink-888a76f2.js} +0 -0
  575. /package/build/{number-f0767903.js → number-550e9ed3.js} +0 -0
  576. /package/build/{other-6c620bcf.js → other-076deeb8.js} +0 -0
  577. /package/build/{paths-86f60a67.js → paths-9f64ad8e.js} +0 -0
  578. /package/build/{translationsContext-776c1d5f.js → translationsContext-a7d3b749.js} +0 -0
  579. /package/build/{tslib.es6-b6754243.js → tslib.es6-2e23e1b2.js} +0 -0
  580. /package/build/{types-7694bb3e.js → types-81c1016d.js} +0 -0
  581. /package/build/{useIsInit-4ff2343b.js → useIsInit-b473274f.js} +0 -0
  582. /package/build/{useOutsideClick-572163cd.js → useOutsideClick-784d642f.js} +0 -0
  583. /package/build/{useScrollbarSize-135fa94c.js → useScrollbarSize-5c78d702.js} +0 -0
  584. /package/build/{useUniqueId-490497d9.js → useUniqueId-2fd547e0.js} +0 -0
  585. /package/build/{utils-22ce9f9e.js → utils-7f6ff3c4.js} +0 -0
@@ -1,76 +1,74 @@
1
- import React__default, { createContext, useContext, useRef, useState, useEffect, useCallback, useMemo, forwardRef, memo, useImperativeHandle } from 'react';
2
- import { d as NodeType, E as ELEMENT_CONTROL_INPUT_TYPE, f as NodeActionType, c as NodePosition, e as NodeFinalTypes, g as NodeMultipleOptions, N as NodeIntentType, F as FULL_KEY_ADDRESS } from './index-93f05cbd.js';
3
- import { a as __awaiter, _ as __rest } from './tslib.es6-2571f98c.js';
4
- import { f as basePath, G as GA_TOKEN_COOKIE, j as DATE_FNS_DATE_FORMAT, A as API_DATE_FORMAT, g as SSO_URL } from './index-a7ef127e.js';
1
+ import React__default, { createContext, useContext, useRef, useState, useEffect, useCallback, useMemo, forwardRef, useImperativeHandle, memo } from 'react';
2
+ import { d as NodeType, E as ELEMENT_CONTROL_INPUT_TYPE, f as NodeActionType, c as NodePosition, e as NodeFinalTypes, g as NodeMultipleOptions, N as NodeIntentType, F as FULL_KEY_ADDRESS, C as COMMON_DATE_TRANSLATE_KEY } from './index-48c3a543.js';
3
+ import { a as __awaiter, _ as __rest } from './tslib.es6-ae0c9cc7.js';
4
+ import { f as basePath, G as GA_TOKEN_COOKIE, A as API_DATE_FORMAT, I as ISO_FORMAT, g as SSO_URL } from './index-fdec3777.js';
5
5
  import Cookies from 'js-cookie';
6
6
  import fd from 'fastdom';
7
7
  import fastdomPromised from 'fastdom/extensions/fastdom-promised';
8
- import { G as GlobalData, c as callApi, u as locale, T as TogetherComponentGlobalContext } from './utils-fb814a53.js';
8
+ import { G as GlobalData, c as callApi, u as locale, T as TogetherComponentGlobalContext } from './utils-8bacfdec.js';
9
9
  import formatString from 'string-format';
10
- import { a as getUserIdFromCookie, b as getSubotCookieId, c as getUserInfoFromCookie, d as getWindowId, o as overrideParamsByQuery, e as checkUntilFinished, g as getHelloSitesUrl, f as checkMobile, h as clickAndOpenInNewTab, i as formatUrlWithEncrypedGa, T as TIME_RESET_RESEND_OTP, j as isFakeEmail, s as ssoIntents, k as getHhgIdFromCookie } from './index-71a0ce1b.js';
11
- export { T as TIME_RESET_RESEND_OTP, f as checkMobile, e as checkUntilFinished, h as clickAndOpenInNewTab, i as formatUrlWithEncrypedGa, g as getHelloSitesUrl, k as getHhgIdFromCookie, b as getSubotCookieId, a as getUserIdFromCookie, c as getUserInfoFromCookie, d as getWindowId, j as isFakeEmail, o as overrideParamsByQuery, s as ssoIntents } from './index-71a0ce1b.js';
10
+ import { a as getUserIdFromCookie, b as getSubotCookieId, c as getUserInfoFromCookie, d as getWindowId, o as overrideParamsByQuery, e as checkUntilFinished, g as getHelloSitesUrl, f as checkMobile, h as clickAndOpenInNewTab, i as formatUrlWithEncrypedGa, T as TIME_RESET_RESEND_OTP, j as isFakeEmail, s as ssoIntents, k as getHhgIdFromCookie } from './index-ffad68e5.js';
11
+ export { T as TIME_RESET_RESEND_OTP, f as checkMobile, e as checkUntilFinished, h as clickAndOpenInNewTab, i as formatUrlWithEncrypedGa, g as getHelloSitesUrl, k as getHhgIdFromCookie, b as getSubotCookieId, a as getUserIdFromCookie, c as getUserInfoFromCookie, d as getWindowId, j as isFakeEmail, o as overrideParamsByQuery, s as ssoIntents } from './index-ffad68e5.js';
12
12
  import dayjs from 'dayjs';
13
- import { isProduction } from './constantsIsProduction.js';
14
13
  import { MAP_DOMAIN_BY_LOCALE } from './constantsDomainLocales.js';
15
14
  import cn from 'classnames';
16
- import { C as Container$w } from './index-1ae63c79.js';
17
- import { L as Loading } from './index-c167c204.js';
15
+ import { C as Container$w } from './index-9c57914e.js';
16
+ import { L as Loading } from './index-cab2a871.js';
18
17
  import { motion } from 'framer-motion';
19
18
  import styled from '@emotion/styled';
20
- import { M as MediaQueries } from './utils-213d1bf3.js';
21
- import { B as Button } from './index-3cb8cb4b.js';
19
+ import { M as MediaQueries } from './utils-a220d748.js';
20
+ import { B as Button } from './index-7e02a49f.js';
22
21
  import { Remarkable } from 'remarkable';
23
22
  import { ArrowRight } from '@hhgtech/icons/other';
24
23
  import { useInView } from 'react-intersection-observer';
25
24
  import { Box, Textarea } from '@mantine/core';
26
- import { C as CommonGAssets } from './index-fa4aed4f.js';
25
+ import { C as CommonGAssets } from './index-9103b9eb.js';
27
26
  import isSameOrBefore from 'dayjs/plugin/isSameOrBefore';
28
- import { d as LEAD_TOKEN_COOKIE } from './constants-fc431ad1.js';
27
+ import { d as LEAD_TOKEN_COOKIE } from './constants-4109be9f.js';
29
28
  import { v4 } from 'uuid';
30
- import { T as Text } from './index-c17eb826.js';
29
+ import { T as Text } from './index-edbca095.js';
31
30
  import { theme } from './miscTheme.js';
32
- import { S as Select } from './index-a0ef2f51.js';
31
+ import { isProduction } from './constantsIsProduction.js';
32
+ import { S as Select } from './index-45e0fcc8.js';
33
33
  import '@mantine/dates';
34
- import './useMantineLocale-1d78bb2f.js';
35
- import './index.styles-756b61f3.js';
36
- import './translationsContext-feb0f31b.js';
34
+ import './useMantineLocale-a4edc099.js';
35
+ import './index.styles-76c9a592.js';
36
+ import './translationsContext-1cfdc69b.js';
37
37
  import '@mantine/hooks';
38
- import './other-9f3c0383.js';
39
- import './index-4ea9c741.js';
38
+ import './other-9be7cf1c.js';
39
+ import './index-f49d5819.js';
40
40
  import isEmpty from 'lodash/isEmpty';
41
- import { Controller, useForm, useFormState } from 'react-hook-form';
41
+ import { Controller, useForm } from 'react-hook-form';
42
42
  import PhoneInputBase, { getCountryCallingCode, isPossiblePhoneNumber, parsePhoneNumber } from 'react-phone-number-input';
43
43
  import { LoadScript } from '@react-google-maps/api';
44
- import { u as usePlacesAutocomplete, G as GOOGLE_API_KEY, a as GOOGLE_API_LANGUAGE } from './usePlacesAutocomplete-ba00126b.js';
44
+ import { u as usePlacesAutocomplete, G as GOOGLE_API_KEY, a as GOOGLE_API_LANGUAGE } from './usePlacesAutocomplete-413ae27a.js';
45
45
  import { setDefaultClass } from './miscDefaultClassWrapper.js';
46
- import { L as LOCALE } from './Locale-23142efe.js';
47
- import get from 'lodash/get';
48
- import { D as DatePicker } from './index-4f082205.js';
49
- import { B as Button$1 } from './index-419ed52f.js';
50
- import { D as Dropdown } from './index-0167ffe4.js';
51
- import { u as useSSOV2Store, I as IS_SSOV2_ENABLED } from './store-55bc0306.js';
52
- import { g as getURLwithSSOTracking } from './utils-69c2b171.js';
46
+ import { L as LOCALE } from './Locale-37e2792b.js';
47
+ import { I as InputDate } from './InputDate-59904635.js';
48
+ import { B as Button$1 } from './index-7e1f46f2.js';
49
+ import { D as Dropdown } from './index-6698aa36.js';
50
+ import { u as useSSOV2Store, I as IS_SSOV2_ENABLED } from './store-e077dbf0.js';
51
+ import { g as getURLwithSSOTracking } from './utils-0d9e1d16.js';
53
52
  import 'date-fns/locale';
54
53
  import './constantsSite.js';
55
54
  import './constantsRiskScreener.js';
56
- import './index-fbf3c6e1.js';
55
+ import './index-da2d88b9.js';
57
56
  import './miscCookieHelper.js';
58
57
  import 'slugify';
59
58
  import './togetherApiPaths.js';
60
- import './index-4b4487ff.js';
61
- import './WhatsApp-1c55868a.js';
62
- import './Spinner-6ffe5c0f.js';
63
- import './index-11c1e9b1.js';
64
- import './useScreenSize-245884d6.js';
59
+ import './index-a9adebb2.js';
60
+ import './WhatsApp-1c47f4a0.js';
61
+ import './Spinner-a518c119.js';
62
+ import './index-03218be0.js';
63
+ import './useScreenSize-d72ccba0.js';
65
64
  import '@mantine/carousel';
66
- import './useUniqueId-31d70d4b.js';
65
+ import './useUniqueId-44fdf47f.js';
67
66
  import '@hhgtech/icons/core';
68
67
  import '@mantine/notifications';
69
- import 'date-fns';
70
- import 'react-day-picker/DayPickerInput';
68
+ import '@emotion/react';
71
69
  import 'zustand';
72
- import './normalizeLink-6b1a2f2a.js';
73
- import './healthTools-4cffe096.js';
70
+ import './normalizeLink-40e255bd.js';
71
+ import './healthTools-98d943f7.js';
74
72
 
75
73
  // extend fastdom
76
74
  const fastdom = fd.extend(fastdomPromised);
@@ -215,10 +213,6 @@ const subotInlineImpression = (data) => __awaiter(void 0, void 0, void 0, functi
215
213
  catch (error) { }
216
214
  });
217
215
 
218
- const isDurgoCampaignFn = (botId) => {
219
- const botIdNumber = Number(botId);
220
- return isProduction ? botIdNumber === 2629 : botIdNumber === 1092;
221
- };
222
216
  const calcAge = (value) => {
223
217
  const birthDate = dayjs(value);
224
218
  const today = dayjs();
@@ -232,13 +226,43 @@ const calcAge = (value) => {
232
226
  * Temporary hard the range of age from 1 -> 6 for Durgo Campaign at this time
233
227
  * Ticket: https://hhgdev.atlassian.net/browse/HTO-1327
234
228
  */
235
- const validateAge = (value, errMsg) => {
236
- const { birthDate, today, age } = calcAge(value);
237
- if (today.month() < birthDate.month() ||
238
- (today.month() === birthDate.month() && today.date() < birthDate.date())) {
239
- return age >= 1 && age <= 6 ? true : errMsg;
229
+ const validateAge = (value, errMsg, conditions) => {
230
+ const { birthDate, today } = calcAge(value);
231
+ if (!conditions || !conditions.length) {
232
+ return true;
233
+ }
234
+ const diff = today.diff(birthDate, 'M') / 12;
235
+ /**
236
+ * No body in future can validate
237
+ */
238
+ if (diff < 0 || (diff === 0 && today.date() < birthDate.date())) {
239
+ return errMsg;
240
+ }
241
+ /**
242
+ * from, to
243
+ * if from === null then compare 0 - to
244
+ * if to === null then compare from - infinity
245
+ */
246
+ let isValid = false;
247
+ if (Array.isArray(conditions)) {
248
+ for (const cond of conditions) {
249
+ const { from, to } = cond || {};
250
+ if (!from && !to) {
251
+ break;
252
+ }
253
+ if ((from <= diff && diff <= to) ||
254
+ (from <= diff && to === null) ||
255
+ (from === null && to <= diff)) {
256
+ isValid = true;
257
+ break;
258
+ }
259
+ }
240
260
  }
241
- return age >= 1 && age <= 6 ? true : errMsg;
261
+ if (typeof localStorage !== 'undefined' &&
262
+ localStorage.getItem('hhg_debug') === 'true') {
263
+ console.log('Log __DOB__ : ', { conditions, isValid, diff });
264
+ }
265
+ return isValid || errMsg;
242
266
  };
243
267
 
244
268
  const getDynamicScore = (node) => {
@@ -3567,6 +3591,239 @@ const useAddressMultipleLevelData = (countryCode) => {
3567
3591
  };
3568
3592
  };
3569
3593
 
3594
+ const CheckCircleGreen = (props) => {
3595
+ return (React__default.createElement("svg", Object.assign({ width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, props),
3596
+ React__default.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M1.333 8A6.67 6.67 0 0 1 8 1.333 6.67 6.67 0 0 1 14.667 8 6.67 6.67 0 0 1 8 14.667 6.67 6.67 0 0 1 1.333 8m2.467.467 2.393 2.393c.26.26.687.26.94 0l5.06-5.06a.664.664 0 1 0-.94-.94L6.667 9.447 4.74 7.527a.664.664 0 1 0-.94.94", fill: "#00B16A" })));
3597
+ };
3598
+
3599
+ const IconEdit = (props) => {
3600
+ return (React__default.createElement("svg", Object.assign({ width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, props),
3601
+ React__default.createElement("path", { d: "M19.1719 2C18.4481 2 17.7244 2.27562 17.1719 2.82812L16 4L20 8L21.1719 6.82812C22.2759 5.72412 22.2759 3.93313 21.1719 2.82812C20.6194 2.27562 19.8956 2 19.1719 2ZM14.5 5.5L3 17V21H7L18.5 9.5L14.5 5.5Z", fill: "#2685F1" })));
3602
+ };
3603
+
3604
+ const InfoError = (props) => {
3605
+ return (React__default.createElement("svg", Object.assign({ width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, props),
3606
+ React__default.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M8 1.333A6.67 6.67 0 0 0 1.333 8 6.67 6.67 0 0 0 8 14.667 6.67 6.67 0 0 0 14.667 8 6.67 6.67 0 0 0 8 1.333m0 7.334A.67.67 0 0 1 7.333 8V5.333c0-.366.3-.666.667-.666s.667.3.667.666V8c0 .367-.3.667-.667.667M7.333 10v1.333h1.334V10z", fill: "#F44D2C" })));
3607
+ };
3608
+
3609
+ const CountDown = ({ onFinish, onClick, isFinished, resendLabel, className }, ref) => {
3610
+ const [count, setCount] = useState(TIME_RESET_RESEND_OTP);
3611
+ const intervalId = useRef();
3612
+ const onFinishLatest = useRef();
3613
+ const { formatMessage: f } = useContext(TogetherComponentGlobalContext);
3614
+ onFinishLatest.current = onFinish;
3615
+ const resetCountDown = useCallback(() => {
3616
+ let currentCount = TIME_RESET_RESEND_OTP;
3617
+ setCount(currentCount);
3618
+ clearInterval(intervalId.current);
3619
+ intervalId.current = setInterval(() => {
3620
+ var _a;
3621
+ currentCount = currentCount - 1;
3622
+ setCount(currentCount);
3623
+ if (currentCount === 0) {
3624
+ (_a = onFinishLatest.current) === null || _a === void 0 ? void 0 : _a.call(onFinishLatest, true);
3625
+ clearInterval(intervalId.current);
3626
+ }
3627
+ }, 1000);
3628
+ }, []);
3629
+ const cancelCountDown = useCallback(() => {
3630
+ setCount(0);
3631
+ clearInterval(intervalId.current);
3632
+ }, []);
3633
+ useImperativeHandle(ref, () => ({
3634
+ reset: resetCountDown,
3635
+ cancel: cancelCountDown,
3636
+ isFinished: count === 0,
3637
+ }));
3638
+ useEffect(() => {
3639
+ resetCountDown();
3640
+ return () => {
3641
+ clearInterval(intervalId.current);
3642
+ };
3643
+ }, []);
3644
+ return (React__default.createElement("div", { className: className, onClick: onClick },
3645
+ resendLabel
3646
+ ? resendLabel
3647
+ : f({
3648
+ id: 'subot.resendOTP.button',
3649
+ defaultMessage: 'Resend',
3650
+ }),
3651
+ count > 0 && !isFinished && ` (${count}s)`));
3652
+ };
3653
+ var CountDown$1 = forwardRef(CountDown);
3654
+
3655
+ styled.div `
3656
+ margin: 0 auto;
3657
+ background: #f7f9fc;
3658
+ border-radius: ${theme.borderRadius};
3659
+ ${MediaQueries.mbDown} {
3660
+ padding: 16px;
3661
+ }
3662
+ ${MediaQueries.tdDown} {
3663
+ padding: 24px;
3664
+ }
3665
+ ${MediaQueries.mbUp} {
3666
+ padding: 32px;
3667
+ }
3668
+ .user-info-form {
3669
+ .input-row {
3670
+ ${MediaQueries.mbDown} {
3671
+ margin-bottom: 16px;
3672
+ }
3673
+ ${MediaQueries.tdDown} {
3674
+ margin-bottom: 18px;
3675
+ }
3676
+ ${MediaQueries.mbUp} {
3677
+ margin-bottom: 20px;
3678
+ }
3679
+ .address-dropdown > ul {
3680
+ z-index: 20000;
3681
+ max-height: 250px;
3682
+ overflow-y: auto;
3683
+ }
3684
+
3685
+ &.error {
3686
+ margin-bottom: 0;
3687
+ }
3688
+ }
3689
+ label {
3690
+ display: block;
3691
+ margin-bottom: 6px;
3692
+ color: ${theme.colors.gray600};
3693
+ font-size: 13px;
3694
+ font-weight: bold;
3695
+ }
3696
+ input[type='tel'],
3697
+ input[type='number'] {
3698
+ width: 100%;
3699
+ padding: 12px 16px;
3700
+ border: solid 1px ${theme.colors.gray200};
3701
+ background: #fff;
3702
+ border-radius: ${theme.borderRadius};
3703
+
3704
+ &[disabled] {
3705
+ background-color: ${theme.colors.gray100};
3706
+ }
3707
+ }
3708
+ input[type='number']::-webkit-inner-spin-button,
3709
+ input[type='number']::-webkit-outer-spin-button {
3710
+ -webkit-appearance: none;
3711
+ -moz-appearance: none;
3712
+ appearance: none;
3713
+ }
3714
+ button {
3715
+ width: 100%;
3716
+ }
3717
+ .error-message {
3718
+ display: block;
3719
+ padding-bottom: 20px;
3720
+ color: ${theme.colors.red700};
3721
+ font-weight: ${theme.sizes.fwRegular};
3722
+ }
3723
+ .submit-btn {
3724
+ padding: 12px 24px;
3725
+ background-color: ${theme.colors.primaryBase};
3726
+ border-radius: ${theme.borderRadius};
3727
+ color: #fff;
3728
+ cursor: pointer;
3729
+ font-size: 16px;
3730
+ font-weight: 700;
3731
+ line-height: 24px;
3732
+ transition: background-color 0.3s, border-color 0.3s;
3733
+ display: flex;
3734
+ justify-content: center;
3735
+ &:hover {
3736
+ background-color: ${theme.colors.primaryHover};
3737
+ }
3738
+ &[disabled] {
3739
+ background-color: ${theme.colors.gray200};
3740
+ color: #bfbfbf;
3741
+ cursor: not-allowed;
3742
+ }
3743
+
3744
+ .spinner {
3745
+ margin-right: 20px;
3746
+ }
3747
+ }
3748
+ .submit-btn-row {
3749
+ ${MediaQueries.mbUp} {
3750
+ margin-bottom: 16px;
3751
+ }
3752
+ ${MediaQueries.tdDown} {
3753
+ margin-bottom: 14px;
3754
+ }
3755
+ ${MediaQueries.mbDown} {
3756
+ margin-bottom: 12px;
3757
+ }
3758
+ .subot-checkbox {
3759
+ display: flex;
3760
+ align-items: flex-start;
3761
+ margin: 0;
3762
+ cursor: pointer;
3763
+ &__input {
3764
+ position: relative;
3765
+ display: block;
3766
+ overflow: hidden;
3767
+ width: 18px;
3768
+ height: 18px;
3769
+ box-sizing: border-box;
3770
+ padding: 0;
3771
+ margin-right: 10px;
3772
+ &:before {
3773
+ position: absolute;
3774
+ top: 0;
3775
+ right: 0;
3776
+ bottom: 0;
3777
+ left: 0;
3778
+ display: flex;
3779
+ background-color: ${theme.colors.primaryBase};
3780
+ background-image: url('data:image/svg+xml,<svg width="22" height="22" viewBox="0 0 22 22" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M11 21C16.5228 21 21 16.5228 21 11C21 5.47715 16.5228 1 11 1C5.47715 1 1 5.47715 1 11C1 16.5228 5.47715 21 11 21Z" fill="%232D87F3" stroke="%232D87F3" stroke-width="2"/><path d="M15.5714 8L9.67857 14L7 11.2727" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>');
3781
+ background-position: center;
3782
+ background-repeat: no-repeat;
3783
+ background-size: 120%;
3784
+ content: '';
3785
+ opacity: 0;
3786
+ transition: 0.3s all ease;
3787
+ }
3788
+ &:checked:before {
3789
+ opacity: 1;
3790
+ transition: 0.3s all ease;
3791
+ }
3792
+ }
3793
+ &__label {
3794
+ flex: 1;
3795
+ font-weight: 400;
3796
+ line-height: 1.4;
3797
+ }
3798
+ }
3799
+ }
3800
+ }
3801
+ `;
3802
+ const StyleWrapperPhoneInput = styled.div `
3803
+ position: relative;
3804
+
3805
+ .PhoneInputCountry {
3806
+ background-color: #f2f2f2;
3807
+
3808
+ .PhoneInputCountrySelectArrow {
3809
+ display: none !important;
3810
+ }
3811
+ }
3812
+
3813
+ .icon-edit-phone {
3814
+ width: 1em;
3815
+ height: 1em;
3816
+ position: absolute;
3817
+ right: 16px;
3818
+ top: 17px;
3819
+ cursor: pointer;
3820
+
3821
+ path {
3822
+ fill: ${theme.colors.gray600};
3823
+ }
3824
+ }
3825
+ `;
3826
+
3570
3827
  const Location = (props) => {
3571
3828
  return (React__default.createElement("svg", Object.assign({ width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, props),
3572
3829
  React__default.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M4.167 7.72A5.83 5.83 0 0 1 10 1.889a5.83 5.83 0 0 1 5.833 5.833c0 3.475-3.683 8.267-5.191 10.092-.334.4-.942.4-1.275 0-1.517-1.825-5.2-6.617-5.2-10.092m3.75 0a2.084 2.084 0 1 0 4.168 0 2.084 2.084 0 0 0-4.168 0", fill: "#ADB3BC" })));
@@ -4110,6 +4367,27 @@ const StyledUserInfoFormContainer = styled.div `
4110
4367
  text-decoration: none;
4111
4368
  }
4112
4369
  }
4370
+
4371
+ .subot_input_date {
4372
+ --input-height: 46px;
4373
+ --input-max-width: 100%;
4374
+ input[type='text'] {
4375
+ padding: 0 !important;
4376
+ background-color: transparent !important;
4377
+ background-image: none !important;
4378
+ border: none !important;
4379
+ line-height: 0.5;
4380
+ }
4381
+
4382
+ .input_date-input_container {
4383
+ background-color: #fff;
4384
+
4385
+ &:focus-within,
4386
+ &.input_date-input_shrink {
4387
+ --input-padding-y: 5px;
4388
+ }
4389
+ }
4390
+ }
4113
4391
  }
4114
4392
 
4115
4393
  &.si-form-revamp {
@@ -4252,240 +4530,37 @@ const getTransPleaseVerifiedOtp = () => {
4252
4530
  pleaseVerifiedOtp.set(LOCALE.Thailand, 'กรุณาตรวจสอบหมายเลขโทรศัพท์ของคุณ');
4253
4531
  pleaseVerifiedOtp.set(LOCALE.PhilippinesTagalog, 'Paki-verify ang iyong numero ng telepono');
4254
4532
  return pleaseVerifiedOtp;
4255
- };
4256
-
4257
- const CheckCircleGreen = (props) => {
4258
- return (React__default.createElement("svg", Object.assign({ width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, props),
4259
- React__default.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M1.333 8A6.67 6.67 0 0 1 8 1.333 6.67 6.67 0 0 1 14.667 8 6.67 6.67 0 0 1 8 14.667 6.67 6.67 0 0 1 1.333 8m2.467.467 2.393 2.393c.26.26.687.26.94 0l5.06-5.06a.664.664 0 1 0-.94-.94L6.667 9.447 4.74 7.527a.664.664 0 1 0-.94.94", fill: "#00B16A" })));
4260
- };
4261
-
4262
- const IconEdit = (props) => {
4263
- return (React__default.createElement("svg", Object.assign({ width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, props),
4264
- React__default.createElement("path", { d: "M19.1719 2C18.4481 2 17.7244 2.27562 17.1719 2.82812L16 4L20 8L21.1719 6.82812C22.2759 5.72412 22.2759 3.93313 21.1719 2.82812C20.6194 2.27562 19.8956 2 19.1719 2ZM14.5 5.5L3 17V21H7L18.5 9.5L14.5 5.5Z", fill: "#2685F1" })));
4265
- };
4266
-
4267
- const InfoError = (props) => {
4268
- return (React__default.createElement("svg", Object.assign({ width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, props),
4269
- React__default.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M8 1.333A6.67 6.67 0 0 0 1.333 8 6.67 6.67 0 0 0 8 14.667 6.67 6.67 0 0 0 14.667 8 6.67 6.67 0 0 0 8 1.333m0 7.334A.67.67 0 0 1 7.333 8V5.333c0-.366.3-.666.667-.666s.667.3.667.666V8c0 .367-.3.667-.667.667M7.333 10v1.333h1.334V10z", fill: "#F44D2C" })));
4270
- };
4271
-
4272
- const CountDown = ({ onFinish, onClick, isFinished, resendLabel, className }, ref) => {
4273
- const [count, setCount] = useState(TIME_RESET_RESEND_OTP);
4274
- const intervalId = useRef();
4275
- const onFinishLatest = useRef();
4276
- const { formatMessage: f } = useContext(TogetherComponentGlobalContext);
4277
- onFinishLatest.current = onFinish;
4278
- const resetCountDown = useCallback(() => {
4279
- let currentCount = TIME_RESET_RESEND_OTP;
4280
- setCount(currentCount);
4281
- clearInterval(intervalId.current);
4282
- intervalId.current = setInterval(() => {
4283
- var _a;
4284
- currentCount = currentCount - 1;
4285
- setCount(currentCount);
4286
- if (currentCount === 0) {
4287
- (_a = onFinishLatest.current) === null || _a === void 0 ? void 0 : _a.call(onFinishLatest, true);
4288
- clearInterval(intervalId.current);
4289
- }
4290
- }, 1000);
4291
- }, []);
4292
- const cancelCountDown = useCallback(() => {
4293
- setCount(0);
4294
- clearInterval(intervalId.current);
4295
- }, []);
4296
- useImperativeHandle(ref, () => ({
4297
- reset: resetCountDown,
4298
- cancel: cancelCountDown,
4299
- isFinished: count === 0,
4300
- }));
4301
- useEffect(() => {
4302
- resetCountDown();
4303
- return () => {
4304
- clearInterval(intervalId.current);
4305
- };
4306
- }, []);
4307
- return (React__default.createElement("div", { className: className, onClick: onClick },
4308
- resendLabel
4309
- ? resendLabel
4310
- : f({
4311
- id: 'subot.resendOTP.button',
4312
- defaultMessage: 'Resend',
4313
- }),
4314
- count > 0 && !isFinished && ` (${count}s)`));
4315
4533
  };
4316
- var CountDown$1 = forwardRef(CountDown);
4317
-
4318
- styled.div `
4319
- margin: 0 auto;
4320
- background: #f7f9fc;
4321
- border-radius: ${theme.borderRadius};
4322
- ${MediaQueries.mbDown} {
4323
- padding: 16px;
4324
- }
4325
- ${MediaQueries.tdDown} {
4326
- padding: 24px;
4327
- }
4328
- ${MediaQueries.mbUp} {
4329
- padding: 32px;
4330
- }
4331
- .user-info-form {
4332
- .input-row {
4333
- ${MediaQueries.mbDown} {
4334
- margin-bottom: 16px;
4335
- }
4336
- ${MediaQueries.tdDown} {
4337
- margin-bottom: 18px;
4338
- }
4339
- ${MediaQueries.mbUp} {
4340
- margin-bottom: 20px;
4341
- }
4342
- .address-dropdown > ul {
4343
- z-index: 20000;
4344
- max-height: 250px;
4345
- overflow-y: auto;
4346
- }
4347
-
4348
- &.error {
4349
- margin-bottom: 0;
4350
- }
4351
- }
4352
- label {
4353
- display: block;
4354
- margin-bottom: 6px;
4355
- color: ${theme.colors.gray600};
4356
- font-size: 13px;
4357
- font-weight: bold;
4358
- }
4359
- input[type='tel'],
4360
- input[type='number'] {
4361
- width: 100%;
4362
- padding: 12px 16px;
4363
- border: solid 1px ${theme.colors.gray200};
4364
- background: #fff;
4365
- border-radius: ${theme.borderRadius};
4366
-
4367
- &[disabled] {
4368
- background-color: ${theme.colors.gray100};
4369
- }
4370
- }
4371
- input[type='number']::-webkit-inner-spin-button,
4372
- input[type='number']::-webkit-outer-spin-button {
4373
- -webkit-appearance: none;
4374
- -moz-appearance: none;
4375
- appearance: none;
4376
- }
4377
- button {
4378
- width: 100%;
4379
- }
4380
- .error-message {
4381
- display: block;
4382
- padding-bottom: 20px;
4383
- color: ${theme.colors.red700};
4384
- font-weight: ${theme.sizes.fwRegular};
4385
- }
4386
- .submit-btn {
4387
- padding: 12px 24px;
4388
- background-color: ${theme.colors.primaryBase};
4389
- border-radius: ${theme.borderRadius};
4390
- color: #fff;
4391
- cursor: pointer;
4392
- font-size: 16px;
4393
- font-weight: 700;
4394
- line-height: 24px;
4395
- transition: background-color 0.3s, border-color 0.3s;
4396
- display: flex;
4397
- justify-content: center;
4398
- &:hover {
4399
- background-color: ${theme.colors.primaryHover};
4400
- }
4401
- &[disabled] {
4402
- background-color: ${theme.colors.gray200};
4403
- color: #bfbfbf;
4404
- cursor: not-allowed;
4405
- }
4406
-
4407
- .spinner {
4408
- margin-right: 20px;
4409
- }
4410
- }
4411
- .submit-btn-row {
4412
- ${MediaQueries.mbUp} {
4413
- margin-bottom: 16px;
4414
- }
4415
- ${MediaQueries.tdDown} {
4416
- margin-bottom: 14px;
4417
- }
4418
- ${MediaQueries.mbDown} {
4419
- margin-bottom: 12px;
4420
- }
4421
- .subot-checkbox {
4422
- display: flex;
4423
- align-items: flex-start;
4424
- margin: 0;
4425
- cursor: pointer;
4426
- &__input {
4427
- position: relative;
4428
- display: block;
4429
- overflow: hidden;
4430
- width: 18px;
4431
- height: 18px;
4432
- box-sizing: border-box;
4433
- padding: 0;
4434
- margin-right: 10px;
4435
- &:before {
4436
- position: absolute;
4437
- top: 0;
4438
- right: 0;
4439
- bottom: 0;
4440
- left: 0;
4441
- display: flex;
4442
- background-color: ${theme.colors.primaryBase};
4443
- background-image: url('data:image/svg+xml,<svg width="22" height="22" viewBox="0 0 22 22" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M11 21C16.5228 21 21 16.5228 21 11C21 5.47715 16.5228 1 11 1C5.47715 1 1 5.47715 1 11C1 16.5228 5.47715 21 11 21Z" fill="%232D87F3" stroke="%232D87F3" stroke-width="2"/><path d="M15.5714 8L9.67857 14L7 11.2727" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>');
4444
- background-position: center;
4445
- background-repeat: no-repeat;
4446
- background-size: 120%;
4447
- content: '';
4448
- opacity: 0;
4449
- transition: 0.3s all ease;
4450
- }
4451
- &:checked:before {
4452
- opacity: 1;
4453
- transition: 0.3s all ease;
4454
- }
4455
- }
4456
- &__label {
4457
- flex: 1;
4458
- font-weight: 400;
4459
- line-height: 1.4;
4460
- }
4461
- }
4462
- }
4463
- }
4464
- `;
4465
- const StyleWrapperPhoneInput = styled.div `
4466
- position: relative;
4467
-
4468
- .PhoneInputCountry {
4469
- background-color: #f2f2f2;
4470
-
4471
- .PhoneInputCountrySelectArrow {
4472
- display: none !important;
4473
- }
4474
- }
4475
-
4476
- .icon-edit-phone {
4477
- width: 1em;
4478
- height: 1em;
4479
- position: absolute;
4480
- right: 16px;
4481
- top: 17px;
4482
- cursor: pointer;
4483
-
4484
- path {
4485
- fill: ${theme.colors.gray600};
4486
- }
4487
- }
4488
- `;
4534
+ const validateDateField = (value, isSubmitting, f, cb) => {
4535
+ let errMsg = f({
4536
+ id: 'error.day.invalid',
4537
+ defaultMessage: 'This date is not valid, please update.',
4538
+ });
4539
+ if (!value) {
4540
+ errMsg = f({
4541
+ id: 'validation.error.requiredField',
4542
+ defaultMessage: 'This field is required',
4543
+ });
4544
+ return errMsg;
4545
+ }
4546
+ if (typeof value === 'string') {
4547
+ const valueArr = value.split('/');
4548
+ if (valueArr.length === 3) {
4549
+ return errMsg;
4550
+ }
4551
+ else {
4552
+ return isSubmitting ? errMsg : true;
4553
+ }
4554
+ }
4555
+ const dayInJs = dayjs(value);
4556
+ if (!dayInJs.isValid()) {
4557
+ return errMsg;
4558
+ }
4559
+ if (cb) {
4560
+ return cb(value);
4561
+ }
4562
+ return true;
4563
+ };
4489
4564
 
4490
4565
  var _a, _b, _c, _d, _e;
4491
4566
  const StyledPhoneCode = styled.div `
@@ -4612,44 +4687,46 @@ const PhoneInputWithCode = (props) => {
4612
4687
  return (React__default.createElement(StyledPhoneInputWithCode, Object.assign({}, props, { flagComponent: FlagComponent })));
4613
4688
  };
4614
4689
 
4615
- const DOB = ({ action, setValue, trigger, register, errors, botId, }) => {
4616
- const { id, key, label } = action !== null && action !== void 0 ? action : {};
4617
- const locale = GlobalData === null || GlobalData === void 0 ? void 0 : GlobalData.locale;
4690
+ const DOB = ({ action, trigger, control, locale: localeProps, labelTuples, isSubmitting, }) => {
4691
+ const { id, key, label, validated_message, validated_conditions } = action !== null && action !== void 0 ? action : {};
4692
+ const locale = localeProps || (GlobalData === null || GlobalData === void 0 ? void 0 : GlobalData.locale);
4618
4693
  const { formatMessage: f } = useContext(TogetherComponentGlobalContext);
4619
- /**
4620
- * Temporary hard for Durgo Campaign at this time
4621
- * Ticket: https://hhgdev.atlassian.net/browse/HTO-1327
4622
- * Production is: 2629
4623
- * Staging is: 1092
4624
- */
4625
- const isDurgoCampaign = isDurgoCampaignFn(botId);
4626
- const error = get(errors, key);
4627
- const dobErrMsg = get(error, 'message');
4628
- const handleOnChange = (_value) => {
4629
- const dateString = dayjs(_value).format(API_DATE_FORMAT);
4630
- setValue(key, dateString);
4631
- trigger(key);
4632
- };
4633
4694
  return (React__default.createElement("div", { className: "input-row", key: id },
4634
4695
  React__default.createElement("label", { htmlFor: key }, label),
4635
- React__default.createElement(StyleDatePickerInput, null,
4636
- React__default.createElement(DatePicker, { locale: locale || 'en-PH', displayDateFormat: DATE_FNS_DATE_FORMAT, onChange: handleOnChange }),
4637
- React__default.createElement("input", Object.assign({ id: id, type: "date", className: "input-date" }, register(key, {
4638
- required: true,
4696
+ React__default.createElement(Controller, { name: action.key, control: control, rules: {
4697
+ required: {
4698
+ value: true,
4699
+ message: f({
4700
+ id: 'validation.error.requiredField',
4701
+ defaultMessage: 'This field is required',
4702
+ }),
4703
+ },
4639
4704
  validate: {
4640
- ageRange: (value) => isDurgoCampaign
4641
- ? validateAge(value, f({
4705
+ ageRange: (value) => validateDateField(value, isSubmitting, f, (value) => validateAge(value, validated_message ||
4706
+ f({
4642
4707
  id: 'validation.error.requiredAgeGroup',
4643
4708
  defaultMessage: 'Sorry, your child is not in the required Age Group.',
4644
- }))
4645
- : true,
4709
+ }), (() => {
4710
+ try {
4711
+ return JSON.parse(validated_conditions);
4712
+ }
4713
+ catch (error) {
4714
+ return [];
4715
+ }
4716
+ })())),
4646
4717
  },
4647
- })))),
4648
- error && (React__default.createElement("p", { className: "error-message" }, dobErrMsg ||
4649
- f({
4650
- id: 'validation.error.requiredField',
4651
- defaultMessage: 'This field is required',
4652
- })))));
4718
+ }, render: ({ field, fieldState }) => {
4719
+ const { value, name, onChange } = field, restField = __rest(field, ["value", "name", "onChange"]);
4720
+ const { error } = fieldState;
4721
+ const isError = !!error;
4722
+ return (React__default.createElement("div", null,
4723
+ React__default.createElement(StyleDatePickerInput, null,
4724
+ React__default.createElement(InputDate, Object.assign({}, restField, { defaultValue: value, onChange: (val) => {
4725
+ onChange(val);
4726
+ trigger(name);
4727
+ }, labelTuples: labelTuples, locale: locale, error: isError, className: "subot_input subot_input_date" }))),
4728
+ isError && React__default.createElement("p", { className: "error-message" }, error === null || error === void 0 ? void 0 : error.message)));
4729
+ } })));
4653
4730
  };
4654
4731
 
4655
4732
  const UserInfoForm = ({ className, style, actions, countryCode, callBack, formSubmitMeta, isFormRevamp, botId, nodeId, trackingSubmitBtn, }) => {
@@ -4707,6 +4784,12 @@ const UserInfoForm = ({ className, style, actions, countryCode, callBack, formSu
4707
4784
  return;
4708
4785
  }
4709
4786
  data[d.key] = d.value;
4787
+ if ([
4788
+ ELEMENT_CONTROL_INPUT_TYPE[NodeActionType.USER_SUBMIT_DATE],
4789
+ ELEMENT_CONTROL_INPUT_TYPE[NodeActionType.USER_SUBMIT_DOB],
4790
+ ].includes(d.control)) {
4791
+ data[d.key] = dayjs(d.value, API_DATE_FORMAT).toDate();
4792
+ }
4710
4793
  });
4711
4794
  if (data['otpPhoneNumber']) {
4712
4795
  setVerifiedOTP(true);
@@ -4773,10 +4856,17 @@ const UserInfoForm = ({ className, style, actions, countryCode, callBack, formSu
4773
4856
  return NodeActionType.USER_SUBMIT_ADDRESS_COMMUNE === action.type;
4774
4857
  });
4775
4858
  }, [actions]);
4859
+ const { labelInputDate } = useMemo(() => {
4860
+ const { dateFormat } = (ISO_FORMAT === null || ISO_FORMAT === void 0 ? void 0 : ISO_FORMAT[locale]) || ISO_FORMAT['vi-VN'];
4861
+ return {
4862
+ dateFormat,
4863
+ labelInputDate: dateFormat
4864
+ .split('/')
4865
+ .map((key) => f(COMMON_DATE_TRANSLATE_KEY === null || COMMON_DATE_TRANSLATE_KEY === void 0 ? void 0 : COMMON_DATE_TRANSLATE_KEY[key])),
4866
+ };
4867
+ }, [locale, f]);
4776
4868
  const inputType = ELEMENT_CONTROL_INPUT_TYPE;
4777
- const { register, handleSubmit, watch, formState: { errors }, control, setValue, setError, clearErrors, getValues, trigger, } = useForm({ defaultValues: defaultFormValues });
4778
- const formState = useFormState({ control });
4779
- const isDurgoCampaign = isDurgoCampaignFn(botId);
4869
+ const { register, handleSubmit, watch, formState: { errors, isSubmitting }, control, setValue, setError, clearErrors, getValues, trigger, } = useForm({ defaultValues: defaultFormValues });
4780
4870
  const setSubmitData = (data) => {
4781
4871
  const submitMeta = [];
4782
4872
  for (const action of actions) {
@@ -4808,13 +4898,17 @@ const UserInfoForm = ({ className, style, actions, countryCode, callBack, formSu
4808
4898
  value: data[action.key].label || '',
4809
4899
  });
4810
4900
  }
4811
- else if (action.type === NodeActionType.USER_SUBMIT_DOB) {
4812
- const dobStr = data[action.key] || '';
4813
- submitMeta.push({
4814
- key: action.key,
4815
- control: inputType[action.type] || '',
4816
- value: dobStr,
4817
- });
4901
+ else if (action.type === NodeActionType.USER_SUBMIT_DOB ||
4902
+ action.type === NodeActionType.USER_SUBMIT_DATE) {
4903
+ const dobStr = (data[action.key] || '');
4904
+ const dayInJS = dayjs(dobStr);
4905
+ if (dayInJS.isValid()) {
4906
+ submitMeta.push({
4907
+ key: action.key,
4908
+ control: inputType[action.type] || '',
4909
+ value: dayInJS.format(API_DATE_FORMAT),
4910
+ });
4911
+ }
4818
4912
  }
4819
4913
  else if (isActionTypeOtp(action.type)) {
4820
4914
  submitMeta.push({
@@ -5147,17 +5241,31 @@ const UserInfoForm = ({ className, style, actions, countryCode, callBack, formSu
5147
5241
  case NodeActionType.USER_SUBMIT_DATE:
5148
5242
  return (React__default.createElement("div", { className: "input-row", key: action.id },
5149
5243
  React__default.createElement("label", { htmlFor: action.key }, action.label),
5150
- React__default.createElement(StyleDatePickerInput, null,
5151
- React__default.createElement(DatePicker, { locale: locale || 'en-PH', displayDateFormat: DATE_FNS_DATE_FORMAT, onChange: (_value) => {
5152
- const dateString = dayjs(_value).format(API_DATE_FORMAT);
5153
- setValue(action.key, dateString);
5154
- trigger(action.key);
5155
- } }),
5156
- React__default.createElement("input", Object.assign({ id: action.id, type: "date", className: "input-date" }, register(action.key, { required: true })))),
5157
- errors[action.key] && (React__default.createElement("p", { className: "error-message" }, f({
5158
- id: 'validation.error.requiredField',
5159
- defaultMessage: 'This field is required',
5160
- })))));
5244
+ React__default.createElement(Controller, { name: action.key, control: control, rules: {
5245
+ required: {
5246
+ value: true,
5247
+ message: f({
5248
+ id: 'validation.error.requiredField',
5249
+ defaultMessage: 'This field is required',
5250
+ }),
5251
+ },
5252
+ validate: {
5253
+ ageRange: (value) => {
5254
+ return validateDateField(value, isSubmitting, f);
5255
+ },
5256
+ },
5257
+ }, render: ({ field, fieldState }) => {
5258
+ const { value, name, onChange } = field, restField = __rest(field, ["value", "name", "onChange"]);
5259
+ const { error } = fieldState;
5260
+ const isError = !!error;
5261
+ return (React__default.createElement("div", null,
5262
+ React__default.createElement(StyleDatePickerInput, null,
5263
+ React__default.createElement(InputDate, Object.assign({}, restField, { defaultValue: value, onChange: (val) => {
5264
+ onChange(val);
5265
+ trigger(name);
5266
+ }, labelTuples: labelInputDate, locale: locale, error: isError, className: "subot_input subot_input_date" }))),
5267
+ isError && (React__default.createElement("p", { className: "error-message" }, error === null || error === void 0 ? void 0 : error.message))));
5268
+ } })));
5161
5269
  case NodeActionType.USER_SUBMIT_BMI:
5162
5270
  return (React__default.createElement("div", { key: action.id },
5163
5271
  React__default.createElement("div", { className: "input-row", key: `${action.id}-weight` },
@@ -5270,7 +5378,7 @@ const UserInfoForm = ({ className, style, actions, countryCode, callBack, formSu
5270
5378
  case NodeActionType.USER_SUBMIT_GOOGLE_API_ADDRESS:
5271
5379
  return (React__default.createElement(GoogleAddressField$1, { action: action, control: control, formError: errors[action.key], key: action.id, initValue: defaultFormValues === null || defaultFormValues === void 0 ? void 0 : defaultFormValues[action.key], onChange: setValue }));
5272
5380
  case NodeActionType.USER_SUBMIT_DOB:
5273
- return (React__default.createElement(DOB, { action: action, setValue: setValue, trigger: trigger, register: register, errors: errors, botId: botId }));
5381
+ return (React__default.createElement(DOB, { key: action.key, action: action, trigger: trigger, control: control, locale: locale, labelTuples: labelInputDate, isSubmitting: isSubmitting }));
5274
5382
  default:
5275
5383
  return '';
5276
5384
  }
@@ -5284,11 +5392,9 @@ const UserInfoForm = ({ className, style, actions, countryCode, callBack, formSu
5284
5392
  React__default.createElement("span", { className: "subot-checkbox__label" },
5285
5393
  React__default.createElement(Markdown, null, action.label)))));
5286
5394
  case NodeActionType.USER_SUBMIT_SEND:
5287
- // const disabledWhenNotVerifyed = hasOtpField ? !verifiedOTP : false
5288
5395
  const disabled = hasConfirm ? !confirm : false;
5289
- const disabledDurgoCampaign = !formState.isValid;
5290
5396
  return (React__default.createElement("div", { className: "submit-btn-row", key: action.id },
5291
- React__default.createElement("button", Object.assign({ id: action.id, className: "submit-btn", type: "submit", disabled: isDurgoCampaign ? disabledDurgoCampaign : disabled }, trackingSubmit, { "data-response-id": action.id }), action.label)));
5397
+ React__default.createElement("button", Object.assign({ id: action.id, className: "submit-btn", type: "submit", disabled: disabled }, trackingSubmit, { "data-response-id": action.id }), action.label)));
5292
5398
  case NodeActionType.USER_SUBMIT_TERMS:
5293
5399
  return (React__default.createElement("div", { className: "form-terms", key: action.id },
5294
5400
  React__default.createElement(Markdown, null, action.label)));