@hhgtech/hhg-components 1.29.45 → 1.29.47

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 (355) hide show
  1. package/build/{WhatsApp-b5951003.js → WhatsApp-19854133.js} +1 -1
  2. package/build/adapters.js +15 -15
  3. package/build/babyGrowth.js +80 -80
  4. package/build/cache.js +3 -3
  5. package/build/care.js +17 -17
  6. package/build/components/atoms/icons/ConceptionDate.d.ts +4 -0
  7. package/build/components/atoms/icons/IVF.d.ts +4 -0
  8. package/build/components/molecules/embeddedHeathToolCards/due-date/dueDate.d.ts +5 -2
  9. package/build/components/molecules/healthTools/components/borderBoxControl/index.styled.d.ts +1 -1
  10. package/build/components/molecules/healthTools/form/dueDateForm/conceptionForm/context.d.ts +7 -0
  11. package/build/components/molecules/healthTools/form/dueDateForm/conceptionForm/defaultLayout.d.ts +2 -0
  12. package/build/components/molecules/healthTools/form/dueDateForm/conceptionForm/index.d.ts +6 -0
  13. package/build/components/molecules/healthTools/form/dueDateForm/conceptionForm/inlineLayout.d.ts +2 -0
  14. package/build/components/molecules/healthTools/form/dueDateForm/context.d.ts +20 -0
  15. package/build/components/molecules/healthTools/form/dueDateForm/formSwitcher.d.ts +2 -0
  16. package/build/components/molecules/healthTools/form/dueDateForm/index.d.ts +22 -0
  17. package/build/components/molecules/healthTools/form/dueDateForm/index.styled.d.ts +33 -0
  18. package/build/components/molecules/healthTools/form/dueDateForm/ivfForm/context.d.ts +11 -0
  19. package/build/components/molecules/healthTools/form/dueDateForm/ivfForm/defaultLayout.d.ts +2 -0
  20. package/build/components/molecules/healthTools/form/dueDateForm/ivfForm/index.d.ts +7 -0
  21. package/build/components/molecules/healthTools/form/dueDateForm/ivfForm/inlineLayout.d.ts +2 -0
  22. package/build/components/molecules/healthTools/form/dueDateForm/lastPeriodForm/context.d.ts +7 -0
  23. package/build/components/molecules/healthTools/form/dueDateForm/lastPeriodForm/defaultLayout.d.ts +2 -0
  24. package/build/components/molecules/healthTools/form/dueDateForm/lastPeriodForm/index.d.ts +7 -0
  25. package/build/components/molecules/healthTools/form/dueDateForm/lastPeriodForm/inlineLayout.d.ts +2 -0
  26. package/build/components/molecules/healthTools/form/dueDateForm/utils.d.ts +12 -0
  27. package/build/components/molecules/healthTools/form/ovulationForm/context.d.ts +6 -1
  28. package/build/components/molecules/healthTools/formWrapper/chipGroup/index.d.ts +13 -0
  29. package/build/{esm/components/molecules/healthTools/form/ovulationForm/calculatorType → components/molecules/healthTools/formWrapper/chipGroup}/index.styles.d.ts +1 -0
  30. package/build/components/molecules/healthTools/formWrapper/index.d.ts +5 -1
  31. package/build/components/molecules/index.d.ts +1 -0
  32. package/build/components.js +59 -60
  33. package/build/{constants-97f85d3c.js → constants-1a38a85e.js} +2 -2
  34. package/build/{constants-ce8caeb2.js → constants-5894ff92.js} +2 -2
  35. package/build/constants.js +3 -3
  36. package/build/{core-0102fdae.js → core-d01ccc21.js} +2 -2
  37. package/build/{dataTransform-4b5e389f.js → dataTransform-4e54da0f.js} +1 -1
  38. package/build/ecom.js +26 -7
  39. package/build/esm/{WhatsApp-c5ccc324.js → WhatsApp-7f156fb1.js} +1 -1
  40. package/build/esm/adapters.js +15 -15
  41. package/build/esm/babyGrowth.js +81 -81
  42. package/build/esm/cache.js +3 -3
  43. package/build/esm/care.js +17 -17
  44. package/build/esm/components/atoms/icons/ConceptionDate.d.ts +4 -0
  45. package/build/esm/components/atoms/icons/IVF.d.ts +4 -0
  46. package/build/esm/components/molecules/embeddedHeathToolCards/due-date/dueDate.d.ts +5 -2
  47. package/build/esm/components/molecules/healthTools/components/borderBoxControl/index.styled.d.ts +1 -1
  48. package/build/esm/components/molecules/healthTools/form/dueDateForm/conceptionForm/context.d.ts +7 -0
  49. package/build/esm/components/molecules/healthTools/form/dueDateForm/conceptionForm/defaultLayout.d.ts +2 -0
  50. package/build/esm/components/molecules/healthTools/form/dueDateForm/conceptionForm/index.d.ts +6 -0
  51. package/build/esm/components/molecules/healthTools/form/dueDateForm/conceptionForm/inlineLayout.d.ts +2 -0
  52. package/build/esm/components/molecules/healthTools/form/dueDateForm/context.d.ts +20 -0
  53. package/build/esm/components/molecules/healthTools/form/dueDateForm/formSwitcher.d.ts +2 -0
  54. package/build/esm/components/molecules/healthTools/form/dueDateForm/index.d.ts +22 -0
  55. package/build/esm/components/molecules/healthTools/form/dueDateForm/index.styled.d.ts +33 -0
  56. package/build/esm/components/molecules/healthTools/form/dueDateForm/ivfForm/context.d.ts +11 -0
  57. package/build/esm/components/molecules/healthTools/form/dueDateForm/ivfForm/defaultLayout.d.ts +2 -0
  58. package/build/esm/components/molecules/healthTools/form/dueDateForm/ivfForm/index.d.ts +7 -0
  59. package/build/esm/components/molecules/healthTools/form/dueDateForm/ivfForm/inlineLayout.d.ts +2 -0
  60. package/build/esm/components/molecules/healthTools/form/dueDateForm/lastPeriodForm/context.d.ts +7 -0
  61. package/build/esm/components/molecules/healthTools/form/dueDateForm/lastPeriodForm/defaultLayout.d.ts +2 -0
  62. package/build/esm/components/molecules/healthTools/form/dueDateForm/lastPeriodForm/index.d.ts +7 -0
  63. package/build/esm/components/molecules/healthTools/form/dueDateForm/lastPeriodForm/inlineLayout.d.ts +2 -0
  64. package/build/esm/components/molecules/healthTools/form/dueDateForm/utils.d.ts +12 -0
  65. package/build/esm/components/molecules/healthTools/form/ovulationForm/context.d.ts +6 -1
  66. package/build/esm/components/molecules/healthTools/formWrapper/chipGroup/index.d.ts +13 -0
  67. package/build/{components/molecules/healthTools/form/ovulationForm/calculatorType → esm/components/molecules/healthTools/formWrapper/chipGroup}/index.styles.d.ts +1 -0
  68. package/build/esm/components/molecules/healthTools/formWrapper/index.d.ts +5 -1
  69. package/build/esm/components/molecules/index.d.ts +1 -0
  70. package/build/esm/components.js +58 -60
  71. package/build/esm/{constants-26f03b1f.js → constants-10ec53cd.js} +2 -2
  72. package/build/esm/{constants-fe7395e5.js → constants-7925fc60.js} +2 -2
  73. package/build/esm/constants.js +3 -3
  74. package/build/esm/{core-78cadfa4.js → core-72332e0b.js} +2 -2
  75. package/build/esm/{dataTransform-0bcb6042.js → dataTransform-a340f814.js} +1 -1
  76. package/build/esm/ecom.js +26 -7
  77. package/build/esm/footer.js +18 -18
  78. package/build/esm/gAssets.js +4 -4
  79. package/build/esm/{getDynamicHealthTool-a55689bf.js → getDynamicHealthTool-f49dddb5.js} +4 -4
  80. package/build/esm/{getSocialList-918a05e4.js → getSocialList-bbb7d453.js} +4 -4
  81. package/build/esm/hooks.js +17 -17
  82. package/build/esm/i18n-values/id-ID.js +1 -1
  83. package/build/esm/i18n-values/km-KH.js +1 -1
  84. package/build/esm/i18n-values/ms-MY.js +1 -1
  85. package/build/esm/i18n-values/my-MM.js +1 -1
  86. package/build/esm/i18n-values/th-TH.js +1 -1
  87. package/build/esm/i18n-values/tl-PH.js +1 -1
  88. package/build/esm/i18n-values/vi-VN.js +1 -1
  89. package/build/esm/i18n-values/zh-TW.js +1 -1
  90. package/build/esm/i18n.js +2 -2
  91. package/build/esm/i18nV2.js +2 -2
  92. package/build/esm/{index-950a89f0.js → index-037c2ac8.js} +2 -2
  93. package/build/esm/{index-f19ef956.js → index-03b659cb.js} +9 -9
  94. package/build/esm/{index-3eade222.js → index-0e2a8786.js} +4 -4
  95. package/build/esm/{index-43885bfb.js → index-1480193e.js} +3 -3
  96. package/build/esm/{index-c82ef63d.js → index-17f5ae90.js} +2 -2
  97. package/build/esm/{index-de5fbde2.js → index-21d4b3bc.js} +5 -5
  98. package/build/esm/{index-5a9b98ee.js → index-27afd988.js} +2 -2
  99. package/build/esm/{index-c9f15b6f.js → index-3438d71f.js} +4 -4
  100. package/build/esm/{index-e9e548e7.js → index-5f5757df.js} +1 -1
  101. package/build/esm/{index-8393482c.js → index-7ca5cb5c.js} +2 -2
  102. package/build/esm/{index-f4d48e7c.js → index-7e9c438d.js} +10 -10
  103. package/build/esm/{index-de0b462c.js → index-8ba165f5.js} +2 -2
  104. package/build/esm/{index-8f75a052.js → index-98303e67.js} +12 -12
  105. package/build/esm/{index-f7b2cf2b.js → index-9b518553.js} +10 -10
  106. package/build/esm/{index-8ff9e988.js → index-a38c3246.js} +2 -2
  107. package/build/esm/{index-5b5db772.js → index-b743ed72.js} +405 -835
  108. package/build/esm/{index-01f5218f.js → index-b91db272.js} +32 -32
  109. package/build/esm/{index-bbaa196e.js → index-c13c79c4.js} +6 -6
  110. package/build/esm/{index-e5356e0c.js → index-c865872c.js} +228 -191
  111. package/build/esm/{index-49cc4e66.js → index-d32f900d.js} +2 -2
  112. package/build/esm/{index-10423264.js → index-e70b38d3.js} +11 -11
  113. package/build/esm/{index-72b59998.js → index-f097f352.js} +4 -4
  114. package/build/esm/{index-0730cb03.js → index-f50e5bd2.js} +2 -2
  115. package/build/esm/{index-1bbc81b2.js → index-fd0f82b3.js} +2 -2
  116. package/build/esm/index.js +65 -67
  117. package/build/esm/{index.styled-03c6007b.js → index.styled-34bd1ba5.js} +2 -2
  118. package/build/esm/{index.styles-950cf52f.js → index.styles-07f5152b.js} +6 -6
  119. package/build/esm/lead/components/close.d.ts +1 -1
  120. package/build/esm/lead.js +28 -28
  121. package/build/esm/mantine.js +51 -26
  122. package/build/esm/misc.js +19 -19
  123. package/build/esm/navigation.js +35 -35
  124. package/build/esm/onboardingV2.js +31 -31
  125. package/build/esm/pwg.js +19 -19
  126. package/build/esm/{routing-de0894b8.js → routing-8aa62c29.js} +2 -2
  127. package/build/esm/subot.js +22 -22
  128. package/build/esm/together.js +34 -34
  129. package/build/esm/{types-af32dd4c.js → types-51cfd8b5.js} +13 -13
  130. package/build/esm/{types-ebd078bc.js → types-8c585588.js} +30 -30
  131. package/build/esm/types.js +1 -1
  132. package/build/esm/{useCategory-e0237136.js → useCategory-dd56d29e.js} +5 -5
  133. package/build/esm/{useHealthToolCache-7e55185d.js → useHealthToolCache-22a0a34d.js} +2 -2
  134. package/build/esm/{useMantineLocale-39bfcb4d.js → useMantineLocale-30851aa7.js} +3 -3
  135. package/build/esm/{usePlacesAutocomplete-5a5d482c.js → usePlacesAutocomplete-370fb7a2.js} +1 -1
  136. package/build/esm/{useTranslations-bd5502b7.js → useTranslations-1f62d893.js} +1 -1
  137. package/build/esm/{utils-0966b189.js → utils-18601878.js} +6 -6
  138. package/build/esm/{utils-86ffeab3.js → utils-1cc022a3.js} +1 -1
  139. package/build/esm/{utils-f28f8d21.js → utils-a28435da.js} +4 -4
  140. package/build/esm/vaccination.js +26 -26
  141. package/build/footer.js +18 -18
  142. package/build/gAssets.js +4 -4
  143. package/build/{getDynamicHealthTool-0d6713bf.js → getDynamicHealthTool-50525545.js} +4 -4
  144. package/build/{getSocialList-e5aa2ff7.js → getSocialList-06c75e39.js} +4 -4
  145. package/build/hooks.js +17 -17
  146. package/build/i18n-values/id-ID.js +1 -1
  147. package/build/i18n-values/km-KH.js +1 -1
  148. package/build/i18n-values/ms-MY.js +1 -1
  149. package/build/i18n-values/my-MM.js +1 -1
  150. package/build/i18n-values/th-TH.js +1 -1
  151. package/build/i18n-values/tl-PH.js +1 -1
  152. package/build/i18n-values/vi-VN.js +1 -1
  153. package/build/i18n-values/zh-TW.js +1 -1
  154. package/build/i18n.js +1 -1
  155. package/build/i18nV2.js +1 -1
  156. package/build/{index-2dd59c7f.js → index-06e2eafe.js} +2 -2
  157. package/build/{index-2faf9fb0.js → index-0aebc516.js} +11 -11
  158. package/build/{index-7cdd7861.js → index-0efd67e5.js} +2 -2
  159. package/build/{index-aa71b901.js → index-1cee17b3.js} +32 -32
  160. package/build/{index-840d7784.js → index-22f18d19.js} +2 -2
  161. package/build/{index-56ebc3c0.js → index-23275cad.js} +2 -2
  162. package/build/{index-599b38dd.js → index-35aaf68c.js} +2 -2
  163. package/build/{index-6a930317.js → index-36f5081a.js} +4 -4
  164. package/build/{index-554d9614.js → index-396f45c3.js} +2 -2
  165. package/build/{index-9a9b0f4c.js → index-41b2190e.js} +6 -6
  166. package/build/{index-930490b6.js → index-457fc8d7.js} +3 -3
  167. package/build/{index-75f66b73.js → index-55506c3d.js} +4 -4
  168. package/build/{index-20b11d3c.js → index-5ea83c14.js} +398 -827
  169. package/build/{index-9e48430e.js → index-64ceef7f.js} +2 -2
  170. package/build/{index-f43223d7.js → index-730c2eac.js} +2 -2
  171. package/build/{index-e94d8fc3.js → index-7e26c99e.js} +214 -183
  172. package/build/{index-dd4e16ff.js → index-b7cc7988.js} +4 -4
  173. package/build/{index-c4e64941.js → index-d0b22b5b.js} +9 -9
  174. package/build/{index-c363f6b0.js → index-d5b2032c.js} +10 -10
  175. package/build/{index-5efe02fe.js → index-da314451.js} +2 -2
  176. package/build/{index-c0627e2c.js → index-df2ba349.js} +9 -9
  177. package/build/{index-c95ec192.js → index-df481b01.js} +1 -1
  178. package/build/{index-c3f73a4d.js → index-fbeb4584.js} +12 -12
  179. package/build/{index-f1afe37f.js → index-fc90cc73.js} +5 -5
  180. package/build/index.js +66 -67
  181. package/build/{index.styled-76b0da80.js → index.styled-bfcc99af.js} +2 -2
  182. package/build/{index.styles-3003e63e.js → index.styles-a998130c.js} +6 -6
  183. package/build/lead/components/close.d.ts +1 -1
  184. package/build/lead.js +28 -28
  185. package/build/mantine.js +46 -21
  186. package/build/misc.js +19 -19
  187. package/build/navigation.js +35 -35
  188. package/build/onboardingV2.js +30 -30
  189. package/build/pwg.js +19 -19
  190. package/build/{routing-2d227970.js → routing-784ae2aa.js} +2 -2
  191. package/build/subot.js +22 -22
  192. package/build/together.js +34 -34
  193. package/build/{types-da9c5d86.js → types-3ef57133.js} +13 -13
  194. package/build/{types-0f65b2a5.js → types-4448afcb.js} +30 -30
  195. package/build/types.js +1 -1
  196. package/build/{useCategory-a50da042.js → useCategory-2ca9df85.js} +5 -5
  197. package/build/{useHealthToolCache-4a695b1d.js → useHealthToolCache-0bdfeba5.js} +2 -2
  198. package/build/{useMantineLocale-71cf4d6c.js → useMantineLocale-3805843a.js} +3 -3
  199. package/build/{usePlacesAutocomplete-2add26e6.js → usePlacesAutocomplete-8b5c6dda.js} +1 -1
  200. package/build/{useTranslations-0d5204fb.js → useTranslations-20a299de.js} +1 -1
  201. package/build/{utils-5366ac41.js → utils-28798c69.js} +1 -1
  202. package/build/{utils-3aa45436.js → utils-cba8e430.js} +4 -4
  203. package/build/{utils-f0f0e055.js → utils-df3847c6.js} +5 -7
  204. package/build/vaccination.js +26 -26
  205. package/package.json +1 -1
  206. package/build/components/molecules/healthTools/form/ovulationForm/calculatorType/index.d.ts +0 -6
  207. package/build/esm/components/molecules/healthTools/form/ovulationForm/calculatorType/index.d.ts +0 -6
  208. package/build/esm/index-99141b34.js +0 -32
  209. package/build/esm/types-f5618480.js +0 -21
  210. package/build/index-bbe26f9e.js +0 -38
  211. package/build/types-9797b47f.js +0 -24
  212. /package/build/{BMI_BOYS.percentile.monthly-9c29a23f.js → BMI_BOYS.percentile.monthly-f1952f4f.js} +0 -0
  213. /package/build/{BMI_BOYS.percentile.weekly-96f661ae.js → BMI_BOYS.percentile.weekly-7585f215.js} +0 -0
  214. /package/build/{BMI_BOYS.percentile.yearly-3bdab2f0.js → BMI_BOYS.percentile.yearly-a82b15e2.js} +0 -0
  215. /package/build/{BMI_BOYS.zscore.monthly-576e7055.js → BMI_BOYS.zscore.monthly-934c4360.js} +0 -0
  216. /package/build/{BMI_BOYS.zscore.weekly-bacea677.js → BMI_BOYS.zscore.weekly-f005b675.js} +0 -0
  217. /package/build/{BMI_BOYS.zscore.yearly-2c3c59f4.js → BMI_BOYS.zscore.yearly-a48f2799.js} +0 -0
  218. /package/build/{BMI_GIRLS.percentile.monthly-794fd475.js → BMI_GIRLS.percentile.monthly-357321f5.js} +0 -0
  219. /package/build/{BMI_GIRLS.percentile.weekly-b2c08cba.js → BMI_GIRLS.percentile.weekly-1f56cec3.js} +0 -0
  220. /package/build/{BMI_GIRLS.percentile.yearly-2369520b.js → BMI_GIRLS.percentile.yearly-70466579.js} +0 -0
  221. /package/build/{BMI_GIRLS.zscore.monthly-b3053357.js → BMI_GIRLS.zscore.monthly-29dc0742.js} +0 -0
  222. /package/build/{BMI_GIRLS.zscore.weekly-9123455b.js → BMI_GIRLS.zscore.weekly-bb058d51.js} +0 -0
  223. /package/build/{BMI_GIRLS.zscore.yearly-2b6af718.js → BMI_GIRLS.zscore.yearly-9f77b570.js} +0 -0
  224. /package/build/{ChevronDown-ab3567be.js → ChevronDown-4544d524.js} +0 -0
  225. /package/build/{Close-1ac64b3b.js → Close-2681b30d.js} +0 -0
  226. /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-55995aba.js → HEAD CIRCUM_BOYS.percentile.monthly-70b6635e.js} +0 -0
  227. /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-167404f2.js → HEAD CIRCUM_BOYS.percentile.weekly-23f6693c.js} +0 -0
  228. /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-e2dc4904.js → HEAD CIRCUM_BOYS.percentile.yearly-7b08be6a.js} +0 -0
  229. /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-03d67857.js → HEAD CIRCUM_BOYS.zscore.monthly-f9892b42.js} +0 -0
  230. /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-0efc7ef7.js → HEAD CIRCUM_BOYS.zscore.weekly-f744858c.js} +0 -0
  231. /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-32379b73.js → HEAD CIRCUM_BOYS.zscore.yearly-4758d2b9.js} +0 -0
  232. /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-7b841b10.js → HEAD CIRCUM_GIRLS.percentile.monthly-d2ffa0d0.js} +0 -0
  233. /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-04a27573.js → HEAD CIRCUM_GIRLS.percentile.weekly-b0a1c72c.js} +0 -0
  234. /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-2f548873.js → HEAD CIRCUM_GIRLS.percentile.yearly-2becceb9.js} +0 -0
  235. /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-4aa8ecd1.js → HEAD CIRCUM_GIRLS.zscore.monthly-b63c5836.js} +0 -0
  236. /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-1d41c48e.js → HEAD CIRCUM_GIRLS.zscore.weekly-50579aa3.js} +0 -0
  237. /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-006fcbf4.js → HEAD CIRCUM_GIRLS.zscore.yearly-7c2cc270.js} +0 -0
  238. /package/build/{HEIGHT_BOYS.percentile.monthly-d59cc011.js → HEIGHT_BOYS.percentile.monthly-0bf06c97.js} +0 -0
  239. /package/build/{HEIGHT_BOYS.percentile.weekly-eb992e20.js → HEIGHT_BOYS.percentile.weekly-333357c6.js} +0 -0
  240. /package/build/{HEIGHT_BOYS.percentile.yearly-4a18ec0a.js → HEIGHT_BOYS.percentile.yearly-b9e94d85.js} +0 -0
  241. /package/build/{HEIGHT_BOYS.zscore.monthly-7e42c513.js → HEIGHT_BOYS.zscore.monthly-eea5aca4.js} +0 -0
  242. /package/build/{HEIGHT_BOYS.zscore.weekly-d9649c9d.js → HEIGHT_BOYS.zscore.weekly-24da9c7f.js} +0 -0
  243. /package/build/{HEIGHT_BOYS.zscore.yearly-c13343c2.js → HEIGHT_BOYS.zscore.yearly-0f850999.js} +0 -0
  244. /package/build/{HEIGHT_GIRLS.percentile.monthly-b0f01700.js → HEIGHT_GIRLS.percentile.monthly-fc49c1fc.js} +0 -0
  245. /package/build/{HEIGHT_GIRLS.percentile.weekly-d8a1128d.js → HEIGHT_GIRLS.percentile.weekly-a5939c44.js} +0 -0
  246. /package/build/{HEIGHT_GIRLS.percentile.yearly-d206f236.js → HEIGHT_GIRLS.percentile.yearly-b4520406.js} +0 -0
  247. /package/build/{HEIGHT_GIRLS.zscore.monthly-f1e0683f.js → HEIGHT_GIRLS.zscore.monthly-cb78e422.js} +0 -0
  248. /package/build/{HEIGHT_GIRLS.zscore.weekly-91c33876.js → HEIGHT_GIRLS.zscore.weekly-088648f2.js} +0 -0
  249. /package/build/{HEIGHT_GIRLS.zscore.yearly-9298c292.js → HEIGHT_GIRLS.zscore.yearly-1d46aa62.js} +0 -0
  250. /package/build/{Visible-b23b4e5e.js → Visible-1e1b60c3.js} +0 -0
  251. /package/build/{WEIGHT_BOYS.percentile.monthly-d7ed5bb7.js → WEIGHT_BOYS.percentile.monthly-880b5e9c.js} +0 -0
  252. /package/build/{WEIGHT_BOYS.percentile.weekly-0dc7da2d.js → WEIGHT_BOYS.percentile.weekly-567757cb.js} +0 -0
  253. /package/build/{WEIGHT_BOYS.percentile.yearly-2aa798d5.js → WEIGHT_BOYS.percentile.yearly-9ca9bb47.js} +0 -0
  254. /package/build/{WEIGHT_BOYS.zscore.monthly-d6984192.js → WEIGHT_BOYS.zscore.monthly-073555f5.js} +0 -0
  255. /package/build/{WEIGHT_BOYS.zscore.weekly-e0bb799a.js → WEIGHT_BOYS.zscore.weekly-c61bab94.js} +0 -0
  256. /package/build/{WEIGHT_BOYS.zscore.yearly-d91c8d5e.js → WEIGHT_BOYS.zscore.yearly-5cc86103.js} +0 -0
  257. /package/build/{WEIGHT_GIRLS.percentile.monthly-c7f7790e.js → WEIGHT_GIRLS.percentile.monthly-bf1ac363.js} +0 -0
  258. /package/build/{WEIGHT_GIRLS.percentile.weekly-e3af1820.js → WEIGHT_GIRLS.percentile.weekly-1274fb63.js} +0 -0
  259. /package/build/{WEIGHT_GIRLS.percentile.yearly-74add497.js → WEIGHT_GIRLS.percentile.yearly-c8c5ddee.js} +0 -0
  260. /package/build/{WEIGHT_GIRLS.zscore.monthly-8e41c166.js → WEIGHT_GIRLS.zscore.monthly-998b4de1.js} +0 -0
  261. /package/build/{WEIGHT_GIRLS.zscore.weekly-073e2cd7.js → WEIGHT_GIRLS.zscore.weekly-a6d7b782.js} +0 -0
  262. /package/build/{WEIGHT_GIRLS.zscore.yearly-78c9204e.js → WEIGHT_GIRLS.zscore.yearly-fede7ffc.js} +0 -0
  263. /package/build/{animation-91a940d2.js → animation-68136108.js} +0 -0
  264. /package/build/{cart-02be64fb.js → cart-868426c6.js} +0 -0
  265. /package/build/{cookieHelper-7c9b676f.js → cookieHelper-bfb2f296.js} +0 -0
  266. /package/build/{doctor-851e4987.js → doctor-c2f50115.js} +0 -0
  267. /package/build/esm/{BMI_BOYS.percentile.monthly-a8a076e4.js → BMI_BOYS.percentile.monthly-11aafe3a.js} +0 -0
  268. /package/build/esm/{BMI_BOYS.percentile.weekly-0a4f1706.js → BMI_BOYS.percentile.weekly-d76f580f.js} +0 -0
  269. /package/build/esm/{BMI_BOYS.percentile.yearly-f6bc63ed.js → BMI_BOYS.percentile.yearly-00ee7f07.js} +0 -0
  270. /package/build/esm/{BMI_BOYS.zscore.monthly-f96baf3f.js → BMI_BOYS.zscore.monthly-f3cdf15a.js} +0 -0
  271. /package/build/esm/{BMI_BOYS.zscore.weekly-cd7251e3.js → BMI_BOYS.zscore.weekly-60969576.js} +0 -0
  272. /package/build/esm/{BMI_BOYS.zscore.yearly-14af9b25.js → BMI_BOYS.zscore.yearly-a347dd92.js} +0 -0
  273. /package/build/esm/{BMI_GIRLS.percentile.monthly-4115b04e.js → BMI_GIRLS.percentile.monthly-1b2c8d1f.js} +0 -0
  274. /package/build/esm/{BMI_GIRLS.percentile.weekly-427d0c38.js → BMI_GIRLS.percentile.weekly-9923c84a.js} +0 -0
  275. /package/build/esm/{BMI_GIRLS.percentile.yearly-5e2fb4d2.js → BMI_GIRLS.percentile.yearly-7f0e7e4d.js} +0 -0
  276. /package/build/esm/{BMI_GIRLS.zscore.monthly-3d99b0c4.js → BMI_GIRLS.zscore.monthly-36b0188e.js} +0 -0
  277. /package/build/esm/{BMI_GIRLS.zscore.weekly-019b691f.js → BMI_GIRLS.zscore.weekly-83ffb70b.js} +0 -0
  278. /package/build/esm/{BMI_GIRLS.zscore.yearly-752c6960.js → BMI_GIRLS.zscore.yearly-2f2c6495.js} +0 -0
  279. /package/build/esm/{ChevronDown-826c3008.js → ChevronDown-15fa1b61.js} +0 -0
  280. /package/build/esm/{Close-6556a9d3.js → Close-24330c12.js} +0 -0
  281. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-58d890f5.js → HEAD CIRCUM_BOYS.percentile.monthly-b2dac69d.js} +0 -0
  282. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-24909132.js → HEAD CIRCUM_BOYS.percentile.weekly-d6a43115.js} +0 -0
  283. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-c04c72eb.js → HEAD CIRCUM_BOYS.percentile.yearly-a1513cd8.js} +0 -0
  284. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-4a3999ca.js → HEAD CIRCUM_BOYS.zscore.monthly-aac8874e.js} +0 -0
  285. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-05165bfa.js → HEAD CIRCUM_BOYS.zscore.weekly-6c91fb64.js} +0 -0
  286. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-885634b1.js → HEAD CIRCUM_BOYS.zscore.yearly-d032bc42.js} +0 -0
  287. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-fb465e77.js → HEAD CIRCUM_GIRLS.percentile.monthly-092aa25e.js} +0 -0
  288. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-8c2acdce.js → HEAD CIRCUM_GIRLS.percentile.weekly-83e8b89c.js} +0 -0
  289. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-cb968e5d.js → HEAD CIRCUM_GIRLS.percentile.yearly-2eb5510d.js} +0 -0
  290. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-2ef05e20.js → HEAD CIRCUM_GIRLS.zscore.monthly-51e2b487.js} +0 -0
  291. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-c2993a6c.js → HEAD CIRCUM_GIRLS.zscore.weekly-56f12aca.js} +0 -0
  292. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-9a74bede.js → HEAD CIRCUM_GIRLS.zscore.yearly-9ed86c68.js} +0 -0
  293. /package/build/esm/{HEIGHT_BOYS.percentile.monthly-a0da4191.js → HEIGHT_BOYS.percentile.monthly-5d4de534.js} +0 -0
  294. /package/build/esm/{HEIGHT_BOYS.percentile.weekly-caec0d42.js → HEIGHT_BOYS.percentile.weekly-52ad40ca.js} +0 -0
  295. /package/build/esm/{HEIGHT_BOYS.percentile.yearly-2be15d1b.js → HEIGHT_BOYS.percentile.yearly-e35058c2.js} +0 -0
  296. /package/build/esm/{HEIGHT_BOYS.zscore.monthly-1965edc0.js → HEIGHT_BOYS.zscore.monthly-3c4110f3.js} +0 -0
  297. /package/build/esm/{HEIGHT_BOYS.zscore.weekly-708c3621.js → HEIGHT_BOYS.zscore.weekly-07c22238.js} +0 -0
  298. /package/build/esm/{HEIGHT_BOYS.zscore.yearly-1abd5dfb.js → HEIGHT_BOYS.zscore.yearly-7389c6be.js} +0 -0
  299. /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-ddb1b694.js → HEIGHT_GIRLS.percentile.monthly-9a959b6b.js} +0 -0
  300. /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-b0b20da2.js → HEIGHT_GIRLS.percentile.weekly-c750d085.js} +0 -0
  301. /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-2c8e4d29.js → HEIGHT_GIRLS.percentile.yearly-c58881de.js} +0 -0
  302. /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-437c60a7.js → HEIGHT_GIRLS.zscore.monthly-e7964603.js} +0 -0
  303. /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-7f347a2a.js → HEIGHT_GIRLS.zscore.weekly-fd900737.js} +0 -0
  304. /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-d2a7a9eb.js → HEIGHT_GIRLS.zscore.yearly-5b43976f.js} +0 -0
  305. /package/build/esm/{Visible-6156bcfb.js → Visible-5d863a64.js} +0 -0
  306. /package/build/esm/{WEIGHT_BOYS.percentile.monthly-69e1a4a9.js → WEIGHT_BOYS.percentile.monthly-f870a185.js} +0 -0
  307. /package/build/esm/{WEIGHT_BOYS.percentile.weekly-05c08720.js → WEIGHT_BOYS.percentile.weekly-5e697960.js} +0 -0
  308. /package/build/esm/{WEIGHT_BOYS.percentile.yearly-92a2a723.js → WEIGHT_BOYS.percentile.yearly-f7fdf726.js} +0 -0
  309. /package/build/esm/{WEIGHT_BOYS.zscore.monthly-85e4c1e7.js → WEIGHT_BOYS.zscore.monthly-5747fd5d.js} +0 -0
  310. /package/build/esm/{WEIGHT_BOYS.zscore.weekly-2f6ac430.js → WEIGHT_BOYS.zscore.weekly-7f917896.js} +0 -0
  311. /package/build/esm/{WEIGHT_BOYS.zscore.yearly-bf024500.js → WEIGHT_BOYS.zscore.yearly-1a9cca42.js} +0 -0
  312. /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-2b9a6954.js → WEIGHT_GIRLS.percentile.monthly-9a60e90e.js} +0 -0
  313. /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-19ea6986.js → WEIGHT_GIRLS.percentile.weekly-399f9f1e.js} +0 -0
  314. /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-16570444.js → WEIGHT_GIRLS.percentile.yearly-35c58833.js} +0 -0
  315. /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-9dd7c0c0.js → WEIGHT_GIRLS.zscore.monthly-5cf2904e.js} +0 -0
  316. /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-4dd02687.js → WEIGHT_GIRLS.zscore.weekly-2c0e64c3.js} +0 -0
  317. /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-5019803e.js → WEIGHT_GIRLS.zscore.yearly-805b8dad.js} +0 -0
  318. /package/build/esm/{animation-a05a22f3.js → animation-7beea155.js} +0 -0
  319. /package/build/esm/{cart-a793ef3f.js → cart-2dcef930.js} +0 -0
  320. /package/build/esm/{cookieHelper-8fe37cb2.js → cookieHelper-2cd252f5.js} +0 -0
  321. /package/build/esm/{doctor-59dfb281.js → doctor-6c8ba622.js} +0 -0
  322. /package/build/esm/{index-ddb4c753.js → index-3df2ebb8.js} +0 -0
  323. /package/build/esm/{index-7be202e4.js → index-8fec4715.js} +0 -0
  324. /package/build/esm/{index-32e9928d.js → index-97ab3df3.js} +0 -0
  325. /package/build/esm/{index-e11a78d9.js → index-c53eaa4a.js} +0 -0
  326. /package/build/esm/{isProduction-5b5083e1.js → isProduction-6b18c38e.js} +0 -0
  327. /package/build/esm/{localizeNumberFormat-b9b1c494.js → localizeNumberFormat-afbeb7d4.js} +0 -0
  328. /package/build/esm/{normalizeLink-c21ecec7.js → normalizeLink-23733f54.js} +0 -0
  329. /package/build/esm/{number-7565570e.js → number-db775844.js} +0 -0
  330. /package/build/esm/{paths-9905ad52.js → paths-99b5bf2b.js} +0 -0
  331. /package/build/esm/{theme-9b3c5ce8.js → theme-60267db6.js} +0 -0
  332. /package/build/esm/{translationsContext-8634b4e4.js → translationsContext-a31ba8bf.js} +0 -0
  333. /package/build/esm/{tslib.es6-2805eb0d.js → tslib.es6-91f077b8.js} +0 -0
  334. /package/build/esm/{useIsInit-0832d735.js → useIsInit-a6471f87.js} +0 -0
  335. /package/build/esm/{useOutsideClick-6e8f0827.js → useOutsideClick-260291dd.js} +0 -0
  336. /package/build/esm/{useScrollbarSize-5621f902.js → useScrollbarSize-329ceecd.js} +0 -0
  337. /package/build/esm/{useUniqueId-bfe0477d.js → useUniqueId-3ab871bf.js} +0 -0
  338. /package/build/esm/{utils-1c4436fb.js → utils-0d343254.js} +0 -0
  339. /package/build/{index-96d1c81a.js → index-6ec8ac2d.js} +0 -0
  340. /package/build/{index-2efdd30f.js → index-83c305f7.js} +0 -0
  341. /package/build/{index-811930df.js → index-af5f87d2.js} +0 -0
  342. /package/build/{index-38c9426b.js → index-def470a1.js} +0 -0
  343. /package/build/{isProduction-c6eef4f7.js → isProduction-32faa5d1.js} +0 -0
  344. /package/build/{localizeNumberFormat-42e3f6c8.js → localizeNumberFormat-843ccd82.js} +0 -0
  345. /package/build/{normalizeLink-19e85c9c.js → normalizeLink-430507ea.js} +0 -0
  346. /package/build/{number-31b56185.js → number-78e00360.js} +0 -0
  347. /package/build/{paths-d896f18f.js → paths-12dc2138.js} +0 -0
  348. /package/build/{theme-c301ffa8.js → theme-2c31cc30.js} +0 -0
  349. /package/build/{translationsContext-59e2a34f.js → translationsContext-7b2d1dff.js} +0 -0
  350. /package/build/{tslib.es6-deb50113.js → tslib.es6-ec10644a.js} +0 -0
  351. /package/build/{useIsInit-61e5469b.js → useIsInit-bb59f001.js} +0 -0
  352. /package/build/{useOutsideClick-b3444568.js → useOutsideClick-d0b3ad95.js} +0 -0
  353. /package/build/{useScrollbarSize-8b676ee5.js → useScrollbarSize-059af2c8.js} +0 -0
  354. /package/build/{useUniqueId-11121d45.js → useUniqueId-c4c162e2.js} +0 -0
  355. /package/build/{utils-552ff173.js → utils-fa2ed564.js} +0 -0
@@ -1,68 +1,64 @@
1
1
  import React__default, { useState, useEffect, useRef, useMemo, Fragment, memo, useCallback, useImperativeHandle, createContext, useContext, forwardRef } from 'react';
2
- import { T as Text } from './index-c82ef63d.js';
3
- import { b as StyledAvatar, c as StyledBadge$1, d as StyledBorderHeading, e as StyledDropdown, f as StyledDropdownName, g as StyledDropdownList, h as StyledDropdownOption, i as StyledIcon$1, j as StyledGrid, k as StyledPagination, l as StyledPageBlock, m as StyledPaginationBlock, n as StyledTag, o as StyledToggle, p as StyledToggleIcon, q as StyledToggleLabel, r as StyledCheckbox, s as StyledRateStars, T as TextArea, P as PureInput } from './index.styles-950cf52f.js';
4
- import { f as formatUrlWithPageParam, M as MediaQueries } from './utils-1c4436fb.js';
5
- import { I as ImageWrap, R as Radio$1, u as useScreenSize, A as Anchor, a as Avatar$1, b as AspectRatio, t as themeColors, B as Button$1, c as Input$1, S as Select, d as Checkbox$1, e as ChipButton } from './index-f7b2cf2b.js';
6
- import { T as Text$1 } from './index-f4d48e7c.js';
7
- import { _ as __rest, a as __awaiter } from './tslib.es6-2805eb0d.js';
2
+ import { T as Text } from './index-17f5ae90.js';
3
+ import { b as StyledAvatar, c as StyledBadge$1, d as StyledBorderHeading, e as StyledDropdown, f as StyledDropdownName, g as StyledDropdownList, h as StyledDropdownOption, i as StyledIcon$1, j as StyledGrid, k as StyledPagination, l as StyledPageBlock, m as StyledPaginationBlock, n as StyledTag, o as StyledToggle, p as StyledToggleIcon, q as StyledToggleLabel, r as StyledCheckbox, s as StyledRateStars, T as TextArea, P as PureInput } from './index.styles-07f5152b.js';
4
+ import { f as formatUrlWithPageParam, M as MediaQueries } from './utils-0d343254.js';
5
+ import { I as ImageWrap, R as Radio$1, u as useScreenSize, A as Anchor, a as Avatar$1, b as AspectRatio, t as themeColors, c as Input$1, B as Button$1, S as Select, d as Checkbox$1, e as ChipButton } from './index-9b518553.js';
6
+ import { T as Text$1 } from './index-7e9c438d.js';
7
+ import { _ as __rest, a as __awaiter } from './tslib.es6-91f077b8.js';
8
8
  import { Bookmark, CalendarMB } from '@hhgtech/icons/other';
9
- import { C as CommonGAssets } from './index-de0b462c.js';
10
- import { H as Heading } from './index-8ff9e988.js';
11
- import { t as theme } from './theme-9b3c5ce8.js';
12
- import { Card, Group, Box, Flex, createStyles, Stack, getStylesRef, useMantineTheme, rem, Input as Input$2, Chip, Container, AspectRatio as AspectRatio$1, ScrollArea, Badge as Badge$1, MultiSelect, Stepper } from '@mantine/core';
9
+ import { C as CommonGAssets } from './index-8ba165f5.js';
10
+ import { H as Heading } from './index-a38c3246.js';
11
+ import { t as theme } from './theme-60267db6.js';
12
+ import { Card, Group, Box, Flex, createStyles, Stack, getStylesRef, useMantineTheme, rem, Container, AspectRatio as AspectRatio$1, ScrollArea, Chip, Badge as Badge$1, MultiSelect, Stepper } from '@mantine/core';
13
13
  import innertext from 'innertext';
14
14
  import '@mantine/dates';
15
- import { d as domainLocales, L as LOCALE_SPECS, F as FAVICONS, Q as QUERY_HEALTH_TOOL, R as RISK_SCREENER_NAME, a as RISK_SCREENER_SLUG, G as GA_TOKEN_COOKIE } from './index-0730cb03.js';
16
- import { L as LOCALE } from './index-ddb4c753.js';
17
- import './useMantineLocale-39bfcb4d.js';
18
- import './translationsContext-8634b4e4.js';
15
+ import { d as domainLocales, L as LOCALE_SPECS, F as FAVICONS, Q as QUERY_HEALTH_TOOL, A as API_DATE_FORMAT$1, R as RISK_SCREENER_NAME, a as RISK_SCREENER_SLUG, G as GA_TOKEN_COOKIE } from './index-f50e5bd2.js';
16
+ import { L as LOCALE } from './index-3df2ebb8.js';
17
+ import './useMantineLocale-30851aa7.js';
18
+ import './translationsContext-a31ba8bf.js';
19
19
  import 'string-format';
20
20
  import { useViewportSize } from '@mantine/hooks';
21
- import { i as isInternalLink, d as getTogetherUserPostsApiPath } from './index-01f5218f.js';
21
+ import { i as isInternalLink, d as getTogetherUserPostsApiPath } from './index-b91db272.js';
22
22
  import styled from '@emotion/styled';
23
23
  import throttle from 'lodash/throttle';
24
- import { L as Logo } from './index-72b59998.js';
25
- import { B as Button } from './index-950a89f0.js';
26
- import { I as Input } from './index-49cc4e66.js';
27
- import { keyframes, css } from '@emotion/react';
24
+ import { L as Logo } from './index-f097f352.js';
25
+ import { B as Button } from './index-037c2ac8.js';
26
+ import { I as Input } from './index-d32f900d.js';
27
+ import { keyframes } from '@emotion/react';
28
28
  import parse from 'html-react-parser';
29
- import { i as isProduction } from './isProduction-5b5083e1.js';
30
- import { D as Dropdown } from './index-e9e548e7.js';
31
- import { s as setDefaultClass, Z as Z_INDEX, b as DUE_DATE_FORMAT, H as HEALTH_TOOL_TYPE$1, d as callApiWithAuth, g as getApiPath, P as PATHS$2, T as TogetherComponentGlobalContext, e as getPremiumApiPath, f as getWebsiteUrlApi, h as getSsoApiPath } from './utils-0966b189.js';
32
- import { u as useTranslations } from './useTranslations-bd5502b7.js';
33
- import { format, isBefore, startOfMonth, addMonths, subMonths, getDaysInMonth, isToday, isSameDay, isWithinInterval, isAfter, isPast } from 'date-fns';
29
+ import { i as isProduction } from './isProduction-6b18c38e.js';
30
+ import { u as useTranslations } from './useTranslations-1f62d893.js';
31
+ import { H as HealthToolFormWrapper, a as DueDateCalculatorType$1, G as GenderOptionControl, B as BabyGrowthForm, D as Drawer } from './index-c865872c.js';
32
+ import { useForm, isNotEmpty } from '@mantine/form';
34
33
  import dayjs from 'dayjs';
35
- import { S as StyledTextField, a as DateToInputValue, g as getDueDateConception, A as API_DATE_FORMAT, b as getDueDateIVF, c as getDueDateLastPeriod, d as DueDateCalculatorType, H as HealthToolFormWrapper, G as GenderOptionControl, B as BabyGrowthForm, D as Drawer } from './index-e5356e0c.js';
36
- import { D as DATE_FORMAT } from './types-f5618480.js';
37
- import { D as DatePicker } from './index-43885bfb.js';
38
- import { M as MarryBabyText } from './index-5a9b98ee.js';
39
- import { S as Slider } from './index-99141b34.js';
40
- import { f as formatUserProfileUrl } from './index-c9f15b6f.js';
41
- import { useForm as useForm$1, isNotEmpty } from '@mantine/form';
42
- import { u as useHealthToolsCache } from './useHealthToolCache-7e55185d.js';
43
- import { D as DatePicker$1 } from './index-de5fbde2.js';
44
- import { Controller, useForm } from 'react-hook-form';
45
- import './constants-fe7395e5.js';
46
- import './utils-f28f8d21.js';
47
- import './WhatsApp-c5ccc324.js';
48
- import './index.styled-03c6007b.js';
49
- import './index-7be202e4.js';
50
- import { a as useOutsideClick } from './useOutsideClick-6e8f0827.js';
34
+ import { D as DatePicker } from './index-21d4b3bc.js';
35
+ import { format, isBefore, startOfMonth, addMonths, subMonths, getDaysInMonth, isToday, isSameDay, isWithinInterval, isAfter, isPast } from 'date-fns';
36
+ import { f as formatUserProfileUrl } from './index-3438d71f.js';
37
+ import { u as useHealthToolsCache } from './useHealthToolCache-22a0a34d.js';
38
+ import { s as setDefaultClass, H as HEALTH_TOOL_TYPE$1, b as callApiWithAuth, g as getApiPath, P as PATHS$2, T as TogetherComponentGlobalContext, d as getPremiumApiPath, e as getWebsiteUrlApi, f as getSsoApiPath } from './utils-18601878.js';
39
+ import { Controller, useForm as useForm$1 } from 'react-hook-form';
40
+ import './constants-7925fc60.js';
41
+ import './utils-a28435da.js';
42
+ import './WhatsApp-7f156fb1.js';
43
+ import './index.styled-34bd1ba5.js';
44
+ import './index-8fec4715.js';
45
+ import { a as useOutsideClick } from './useOutsideClick-260291dd.js';
51
46
  import enUS from 'date-fns/locale/en-US';
52
47
  import id from 'date-fns/locale/id';
53
48
  import vi from 'date-fns/locale/vi';
54
49
  import zhTW from 'date-fns/locale/zh-TW';
55
- import { g as getSocialList } from './getSocialList-918a05e4.js';
50
+ import { D as Dropdown } from './index-5f5757df.js';
51
+ import { g as getSocialList } from './getSocialList-bbb7d453.js';
56
52
  import { v4 } from 'uuid';
57
- import { g as getCurrentBaseUrl, a as getCurrentSsoUrl } from './routing-de0894b8.js';
58
- import { I as Icon } from './index-3eade222.js';
53
+ import { g as getCurrentBaseUrl, a as getCurrentSsoUrl } from './routing-8aa62c29.js';
54
+ import { I as Icon } from './index-0e2a8786.js';
59
55
  import { Close, Plus } from '@hhgtech/icons/core';
60
- import { M as Modal } from './index-8393482c.js';
56
+ import { M as Modal } from './index-7ca5cb5c.js';
61
57
  import Cookies from 'js-cookie';
62
58
  import flatten from 'lodash/flatten';
63
59
  import uniqBy from 'lodash/uniqBy';
64
- import { g as getCookie } from './cookieHelper-8fe37cb2.js';
65
- import { n as normalizeLinkSlash, a as normalizeLink } from './normalizeLink-c21ecec7.js';
60
+ import { g as getCookie } from './cookieHelper-2cd252f5.js';
61
+ import { n as normalizeLinkSlash, a as normalizeLink } from './normalizeLink-23733f54.js';
66
62
 
67
63
  var styles$7 = {"alert":"CHw-fZZ","content":"_03U6VRS","close":"EO828Vv"};
68
64
 
@@ -449,7 +445,7 @@ const _Horizontal = (_a) => {
449
445
 
450
446
  // MyComponent.styles.ts
451
447
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
452
- var useStyles$7 = createStyles((_theme, {}) => ({
448
+ var useStyles$6 = createStyles((_theme, {}) => ({
453
449
  // add all styles as usual
454
450
  root: {},
455
451
  image: {},
@@ -469,7 +465,7 @@ const _Vertical = (_a) => {
469
465
  // size = 'lg',
470
466
  classNames, styles, unstyled, className } = _a, rest = __rest(_a, ["article", "author", "authorAvatar", "badge", "bannerImageWrapProps", "hideDescription", "isBookmarked", "onBookmark", "time", "tracking", "classNames", "styles", "unstyled", "className"]);
471
467
  const { isMobile } = useScreenSize();
472
- const { classes, cx } = useStyles$7(
468
+ const { classes, cx } = useStyles$6(
473
469
  // First argument of useStyles is styles params
474
470
  {},
475
471
  // Second argument is responsible for styles api integration
@@ -1688,7 +1684,7 @@ var index = /*#__PURE__*/Object.freeze({
1688
1684
  Body: Body$1
1689
1685
  });
1690
1686
 
1691
- var useStyles$6 = createStyles((theme) => {
1687
+ var useStyles$5 = createStyles((theme) => {
1692
1688
  const itemLabelRef = getStylesRef('itemLabel');
1693
1689
  return {
1694
1690
  root: {
@@ -1740,7 +1736,7 @@ var useStyles$6 = createStyles((theme) => {
1740
1736
  * @deprecated Consider to use mantine
1741
1737
  */
1742
1738
  const Tabs = ({ style, initialTab, tabContent, onChange, className, dataEventCategory, dataEventAction, dataEventLabel, id, styles, }) => {
1743
- const { classes, cx, theme } = useStyles$6(undefined, { name: 'Tabs', styles });
1739
+ const { classes, cx, theme } = useStyles$5(undefined, { name: 'Tabs', styles });
1744
1740
  const [activeTab, setActiveTab] = useState(initialTab || 0);
1745
1741
  useEffect(() => {
1746
1742
  setActiveTab(initialTab);
@@ -3088,423 +3084,338 @@ const ToolsBannerCard = ({ className, heading, bannerColor, medicalReview = {
3088
3084
  }) }, icon))))));
3089
3085
  };
3090
3086
 
3091
- const StyledDropDown = styled(Dropdown) `
3092
- border-color: ${theme.mbColors.lightGray};
3093
- background-color: ${theme.colors.white};
3094
- border-radius: 16px;
3095
- transition: all 0.2s ease;
3096
- &:hover {
3097
- border-color: ${theme.mbColors.pink};
3098
- box-shadow: none;
3099
- }
3100
-
3101
- & > ul {
3102
- z-index: ${Z_INDEX.menuSearchPopup};
3103
- max-height: 300px;
3104
- overflow-y: auto;
3105
- }
3106
-
3107
- ${(props) => props.groupedWithLabel &&
3108
- css `
3109
- & > div:first-child {
3110
- color: ${theme.mbColors.midGray};
3111
- font-size: 12px;
3112
- }
3113
- `}
3087
+ const ConceptionDate = (_a) => {
3088
+ var { isMarryBaby, size = 24 } = _a, rest = __rest(_a, ["isMarryBaby", "size"]);
3089
+ const props = Object.assign({ width: size, height: size }, rest);
3090
+ return isMarryBaby ? (React__default.createElement("svg", Object.assign({ viewBox: "0 0 33 32", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, props),
3091
+ React__default.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M16.5 27.1333C17.7981 27.1333 19.0961 26.9841 20.3682 26.6857C23.751 25.8922 26.3923 23.2509 27.1858 19.8681C27.7826 17.3239 27.7826 14.676 27.1858 12.1318C26.3923 8.74902 23.751 6.10773 20.3682 5.31424C17.824 4.71744 15.1761 4.71744 12.6319 5.31424C9.24909 6.10773 6.60779 8.74902 5.8143 12.1318C5.5159 13.4039 5.36669 14.702 5.3667 16C5.3667 16.4787 4.97868 16.8667 4.50003 16.8667C4.02139 16.8667 3.63336 16.4787 3.63336 16C3.63336 14.5691 3.79783 13.1383 4.12677 11.736C5.0706 7.71226 8.21233 4.57054 12.236 3.62671C15.0406 2.96884 17.9594 2.96884 20.764 3.62671C24.7877 4.57054 27.9295 7.71226 28.8733 11.736C29.5312 14.5406 29.5312 17.4594 28.8733 20.264C27.9295 24.2877 24.7877 27.4294 20.764 28.3732C19.3617 28.7022 17.9309 28.8666 16.5 28.8666C16.0214 28.8666 15.6334 28.4786 15.6334 28C15.6334 27.5213 16.0214 27.1333 16.5 27.1333Z", fill: "#3E3F58" }),
3092
+ React__default.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M11.6333 16C11.6333 13.3122 13.8122 11.1334 16.5 11.1334C19.1878 11.1334 21.3666 13.3122 21.3666 16C21.3666 18.6878 19.1878 20.8667 16.5 20.8667C13.8122 20.8667 11.6333 18.6878 11.6333 16ZM16.5 12.8667C14.7695 12.8667 13.3666 14.2695 13.3666 16C13.3666 17.7305 14.7695 19.1334 16.5 19.1334C18.2305 19.1334 19.6333 17.7305 19.6333 16C19.6333 14.2695 18.2305 12.8667 16.5 12.8667Z", fill: "#E85388" }),
3093
+ React__default.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M9.8335 25.3333C11.3063 25.3333 12.5002 24.1394 12.5002 22.6667C12.5002 21.1939 11.3063 20 9.8335 20C8.36074 20 7.16683 21.1939 7.16683 22.6667C7.16683 23.1612 7.30147 23.6244 7.5361 24.0214L7.45222 24.1053C6.84272 24.7148 6.50031 25.5414 6.50031 26.4034C6.50031 27.1294 6.09013 27.7931 5.44079 28.1177L4.20217 28.737C3.87285 28.9017 3.73936 29.3022 3.90402 29.6315C4.06868 29.9608 4.46913 30.0943 4.79845 29.9296L6.03707 29.3103C7.13813 28.7598 7.83364 27.6344 7.83364 26.4034C7.83364 25.8951 8.03558 25.4075 8.39503 25.0481L8.47894 24.9642C8.87593 25.1987 9.33899 25.3333 9.8335 25.3333Z", fill: "#3E3F58" }))) : (React__default.createElement("svg", Object.assign({ viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, props),
3094
+ React__default.createElement("circle", { cx: "12", cy: "9", r: "9", fill: "#91CAFF" }),
3095
+ React__default.createElement("circle", { cx: "11.9998", cy: "9.00005", r: "7.2", fill: "#2D87F3" }),
3096
+ React__default.createElement("path", { d: "M2.38545 16.2676C2.21688 16.2676 2.07389 16.138 2.06016 15.9671C2.04565 15.7872 2.17971 15.6296 2.35957 15.6152C2.45675 15.607 4.75195 15.3916 4.70769 13.4751C4.68957 12.6916 4.90708 12.0649 5.35412 11.6126C6.05287 10.9056 7.05177 10.9083 7.0944 10.9093C7.27482 10.9113 7.41944 11.0592 7.41738 11.2397C7.41532 11.4188 7.26945 11.5627 7.09075 11.5627C7.08985 11.5627 7.08895 11.5627 7.08805 11.5627C7.07388 11.5627 6.31301 11.5681 5.81498 12.076C5.49994 12.3973 5.34721 12.8629 5.36099 13.4601C5.38541 14.5175 4.87205 15.3412 3.87642 15.842C3.15903 16.2029 2.4422 16.2641 2.41207 16.2665C2.40314 16.2672 2.39425 16.2676 2.38545 16.2676Z", fill: "#D2D6DC" }),
3097
+ React__default.createElement("path", { d: "M1.00099 23.6985C0.987043 23.5186 1.12157 23.3615 1.30148 23.3475C1.39819 23.3396 3.68287 23.1323 3.6329 21.2243C3.61242 20.4424 3.8277 19.8176 4.27268 19.3674C4.96813 18.6638 5.96552 18.6693 6.00746 18.6705C6.18788 18.6731 6.33203 18.8215 6.32941 19.0019C6.32684 19.182 6.18063 19.3273 5.99913 19.3239C5.99909 19.3239 5.99901 19.3239 5.99892 19.3239C5.979 19.3239 5.22556 19.3289 4.73358 19.8307C4.42112 20.1493 4.27057 20.6124 4.28615 21.2072C4.31376 22.2625 3.80383 23.083 2.81146 23.58C2.09691 23.9377 1.38201 23.9966 1.35196 23.999C1.17111 24.0129 1.01486 23.8776 1.00099 23.6985Z", fill: "#D2D6DC" }),
3098
+ React__default.createElement("path", { d: "M11.5451 6.7139C10.7962 5.96501 8.93796 6.60903 7.94739 7.59956C7.4039 8.14305 7.10028 8.81271 7.06006 9.43029V9.59646L8.58738 11.143L8.82863 11.1989C9.44621 11.1587 10.1159 10.8551 10.6594 10.3116C11.6499 9.321 12.294 7.4628 11.5451 6.7139Z", fill: "#E3F2FF" }),
3099
+ React__default.createElement("path", { d: "M7.06034 9.43042L6.67147 10.4309C6.56604 10.702 6.63082 11.0099 6.83652 11.2156L7.04381 11.4229C7.14802 11.5271 7.27846 11.5948 7.41706 11.6228C7.55198 11.65 7.69458 11.6398 7.82826 11.5879L8.8287 11.199L7.06034 9.43042Z", fill: "#91CAFF" }),
3100
+ React__default.createElement("path", { d: "M10.7978 15.144C10.7633 14.8665 10.6648 14.6249 10.4865 14.4466C9.73757 13.6977 7.87937 14.3417 6.8888 15.3322C6.34531 15.8757 6.04169 16.5454 6.00146 17.163V17.3291L7.52904 18.8756L7.77029 18.9315C8.38787 18.8913 9.05752 18.5877 9.60101 18.0442C10.3555 17.2896 10.908 16.0316 10.7978 15.144Z", fill: "#E3F2FF" }),
3101
+ React__default.createElement("path", { d: "M6.00125 17.1628L5.61238 18.1633C5.50696 18.4345 5.57173 18.7423 5.77744 18.948L5.98473 19.1553C6.08894 19.2595 6.21938 19.3273 6.35798 19.3552C6.4929 19.3824 6.6355 19.3722 6.76917 19.3203L7.76962 18.9314L6.00125 17.1628Z", fill: "#91CAFF" })));
3102
+ };
3114
3103
 
3115
- &[data-dropdown-open='true'] {
3116
- border-color: ${theme.mbColors.pink};
3117
- }
3118
- `;
3104
+ const IVF = (_a) => {
3105
+ var { isMarryBaby, size = 24 } = _a, rest = __rest(_a, ["isMarryBaby", "size"]);
3106
+ const props = Object.assign({ width: size, height: size }, rest);
3107
+ return isMarryBaby ? (React__default.createElement("svg", Object.assign({ viewBox: "0 0 33 32", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, props),
3108
+ React__default.createElement("g", { clipPath: "url(#clip0_1964_4257)" },
3109
+ React__default.createElement("path", { d: "M15.804 28.2784C14.0306 28.2863 12.5961 26.8463 12.6234 25.07L12.7524 4.76372L19.1575 4.77241L19.0285 25.0787C19.0173 26.8359 17.5774 28.2704 15.804 28.2784Z", fill: "white" }),
3110
+ React__default.createElement("path", { d: "M12.7202 10.2661L12.6038 25.0539C12.5927 26.8112 14.0272 28.2512 15.7844 28.2623C17.5578 28.2544 18.9978 26.8199 19.009 25.0626L19.009 10.2661", fill: "#FFEAF1" }),
3111
+ React__default.createElement("ellipse", { cx: "14.6618", cy: "19.0267", rx: "1.01227", ry: "1.01227", transform: "rotate(-49.8303 14.6618 19.0267)", fill: "#3E3F58" }),
3112
+ React__default.createElement("circle", { cx: "16.3264", cy: "13.4263", r: "1.01227", transform: "rotate(-49.8304 16.3264 13.4263)", fill: "#3E3F58" }),
3113
+ React__default.createElement("path", { d: "M14.6624 19.0264L14.7487 20.0481C14.7706 20.3073 14.8946 20.5471 15.0933 20.7149V20.7149C15.3772 20.9545 15.5013 21.3339 15.4139 21.6949L15.2902 22.2058", stroke: "#3E3F58", strokeLinecap: "round", strokeLinejoin: "round" }),
3114
+ React__default.createElement("path", { d: "M16.3264 13.426L16.4128 14.4477C16.4347 14.7069 16.5586 14.9467 16.7574 15.1145V15.1145C17.0412 15.3541 17.1653 15.7335 17.0779 16.0945L16.9543 16.6054", stroke: "#3E3F58", strokeLinecap: "round", strokeLinejoin: "round" }),
3115
+ React__default.createElement("path", { d: "M18.8331 27.5966C18.1075 28.4563 17.0188 29.0096 15.8121 29.0051C14.7653 29.0048 13.7725 28.592 13.0185 27.8574C12.2806 27.1037 11.8772 26.1088 11.8775 25.0621L11.9857 4.50923C11.9852 4.0835 12.3298 3.75278 12.7394 3.77139C13.1651 3.7709 13.4959 4.1155 13.4772 4.52511L13.3691 25.078C13.3713 25.7342 13.6171 26.3343 14.0655 26.8109C14.5299 27.2684 15.1365 27.5187 15.7927 27.5165C17.1404 27.5091 18.2548 26.4214 18.2635 25.0546L18.3717 4.50179C18.3712 4.07606 18.7158 3.74535 19.1254 3.76396C19.5512 3.76346 19.8819 4.10807 19.8633 4.51768L19.7551 25.0705C19.765 26.0277 19.4137 26.9089 18.8331 27.5966Z", fill: "#202135" }),
3116
+ React__default.createElement("path", { d: "M20.7531 4.97475C20.608 5.14669 20.4026 5.23501 20.1721 5.23675L11.4592 5.21019C11.0334 5.21068 10.7027 4.86608 10.7213 4.45647C10.7208 4.03073 11.0654 3.70002 11.475 3.71863L20.188 3.74519C20.6137 3.74469 20.9444 4.0893 20.9258 4.4989C20.9407 4.67505 20.866 4.84103 20.7531 4.97475Z", fill: "#202135" })),
3117
+ React__default.createElement("defs", null,
3118
+ React__default.createElement("clipPath", { id: "clip0_1964_4257" },
3119
+ React__default.createElement("rect", { width: "32", height: "32", fill: "white", transform: "translate(0.5)" }))))) : (React__default.createElement("svg", Object.assign({ viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, props),
3120
+ React__default.createElement("path", { d: "M13.0643 5.79419C13.9204 4.07823 15.0484 2.51196 16.4044 1.15601L20.6649 4.03713C19.3441 5.35823 18.2395 6.87888 17.3918 8.54367L16.3123 10.6633C16.2496 10.7867 16.2278 10.9268 16.25 11.0634C16.2722 11.1999 16.3373 11.3259 16.4357 11.4231C17.7354 12.7124 18.5471 14.413 18.7321 16.2344C18.759 16.499 17.5907 22.231 9.35566 21.8066C7.76866 21.7248 3.63212 20.538 3.2358 18.9467C3.06028 18.2403 2.9821 17.5131 3.00343 16.7855C3.12655 12.6207 6.72084 9.1378 10.8875 9.13895C10.9199 9.13895 10.9523 9.13916 10.9846 9.13959C11.107 9.14108 11.2273 9.10805 11.3317 9.04427C11.4361 8.9805 11.5205 8.88857 11.575 8.77903L13.0643 5.79419Z", fill: "#BCDEFF" }),
3121
+ React__default.createElement("path", { d: "M20.7506 3.23392L16.6954 0.495902C16.2898 0.222023 15.7389 0.32883 15.465 0.734461L15.465 0.734509C15.1911 1.14014 15.2979 1.69099 15.7036 1.96487L19.7587 4.70289C20.1644 4.97677 20.7152 4.86996 20.9891 4.46433L20.9891 4.46428C21.263 4.05865 21.1562 3.5078 20.7506 3.23392Z", fill: "#E3F2FF" }),
3122
+ React__default.createElement("path", { d: "M18.7713 17.0243C18.7729 18.1506 18.5326 19.2641 18.0668 20.2895C17.6009 21.3149 16.9203 22.2283 16.071 22.968C15.3028 23.6355 14.3188 24.0022 13.301 24H8.47346C7.45615 24.0019 6.47248 23.6358 5.70406 22.9691C4.49011 21.9116 3.62881 20.5079 3.23584 18.9466C4.16013 19.4148 5.42706 19.7523 7.15757 19.7523C8.30012 19.7523 9.16854 19.4062 9.93273 18.9178C10.1493 18.779 10.3577 18.6287 10.5616 18.4721C12.5346 16.9558 14.0865 14.8043 18.7322 16.2342C18.7583 16.494 18.7713 16.7573 18.7713 17.0243Z", fill: "#2D87F3" }),
3123
+ React__default.createElement("path", { d: "M11.8579 15.4993C10.0789 15.8485 8.76231 13.8918 9.72398 12.379C9.91415 12.0799 10.1801 11.8313 10.498 11.6629C10.7259 11.5422 10.9804 11.4625 11.2528 11.4349C11.4544 11.4146 11.652 11.424 11.8414 11.4597C11.9436 11.479 12.0464 11.4361 12.1091 11.3531C12.3908 10.9798 12.8464 10.7795 13.3088 10.7143C13.5329 10.6828 13.6826 10.4737 13.6879 10.2734C13.709 9.47973 14.3454 8.96277 14.9758 9.03966C15.1593 9.06204 15.1995 9.31062 15.0339 9.39073C15.0302 9.39252 15.0262 9.39441 15.0221 9.39642C14.9573 9.42744 14.8374 9.48494 14.7427 9.59188C14.5292 9.8547 14.5548 9.99906 14.5891 10.1922C14.6186 10.3586 14.6546 10.5613 14.5493 10.9073C14.454 11.1895 14.2831 11.4265 14.0448 11.6076C13.7899 11.7963 13.6003 11.8374 13.4528 11.8695C13.3654 11.8885 13.2928 11.9042 13.2301 11.9456C13.0966 12.0337 13.0787 12.2046 13.1605 12.3247C13.3443 12.5945 13.4663 12.912 13.504 13.2589C13.6194 14.3211 12.8939 15.2958 11.8579 15.4993Z", fill: "white" }),
3124
+ React__default.createElement("ellipse", { cx: "10", cy: "20.5", rx: "3", ry: "2.5", fill: "#FF6F4D" })));
3125
+ };
3119
3126
 
3120
- const StyledMethodContainer = styled.div `
3121
- width: 100%;
3122
- `;
3123
- const StyledMethodSwitcherContainer = styled.div `
3124
- #due-date-dropdown {
3125
- z-index: 9;
3126
- width: 100%;
3127
- min-width: unset;
3128
- max-width: unset;
3127
+ const LastPeriod = (_a) => {
3128
+ var { isMarryBaby, size = 24 } = _a, rest = __rest(_a, ["isMarryBaby", "size"]);
3129
+ const props = Object.assign({ width: size, height: size }, rest);
3130
+ return isMarryBaby ? (React__default.createElement("svg", Object.assign({ viewBox: "0 0 33 32", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, props),
3131
+ React__default.createElement("path", { d: "M26.9536 27.3696H8.18104C6.89043 27.3696 5.83447 26.3137 5.83447 25.0231V8.59706C5.83447 7.30645 6.89043 6.25049 8.18104 6.25049L19.9843 8.59706L26.9536 6.25049C28.2442 6.25049 29.3002 7.30645 29.3002 8.59706V25.0231C29.3002 26.3137 28.2442 27.3696 26.9536 27.3696Z", fill: "#E0E9FB" }),
3132
+ React__default.createElement("path", { d: "M22.7061 22.6765H6.25666C4.91911 22.6765 4.02742 21.3389 4.5202 20.0953L5.83428 16.8101V8.59706C5.83428 7.30645 6.89023 6.25049 8.18085 6.25049H24.6069C25.8975 6.25049 26.9534 7.30645 26.9534 8.59706V16.8101L25.3108 20.9166C24.8884 21.9725 23.856 22.6765 22.7061 22.6765Z", fill: "#FFE9F1" }),
3133
+ React__default.createElement("path", { d: "M24.6069 28.0736H8.18091C6.49138 28.0736 5.13037 26.7126 5.13037 25.0231C5.13037 24.6242 5.43543 24.3191 5.83434 24.3191C6.23326 24.3191 6.53831 24.6242 6.53831 25.0231C6.53831 25.9382 7.26575 26.6657 8.18091 26.6657H24.6069C25.5221 26.6657 26.2495 25.9382 26.2495 25.0231V22.6765C26.2495 22.2776 26.5546 21.9725 26.9535 21.9725C27.3524 21.9725 27.6575 22.2776 27.6575 22.6765V25.0231C27.6575 26.7126 26.2964 28.0736 24.6069 28.0736Z", fill: "#202135" }),
3134
+ React__default.createElement("path", { d: "M24.607 5.54652H24.1377V5.07721C24.1377 4.04472 23.2929 3.19995 22.2604 3.19995C21.2279 3.19995 20.3831 4.04472 20.3831 5.07721V7.42378C20.3831 8.45627 21.2279 9.30104 22.2604 9.30104C22.6593 9.30104 22.9644 8.99598 22.9644 8.59707C22.9644 8.19815 22.6593 7.8931 22.2604 7.8931C22.0023 7.8931 21.7911 7.6819 21.7911 7.42378V5.07721C21.7911 4.81909 22.0023 4.60789 22.2604 4.60789C22.5185 4.60789 22.7297 4.81909 22.7297 5.07721V6.25049C22.7297 6.64941 23.0348 6.95447 23.4337 6.95447H24.607C25.5221 6.95447 26.2496 7.6819 26.2496 8.59707V15.0032C26.2496 16.1061 26.0384 17.209 25.6395 18.218L24.6774 20.635C24.3488 21.4328 23.5745 21.9725 22.7062 21.9725H6.25677C5.85786 21.9725 5.50587 21.7848 5.29468 21.4563C5.08349 21.1278 5.03656 20.7288 5.17735 20.3534L5.83439 18.7343C6.30371 17.5375 6.56183 16.2704 6.56183 14.9797V8.59707C6.56183 7.6819 7.28927 6.95447 8.20443 6.95447H9.37771C9.77663 6.95447 10.0817 6.64941 10.0817 6.25049C10.0817 5.85158 9.77663 5.54652 9.37771 5.54652H8.20443C6.5149 5.54652 5.15389 6.90753 5.15389 8.59707V15.0032C5.15389 16.1061 4.94269 17.209 4.54378 18.218L3.88674 19.8371C3.55822 20.635 3.67554 21.5267 4.14486 22.2541C4.61417 22.9581 5.43547 23.3805 6.28024 23.3805H22.7297C24.1846 23.3805 25.4517 22.5122 25.9914 21.1747L26.9535 18.7577C27.4229 17.561 27.681 16.2938 27.681 15.0032V8.59707C27.6575 6.90753 26.2965 5.54652 24.607 5.54652Z", fill: "#202135" }),
3135
+ React__default.createElement("path", { d: "M12.8743 9.30104C13.2732 9.30104 13.5783 8.99598 13.5783 8.59707C13.5783 8.19815 13.2732 7.8931 12.8743 7.8931C12.6162 7.8931 12.405 7.6819 12.405 7.42378V5.07721C12.405 4.81909 12.6162 4.60789 12.8743 4.60789C13.1325 4.60789 13.3436 4.81909 13.3436 5.07721V6.25049C13.3436 6.64941 13.6487 6.95447 14.0476 6.95447H18.7408C19.1397 6.95447 19.4447 6.64941 19.4447 6.25049C19.4447 5.85158 19.1397 5.54652 18.7408 5.54652H14.7516V5.07721C14.7516 4.04472 13.9068 3.19995 12.8743 3.19995C11.8418 3.19995 10.9971 4.04472 10.9971 5.07721V7.42378C10.9971 8.45627 11.8418 9.30104 12.8743 9.30104Z", fill: "#202135" }),
3136
+ React__default.createElement("path", { d: "M21.0873 16.8101C20.4303 16.8101 19.9141 16.2938 19.9141 15.6368C19.9141 14.9797 20.4303 14.4635 21.0873 14.4635C21.7444 14.4635 22.2606 14.9797 22.2606 15.6368C22.2606 16.2938 21.7444 16.8101 21.0873 16.8101Z", fill: "#E85388" }),
3137
+ React__default.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M11.7009 13.2902C11.0438 13.2902 10.5276 12.7739 10.5276 12.1169C10.5276 11.4598 11.0438 10.9436 11.7009 10.9436C12.3579 10.9436 12.8742 11.4598 12.8742 12.1169C12.8742 12.7739 12.3579 13.2902 11.7009 13.2902ZM16.394 13.2902C15.737 13.2902 15.2207 12.7739 15.2207 12.1169C15.2207 11.4598 15.737 10.9436 16.394 10.9436C17.0511 10.9436 17.5673 11.4598 17.5673 12.1169C17.5673 12.7739 17.0511 13.2902 16.394 13.2902ZM21.0872 13.2902C20.4301 13.2902 19.9139 12.7739 19.9139 12.1169C19.9139 11.4598 20.4301 10.9436 21.0872 10.9436C21.7442 10.9436 22.2605 11.4598 22.2605 12.1169C22.2605 12.7739 21.7442 13.2902 21.0872 13.2902ZM11.7009 16.81C11.0438 16.81 10.5276 16.2938 10.5276 15.6367C10.5276 14.9797 11.0438 14.4635 11.7009 14.4635C12.3579 14.4635 12.8742 14.9797 12.8742 15.6367C12.8742 16.2938 12.3579 16.81 11.7009 16.81ZM16.394 16.81C15.737 16.81 15.2207 16.2938 15.2207 15.6367C15.2207 14.9797 15.737 14.4635 16.394 14.4635C17.0511 14.4635 17.5673 14.9797 17.5673 15.6367C17.5673 16.2938 17.0511 16.81 16.394 16.81ZM20.1721 20.2126C19.5151 20.2126 19.0927 19.7432 19.21 19.1566C19.3274 18.57 19.9375 18.1006 20.5945 18.1006C21.2515 18.1006 21.6739 18.57 21.5566 19.1566C21.4393 19.7432 20.8292 20.2126 20.1721 20.2126ZM15.479 20.2126C14.8219 20.2126 14.3996 19.7432 14.5169 19.1566C14.6342 18.57 15.2443 18.1006 15.9014 18.1006C16.5584 18.1006 16.9808 18.57 16.8635 19.1566C16.7461 19.7432 16.136 20.2126 15.479 20.2126ZM9.82374 19.1566C9.70641 19.7432 10.1288 20.2126 10.7858 20.2126C11.4429 20.2126 12.053 19.7432 12.1703 19.1566C12.2876 18.57 11.8653 18.1006 11.2082 18.1006C10.5512 18.1006 9.94107 18.57 9.82374 19.1566Z", fill: "#9898A9" }))) : (React__default.createElement("svg", Object.assign({ viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, props),
3138
+ React__default.createElement("rect", { y: "2.23462", width: "22.0504", height: "17.1503", rx: "2", fill: "#E3F2FF" }),
3139
+ React__default.createElement("path", { d: "M0 4.23462C0 3.13005 0.895431 2.23462 2 2.23462H20.0504C21.155 2.23462 22.0504 3.13005 22.0504 4.23462V5.90969H0V4.23462Z", fill: "#2D87F3" }),
3140
+ React__default.createElement("path", { d: "M17.1351 1H17.0853C16.532 1 16.0835 1.44854 16.0835 2.00185V3.63855C16.0835 4.19186 16.532 4.6404 17.0853 4.6404H17.1351C17.6884 4.6404 18.1369 4.19186 18.1369 3.63855V2.00185C18.1369 1.44854 17.6884 1 17.1351 1Z", fill: "#284A75" }),
3141
+ React__default.createElement("path", { d: "M4.2751 4.64038H4.32481C4.87812 4.64038 5.32666 4.19184 5.32666 3.63853V2.00183C5.32666 1.44853 4.87812 0.99998 4.32481 0.99998H4.2751C3.72179 0.99998 3.27325 1.44853 3.27325 2.00183V3.63853C3.27325 4.19184 3.72179 4.64038 4.2751 4.64038Z", fill: "#284A75" }),
3142
+ React__default.createElement("path", { d: "M4.7172 9.75171H3.95994C3.61369 9.75171 3.33301 10.0324 3.33301 10.3786V11.2727C3.33301 11.6189 3.61369 11.8996 3.95994 11.8996H4.7172C5.06344 11.8996 5.34413 11.6189 5.34413 11.2727V10.3786C5.34413 10.0324 5.06344 9.75171 4.7172 9.75171Z", fill: "#2B62CD" }),
3143
+ React__default.createElement("path", { d: "M8.88663 9.75171H8.12937C7.78313 9.75171 7.50244 10.0324 7.50244 10.3786V11.2727C7.50244 11.6189 7.78313 11.8996 8.12937 11.8996H8.88663C9.23288 11.8996 9.51356 11.6189 9.51356 11.2727V10.3786C9.51356 10.0324 9.23288 9.75171 8.88663 9.75171Z", fill: "#2B62CD" }),
3144
+ React__default.createElement("path", { d: "M13.0551 9.75171H12.2978C11.9516 9.75171 11.6709 10.0324 11.6709 10.3786V11.2727C11.6709 11.6189 11.9516 11.8996 12.2978 11.8996H13.0551C13.4013 11.8996 13.682 11.6189 13.682 11.2727V10.3786C13.682 10.0324 13.4013 9.75171 13.0551 9.75171Z", fill: "#2B62CD" }),
3145
+ React__default.createElement("path", { d: "M17.4887 9.75171H16.7314C16.3852 9.75171 16.1045 10.0324 16.1045 10.3786V11.2727C16.1045 11.6189 16.3852 11.8996 16.7314 11.8996H17.4887C17.8349 11.8996 18.1156 11.6189 18.1156 11.2727V10.3786C18.1156 10.0324 17.8349 9.75171 17.4887 9.75171Z", fill: "#2B62CD" }),
3146
+ React__default.createElement("path", { d: "M4.67521 13.635H3.91795C3.5717 13.635 3.29102 13.9157 3.29102 14.2619V15.156C3.29102 15.5022 3.5717 15.7829 3.91795 15.7829H4.67521C5.02145 15.7829 5.30214 15.5022 5.30214 15.156V14.2619C5.30214 13.9157 5.02145 13.635 4.67521 13.635Z", fill: "#2B62CD" }),
3147
+ React__default.createElement("path", { d: "M8.84415 13.635H8.08689C7.74065 13.635 7.45996 13.9157 7.45996 14.2619V15.156C7.45996 15.5022 7.74065 15.7829 8.08689 15.7829H8.84415C9.1904 15.7829 9.47108 15.5022 9.47108 15.156V14.2619C9.47108 13.9157 9.1904 13.635 8.84415 13.635Z", fill: "#2B62CD" }),
3148
+ React__default.createElement("path", { d: "M13.0131 13.635H12.2558C11.9096 13.635 11.6289 13.9157 11.6289 14.2619V15.156C11.6289 15.5022 11.9096 15.7829 12.2558 15.7829H13.0131C13.3593 15.7829 13.64 15.5022 13.64 15.156V14.2619C13.64 13.9157 13.3593 13.635 13.0131 13.635Z", fill: "#2B62CD" }),
3149
+ React__default.createElement("path", { d: "M17.4472 13.635H16.6899C16.3437 13.635 16.063 13.9157 16.063 14.2619V15.156C16.063 15.5022 16.3437 15.7829 16.6899 15.7829H17.4472C17.7934 15.7829 18.0741 15.5022 18.0741 15.156V14.2619C18.0741 13.9157 17.7934 13.635 17.4472 13.635Z", fill: "#2B62CD" }),
3150
+ React__default.createElement("path", { d: "M20.3599 13.8356C19.6257 13.7546 19.4799 15.2799 18.4553 16.4962C17.8548 17.2093 17.0672 18.4098 16.9656 19.4741C16.8683 20.4944 17.1508 22.9817 20.1944 23.1776C20.5411 23.1981 20.889 23.1859 21.2335 23.1414C24.2599 22.5785 24.1522 19.7982 23.8637 18.815C23.5624 17.7891 22.5906 16.7217 21.9843 16.1555C20.8625 15.1096 21.0477 13.9115 20.3599 13.8356Z", fill: "#FF6F4D" }),
3151
+ React__default.createElement("path", { d: "M22.1395 17.3998C22.1973 17.6137 21.9178 17.7927 21.7534 17.4586C21.6138 17.1746 21.6738 17.0792 21.7817 17.0551C21.896 17.0293 22.0915 17.2227 22.1395 17.3998Z", fill: "white" })));
3152
+ };
3129
3153
 
3130
- ${MediaQueries.mbDown} {
3131
- font-size: 14px;
3132
- }
3133
- ${MediaQueries.tdUp} {
3134
- font-size: 16px;
3135
- &[data-is-side='true'] {
3136
- font-size: 14px;
3137
- }
3138
- }
3139
- color: ${theme.colors.gray800};
3140
- > div {
3141
- white-space: nowrap;
3142
- overflow: hidden;
3143
- text-overflow: ellipsis;
3144
- }
3145
- }
3146
- display: flex;
3147
- width: 100%;
3148
- justify-content: space-between;
3149
- `;
3150
- const StyledLastPeriodFormContainer = styled(StyledMethodContainer) `
3151
- .due-date-input {
3152
- width: 100%;
3153
- min-width: unset;
3154
- max-width: unset;
3155
- color: ${theme.colors.gray800};
3156
- }
3157
- .due-date-calculate-button {
3158
- margin-right: auto;
3159
- margin-left: auto;
3160
- }
3161
- input {
3162
- &[data-is-side='true'] {
3163
- ${MediaQueries.tdUp} {
3164
- font-size: 14px;
3165
- }
3166
- }
3167
- ${MediaQueries.mbDown} {
3168
- font-size: 14px;
3169
- }
3170
- ${MediaQueries.tdUp} {
3171
- font-size: 16px;
3172
- }
3173
- }
3174
- `;
3175
- styled.div `
3176
- display: flex;
3177
- align-items: right;
3154
+ const DueDateFormContext = createContext({});
3178
3155
 
3179
- & > p {
3180
- display: inline-block;
3181
- border-bottom: solid 1px ${theme.colors.primaryBase};
3182
- margin-bottom: 24px;
3183
- margin-left: auto;
3184
- color: ${theme.colors.primaryBase};
3185
- cursor: pointer;
3186
- font-size: 11px;
3187
- line-height: 16px;
3188
- text-align: right;
3189
- }
3190
- `;
3191
- const StyledImageIcon = styled.img `
3192
- img& {
3193
- width: 16px;
3194
- height: 16px;
3195
- }
3196
- `;
3197
- styled(StyledImageIcon) `
3198
- margin-right: 4px;
3199
- `;
3156
+ const ConceptionFormContext = createContext({});
3200
3157
 
3201
- const DueDateFormConception = ({ locale, onClick, siteType, pageUrl, }) => {
3158
+ const DefaultLayout$4 = () => {
3202
3159
  const { t } = useTranslations();
3203
- const [conceptionDate, setConceptionDate] = useState(new Date());
3160
+ const { form } = useContext(ConceptionFormContext);
3204
3161
  return (React__default.createElement(React__default.Fragment, null,
3205
- React__default.createElement(StyledLastPeriodFormContainer, { className: "input-form", "data-is-side": true }, siteType === 'marryBaby' ? (React__default.createElement(StyledTextField, { label: t('dueDatePage.conceptionDate'), name: "date", size: "md", value: DateToInputValue(conceptionDate), CustomInput: React__default.createElement(DatePicker, { onChange: (date) => {
3206
- setConceptionDate(date);
3207
- }, placeholder: "dd/mm/yyyy", pickedDate: conceptionDate, displayDateFormat: 'dd/MM/yyyy', disabledDays: {
3208
- before: new Date(new Date().getTime() - 40 * 7 * 24 * 3600000),
3209
- }, customInput: (props) => {
3210
- return (React__default.createElement(Input, Object.assign({ className: "due-date-input", name: "birthday", size: "md" }, props, { value: conceptionDate &&
3211
- dayjs(conceptionDate).format(DUE_DATE_FORMAT) })));
3212
- } }), actionIcon: React__default.createElement(CalendarMB, { size: 32 }) })) : (React__default.createElement(Input, { label: React__default.createElement(Text, { size: "s4", weight: "semiBold", color: theme.colors.gray600, style: { marginBottom: '9px', flex: '1' } }, t('dueDatePage.conceptionDate')), value: DateToInputValue(conceptionDate), name: "date", size: "md",
3213
- // type={'date' as 'text'}
3214
- className: "due-date-input",
3215
- // onChange={(value) => {
3216
- // setConceptionDate(new Date(value))
3217
- // }}
3218
- CustomInput: React__default.createElement(DatePicker, { customInput: (props) => (React__default.createElement("input", Object.assign({ type: "date", className: "due-date-input" }, props, { value: DateToInputValue(conceptionDate) }))), disabledDays: {
3219
- before: new Date(new Date().getTime() - 40 * 7 * 24 * 3600000),
3220
- }, locale: locale, pickedDate: conceptionDate, displayDateFormat: DATE_FORMAT, onChange: (date) => {
3221
- setConceptionDate(date);
3222
- }, placeholder: "placeholder" }) }))),
3223
- React__default.createElement(Button$1, { className: "due-date-calculate-button", size: "lg", variant: siteType === 'marryBaby' ? 'secondary' : 'primary', dataEventCategory: "Health Tool", dataEventAction: "Due Date", dataEventLabel: pageUrl, onClick: () => {
3224
- onClick(getDueDateConception(conceptionDate), `${QUERY_HEALTH_TOOL.type}=1&sd=${format(conceptionDate, API_DATE_FORMAT)}&${QUERY_HEALTH_TOOL.additional}= `);
3225
- }, role: "button" }, t('dueDatePage.lastPeriod.calculate'))));
3162
+ React__default.createElement(DatePicker, Object.assign({ label: t('dueDatePage.lastPeriod.lastPeriodLabel') }, form.getInputProps('lastPeriodDate'), { placeholder: 'DD/MM/YYYY', popoverProps: {
3163
+ withinPortal: true,
3164
+ }, maxDate: new Date() }))));
3226
3165
  };
3227
3166
 
3228
- const DueDateFormIVF = ({ locale, onClick, siteType, pageUrl }) => {
3167
+ const InlineLayout$4 = () => {
3229
3168
  const { t } = useTranslations();
3230
- const [IVFDate, setIVFDate] = useState(new Date());
3231
- const [dayTransfer, setDayTransfer] = useState('3');
3232
- return (React__default.createElement(React__default.Fragment, null,
3233
- React__default.createElement(StyledLastPeriodFormContainer, { className: "input-form", "data-is-side": true }, siteType === 'marryBaby' ? (React__default.createElement(StyledTextField, { label: t('dueDatePage.ivf.transferDate'), name: "date", size: "md", value: DateToInputValue(IVFDate), CustomInput: React__default.createElement(DatePicker, { onChange: (date) => {
3234
- setIVFDate(date);
3235
- }, placeholder: "dd/mm/yyyy", pickedDate: IVFDate, displayDateFormat: 'dd/MM/yyyy', disabledDays: {
3236
- before: new Date(new Date().getTime() - 40 * 7 * 24 * 3600000),
3237
- }, customInput: (props) => {
3238
- return (React__default.createElement(Input, Object.assign({ className: "due-date-input", name: "birthday", size: "md" }, props, { value: IVFDate && dayjs(IVFDate).format(DUE_DATE_FORMAT) })));
3239
- } }), actionIcon: React__default.createElement(CalendarMB, { size: 32 }) })) : (React__default.createElement(Input, { label: React__default.createElement(Text, { size: "s4", weight: "semiBold", color: theme.colors.gray700, style: { marginBottom: '9px', flex: '1' } }, t('dueDatePage.ivf.transferDate')), value: DateToInputValue(IVFDate), name: "date", size: "md",
3240
- // type={'date' as 'text'}
3241
- className: "due-date-input",
3242
- // onChange={(value) => {
3243
- // setIVFDate(new Date(value))
3244
- // }}
3245
- CustomInput: React__default.createElement(DatePicker, { customInput: (props) => (React__default.createElement("input", Object.assign({ type: "date", className: "due-date-input" }, props, { value: DateToInputValue(IVFDate) }))), disabledDays: {
3246
- before: new Date(new Date().getTime() - 40 * 7 * 24 * 3600000),
3247
- }, locale: locale, pickedDate: IVFDate, displayDateFormat: DATE_FORMAT, onChange: (date) => {
3248
- setIVFDate(date);
3249
- }, placeholder: "placeholder" }) }))),
3250
- React__default.createElement("div", { style: {
3251
- width: '100%',
3252
- } },
3253
- React__default.createElement(RadioGroup, { id: "radio-transfer-date", direction: "vertical", size: "small", value: dayTransfer, onChange: (val) => setDayTransfer(val), options: [
3254
- {
3255
- value: '3',
3256
- label: t('dueDatePage.ivf.transferDateRadio', {
3257
- number: 3,
3258
- }),
3259
- },
3260
- {
3261
- value: '5',
3262
- label: t('dueDatePage.ivf.transferDateRadio', {
3263
- number: 5,
3264
- }),
3265
- },
3266
- ] })),
3267
- React__default.createElement(Button$1, { className: "due-date-calculate-button", size: "lg", variant: siteType === 'marryBaby' ? 'secondary' : 'primary', dataEventCategory: "Health Tool", dataEventAction: "Due Date", dataEventLabel: pageUrl, onClick: () => {
3268
- onClick(getDueDateIVF(IVFDate, Number(dayTransfer)), `${QUERY_HEALTH_TOOL.type}=2&${QUERY_HEALTH_TOOL.startDate}=${format(IVFDate, API_DATE_FORMAT)}&${QUERY_HEALTH_TOOL.additional}=${dayTransfer}`);
3269
- }, role: "button" }, t('dueDatePage.lastPeriod.calculate'))));
3169
+ const { form } = useContext(ConceptionFormContext);
3170
+ return (React__default.createElement(HealthToolFormWrapper.FormRow, null,
3171
+ React__default.createElement(HealthToolFormWrapper.BorderInlineControl, { label: t('dueDatePage.lastPeriod.lastPeriodLabel') },
3172
+ React__default.createElement(DatePicker, Object.assign({}, form.getInputProps('lastPeriodDate'), { placeholder: 'DD/MM/YYYY', popoverProps: {
3173
+ withinPortal: true,
3174
+ }, maxDate: new Date(), error: null }))),
3175
+ form.errors.lastPeriodDate && (React__default.createElement(HealthToolFormWrapper.Error, null, form.errors.lastPeriodDate))));
3270
3176
  };
3271
3177
 
3272
- const DueDateFormLastPeriod = ({ locale, onClick, siteType, pageUrl, }) => {
3273
- const { t } = useTranslations();
3274
- const [periodLength, setPeriodLength] = useState(28);
3275
- const [lastPeriodDate, setLastPeriodDate] = useState(new Date());
3276
- return (React__default.createElement(React__default.Fragment, null,
3277
- React__default.createElement(StyledLastPeriodFormContainer, { className: "input-form", "data-is-side": true }, siteType === 'marryBaby' ? (React__default.createElement(StyledTextField, { label: t('dueDatePage.lastPeriod.lastPeriodLabel'), name: "date", size: "md", value: DateToInputValue(lastPeriodDate), CustomInput: React__default.createElement(DatePicker, { onChange: (date) => {
3278
- setLastPeriodDate(date);
3279
- }, placeholder: "dd/mm/yyyy", pickedDate: lastPeriodDate, displayDateFormat: 'dd/MM/yyyy', disabledDays: {
3280
- before: new Date(new Date().getTime() - 40 * 7 * 24 * 3600000),
3281
- }, customInput: (props) => {
3282
- return (React__default.createElement(Input, Object.assign({ name: "birthday", size: "md" }, props, { value: lastPeriodDate &&
3283
- dayjs(lastPeriodDate).format(DUE_DATE_FORMAT) })));
3284
- } }), actionIcon: React__default.createElement(CalendarMB, { size: 32 }) })) : (React__default.createElement(Input, { className: "input-section due-date-input", label: React__default.createElement(Text, { size: "s4", weight: "semiBold", color: theme.colors.gray600, style: { marginBottom: '9px', flex: '1' } }, t('dueDatePage.lastPeriod.lastPeriodLabel')), value: DateToInputValue(lastPeriodDate), name: "date", size: "md", CustomInput: React__default.createElement(DatePicker, { customInput: (props) => (React__default.createElement("input", Object.assign({ type: "date", className: "due-date-input" }, props, { value: DateToInputValue(lastPeriodDate) }))), disabledDays: {
3285
- before: new Date(new Date().getTime() - 40 * 7 * 24 * 3600000),
3286
- }, locale: locale, pickedDate: lastPeriodDate, displayDateFormat: DATE_FORMAT, onChange: (date) => {
3287
- setLastPeriodDate(date);
3288
- }, placeholder: "placeholder" }) }))),
3289
- React__default.createElement("div", { className: "slider-due-date", "data-theme": siteType === 'marryBaby' ? 'marryBaby' : '' },
3290
- siteType === 'marryBaby' ? (React__default.createElement(MarryBabyText, { type: "bodytext-3", color: theme.mbColors.midGray }, t('dueDatePage.lastPeriod.periodLengthLabel'))) : (React__default.createElement(Text, { size: "s4", weight: "semiBold", color: theme.colors.gray600, style: { marginBottom: '0.5rem' } }, t('dueDatePage.lastPeriod.periodLengthLabel'))),
3291
- React__default.createElement("div", { className: "slider-outer-wrapper" },
3292
- siteType === 'marryBaby' && (React__default.createElement(Text, { size: "s3", weight: "semiBold", color: theme.colors.gray600 }, periodLength)),
3293
- React__default.createElement(Slider, { containerStyle: {
3294
- flex: 1,
3295
- }, min: 20, max: 40, step: 1, labelAlwaysOn: siteType !== 'marryBaby', withControl: siteType !== 'marryBaby', onChange: setPeriodLength, value: periodLength, label: siteType !== 'marryBaby' ? undefined : null }))),
3296
- React__default.createElement(Button$1, { dataEventCategory: "Health Tool", dataEventAction: "Due Date", dataEventLabel: pageUrl, className: "due-date-calculate-button", size: "lg", variant: siteType === 'marryBaby' ? 'secondary' : 'primary', onClick: () => onClick(getDueDateLastPeriod(lastPeriodDate, periodLength), `${QUERY_HEALTH_TOOL.type}=0&${QUERY_HEALTH_TOOL.startDate}=${format(lastPeriodDate, API_DATE_FORMAT)}&${QUERY_HEALTH_TOOL.additional}=${periodLength}`), role: "button" }, t('dueDatePage.lastPeriod.calculate'))));
3178
+ var DueDateCalculatorType;
3179
+ (function (DueDateCalculatorType) {
3180
+ DueDateCalculatorType[DueDateCalculatorType["lastPeriod"] = 0] = "lastPeriod";
3181
+ DueDateCalculatorType[DueDateCalculatorType["conception"] = 1] = "conception";
3182
+ DueDateCalculatorType[DueDateCalculatorType["IVF"] = 2] = "IVF";
3183
+ })(DueDateCalculatorType || (DueDateCalculatorType = {}));
3184
+ const API_DATE_FORMAT = 'yyyy-MM-dd';
3185
+ const getDueDateLastPeriod = (lastPeriodDate, periodLength) => {
3186
+ const pregnancyLength = 272 + (periodLength - 21);
3187
+ const dueDate = new Date(lastPeriodDate);
3188
+ dueDate.setDate(dueDate.getDate() + pregnancyLength);
3189
+ return {
3190
+ startDate: lastPeriodDate,
3191
+ dueDate,
3192
+ otherInfo: {
3193
+ method: DueDateCalculatorType.lastPeriod + 1,
3194
+ first_day: format(lastPeriodDate, API_DATE_FORMAT),
3195
+ cycle_length_days: periodLength,
3196
+ conception_date: null,
3197
+ ivf_transfer_date: null,
3198
+ days_transfer: null,
3199
+ },
3200
+ };
3201
+ };
3202
+ const getDueDateConception = (conceptionDate) => {
3203
+ const dueDate = new Date(conceptionDate);
3204
+ dueDate.setDate(dueDate.getDate() + 265);
3205
+ return {
3206
+ startDate: conceptionDate,
3207
+ dueDate,
3208
+ otherInfo: {
3209
+ method: DueDateCalculatorType.conception + 1,
3210
+ conception_date: format(conceptionDate, API_DATE_FORMAT),
3211
+ first_day: null,
3212
+ cycle_length_days: null,
3213
+ ivf_transfer_date: null,
3214
+ days_transfer: null,
3215
+ },
3216
+ };
3217
+ };
3218
+ const getDueDateIVF = (IVFDate, numDayTransfer) => {
3219
+ const dueDate = new Date(IVFDate);
3220
+ dueDate.setDate(dueDate.getDate() + 265 - numDayTransfer);
3221
+ return {
3222
+ startDate: IVFDate,
3223
+ dueDate,
3224
+ otherInfo: {
3225
+ method: DueDateCalculatorType.IVF + 1,
3226
+ ivf_transfer_date: format(IVFDate, API_DATE_FORMAT),
3227
+ days_transfer: numDayTransfer,
3228
+ conception_date: null,
3229
+ first_day: null,
3230
+ cycle_length_days: null,
3231
+ },
3232
+ };
3297
3233
  };
3298
3234
 
3299
- styled.div `
3300
- &[data-is-side='true'] {
3301
- width: 100%;
3302
- margin-bottom: 0;
3303
- }
3304
- ${MediaQueries.mbDown} {
3305
- width: 100%;
3306
- margin-bottom: 0;
3307
- }
3308
-
3309
- margin-bottom: 24px;
3310
-
3311
- & > :not(:last-child) {
3312
- margin-bottom: 8px;
3313
- }
3314
-
3315
- .gender-selector {
3316
- & > :not(:last-child) {
3317
- margin-right: 16px;
3318
- }
3319
-
3320
- & > div {
3321
- width: calc(50% - 8px);
3322
-
3323
- ${MediaQueries.mbUp} {
3324
- max-width: 186px;
3325
- justify-self: left;
3326
- }
3327
- }
3328
- }
3329
- `;
3330
- styled.div `
3331
- margin-bottom: 20px;
3332
- width: 100%;
3333
-
3334
- & > :not(:last-child) {
3335
- margin-bottom: 8px;
3336
- }
3337
- .gender-selector {
3338
- & > div {
3339
- width: calc(50% - 8px);
3340
- }
3341
- }
3342
- `;
3343
- styled.div `
3344
- width: 100%;
3345
- display: flex;
3346
- justify-content: center;
3347
- ${MediaQueries.mbUp} {
3348
- padding: 0 16px;
3349
- &[data-is-side='true'] {
3350
- margin-top: 24px;
3351
- }
3352
- }
3353
-
3354
- ${MediaQueries.mbDown} {
3355
- margin-top: 24px;
3356
- &[data-site='marryBaby'] {
3357
- margin-top: 12px;
3358
- }
3359
- }
3360
- & > :not(:last-child) {
3361
- margin-bottom: 8px;
3362
- }
3363
-
3364
- button {
3365
- width: 100%;
3366
- margin: auto;
3367
- ${MediaQueries.mbUp} {
3368
- max-width: 200px;
3369
- }
3370
- }
3371
- `;
3372
- const StyledInputWrapper = styled.div `
3373
- width: 100%;
3374
- display: flex;
3375
- flex-wrap: wrap;
3376
- justify-content: space-between;
3377
- .input-section {
3378
- display: flex;
3379
- flex-direction: column;
3380
- }
3235
+ const ConceptionForm = ({}) => {
3236
+ const { formLayout, onSubmit, currentUrl, submitProps } = useContext(DueDateFormContext);
3237
+ const { t } = useTranslations();
3238
+ const form = useForm({
3239
+ initialValues: {
3240
+ lastPeriodDate: new Date(),
3241
+ },
3242
+ });
3243
+ const formProps = {
3244
+ onSubmit: form.onSubmit((values) => {
3245
+ const { lastPeriodDate } = values;
3246
+ onSubmit(getDueDateConception(lastPeriodDate), `${QUERY_HEALTH_TOOL.type}=1&sd=${dayjs(lastPeriodDate).format(API_DATE_FORMAT$1)}&${QUERY_HEALTH_TOOL.additional}= `);
3247
+ }),
3248
+ };
3249
+ return (React__default.createElement(ConceptionFormContext.Provider, { value: { form } },
3250
+ React__default.createElement(HealthToolFormWrapper, Object.assign({ formLayout: formLayout }, formProps),
3251
+ formLayout === 'default' ? React__default.createElement(DefaultLayout$4, null) : React__default.createElement(InlineLayout$4, null),
3252
+ React__default.createElement(HealthToolFormWrapper.Submit, Object.assign({ dataEventCategory: "Health Tool", dataEventAction: "Due Date", dataEventLabel: currentUrl, className: "due-date-calculate-button", type: "submit" }, submitProps), t('dueDatePage.lastPeriod.calculate')))));
3253
+ };
3381
3254
 
3382
- ${MediaQueries.mbDown} {
3383
- flex-direction: column;
3384
- .input-section {
3385
- width: 100%;
3386
- }
3387
- }
3388
- `;
3389
- styled.div `
3390
- position: relative;
3391
- width: calc(50% - 8px);
3255
+ const IVFFormContext = createContext({});
3392
3256
 
3393
- &[data-is-side='true'] {
3394
- .label {
3395
- margin-bottom: 9px;
3396
- }
3397
- }
3398
- ${MediaQueries.mbDown} {
3399
- .label {
3400
- margin-bottom: 9px;
3401
- }
3402
- }
3403
- margin-bottom: 24px;
3404
- #weight-gain-dropdown {
3405
- z-index: 9;
3406
- width: 100%;
3407
- min-width: unset;
3408
- max-width: unset;
3409
- color: ${theme.colors.gray800};
3410
- & > ul {
3411
- z-index: 1;
3412
- max-height: 300px;
3413
- overflow-y: scroll;
3414
- }
3415
- }
3416
- `;
3417
- styled.div `
3418
- margin-bottom: 24px;
3419
- width: 100%;
3257
+ const DefaultLayout$3 = () => {
3258
+ const { t } = useTranslations();
3259
+ const { form, transferDateOptions } = useContext(IVFFormContext);
3260
+ return (React__default.createElement(React__default.Fragment, null,
3261
+ React__default.createElement(DatePicker, Object.assign({ label: t('dueDatePage.ivf.transferDate') }, form.getInputProps('IVFDate'), { placeholder: 'DD/MM/YYYY', popoverProps: {
3262
+ withinPortal: true,
3263
+ }, maxDate: new Date() })),
3264
+ React__default.createElement(Radio$1.Group, Object.assign({}, form.getInputProps('dayTransfer')),
3265
+ React__default.createElement(Group, null, transferDateOptions.map((i, idx) => (React__default.createElement(Radio$1, { key: idx, value: i.value, label: i.label })))))));
3266
+ };
3420
3267
 
3421
- ${MediaQueries.mbUp} {
3422
- padding: 0 16px;
3423
- }
3424
- .card {
3425
- display: flex;
3426
- align-items: center;
3427
- justify-content: space-between;
3268
+ const InlineLayout$3 = () => {
3269
+ const { t } = useTranslations();
3270
+ const { form, transferDateOptions } = useContext(IVFFormContext);
3271
+ return (React__default.createElement(React__default.Fragment, null,
3272
+ React__default.createElement(HealthToolFormWrapper.BorderInlineControl, { label: t('dueDatePage.ivf.transferDate') },
3273
+ React__default.createElement(DatePicker, Object.assign({}, form.getInputProps('IVFDate'), { placeholder: 'DD/MM/YYYY', popoverProps: {
3274
+ withinPortal: true,
3275
+ }, maxDate: new Date() }))),
3276
+ React__default.createElement(HealthToolFormWrapper.BorderInlineControl, { width: 'none' },
3277
+ React__default.createElement(Radio$1.Group, Object.assign({}, form.getInputProps('dayTransfer')),
3278
+ React__default.createElement(Group, null, transferDateOptions.map((i, idx) => (React__default.createElement(Radio$1, { key: idx, value: i.value, label: i.label }))))))));
3279
+ };
3428
3280
 
3429
- & > :not(:last-child) {
3430
- margin-bottom: 8px;
3431
- }
3281
+ const IVFForm = ({}) => {
3282
+ var _a;
3283
+ const { formLayout, onSubmit, currentUrl, submitProps } = useContext(DueDateFormContext);
3284
+ const { t } = useTranslations();
3285
+ const transferDateOptions = [
3286
+ {
3287
+ value: '3',
3288
+ label: t('dueDatePage.ivf.transferDateRadio', {
3289
+ number: 3,
3290
+ }),
3291
+ },
3292
+ {
3293
+ value: '5',
3294
+ label: t('dueDatePage.ivf.transferDateRadio', {
3295
+ number: 5,
3296
+ }),
3297
+ },
3298
+ ];
3299
+ const form = useForm({
3300
+ initialValues: {
3301
+ IVFDate: new Date(),
3302
+ dayTransfer: (_a = transferDateOptions === null || transferDateOptions === void 0 ? void 0 : transferDateOptions[0]) === null || _a === void 0 ? void 0 : _a.value,
3303
+ },
3304
+ });
3305
+ const formProps = {
3306
+ onSubmit: form.onSubmit((values) => {
3307
+ const { IVFDate } = values;
3308
+ const dayTransfer = Number(values.dayTransfer);
3309
+ onSubmit(getDueDateIVF(IVFDate, Number(dayTransfer)), `${QUERY_HEALTH_TOOL.type}=2&${QUERY_HEALTH_TOOL.startDate}=${dayjs(IVFDate).format(API_DATE_FORMAT$1)}&${QUERY_HEALTH_TOOL.additional}=${dayTransfer}`);
3310
+ }),
3311
+ };
3312
+ return (React__default.createElement(IVFFormContext.Provider, { value: { form, transferDateOptions } },
3313
+ React__default.createElement(HealthToolFormWrapper, Object.assign({ formLayout: formLayout }, formProps),
3314
+ formLayout === 'default' ? React__default.createElement(DefaultLayout$3, null) : React__default.createElement(InlineLayout$3, null),
3315
+ React__default.createElement(HealthToolFormWrapper.Submit, Object.assign({ dataEventCategory: "Health Tool", dataEventAction: "Due Date", dataEventLabel: currentUrl, className: "due-date-calculate-button", type: "submit" }, submitProps), t('dueDatePage.lastPeriod.calculate')))));
3316
+ };
3432
3317
 
3433
- .gender-selector {
3434
- row-gap: 12px;
3318
+ const LastPeriodFormContext = createContext({});
3435
3319
 
3436
- & > :not(:last-child) {
3437
- margin-right: 16px;
3438
- }
3320
+ const DefaultLayout$2 = () => {
3321
+ const { t } = useTranslations();
3322
+ const { form } = useContext(LastPeriodFormContext);
3323
+ return (React__default.createElement(React__default.Fragment, null,
3324
+ React__default.createElement(DatePicker, Object.assign({ label: t('dueDatePage.lastPeriod.lastPeriodLabel') }, form.getInputProps('lastPeriodDate'), { placeholder: 'DD/MM/YYYY', popoverProps: {
3325
+ withinPortal: true,
3326
+ }, maxDate: new Date() })),
3327
+ React__default.createElement(Input$1.Wrapper, { label: t('dueDatePage.lastPeriod.periodLengthLabel') },
3328
+ React__default.createElement(Input$1.Number, Object.assign({ min: 20, max: 40, placeholder: t('tools.inputPlaceholder', {
3329
+ content: '30',
3330
+ }) }, form.getInputProps('periodLength'))))));
3331
+ };
3439
3332
 
3440
- & > div {
3441
- ${MediaQueries.mbUp} {
3442
- width: calc(18% - 4px);
3443
- max-width: 186px;
3444
- justify-self: left;
3445
- }
3333
+ const InlineLayout$2 = () => {
3334
+ const { t } = useTranslations();
3335
+ const { form } = useContext(LastPeriodFormContext);
3336
+ return (React__default.createElement(React__default.Fragment, null,
3337
+ React__default.createElement(HealthToolFormWrapper.BorderInlineControl, { label: t('dueDatePage.lastPeriod.lastPeriodLabel') },
3338
+ React__default.createElement(DatePicker, Object.assign({}, form.getInputProps('lastPeriodDate'), { placeholder: 'DD/MM/YYYY', popoverProps: {
3339
+ withinPortal: true,
3340
+ }, maxDate: new Date() }))),
3341
+ React__default.createElement(HealthToolFormWrapper.BorderInlineControl, { label: t('dueDatePage.lastPeriod.periodLengthLabel') },
3342
+ React__default.createElement(Input$1.Number, Object.assign({ min: 20, max: 40, placeholder: t('tools.inputPlaceholder', {
3343
+ content: '30',
3344
+ }) }, form.getInputProps('periodLength'))))));
3345
+ };
3446
3346
 
3447
- ${MediaQueries.mbDown} {
3448
- width: calc(31% - 8px);
3449
- max-width: 109px;
3450
- justify-self: left;
3451
- }
3452
- }
3453
- }
3347
+ const LastPeriodForm = ({}) => {
3348
+ const { formLayout, onSubmit, currentUrl, submitProps } = useContext(DueDateFormContext);
3349
+ const { t } = useTranslations();
3350
+ const form = useForm({
3351
+ initialValues: {
3352
+ lastPeriodDate: new Date(),
3353
+ },
3354
+ validate: {
3355
+ periodLength: isNotEmpty(t('validation.error.requiredField')),
3356
+ },
3357
+ });
3358
+ const formProps = {
3359
+ onSubmit: form.onSubmit((values) => {
3360
+ const { periodLength, lastPeriodDate } = values;
3361
+ onSubmit(getDueDateLastPeriod(lastPeriodDate, periodLength), `${QUERY_HEALTH_TOOL.type}=0&${QUERY_HEALTH_TOOL.startDate}=${dayjs(lastPeriodDate).format(API_DATE_FORMAT$1)}&${QUERY_HEALTH_TOOL.additional}=${periodLength}`);
3362
+ }),
3363
+ };
3364
+ return (React__default.createElement(LastPeriodFormContext.Provider, { value: { form } },
3365
+ React__default.createElement(HealthToolFormWrapper, Object.assign({ formLayout: formLayout }, formProps),
3366
+ formLayout === 'default' ? React__default.createElement(DefaultLayout$2, null) : React__default.createElement(InlineLayout$2, null),
3367
+ React__default.createElement(HealthToolFormWrapper.Submit, Object.assign({ dataEventCategory: "Health Tool", dataEventAction: "Due Date", dataEventLabel: currentUrl, className: "due-date-calculate-button", type: "submit" }, submitProps), t('dueDatePage.lastPeriod.calculate')))));
3368
+ };
3454
3369
 
3455
- .gender-image {
3456
- width: 23px;
3457
- height: 36px;
3458
- object-fit: contain;
3459
- }
3460
- }
3461
- .note {
3462
- display: flex;
3463
- align-items: center;
3464
- padding-top: 8px;
3465
- padding-bottom: 16px;
3466
- }
3467
- `;
3370
+ const FormSwitcher = () => {
3371
+ const { calculatorType } = useContext(DueDateFormContext);
3372
+ return calculatorType === DueDateCalculatorType.lastPeriod ? (React__default.createElement(LastPeriodForm, null)) : calculatorType === DueDateCalculatorType.conception ? (React__default.createElement(ConceptionForm, null)) : calculatorType === DueDateCalculatorType.IVF ? (React__default.createElement(IVFForm, null)) : null;
3373
+ };
3468
3374
 
3469
- const DueDateCalculator = ({ onSubmitDueDate, locale, isSide, siteType, }) => {
3375
+ var OvulationCalculatorType$2;
3376
+ (function (OvulationCalculatorType) {
3377
+ OvulationCalculatorType[OvulationCalculatorType["trackPeriod"] = 0] = "trackPeriod";
3378
+ OvulationCalculatorType[OvulationCalculatorType["conceive"] = 1] = "conceive";
3379
+ OvulationCalculatorType[OvulationCalculatorType["avoidPregnancy"] = 2] = "avoidPregnancy";
3380
+ })(OvulationCalculatorType$2 || (OvulationCalculatorType$2 = {}));
3381
+ const DueDateForm = (_a) => {
3382
+ var { formLayout = 'default', submitProps, currentUrl, isMobile, onSubmit } = _a, props = __rest(_a, ["formLayout", "submitProps", "currentUrl", "isMobile", "onSubmit"]);
3470
3383
  const { t } = useTranslations();
3471
- const [calculatorType, setCalculatorType] = useState(DueDateCalculatorType.lastPeriod);
3384
+ const [calculatorType, setCalculatorType] = useState(DueDateCalculatorType$1.lastPeriod);
3472
3385
  const calculatingMethods = [
3473
3386
  {
3474
- value: DueDateCalculatorType.lastPeriod,
3387
+ value: DueDateCalculatorType$1.lastPeriod,
3475
3388
  label: t('dueDatePage.lastPeriod'),
3389
+ icon: React__default.createElement(LastPeriod, null),
3476
3390
  },
3477
3391
  {
3478
- value: DueDateCalculatorType.conception,
3392
+ value: DueDateCalculatorType$1.conception,
3479
3393
  label: t('dueDatePage.conceptionDate'),
3394
+ icon: React__default.createElement(ConceptionDate, null),
3480
3395
  },
3481
3396
  {
3482
- value: DueDateCalculatorType.IVF,
3397
+ value: DueDateCalculatorType$1.IVF,
3483
3398
  label: t('dueDatePage.ivf'),
3399
+ icon: React__default.createElement(IVF, null),
3484
3400
  },
3485
3401
  ];
3486
- const currentUrl = useMemo(() => {
3487
- if (typeof window !== 'undefined') {
3488
- return window.location.href;
3489
- }
3490
- else
3491
- return '';
3492
- }, []);
3493
- return (React__default.createElement(StyledInputWrapper, null,
3494
- React__default.createElement(StyledMethodContainer, { className: "input-form input-section", "data-is-side": true }, siteType === 'marryBaby' ? (React__default.createElement(StyledDropDown, { groupedWithLabel: t('dueDatePage.calculationMethod'), options: calculatingMethods, placeholder: t('dueDatePage.lastPeriod'), id: "due-date-dropdown", size: "lg", value: calculatingMethods[calculatorType], onChange: (o) => {
3495
- setCalculatorType(o.value);
3496
- } })) : (React__default.createElement(React__default.Fragment, null,
3497
- React__default.createElement(Text, { size: "s4", weight: "semiBold", color: theme.colors.gray600, style: { marginBottom: '9px', flex: '1' } }, t('dueDatePage.calculationMethod')),
3498
- React__default.createElement(StyledMethodSwitcherContainer, { "data-is-side": isSide },
3499
- React__default.createElement(Dropdown, { options: calculatingMethods, placeholder: t('dueDatePage.lastPeriod'), id: "due-date-dropdown", size: "md", value: calculatingMethods[calculatorType], onChange: (o) => {
3500
- setCalculatorType(o.value);
3501
- } }))))),
3502
- calculatorType === DueDateCalculatorType.lastPeriod ? (React__default.createElement(DueDateFormLastPeriod, { locale: locale, onClick: onSubmitDueDate, isSide: isSide, siteType: siteType, pageUrl: currentUrl })) : null,
3503
- calculatorType === DueDateCalculatorType.conception ? (React__default.createElement(DueDateFormConception, { locale: locale, onClick: onSubmitDueDate, isSide: isSide, siteType: siteType, pageUrl: currentUrl })) : null,
3504
- calculatorType === DueDateCalculatorType.IVF ? (React__default.createElement(DueDateFormIVF, { locale: locale, onClick: onSubmitDueDate, isSide: isSide, siteType: siteType, pageUrl: currentUrl })) : null));
3402
+ return (React__default.createElement(DueDateFormContext.Provider, { value: {
3403
+ calculatingMethods,
3404
+ submitProps,
3405
+ currentUrl,
3406
+ isMobile,
3407
+ formLayout,
3408
+ onSubmit,
3409
+ calculatorType,
3410
+ setCalculatorType,
3411
+ } },
3412
+ React__default.createElement(HealthToolFormWrapper, Object.assign({ component: "div", formLayout: "default" }, props),
3413
+ React__default.createElement(Input$1.Wrapper, { label: t('dueDatePage.calculationMethod') },
3414
+ React__default.createElement(HealthToolFormWrapper.ChipGroup, { isMobile: isMobile, data: calculatingMethods, defaultValue: String(DueDateCalculatorType$1.lastPeriod), onChange: (v) => setCalculatorType(Number(v)) })),
3415
+ React__default.createElement(FormSwitcher, null))));
3505
3416
  };
3506
3417
 
3507
- var useStyles$5 = createStyles(() => {
3418
+ var useStyles$4 = createStyles(() => {
3508
3419
  return {
3509
3420
  root: {
3510
3421
  borderTopLeftRadius: 'inherit',
@@ -3517,7 +3428,7 @@ const CardWrapperContext = createContext({});
3517
3428
 
3518
3429
  const Banner = (_a) => {
3519
3430
  var { styles, classNames, className } = _a, rest = __rest(_a, ["styles", "classNames", "className"]);
3520
- const { classes, cx } = useStyles$5(undefined, {
3431
+ const { classes, cx } = useStyles$4(undefined, {
3521
3432
  name: 'HealthToolCardWrapper__Banner',
3522
3433
  styles,
3523
3434
  classNames,
@@ -3526,7 +3437,7 @@ const Banner = (_a) => {
3526
3437
  return (React__default.createElement(ToolsBannerCard, Object.assign({ isPregTool: isPregTool, className: cx(className, classes.root) }, rest)));
3527
3438
  };
3528
3439
 
3529
- var useStyles$4 = createStyles(() => {
3440
+ var useStyles$3 = createStyles(() => {
3530
3441
  return {
3531
3442
  root: {
3532
3443
  padding: rem(16),
@@ -3536,7 +3447,7 @@ var useStyles$4 = createStyles(() => {
3536
3447
 
3537
3448
  const Body = (_a) => {
3538
3449
  var { children, styles, classNames, className } = _a, rest = __rest(_a, ["children", "styles", "classNames", "className"]);
3539
- const { classes, cx } = useStyles$4(undefined, {
3450
+ const { classes, cx } = useStyles$3(undefined, {
3540
3451
  name: 'HealthToolCardWrapper',
3541
3452
  styles,
3542
3453
  classNames,
@@ -3544,7 +3455,7 @@ const Body = (_a) => {
3544
3455
  return (React__default.createElement(Box, Object.assign({ className: cx(className, classes.root) }, rest), children));
3545
3456
  };
3546
3457
 
3547
- var useStyles$3 = createStyles((theme, { isPregTool }) => {
3458
+ var useStyles$2 = createStyles((theme, { isPregTool }) => {
3548
3459
  const isMarryBaby = theme.other.template === 'mb';
3549
3460
  return {
3550
3461
  root: {
@@ -3623,7 +3534,7 @@ var useStyles$3 = createStyles((theme, { isPregTool }) => {
3623
3534
 
3624
3535
  const _HealthToolCardWrapper = (_a) => {
3625
3536
  var { children, styles, classNames, className, isPregTool } = _a, rest = __rest(_a, ["children", "styles", "classNames", "className", "isPregTool"]);
3626
- const { classes, cx } = useStyles$3({ isPregTool }, {
3537
+ const { classes, cx } = useStyles$2({ isPregTool }, {
3627
3538
  name: 'HealthToolCardWrapper',
3628
3539
  styles,
3629
3540
  classNames,
@@ -3637,268 +3548,19 @@ const HealthToolCardWrapper = _HealthToolCardWrapper;
3637
3548
  HealthToolCardWrapper.Body = Body;
3638
3549
  HealthToolCardWrapper.Banner = Banner;
3639
3550
 
3640
- const StyledContent = setDefaultClass(styled.form `
3641
- margin: auto;
3642
- ${MediaQueries.mbUp} {
3643
- width: 100%;
3644
- padding: 20px;
3645
- display: flex;
3646
- justify-content: space-between;
3647
- flex-wrap: wrap;
3648
- }
3649
- ${MediaQueries.mbDown} {
3650
- padding: 16px;
3651
- }
3652
- .due-date-calculate-button {
3653
- width: 100%;
3654
- margin: 12px auto 0;
3655
- ${MediaQueries.mbUp} {
3656
- max-width: 200px;
3657
- }
3658
- }
3659
- &[data-is-side='true'] {
3660
- ${MediaQueries.mbUp} {
3661
- padding: 24px 40px 0px 40px;
3662
- }
3663
- }
3664
- .input-weight-form {
3665
- display: flex;
3666
- flex-wrap: wrap;
3667
- justify-content: space-between;
3668
- padding: 0 16px;
3669
- }
3670
- .input-form {
3671
- display: flex;
3672
-
3673
- ${MediaQueries.mbUp} {
3674
- margin-bottom: 24px;
3675
- width: calc(50% - 8px);
3676
- }
3677
- &[data-is-side='true'] {
3678
- ${MediaQueries.mbUp} {
3679
- margin-bottom: 8px;
3680
- width: 100%;
3681
- }
3682
- }
3683
- ${MediaQueries.mbDown} {
3684
- margin-bottom: 8px;
3685
- }
3686
- .label-text {
3687
- overflow: hidden;
3688
- text-overflow: ellipsis;
3689
- -webkit-line-clamp: 2;
3690
- display: -webkit-box;
3691
- -webkit-box-orient: vertical;
3692
- }
3693
- }
3694
- .input-form-pwg {
3695
- display: flex;
3696
- width: calc(50% - 8px);
3697
-
3698
- ${MediaQueries.mbUp} {
3699
- margin-bottom: 24px;
3700
- }
3701
- &[data-is-side='true'] {
3702
- ${MediaQueries.mbUp} {
3703
- margin-bottom: 8px;
3704
- }
3705
- }
3706
- ${MediaQueries.mbDown} {
3707
- margin-bottom: 8px;
3708
- width: 100%;
3709
- }
3710
- .label-text {
3711
- overflow: hidden;
3712
- text-overflow: ellipsis;
3713
- -webkit-line-clamp: 2;
3714
- display: -webkit-box;
3715
- -webkit-box-orient: vertical;
3716
- }
3717
- }
3718
- .day-slider {
3719
- width: 100%;
3720
- ${MediaQueries.mbUp} {
3721
- width: calc(50% - 8px);
3722
- &[data-is-side='true'] {
3723
- width: 100%;
3724
- }
3725
- }
3726
- }
3727
- `, 'hhgcomp-embedtoolcard-content');
3728
- styled.div `
3729
- padding: 0;
3730
- background-color: white;
3731
- border: 1px solid #e4e8ec;
3732
- border-radius: 4px;
3733
-
3734
- &[data-site='marryBaby'] {
3735
- background-color: ${theme.mbColors.green};
3736
- border-radius: 16px;
3737
- }
3738
- .due-date-cal {
3739
- ${StyledContent.classSelector} {
3740
- ${MediaQueries.mbUp} {
3741
- padding: 24px;
3742
- }
3743
- ${MediaQueries.mbDown} {
3744
- padding: 16px;
3745
- }
3746
- }
3747
- display: table;
3748
- width: 100%;
3749
- .slider-due-date {
3750
- margin-bottom: 12px;
3751
- width: 100%;
3752
- margin-left: 0px;
3753
- margin-right: 0px;
3754
- .slider-outer-wrapper {
3755
- margin: 2rem -0.5rem 1rem;
3756
- }
3757
- &[data-theme='marryBaby'] {
3758
- padding: 1rem;
3759
- background: white;
3760
- border-radius: 1rem;
3761
- .slider-outer-wrapper {
3762
- gap: 12px;
3763
- display: flex;
3764
- align-items: center;
3765
- margin: 0.5rem;
3766
- }
3767
- }
3768
- }
3769
- .input-form {
3770
- display: flex;
3771
- ${MediaQueries.mbUp} {
3772
- width: calc(50% - 8px);
3773
- margin-bottom: 24px;
3774
- }
3775
- &[data-is-side='true'] {
3776
- ${MediaQueries.mbUp} {
3777
- margin-bottom: 12px;
3778
- width: 100%;
3779
- }
3780
- }
3781
- ${MediaQueries.mbDown} {
3782
- margin-bottom: 8px;
3783
- }
3784
- }
3785
- }
3786
- .heart-rate-cal {
3787
- .slider-heart-rate {
3788
- margin-bottom: 12px;
3789
- width: 100%;
3790
- margin-left: 0px;
3791
- margin-right: 0px;
3792
- .slider-outer-wrapper {
3793
- margin: 2rem -0.5rem 1rem;
3794
- }
3795
- }
3796
- }
3797
- .ovulation-cal {
3798
- display: flex;
3799
- /* padding-top: 24px; */
3800
- justify-content: space-between;
3801
- flex-wrap: wrap;
3802
- .slider-ovulation {
3803
- margin-bottom: 12px;
3804
- /* width: 100%; */
3805
- margin-left: 0px;
3806
- margin-right: 0px;
3807
- .slider-outer-wrapper {
3808
- margin: 2rem -0.5rem 1rem;
3809
- }
3810
- &[data-theme='marryBaby'] {
3811
- padding: 1rem;
3812
- background: white;
3813
- border-radius: 1rem;
3814
- .slider-outer-wrapper {
3815
- gap: 12px;
3816
- display: flex;
3817
- align-items: center;
3818
- margin: 0.5rem;
3819
- }
3820
- }
3821
- }
3822
- .input-form {
3823
- display: flex;
3824
- ${MediaQueries.mbUp} {
3825
- width: calc(50% - 8px);
3826
- margin-bottom: 24px;
3827
- &[data-is-side='true'] {
3828
- margin-bottom: 12px;
3829
- width: 100%;
3830
- }
3831
- }
3832
- ${MediaQueries.mbDown} {
3833
- margin-bottom: 8px;
3834
- }
3835
- }
3836
- }
3837
- .pwg-view-mobile {
3838
- &[data-is-side='true'] {
3839
- display: flex;
3840
- flex-wrap: wrap;
3841
- justify-content: space-between;
3842
- }
3843
- ${MediaQueries.mbDown} {
3844
- display: flex;
3845
- flex-wrap: wrap;
3846
- justify-content: space-between;
3847
- padding: 16px 0;
3848
- }
3849
- .hide-asking-mobile {
3850
- gap: 10px;
3851
- &[data-is-side='true'] {
3852
- ${MediaQueries.mbUp} {
3853
- display: none;
3854
- }
3855
- }
3856
- ${MediaQueries.mbDown} {
3857
- display: none;
3858
- }
3859
- }
3860
- .hide-asking-desk {
3861
- gap: 10px;
3862
- &[data-is-side='true'] {
3863
- ${MediaQueries.mbUp} {
3864
- display: unset;
3865
- }
3866
- }
3867
- ${MediaQueries.mbUp} {
3868
- display: none;
3869
- }
3870
- }
3871
- }
3872
- input[type='date']::after {
3873
- width: 16px;
3874
- height: 16px;
3875
- background-image: url('https://hellobacsi.com/svg/calendar.svg');
3876
- background-repeat: no-repeat;
3877
- background-size: contain;
3878
- content: '';
3879
- }
3880
- `;
3881
- styled(RadioGroup) `
3882
- &[data-direction='horizontal'] div[data-type='circle'] {
3883
- margin-right: 8px;
3884
- }
3885
- label {
3886
- font-size: 14px;
3887
- }
3888
- `;
3889
-
3890
- const DueDateCardEmbed = ({ locale, onSubmitDueDate, dueDatePageInfo, expertUrl, isSide, siteType, }) => {
3891
- var _a;
3551
+ const DueDateCardEmbed = (_a) => {
3552
+ var _b;
3553
+ var { dueDatePageInfo, expertUrl, formProps } = _a, props = __rest(_a, ["dueDatePageInfo", "expertUrl", "formProps"]);
3892
3554
  const { t } = useTranslations();
3893
- return (React__default.createElement(HealthToolCardWrapper, { isPregTool: true },
3894
- React__default.createElement(HealthToolCardWrapper.Banner, { bannerColor: siteType === 'marryBaby' && theme.mbColors.mint, color: "pink", icon: React__default.createElement("img", { alt: "health-tool-icon", src: (dueDatePageInfo === null || dueDatePageInfo === void 0 ? void 0 : dueDatePageInfo.featured_image) ||
3555
+ return (React__default.createElement(HealthToolCardWrapper, Object.assign({ isPregTool: true }, props),
3556
+ React__default.createElement(HealthToolCardWrapper.Banner, { color: "pink", icon: React__default.createElement("img", { alt: "health-tool-icon", src: (dueDatePageInfo === null || dueDatePageInfo === void 0 ? void 0 : dueDatePageInfo.featured_image) ||
3895
3557
  CommonGAssets.getAssetPath('health-tools/due-date-icon.svg'), loading: "lazy" }), heading: t('healthTools.dueDateCalculator'), medicalReview: {
3896
3558
  link: expertUrl,
3897
- reviewer: (_a = dueDatePageInfo === null || dueDatePageInfo === void 0 ? void 0 : dueDatePageInfo.reviewed_by) === null || _a === void 0 ? void 0 : _a.display_name,
3559
+ reviewer: (_b = dueDatePageInfo === null || dueDatePageInfo === void 0 ? void 0 : dueDatePageInfo.reviewed_by) === null || _b === void 0 ? void 0 : _b.display_name,
3898
3560
  date: dueDatePageInfo === null || dueDatePageInfo === void 0 ? void 0 : dueDatePageInfo.reviewed_date,
3899
3561
  } }),
3900
- React__default.createElement(StyledContent, { onSubmit: (e) => e.preventDefault(), className: "due-date-cal", "data-is-side": isSide },
3901
- React__default.createElement(DueDateCalculator, { siteType: siteType, locale: locale, onSubmitDueDate: onSubmitDueDate, isSide: isSide }))));
3562
+ React__default.createElement(HealthToolCardWrapper.Body, null,
3563
+ React__default.createElement(DueDateForm, Object.assign({}, formProps)))));
3902
3564
  };
3903
3565
 
3904
3566
  const BmiFormContext = createContext({});
@@ -3989,7 +3651,7 @@ function getBmi({ weight: weightProps, height: heightProps, }) {
3989
3651
  const BmiForm = (_a) => {
3990
3652
  var { value: valueProps, onChange: onChangeProps, onSubmit: onSubmitProps, bmiGenerated, bmiUnit, formLayout = 'default', submitProps } = _a, rest = __rest(_a, ["value", "onChange", "onSubmit", "bmiGenerated", "bmiUnit", "formLayout", "submitProps"]);
3991
3653
  const [isTouched, setIsTouched] = useState(false);
3992
- const { control, handleSubmit, setValue, watch } = useForm();
3654
+ const { control, handleSubmit, setValue, watch } = useForm$1();
3993
3655
  const data = watch();
3994
3656
  const { locale } = useTranslations();
3995
3657
  const { getHealthToolLink } = useHealthToolsCache(locale);
@@ -4062,7 +3724,7 @@ const BabyGrowthCardEmbed = (_a) => {
4062
3724
  React__default.createElement(BabyGrowthForm, Object.assign({ schema: schema, onError: onError }, formProps)))));
4063
3725
  };
4064
3726
 
4065
- var useStyles$2 = createStyles((theme, { hasOnClickFn }) => {
3727
+ var useStyles$1 = createStyles((theme, { hasOnClickFn }) => {
4066
3728
  return {
4067
3729
  root: {
4068
3730
  position: 'relative',
@@ -4098,7 +3760,7 @@ const BabyPoopForm = (_a) => {
4098
3760
  const { t } = useTranslations();
4099
3761
  const _theme = useMantineTheme();
4100
3762
  const isMarryBaby = _theme.other.template === 'mb';
4101
- const { classes } = useStyles$2({ hasOnClickFn: Boolean(onClickFindOut) }, { name: 'BabyPoopForm', styles, classNames });
3763
+ const { classes } = useStyles$1({ hasOnClickFn: Boolean(onClickFindOut) }, { name: 'BabyPoopForm', styles, classNames });
4102
3764
  return (React__default.createElement(Box, Object.assign({ className: classes.root }, props),
4103
3765
  sponsorLogo && (React__default.createElement(Box, { className: classes.sponsorBox },
4104
3766
  React__default.createElement(Text, { size: "p4" }, t('common.sponsoredBy')),
@@ -4133,7 +3795,7 @@ const DefaultForm$1 = (_a) => {
4133
3795
  const { isAdult, activeValueNote, linkTool, form, submitProps } = useContext(ThrFormContext);
4134
3796
  return (React__default.createElement(HealthToolFormWrapper, Object.assign({ formLayout: "default" }, props),
4135
3797
  React__default.createElement(GenderOptionControl, Object.assign({}, form.getInputProps('gender'))),
4136
- React__default.createElement(DatePicker$1, Object.assign({}, form.getInputProps('age'), { placeholder: 'DD/MM/YYYY', popoverProps: {
3798
+ React__default.createElement(DatePicker, Object.assign({}, form.getInputProps('age'), { placeholder: 'DD/MM/YYYY', popoverProps: {
4137
3799
  withinPortal: true,
4138
3800
  }, label: t('targetHeartRate.ageInput'), maxDate: new Date() })),
4139
3801
  React__default.createElement(Input$1.Number, Object.assign({ label: t('targetHeartRate.heartRateInput'), placeholder: t('tools.inputPlaceholder', {
@@ -4168,7 +3830,7 @@ const InlineForm$1 = (_a) => {
4168
3830
  form.errors.gender && (React__default.createElement(HealthToolFormWrapper.Error, null, form.errors.gender))),
4169
3831
  React__default.createElement(HealthToolFormWrapper.FormRow, null,
4170
3832
  React__default.createElement(HealthToolFormWrapper.BorderInlineControl, { label: t('targetHeartRate.ageInput') },
4171
- React__default.createElement(DatePicker$1, Object.assign({}, form.getInputProps('age'), { placeholder: 'DD/MM/YYYY', popoverProps: {
3833
+ React__default.createElement(DatePicker, Object.assign({}, form.getInputProps('age'), { placeholder: 'DD/MM/YYYY', popoverProps: {
4172
3834
  withinPortal: true,
4173
3835
  }, error: null, maxDate: new Date() }))),
4174
3836
  form.errors.age && (React__default.createElement(HealthToolFormWrapper.Error, null, form.errors.age))),
@@ -4201,7 +3863,7 @@ const ThrForm = (_a) => {
4201
3863
  const { t, locale } = useTranslations();
4202
3864
  const minRange = useRef(40);
4203
3865
  const { getHealthToolLink } = useHealthToolsCache(locale);
4204
- const form = useForm$1({
3866
+ const form = useForm({
4205
3867
  initialValues: {
4206
3868
  heartRate: 60,
4207
3869
  activeValue: 'low_intensity',
@@ -4366,8 +4028,6 @@ const BMRCardEmbed = (_a) => {
4366
4028
  React__default.createElement(BmiForm, Object.assign({ bmiGenerated: bmiGenerated, bmiUnit: bmiUnit }, formProps, { submitProps: Object.assign(Object.assign({}, formProps === null || formProps === void 0 ? void 0 : formProps.submitProps), { dataEventAction: 'BMR' }) })))));
4367
4029
  };
4368
4030
 
4369
- const OvulationFormContext = createContext({});
4370
-
4371
4031
  const AvoidPregnancy = (_a) => {
4372
4032
  var { isMarryBaby, size = 24 } = _a, rest = __rest(_a, ["isMarryBaby", "size"]);
4373
4033
  const props = Object.assign({ width: size, height: size }, rest);
@@ -4396,33 +4056,6 @@ const AvoidPregnancy = (_a) => {
4396
4056
  React__default.createElement("rect", { width: "18", height: "18", fill: "white", transform: "translate(0.833984)" })))));
4397
4057
  };
4398
4058
 
4399
- const LastPeriod = (_a) => {
4400
- var { isMarryBaby, size = 24 } = _a, rest = __rest(_a, ["isMarryBaby", "size"]);
4401
- const props = Object.assign({ width: size, height: size }, rest);
4402
- return isMarryBaby ? (React__default.createElement("svg", Object.assign({ viewBox: "0 0 33 32", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, props),
4403
- React__default.createElement("path", { d: "M26.9536 27.3696H8.18104C6.89043 27.3696 5.83447 26.3137 5.83447 25.0231V8.59706C5.83447 7.30645 6.89043 6.25049 8.18104 6.25049L19.9843 8.59706L26.9536 6.25049C28.2442 6.25049 29.3002 7.30645 29.3002 8.59706V25.0231C29.3002 26.3137 28.2442 27.3696 26.9536 27.3696Z", fill: "#E0E9FB" }),
4404
- React__default.createElement("path", { d: "M22.7061 22.6765H6.25666C4.91911 22.6765 4.02742 21.3389 4.5202 20.0953L5.83428 16.8101V8.59706C5.83428 7.30645 6.89023 6.25049 8.18085 6.25049H24.6069C25.8975 6.25049 26.9534 7.30645 26.9534 8.59706V16.8101L25.3108 20.9166C24.8884 21.9725 23.856 22.6765 22.7061 22.6765Z", fill: "#FFE9F1" }),
4405
- React__default.createElement("path", { d: "M24.6069 28.0736H8.18091C6.49138 28.0736 5.13037 26.7126 5.13037 25.0231C5.13037 24.6242 5.43543 24.3191 5.83434 24.3191C6.23326 24.3191 6.53831 24.6242 6.53831 25.0231C6.53831 25.9382 7.26575 26.6657 8.18091 26.6657H24.6069C25.5221 26.6657 26.2495 25.9382 26.2495 25.0231V22.6765C26.2495 22.2776 26.5546 21.9725 26.9535 21.9725C27.3524 21.9725 27.6575 22.2776 27.6575 22.6765V25.0231C27.6575 26.7126 26.2964 28.0736 24.6069 28.0736Z", fill: "#202135" }),
4406
- React__default.createElement("path", { d: "M24.607 5.54652H24.1377V5.07721C24.1377 4.04472 23.2929 3.19995 22.2604 3.19995C21.2279 3.19995 20.3831 4.04472 20.3831 5.07721V7.42378C20.3831 8.45627 21.2279 9.30104 22.2604 9.30104C22.6593 9.30104 22.9644 8.99598 22.9644 8.59707C22.9644 8.19815 22.6593 7.8931 22.2604 7.8931C22.0023 7.8931 21.7911 7.6819 21.7911 7.42378V5.07721C21.7911 4.81909 22.0023 4.60789 22.2604 4.60789C22.5185 4.60789 22.7297 4.81909 22.7297 5.07721V6.25049C22.7297 6.64941 23.0348 6.95447 23.4337 6.95447H24.607C25.5221 6.95447 26.2496 7.6819 26.2496 8.59707V15.0032C26.2496 16.1061 26.0384 17.209 25.6395 18.218L24.6774 20.635C24.3488 21.4328 23.5745 21.9725 22.7062 21.9725H6.25677C5.85786 21.9725 5.50587 21.7848 5.29468 21.4563C5.08349 21.1278 5.03656 20.7288 5.17735 20.3534L5.83439 18.7343C6.30371 17.5375 6.56183 16.2704 6.56183 14.9797V8.59707C6.56183 7.6819 7.28927 6.95447 8.20443 6.95447H9.37771C9.77663 6.95447 10.0817 6.64941 10.0817 6.25049C10.0817 5.85158 9.77663 5.54652 9.37771 5.54652H8.20443C6.5149 5.54652 5.15389 6.90753 5.15389 8.59707V15.0032C5.15389 16.1061 4.94269 17.209 4.54378 18.218L3.88674 19.8371C3.55822 20.635 3.67554 21.5267 4.14486 22.2541C4.61417 22.9581 5.43547 23.3805 6.28024 23.3805H22.7297C24.1846 23.3805 25.4517 22.5122 25.9914 21.1747L26.9535 18.7577C27.4229 17.561 27.681 16.2938 27.681 15.0032V8.59707C27.6575 6.90753 26.2965 5.54652 24.607 5.54652Z", fill: "#202135" }),
4407
- React__default.createElement("path", { d: "M12.8743 9.30104C13.2732 9.30104 13.5783 8.99598 13.5783 8.59707C13.5783 8.19815 13.2732 7.8931 12.8743 7.8931C12.6162 7.8931 12.405 7.6819 12.405 7.42378V5.07721C12.405 4.81909 12.6162 4.60789 12.8743 4.60789C13.1325 4.60789 13.3436 4.81909 13.3436 5.07721V6.25049C13.3436 6.64941 13.6487 6.95447 14.0476 6.95447H18.7408C19.1397 6.95447 19.4447 6.64941 19.4447 6.25049C19.4447 5.85158 19.1397 5.54652 18.7408 5.54652H14.7516V5.07721C14.7516 4.04472 13.9068 3.19995 12.8743 3.19995C11.8418 3.19995 10.9971 4.04472 10.9971 5.07721V7.42378C10.9971 8.45627 11.8418 9.30104 12.8743 9.30104Z", fill: "#202135" }),
4408
- React__default.createElement("path", { d: "M21.0873 16.8101C20.4303 16.8101 19.9141 16.2938 19.9141 15.6368C19.9141 14.9797 20.4303 14.4635 21.0873 14.4635C21.7444 14.4635 22.2606 14.9797 22.2606 15.6368C22.2606 16.2938 21.7444 16.8101 21.0873 16.8101Z", fill: "#E85388" }),
4409
- React__default.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M11.7009 13.2902C11.0438 13.2902 10.5276 12.7739 10.5276 12.1169C10.5276 11.4598 11.0438 10.9436 11.7009 10.9436C12.3579 10.9436 12.8742 11.4598 12.8742 12.1169C12.8742 12.7739 12.3579 13.2902 11.7009 13.2902ZM16.394 13.2902C15.737 13.2902 15.2207 12.7739 15.2207 12.1169C15.2207 11.4598 15.737 10.9436 16.394 10.9436C17.0511 10.9436 17.5673 11.4598 17.5673 12.1169C17.5673 12.7739 17.0511 13.2902 16.394 13.2902ZM21.0872 13.2902C20.4301 13.2902 19.9139 12.7739 19.9139 12.1169C19.9139 11.4598 20.4301 10.9436 21.0872 10.9436C21.7442 10.9436 22.2605 11.4598 22.2605 12.1169C22.2605 12.7739 21.7442 13.2902 21.0872 13.2902ZM11.7009 16.81C11.0438 16.81 10.5276 16.2938 10.5276 15.6367C10.5276 14.9797 11.0438 14.4635 11.7009 14.4635C12.3579 14.4635 12.8742 14.9797 12.8742 15.6367C12.8742 16.2938 12.3579 16.81 11.7009 16.81ZM16.394 16.81C15.737 16.81 15.2207 16.2938 15.2207 15.6367C15.2207 14.9797 15.737 14.4635 16.394 14.4635C17.0511 14.4635 17.5673 14.9797 17.5673 15.6367C17.5673 16.2938 17.0511 16.81 16.394 16.81ZM20.1721 20.2126C19.5151 20.2126 19.0927 19.7432 19.21 19.1566C19.3274 18.57 19.9375 18.1006 20.5945 18.1006C21.2515 18.1006 21.6739 18.57 21.5566 19.1566C21.4393 19.7432 20.8292 20.2126 20.1721 20.2126ZM15.479 20.2126C14.8219 20.2126 14.3996 19.7432 14.5169 19.1566C14.6342 18.57 15.2443 18.1006 15.9014 18.1006C16.5584 18.1006 16.9808 18.57 16.8635 19.1566C16.7461 19.7432 16.136 20.2126 15.479 20.2126ZM9.82374 19.1566C9.70641 19.7432 10.1288 20.2126 10.7858 20.2126C11.4429 20.2126 12.053 19.7432 12.1703 19.1566C12.2876 18.57 11.8653 18.1006 11.2082 18.1006C10.5512 18.1006 9.94107 18.57 9.82374 19.1566Z", fill: "#9898A9" }))) : (React__default.createElement("svg", Object.assign({ viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, props),
4410
- React__default.createElement("rect", { y: "2.23462", width: "22.0504", height: "17.1503", rx: "2", fill: "#E3F2FF" }),
4411
- React__default.createElement("path", { d: "M0 4.23462C0 3.13005 0.895431 2.23462 2 2.23462H20.0504C21.155 2.23462 22.0504 3.13005 22.0504 4.23462V5.90969H0V4.23462Z", fill: "#2D87F3" }),
4412
- React__default.createElement("path", { d: "M17.1351 1H17.0853C16.532 1 16.0835 1.44854 16.0835 2.00185V3.63855C16.0835 4.19186 16.532 4.6404 17.0853 4.6404H17.1351C17.6884 4.6404 18.1369 4.19186 18.1369 3.63855V2.00185C18.1369 1.44854 17.6884 1 17.1351 1Z", fill: "#284A75" }),
4413
- React__default.createElement("path", { d: "M4.2751 4.64038H4.32481C4.87812 4.64038 5.32666 4.19184 5.32666 3.63853V2.00183C5.32666 1.44853 4.87812 0.99998 4.32481 0.99998H4.2751C3.72179 0.99998 3.27325 1.44853 3.27325 2.00183V3.63853C3.27325 4.19184 3.72179 4.64038 4.2751 4.64038Z", fill: "#284A75" }),
4414
- React__default.createElement("path", { d: "M4.7172 9.75171H3.95994C3.61369 9.75171 3.33301 10.0324 3.33301 10.3786V11.2727C3.33301 11.6189 3.61369 11.8996 3.95994 11.8996H4.7172C5.06344 11.8996 5.34413 11.6189 5.34413 11.2727V10.3786C5.34413 10.0324 5.06344 9.75171 4.7172 9.75171Z", fill: "#2B62CD" }),
4415
- React__default.createElement("path", { d: "M8.88663 9.75171H8.12937C7.78313 9.75171 7.50244 10.0324 7.50244 10.3786V11.2727C7.50244 11.6189 7.78313 11.8996 8.12937 11.8996H8.88663C9.23288 11.8996 9.51356 11.6189 9.51356 11.2727V10.3786C9.51356 10.0324 9.23288 9.75171 8.88663 9.75171Z", fill: "#2B62CD" }),
4416
- React__default.createElement("path", { d: "M13.0551 9.75171H12.2978C11.9516 9.75171 11.6709 10.0324 11.6709 10.3786V11.2727C11.6709 11.6189 11.9516 11.8996 12.2978 11.8996H13.0551C13.4013 11.8996 13.682 11.6189 13.682 11.2727V10.3786C13.682 10.0324 13.4013 9.75171 13.0551 9.75171Z", fill: "#2B62CD" }),
4417
- React__default.createElement("path", { d: "M17.4887 9.75171H16.7314C16.3852 9.75171 16.1045 10.0324 16.1045 10.3786V11.2727C16.1045 11.6189 16.3852 11.8996 16.7314 11.8996H17.4887C17.8349 11.8996 18.1156 11.6189 18.1156 11.2727V10.3786C18.1156 10.0324 17.8349 9.75171 17.4887 9.75171Z", fill: "#2B62CD" }),
4418
- React__default.createElement("path", { d: "M4.67521 13.635H3.91795C3.5717 13.635 3.29102 13.9157 3.29102 14.2619V15.156C3.29102 15.5022 3.5717 15.7829 3.91795 15.7829H4.67521C5.02145 15.7829 5.30214 15.5022 5.30214 15.156V14.2619C5.30214 13.9157 5.02145 13.635 4.67521 13.635Z", fill: "#2B62CD" }),
4419
- React__default.createElement("path", { d: "M8.84415 13.635H8.08689C7.74065 13.635 7.45996 13.9157 7.45996 14.2619V15.156C7.45996 15.5022 7.74065 15.7829 8.08689 15.7829H8.84415C9.1904 15.7829 9.47108 15.5022 9.47108 15.156V14.2619C9.47108 13.9157 9.1904 13.635 8.84415 13.635Z", fill: "#2B62CD" }),
4420
- React__default.createElement("path", { d: "M13.0131 13.635H12.2558C11.9096 13.635 11.6289 13.9157 11.6289 14.2619V15.156C11.6289 15.5022 11.9096 15.7829 12.2558 15.7829H13.0131C13.3593 15.7829 13.64 15.5022 13.64 15.156V14.2619C13.64 13.9157 13.3593 13.635 13.0131 13.635Z", fill: "#2B62CD" }),
4421
- React__default.createElement("path", { d: "M17.4472 13.635H16.6899C16.3437 13.635 16.063 13.9157 16.063 14.2619V15.156C16.063 15.5022 16.3437 15.7829 16.6899 15.7829H17.4472C17.7934 15.7829 18.0741 15.5022 18.0741 15.156V14.2619C18.0741 13.9157 17.7934 13.635 17.4472 13.635Z", fill: "#2B62CD" }),
4422
- React__default.createElement("path", { d: "M20.3599 13.8356C19.6257 13.7546 19.4799 15.2799 18.4553 16.4962C17.8548 17.2093 17.0672 18.4098 16.9656 19.4741C16.8683 20.4944 17.1508 22.9817 20.1944 23.1776C20.5411 23.1981 20.889 23.1859 21.2335 23.1414C24.2599 22.5785 24.1522 19.7982 23.8637 18.815C23.5624 17.7891 22.5906 16.7217 21.9843 16.1555C20.8625 15.1096 21.0477 13.9115 20.3599 13.8356Z", fill: "#FF6F4D" }),
4423
- React__default.createElement("path", { d: "M22.1395 17.3998C22.1973 17.6137 21.9178 17.7927 21.7534 17.4586C21.6138 17.1746 21.6738 17.0792 21.7817 17.0551C21.896 17.0293 22.0915 17.2227 22.1395 17.3998Z", fill: "white" })));
4424
- };
4425
-
4426
4059
  const TryConceive = (_a) => {
4427
4060
  var { isMarryBaby, size = 24 } = _a, rest = __rest(_a, ["isMarryBaby", "size"]);
4428
4061
  const props = Object.assign({ width: size, height: size }, rest);
@@ -4449,101 +4082,15 @@ const TryConceive = (_a) => {
4449
4082
  React__default.createElement("path", { d: "M8.998 3.33765C9.04281 3.33757 9.08649 3.35177 9.12269 3.37818C9.15889 3.40459 9.18574 3.44185 9.19935 3.48455C9.21295 3.52724 9.2126 3.57317 9.19835 3.61565C9.18411 3.65814 9.15669 3.69499 9.1201 3.72085C9.11612 3.72366 9.09696 3.73621 9.08012 3.74873C8.9203 3.86717 8.12331 4.50972 8.08903 5.50728C8.06225 6.28631 8.49221 6.63861 8.90346 6.7085C9.26976 6.77097 9.7341 6.61287 9.88812 6.1191C9.96972 5.85758 9.83247 5.67926 9.67683 5.59963C9.54127 5.53024 9.35737 5.52296 9.25218 5.66323C9.23556 5.68539 9.21474 5.70406 9.1909 5.71818C9.16707 5.73229 9.14068 5.74157 9.11326 5.74549C9.08584 5.7494 9.05791 5.74788 9.03108 5.74101C9.00424 5.73413 8.97903 5.72204 8.95687 5.70542C8.93471 5.6888 8.91604 5.66798 8.90192 5.64414C8.88781 5.62031 8.87853 5.59392 8.87461 5.5665C8.87069 5.53908 8.87222 5.51115 8.87909 5.48432C8.88597 5.45749 8.89806 5.43227 8.91468 5.41011C9.12987 5.1232 9.52225 5.04663 9.86903 5.22406C10.1868 5.38662 10.4404 5.76547 10.2909 6.24479C10.0975 6.86519 9.48411 7.23517 8.83284 7.12443C8.27266 7.02919 7.63134 6.54478 7.66748 5.49279C7.71318 4.15886 8.83674 3.39991 8.88905 3.36823C8.92188 3.34826 8.95957 3.33768 8.998 3.33765Z", fill: "#BA8288" })));
4450
4083
  };
4451
4084
 
4452
- var useStyles$1 = createStyles(() => {
4453
- return {
4454
- root: {
4455
- justifyContent: 'flex-start',
4456
- },
4457
- group: {
4458
- display: 'flex',
4459
- alignItems: 'stretch',
4460
- gap: rem(8),
4461
- },
4462
- item: {
4463
- flex: '1 1 0px',
4464
- },
4465
- };
4466
- });
4467
-
4468
- const CalculatorType = (_a) => {
4469
- var { label, classNames, styles } = _a, props = __rest(_a, ["label", "classNames", "styles"]);
4470
- const { t } = useTranslations();
4471
- const { isMobile } = useContext(OvulationFormContext);
4472
- const { classes, theme } = useStyles$1(undefined, {
4473
- name: 'CalculatorType',
4474
- classNames,
4475
- styles,
4476
- });
4477
- const isMarryBaby = theme.other.template === 'mb';
4478
- const iconSize = isMobile ? 48 : isMarryBaby ? 32 : 18;
4479
- const calculatingMethods = [
4480
- {
4481
- label: t('ovulationPage.trackPeriod'),
4482
- value: OvulationCalculatorType$1.trackPeriod,
4483
- icon: React__default.createElement(LastPeriod, { size: iconSize, isMarryBaby: isMarryBaby }),
4484
- },
4485
- {
4486
- label: t('ovulationPage.conceive'),
4487
- value: OvulationCalculatorType$1.conceive,
4488
- icon: React__default.createElement(TryConceive, { size: iconSize, isMarryBaby: isMarryBaby }),
4489
- },
4490
- {
4491
- label: t('ovulationPage.avoidPregnancy'),
4492
- value: OvulationCalculatorType$1.avoidPregnancy,
4493
- icon: React__default.createElement(AvoidPregnancy, { size: iconSize, isMarryBaby: isMarryBaby }),
4494
- },
4495
- ];
4496
- return (React__default.createElement(Box, null,
4497
- React__default.createElement(Input$2.Wrapper, { label: label },
4498
- React__default.createElement(Chip.Group, Object.assign({ defaultValue: String(OvulationCalculatorType$1.trackPeriod) }, props),
4499
- React__default.createElement(Box, { className: classes.group }, calculatingMethods.map((i, idx) => (React__default.createElement(Chip, { className: classes.item, key: idx, value: String(i.value), styles: {
4500
- iconWrapper: {
4501
- display: 'none',
4502
- },
4503
- label: {
4504
- width: '100%',
4505
- borderRadius: rem(isMarryBaby ? 12 : 8),
4506
- padding: 0,
4507
- border: `1px solid ${isMarryBaby ? '#EAEAEC' : theme.colors.neutral[2]}`,
4508
- height: '100%',
4509
- '&[data-checked]': {
4510
- padding: 0,
4511
- backgroundColor: isMarryBaby
4512
- ? '#FFE9F1'
4513
- : theme.colors.blue[0],
4514
- border: `1px solid ${isMarryBaby ? '#F5B4CB' : theme.colors.blue[1]}`,
4515
- },
4516
- [theme.fn.smallerThan('sm')]: {
4517
- alignItems: 'flex-start',
4518
- },
4519
- },
4520
- } },
4521
- React__default.createElement(Box, { sx: Object.assign(Object.assign({ width: '100%', display: 'flex', gap: rem(isMarryBaby ? 2 : 8), padding: '8px 16px 8px 12px', justifyContent: 'center', alignItems: 'center' }, (isMarryBaby && {
4522
- flexDirection: 'column',
4523
- })), { [theme.fn.smallerThan('sm')]: {
4524
- flexDirection: 'column',
4525
- padding: '16px 8px 8px',
4526
- } }) },
4527
- i.icon,
4528
- React__default.createElement(Text, { size: isMarryBaby ? 'p3' : 'p2', styles: {
4529
- root: Object.assign(Object.assign({}, (isMarryBaby && {
4530
- textAlign: 'center',
4531
- })), { [theme.fn.smallerThan('sm')]: {
4532
- whiteSpace: 'normal',
4533
- fontSize: rem(12),
4534
- lineHeight: rem(18),
4535
- textAlign: 'center',
4536
- } }),
4537
- } }, i.label))))))))));
4538
- };
4085
+ const OvulationFormContext = createContext({});
4539
4086
 
4540
4087
  const DefaultLayout$1 = (_a) => {
4541
4088
  var props = __rest(_a, []);
4542
4089
  const { t } = useTranslations();
4543
- const { currentUrl, submitProps, form } = useContext(OvulationFormContext);
4090
+ const { currentUrl, submitProps, form, calculatingMethods } = useContext(OvulationFormContext);
4544
4091
  return (React__default.createElement(HealthToolFormWrapper, Object.assign({ formLayout: "default" }, props),
4545
- React__default.createElement(CalculatorType, Object.assign({ label: t('dueDatePage.calculationMethod') }, form.getInputProps('calculatorType'))),
4546
- React__default.createElement(DatePicker$1, Object.assign({ placeholder: "DD/MM/YYYY", popoverProps: {
4092
+ React__default.createElement(HealthToolFormWrapper.ChipGroup, Object.assign({ data: calculatingMethods, label: t('dueDatePage.calculationMethod') }, form.getInputProps('calculatorType'))),
4093
+ React__default.createElement(DatePicker, Object.assign({ placeholder: "DD/MM/YYYY", popoverProps: {
4547
4094
  withinPortal: true,
4548
4095
  }, label: t('dueDatePage.lastPeriod.lastPeriodLabel'), maxDate: new Date() }, form.getInputProps('lastPeriodDate'))),
4549
4096
  React__default.createElement(Input$1.Number, Object.assign({ label: t('ovulationPage.cycleLength') + ' ' + t('ovulationPage.dayUnit'), min: 21, max: 45, defaultValue: 1 }, form.getInputProps('cycleLength'))),
@@ -4554,12 +4101,12 @@ const DefaultLayout$1 = (_a) => {
4554
4101
  const InlineLayout$1 = (_a) => {
4555
4102
  var props = __rest(_a, []);
4556
4103
  const { t } = useTranslations();
4557
- const { currentUrl, submitProps, form } = useContext(OvulationFormContext);
4104
+ const { currentUrl, submitProps, form, calculatingMethods } = useContext(OvulationFormContext);
4558
4105
  return (React__default.createElement(HealthToolFormWrapper, Object.assign({ formLayout: "inline" }, props),
4559
4106
  React__default.createElement(HealthToolFormWrapper.BorderInlineControl, { label: t('dueDatePage.calculationMethod'), direction: "column", width: '100%' },
4560
- React__default.createElement(CalculatorType, Object.assign({}, form.getInputProps('calculatorType')))),
4107
+ React__default.createElement(HealthToolFormWrapper.ChipGroup, Object.assign({ data: calculatingMethods }, form.getInputProps('calculatorType')))),
4561
4108
  React__default.createElement(HealthToolFormWrapper.BorderInlineControl, { label: t('dueDatePage.lastPeriod.lastPeriodLabel') },
4562
- React__default.createElement(DatePicker$1, Object.assign({ placeholder: "DD/MM/YYYY", popoverProps: {
4109
+ React__default.createElement(DatePicker, Object.assign({ placeholder: "DD/MM/YYYY", popoverProps: {
4563
4110
  withinPortal: true,
4564
4111
  }, maxDate: new Date() }, form.getInputProps('lastPeriodDate')))),
4565
4112
  React__default.createElement(HealthToolFormWrapper.FormRow, null,
@@ -4576,12 +4123,12 @@ const InlineLayout$1 = (_a) => {
4576
4123
  const MbLayout$2 = (_a) => {
4577
4124
  var props = __rest(_a, []);
4578
4125
  const { t } = useTranslations();
4579
- const { currentUrl, submitProps, form } = useContext(OvulationFormContext);
4126
+ const { currentUrl, submitProps, form, calculatingMethods } = useContext(OvulationFormContext);
4580
4127
  return (React__default.createElement(HealthToolFormWrapper, Object.assign({ formLayout: "inline" }, props),
4581
4128
  React__default.createElement(Input$1.Wrapper, { label: React__default.createElement(Text, { size: "p4", sx: { fontWeight: 'normal' } }, t('dueDatePage.calculationMethod')) },
4582
- React__default.createElement(CalculatorType, Object.assign({}, form.getInputProps('calculatorType')))),
4129
+ React__default.createElement(HealthToolFormWrapper.ChipGroup, Object.assign({ data: calculatingMethods }, form.getInputProps('calculatorType')))),
4583
4130
  React__default.createElement(HealthToolFormWrapper.BorderBoxControl, { label: t('dueDatePage.lastPeriod.lastPeriodLabel'), rightSection: React__default.createElement(CalendarMB, { size: 24 }) },
4584
- React__default.createElement(DatePicker$1, Object.assign({ placeholder: "DD/MM/YYYY", popoverProps: {
4131
+ React__default.createElement(DatePicker, Object.assign({ placeholder: "DD/MM/YYYY", popoverProps: {
4585
4132
  withinPortal: true,
4586
4133
  }, maxDate: new Date(), rightSection: null }, form.getInputProps('lastPeriodDate')))),
4587
4134
  React__default.createElement(HealthToolFormWrapper.BorderBoxControl, { label: t('ovulationPage.cycleLength'), rightSection: t('ovulationPage.dayUnit') },
@@ -4602,7 +4149,7 @@ const OvulationForm = (_a) => {
4602
4149
  const theme = useMantineTheme();
4603
4150
  const { t } = useTranslations();
4604
4151
  const isMarryBaby = theme.other.template === 'mb';
4605
- const form = useForm$1({
4152
+ const form = useForm({
4606
4153
  initialValues: {
4607
4154
  calculatorType: String(OvulationCalculatorType$1.trackPeriod),
4608
4155
  periodLength: 7,
@@ -4615,7 +4162,24 @@ const OvulationForm = (_a) => {
4615
4162
  },
4616
4163
  });
4617
4164
  const commonProps = Object.assign({ onSubmit: form.onSubmit(onSubmit) }, props);
4618
- return (React__default.createElement(OvulationFormContext.Provider, { value: { submitProps, currentUrl, form, isMobile } }, isMarryBaby ? (React__default.createElement(MbLayout$2, Object.assign({}, commonProps))) : formLayout === 'inline' ? (React__default.createElement(InlineLayout$1, Object.assign({}, commonProps))) : (React__default.createElement(DefaultLayout$1, Object.assign({}, commonProps)))));
4165
+ const calculatingMethods = [
4166
+ {
4167
+ label: t('ovulationPage.trackPeriod'),
4168
+ value: OvulationCalculatorType$1.trackPeriod,
4169
+ icon: React__default.createElement(LastPeriod, null),
4170
+ },
4171
+ {
4172
+ label: t('ovulationPage.conceive'),
4173
+ value: OvulationCalculatorType$1.conceive,
4174
+ icon: React__default.createElement(TryConceive, null),
4175
+ },
4176
+ {
4177
+ label: t('ovulationPage.avoidPregnancy'),
4178
+ value: OvulationCalculatorType$1.avoidPregnancy,
4179
+ icon: React__default.createElement(AvoidPregnancy, null),
4180
+ },
4181
+ ];
4182
+ return (React__default.createElement(OvulationFormContext.Provider, { value: { submitProps, currentUrl, form, isMobile, calculatingMethods } }, isMarryBaby ? (React__default.createElement(MbLayout$2, Object.assign({}, commonProps))) : formLayout === 'inline' ? (React__default.createElement(InlineLayout$1, Object.assign({}, commonProps))) : (React__default.createElement(DefaultLayout$1, Object.assign({}, commonProps)))));
4619
4183
  };
4620
4184
 
4621
4185
  const OvulationCardEmbed = (_a) => {
@@ -4641,7 +4205,7 @@ const DefaultLayout = (_a) => {
4641
4205
  const { currentUrl, submitProps, form } = useContext(BabyVaccineFormContext);
4642
4206
  return (React__default.createElement(HealthToolFormWrapper, Object.assign({ formLayout: "default" }, props),
4643
4207
  React__default.createElement(GenderOptionControl, Object.assign({ isBaby: true }, form.getInputProps('gender'))),
4644
- React__default.createElement(DatePicker$1, Object.assign({ label: t('babyGrowth.input.birthday'), placeholder: 'DD/MM/YYYY', popoverProps: {
4208
+ React__default.createElement(DatePicker, Object.assign({ label: t('babyGrowth.input.birthday'), placeholder: 'DD/MM/YYYY', popoverProps: {
4645
4209
  withinPortal: true,
4646
4210
  }, maxDate: new Date() }, form.getInputProps('age'))),
4647
4211
  React__default.createElement(HealthToolFormWrapper.Submit, Object.assign({ type: "submit", className: "due-date-calculate-button", dataEventCategory: "Health Tool", dataEventAction: "Vaccination Tool", dataEventLabel: currentUrl }, submitProps), t('dueDatePage.lastPeriod.calculate'))));
@@ -4658,7 +4222,7 @@ const InlineLayout = (_a) => {
4658
4222
  form.errors.gender && (React__default.createElement(HealthToolFormWrapper.Error, null, form.errors.gender))),
4659
4223
  React__default.createElement(HealthToolFormWrapper.FormRow, null,
4660
4224
  React__default.createElement(HealthToolFormWrapper.BorderInlineControl, { label: t('babyGrowth.input.birthday') },
4661
- React__default.createElement(DatePicker$1, Object.assign({ placeholder: 'DD/MM/YYYY', popoverProps: {
4225
+ React__default.createElement(DatePicker, Object.assign({ placeholder: 'DD/MM/YYYY', popoverProps: {
4662
4226
  withinPortal: true,
4663
4227
  }, maxDate: new Date() }, form.getInputProps('age'), { error: null }))),
4664
4228
  form.errors.age && (React__default.createElement(HealthToolFormWrapper.Error, null, form.errors.gender))),
@@ -4676,7 +4240,7 @@ const MbLayout$1 = (_a) => {
4676
4240
  form.errors.gender && (React__default.createElement(HealthToolFormWrapper.Error, null, form.errors.gender))),
4677
4241
  React__default.createElement(HealthToolFormWrapper.FormRow, null,
4678
4242
  React__default.createElement(HealthToolFormWrapper.BorderInlineControl, { label: t('babyGrowth.input.birthday') },
4679
- React__default.createElement(DatePicker$1, Object.assign({ placeholder: 'DD/MM/YYYY', popoverProps: {
4243
+ React__default.createElement(DatePicker, Object.assign({ placeholder: 'DD/MM/YYYY', popoverProps: {
4680
4244
  withinPortal: true,
4681
4245
  }, maxDate: new Date() }, form.getInputProps('age'), { error: null }))),
4682
4246
  form.errors.age && (React__default.createElement(HealthToolFormWrapper.Error, null, form.errors.gender))),
@@ -4694,7 +4258,7 @@ const BabyVaccineForm = (_a) => {
4694
4258
  const { t } = useTranslations();
4695
4259
  const theme = useMantineTheme();
4696
4260
  const isMarryBaby = theme.other.template === 'mb';
4697
- const form = useForm$1({
4261
+ const form = useForm({
4698
4262
  validate: {
4699
4263
  gender: isNotEmpty(t('validation.error.requiredField')),
4700
4264
  age: isNotEmpty(t('validation.error.requiredField')),
@@ -4729,9 +4293,15 @@ const DefaultForm = (_a) => {
4729
4293
  const isMarryBaby = theme.other.template === 'mb';
4730
4294
  return (React__default.createElement(HealthToolFormWrapper, Object.assign({ formLayout: "default" }, props),
4731
4295
  React__default.createElement(Input$1.Number, Object.assign({ label: t('pregnancyWeightGain.weekInput'), min: INPUT_RANGE.pregnantWeek.min, max: INPUT_RANGE.pregnantWeek.max, placeholder: `${INPUT_RANGE.pregnantWeek.min} - ${INPUT_RANGE.pregnantWeek.max}` }, form.getInputProps('pregnantWeek'))),
4732
- React__default.createElement(Input$1.Number, Object.assign({ label: t('pregnancyWeightGain.weightBeforeInput'), min: INPUT_RANGE.weight.min, max: INPUT_RANGE.weight.max }, form.getInputProps('lastWeight'))),
4733
- React__default.createElement(Input$1.Number, Object.assign({ label: t('pregnancyWeightGain.heightInput'), min: INPUT_RANGE.height.min, max: INPUT_RANGE.height.max }, form.getInputProps('height'))),
4734
- React__default.createElement(Input$1.Number, Object.assign({ label: t('pregnancyWeightGain.weightInput'), min: INPUT_RANGE.weight.min, max: INPUT_RANGE.weight.max }, form.getInputProps('weight'))),
4296
+ React__default.createElement(Input$1.Number, Object.assign({ label: t('pregnancyWeightGain.weightBeforeInput'), min: INPUT_RANGE.weight.min, max: INPUT_RANGE.weight.max, placeholder: t('tools.inputPlaceholder', {
4297
+ content: '50',
4298
+ }) }, form.getInputProps('lastWeight'))),
4299
+ React__default.createElement(Input$1.Number, Object.assign({ label: t('pregnancyWeightGain.heightInput'), min: INPUT_RANGE.height.min, max: INPUT_RANGE.height.max, placeholder: t('tools.inputPlaceholder', {
4300
+ content: '160',
4301
+ }) }, form.getInputProps('height'))),
4302
+ React__default.createElement(Input$1.Number, Object.assign({ label: t('pregnancyWeightGain.weightInput'), min: INPUT_RANGE.weight.min, max: INPUT_RANGE.weight.max, placeholder: t('tools.inputPlaceholder', {
4303
+ content: '50',
4304
+ }) }, form.getInputProps('weight'))),
4735
4305
  React__default.createElement(HealthToolFormWrapper.Switching, Object.assign({ label: t('pregnancyWeightGain.havingTwins') }, form.getInputProps('hasTwin'))),
4736
4306
  React__default.createElement(HealthToolFormWrapper.Submit, Object.assign({ type: "submit", dataEventCategory: "Health Tool", dataEventAction: "Embedded Pregnancy Weight Gain", dataEventLabel: `https://${domainLocales[isMarryBaby ? 'vi-VN_MB' : locale]}/${linkTool}`, className: "due-date-calculate-button" }, submitProps), t('dueDatePage.lastPeriod.calculate'))));
4737
4307
  };
@@ -4808,7 +4378,7 @@ const PWGForm = (_a) => {
4808
4378
  const { t, locale } = useTranslations();
4809
4379
  const theme = useMantineTheme();
4810
4380
  const isMarryBaby = theme.other.template === 'mb';
4811
- const form = useForm$1({
4381
+ const form = useForm({
4812
4382
  validate: {
4813
4383
  pregnantWeek: isNotEmpty(t('validation.error.requiredField')),
4814
4384
  height: isNotEmpty(t('validation.error.requiredField')),
@@ -6149,7 +5719,7 @@ const BannerWithOptions = (props) => {
6149
5719
  ? itemsProp.filter((i) => !Boolean(i.isPNBtn)).filter(Boolean)
6150
5720
  : itemsProp, [itemsProp]);
6151
5721
  const { getHealthToolLink } = useHealthToolsCache(locale);
6152
- const form = useForm$1({
5722
+ const form = useForm({
6153
5723
  initialValues: {
6154
5724
  bannerOptions: [],
6155
5725
  },
@@ -6518,7 +6088,7 @@ const MainForm = () => {
6518
6088
  const isLoggedIn = userInfo === null || userInfo === void 0 ? void 0 : userInfo.id;
6519
6089
  const { currentUrl, isMobile, pnSuggestCategory = [], nextStep, formValues, setFormValues, onSubmit: _onSubmit, submitLoading, selectCategory, setCategoryLibs, setSelectCategory, maxSelectCategory, } = useContext(PremiumNewsletterModalContext);
6520
6090
  const pnSuggestCategoryIds = pnSuggestCategory.map((i) => i.catId);
6521
- const form = useForm$1({
6091
+ const form = useForm({
6522
6092
  validate: {
6523
6093
  name: isNotEmpty(t('healthToolPNModal.mainForm.requireName')),
6524
6094
  },
@@ -7676,4 +7246,4 @@ const UserProfileNavigation = ({ SSO_URL, UP_BASEPATH = 'user', themeName = 'hel
7676
7246
  logoutButton))));
7677
7247
  };
7678
7248
 
7679
- export { FixedBottomAdBlock as $, Alert as A, Badge as B, Checkbox as C, DoctorInfo as D, BabyPoopForm as E, FileDropdown as F, Grid as G, THRCardEmbed as H, IconText as I, ThrForm as J, BMRCardEmbed as K, OvulationForm as L, MobileBottomNavigation as M, BabyVaccineForm as N, OvulationCardEmbed as O, Pagination as P, BabyVaccineCardEmbed as Q, Radio as R, ScrollList as S, Tag as T, PWGCardEmbed as U, PWGForm as V, DateRangePicker as W, Breadcrumbs as X, ShareContainer as Y, ShareDrawer as Z, AdBlock as _, Avatar as a, SurveyOrPremiumBanner as a0, MAPPING_CATEGORY_PREMIUM_TYPE as a1, MAPPING_CATEGORY_PREMIUM_API_TYPE as a2, SideBannerModal as a3, UserProfileNavigation as a4, NavHeader as a5, UserStats as a6, BorderHeading as b, Toggle as c, RateStars as d, ArticleCard$1 as e, ArticleCard as f, CategoryCard as g, CheckboxGroup as h, ProgressBar as i, RadioGroup as j, index$1 as k, StatisticCard as l, index as m, Tabs as n, SurveyQuestionCard as o, SurveyThankyouCard as p, FloatButtonGroup as q, CookieAcceptConfirm as r, MobileBottomNavigationIcon as s, SeoHead as t, ToolsBannerCard as u, DueDateCardEmbed as v, BMICardEmbed as w, BmiForm as x, BabyGrowthCardEmbed as y, BabyPoopEmbed as z };
7249
+ export { AdBlock as $, Alert as A, Badge as B, Checkbox as C, DoctorInfo as D, BabyPoopEmbed as E, FileDropdown as F, Grid as G, BabyPoopForm as H, IconText as I, THRCardEmbed as J, ThrForm as K, BMRCardEmbed as L, MobileBottomNavigation as M, OvulationForm as N, OvulationCardEmbed as O, Pagination as P, BabyVaccineForm as Q, Radio as R, ScrollList as S, Tag as T, BabyVaccineCardEmbed as U, PWGCardEmbed as V, PWGForm as W, DateRangePicker as X, Breadcrumbs as Y, ShareContainer as Z, ShareDrawer as _, Avatar as a, FixedBottomAdBlock as a0, SurveyOrPremiumBanner as a1, MAPPING_CATEGORY_PREMIUM_TYPE as a2, MAPPING_CATEGORY_PREMIUM_API_TYPE as a3, SideBannerModal as a4, UserProfileNavigation as a5, NavHeader as a6, UserStats as a7, BorderHeading as b, Toggle as c, RateStars as d, ArticleCard$1 as e, ArticleCard as f, CategoryCard as g, CheckboxGroup as h, ProgressBar as i, RadioGroup as j, index$1 as k, StatisticCard as l, index as m, Tabs as n, SurveyQuestionCard as o, SurveyThankyouCard as p, FloatButtonGroup as q, CookieAcceptConfirm as r, MobileBottomNavigationIcon as s, SeoHead as t, ToolsBannerCard as u, DueDateForm as v, DueDateCardEmbed as w, BMICardEmbed as x, BmiForm as y, BabyGrowthCardEmbed as z };