@hhgtech/hhg-components 1.29.41 → 1.29.43

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 (377) hide show
  1. package/build/{WhatsApp-b8d7f6ee.js → WhatsApp-da901a36.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/babyGrowth/babyGrowthForm/context.d.ts +2 -0
  7. package/build/components/babyGrowth/babyGrowthForm/index.d.ts +3 -1
  8. package/build/components/molecules/embeddedHeathToolCards/baby-growth/index.d.ts +4 -5
  9. package/build/components/molecules/embeddedHeathToolCards/baby-poop/index.d.ts +3 -9
  10. package/build/components/molecules/embeddedHeathToolCards/bmi/bmi.d.ts +12 -4
  11. package/build/components/molecules/embeddedHeathToolCards/bmr/bmr.d.ts +11 -11
  12. package/build/components/molecules/embeddedHeathToolCards/due-date/dueDate.d.ts +1 -2
  13. package/build/components/molecules/embeddedHeathToolCards/helpers.d.ts +0 -2
  14. package/build/components/molecules/embeddedHeathToolCards/ovulation/ovulation.d.ts +1 -2
  15. package/build/components/molecules/embeddedHeathToolCards/pwg/pwg.d.ts +6 -17
  16. package/build/components/molecules/embeddedHeathToolCards/target-heart-rate/index.d.ts +3 -4
  17. package/build/components/molecules/healthTools/components/borderBoxControl/index.d.ts +3 -2
  18. package/build/components/molecules/healthTools/components/borderBoxControl/index.styled.d.ts +1 -1
  19. package/build/components/molecules/healthTools/components/borderBoxControl/index.styles.d.ts +4 -6
  20. package/build/components/molecules/healthTools/form/babyPoopForm/index.d.ts +13 -0
  21. package/build/components/molecules/healthTools/form/babyPoopForm/index.styles.d.ts +13 -0
  22. package/build/components/molecules/healthTools/form/pwgForm/context.d.ts +10 -0
  23. package/build/components/molecules/healthTools/form/pwgForm/defaultLayout.d.ts +3 -0
  24. package/build/components/molecules/healthTools/form/pwgForm/index.d.ts +29 -0
  25. package/build/components/molecules/healthTools/form/pwgForm/inlineLayout.d.ts +3 -0
  26. package/build/components/molecules/healthTools/form/pwgForm/mbLayout.d.ts +3 -0
  27. package/build/components/molecules/healthTools/form/thrForm/context.d.ts +2 -0
  28. package/build/components/molecules/healthTools/form/thrForm/index.d.ts +3 -1
  29. package/build/components/molecules/healthTools/formWrapper/index.d.ts +2 -0
  30. package/build/components/molecules/healthTools/formWrapper/switching.d.ts +8 -0
  31. package/build/components/molecules/index.d.ts +3 -1
  32. package/build/components/molecules/toolBannerCard/index.d.ts +1 -6
  33. package/build/components/molecules/toolBannerCard/index.styled.d.ts +0 -6
  34. package/build/components/molecules/weightGainForm/index.d.ts +5 -1
  35. package/build/components.js +60 -58
  36. package/build/{constants-53af5aff.js → constants-1531deca.js} +2 -2
  37. package/build/{constants-297a9f32.js → constants-7fddc7f7.js} +2 -2
  38. package/build/constants.js +3 -3
  39. package/build/{core-793d9e69.js → core-0cca2a30.js} +2 -2
  40. package/build/{dataTransform-c2141784.js → dataTransform-15015b32.js} +1 -1
  41. package/build/ecom.js +6 -6
  42. package/build/esm/{WhatsApp-3d6500ee.js → WhatsApp-98f17e50.js} +1 -1
  43. package/build/esm/adapters.js +15 -15
  44. package/build/esm/babyGrowth.js +81 -81
  45. package/build/esm/cache.js +3 -3
  46. package/build/esm/care.js +17 -17
  47. package/build/esm/components/babyGrowth/babyGrowthForm/context.d.ts +2 -0
  48. package/build/esm/components/babyGrowth/babyGrowthForm/index.d.ts +3 -1
  49. package/build/esm/components/molecules/embeddedHeathToolCards/baby-growth/index.d.ts +4 -5
  50. package/build/esm/components/molecules/embeddedHeathToolCards/baby-poop/index.d.ts +3 -9
  51. package/build/esm/components/molecules/embeddedHeathToolCards/bmi/bmi.d.ts +12 -4
  52. package/build/esm/components/molecules/embeddedHeathToolCards/bmr/bmr.d.ts +11 -11
  53. package/build/esm/components/molecules/embeddedHeathToolCards/due-date/dueDate.d.ts +1 -2
  54. package/build/esm/components/molecules/embeddedHeathToolCards/helpers.d.ts +0 -2
  55. package/build/esm/components/molecules/embeddedHeathToolCards/ovulation/ovulation.d.ts +1 -2
  56. package/build/esm/components/molecules/embeddedHeathToolCards/pwg/pwg.d.ts +6 -17
  57. package/build/esm/components/molecules/embeddedHeathToolCards/target-heart-rate/index.d.ts +3 -4
  58. package/build/esm/components/molecules/healthTools/components/borderBoxControl/index.d.ts +3 -2
  59. package/build/esm/components/molecules/healthTools/components/borderBoxControl/index.styled.d.ts +1 -1
  60. package/build/esm/components/molecules/healthTools/components/borderBoxControl/index.styles.d.ts +4 -6
  61. package/build/esm/components/molecules/healthTools/form/babyPoopForm/index.d.ts +13 -0
  62. package/build/esm/components/molecules/healthTools/form/babyPoopForm/index.styles.d.ts +13 -0
  63. package/build/esm/components/molecules/healthTools/form/pwgForm/context.d.ts +10 -0
  64. package/build/esm/components/molecules/healthTools/form/pwgForm/defaultLayout.d.ts +3 -0
  65. package/build/esm/components/molecules/healthTools/form/pwgForm/index.d.ts +29 -0
  66. package/build/esm/components/molecules/healthTools/form/pwgForm/inlineLayout.d.ts +3 -0
  67. package/build/esm/components/molecules/healthTools/form/pwgForm/mbLayout.d.ts +3 -0
  68. package/build/esm/components/molecules/healthTools/form/thrForm/context.d.ts +2 -0
  69. package/build/esm/components/molecules/healthTools/form/thrForm/index.d.ts +3 -1
  70. package/build/esm/components/molecules/healthTools/formWrapper/index.d.ts +2 -0
  71. package/build/esm/components/molecules/healthTools/formWrapper/switching.d.ts +8 -0
  72. package/build/esm/components/molecules/index.d.ts +3 -1
  73. package/build/esm/components/molecules/toolBannerCard/index.d.ts +1 -6
  74. package/build/esm/components/molecules/toolBannerCard/index.styled.d.ts +0 -6
  75. package/build/esm/components/molecules/weightGainForm/index.d.ts +5 -1
  76. package/build/esm/components.js +58 -58
  77. package/build/esm/{constants-d0bd18cb.js → constants-3f24d4bd.js} +2 -2
  78. package/build/esm/{constants-92537faf.js → constants-b34d417b.js} +2 -2
  79. package/build/esm/constants.js +3 -3
  80. package/build/esm/{core-29b009ab.js → core-3cbf0731.js} +2 -2
  81. package/build/esm/{dataTransform-66705225.js → dataTransform-a44c3d7b.js} +1 -1
  82. package/build/esm/ecom.js +6 -6
  83. package/build/esm/footer.js +18 -18
  84. package/build/esm/gAssets.js +4 -4
  85. package/build/esm/{getDynamicHealthTool-4e22444f.js → getDynamicHealthTool-acd90910.js} +4 -4
  86. package/build/esm/{getSocialList-41f22902.js → getSocialList-87a58288.js} +4 -4
  87. package/build/esm/hooks.js +17 -17
  88. package/build/esm/i18n/translationKeys.d.ts +1 -1
  89. package/build/esm/i18n-values/en-PH.js +2 -1
  90. package/build/esm/i18n-values/hi-IN.js +2 -1
  91. package/build/esm/i18n-values/id-ID.js +2 -1
  92. package/build/esm/i18n-values/km-KH.js +2 -1
  93. package/build/esm/i18n-values/ms-MY.js +2 -1
  94. package/build/esm/i18n-values/my-MM.js +2 -1
  95. package/build/esm/i18n-values/th-TH.js +2 -1
  96. package/build/esm/i18n-values/tl-PH.js +2 -1
  97. package/build/esm/i18n-values/vi-VN.js +2 -1
  98. package/build/esm/i18n-values/vi-VN_MB.js +2 -1
  99. package/build/esm/i18n-values/zh-TW.js +2 -1
  100. package/build/esm/i18n.js +2 -2
  101. package/build/esm/i18nV2.js +2 -2
  102. package/build/esm/{index-76270f83.js → index-0771cb54.js} +2 -2
  103. package/build/esm/{index-30a377c9.js → index-08683b2c.js} +103 -62
  104. package/build/esm/{index-0a97f332.js → index-0ec34552.js} +9 -9
  105. package/build/esm/{index-0008f40f.js → index-10f46069.js} +4 -4
  106. package/build/esm/{index-6afcded7.js → index-1d14271f.js} +2 -2
  107. package/build/esm/{index-a185016f.js → index-23968a4b.js} +4 -4
  108. package/build/esm/{index-56358aaa.js → index-30aa26a2.js} +2 -2
  109. package/build/esm/{index-907973e2.js → index-40919066.js} +274 -389
  110. package/build/esm/{index-4bc27031.js → index-51a5b352.js} +11 -11
  111. package/build/esm/{index-5990d81a.js → index-54d95469.js} +1 -1
  112. package/build/esm/{index-7b1e8adf.js → index-62e81061.js} +2 -2
  113. package/build/esm/{index-c21bddb6.js → index-7b6dd120.js} +32 -32
  114. package/build/esm/{index-f628810d.js → index-8345f710.js} +2 -2
  115. package/build/esm/{index-5881e42a.js → index-8573a814.js} +12 -12
  116. package/build/esm/{index-c5ea2b74.js → index-8e030e26.js} +10 -10
  117. package/build/esm/{index-f80ec000.js → index-8f004caa.js} +5 -5
  118. package/build/esm/{index-14826726.js → index-a6c27fed.js} +4 -4
  119. package/build/esm/{index-699e76d2.js → index-b115d850.js} +2 -2
  120. package/build/esm/{index-6ee914be.js → index-b1db79d0.js} +2 -2
  121. package/build/esm/{index-e8c205b6.js → index-c853dc6e.js} +2 -2
  122. package/build/esm/{index-2b8818a4.js → index-cb06c57d.js} +2 -2
  123. package/build/esm/{index-86903e91.js → index-d2706741.js} +6 -6
  124. package/build/esm/{index-5b9987c3.js → index-df7ed505.js} +2 -2
  125. package/build/esm/{index-4caf11b0.js → index-e2d45ff6.js} +12 -12
  126. package/build/esm/{index-41775c3c.js → index-f0551563.js} +3 -3
  127. package/build/esm/index.js +66 -66
  128. package/build/esm/{index.styled-1d3fb673.js → index.styled-7e8976d7.js} +2 -2
  129. package/build/esm/{index.styles-8f022797.js → index.styles-64fbe1fc.js} +6 -6
  130. package/build/esm/lead/components/close.d.ts +2 -2
  131. package/build/esm/lead.js +28 -28
  132. package/build/esm/mantine.js +21 -21
  133. package/build/esm/misc.js +19 -19
  134. package/build/esm/navigation.js +35 -35
  135. package/build/esm/onboardingV2.js +33 -33
  136. package/build/esm/pwg.js +19 -19
  137. package/build/esm/{routing-ca806d7b.js → routing-4707108c.js} +2 -2
  138. package/build/esm/subot.js +22 -22
  139. package/build/esm/together/interfaces/types.d.ts +2 -0
  140. package/build/esm/together.js +34 -34
  141. package/build/esm/{types-62afcb43.js → types-6fa07764.js} +13 -13
  142. package/build/esm/{types-59acb09c.js → types-efc23bf1.js} +30 -30
  143. package/build/esm/types.js +1 -1
  144. package/build/esm/{useCategory-dffaa16a.js → useCategory-cad4aa31.js} +5 -5
  145. package/build/esm/{useHealthToolCache-c34387eb.js → useHealthToolCache-38287625.js} +2 -2
  146. package/build/esm/{useMantineLocale-6399cf90.js → useMantineLocale-5341dd85.js} +3 -3
  147. package/build/esm/{usePlacesAutocomplete-fb1f8960.js → usePlacesAutocomplete-8fad7364.js} +1 -1
  148. package/build/esm/{useTranslations-1b0c4139.js → useTranslations-5f0ff5be.js} +1 -1
  149. package/build/esm/{utils-e177afd9.js → utils-3d5bdbed.js} +4 -4
  150. package/build/esm/{utils-0fedf1d0.js → utils-5f7c2eba.js} +5 -5
  151. package/build/esm/{utils-71222f0d.js → utils-ea3a5a18.js} +1 -1
  152. package/build/esm/vaccination.js +26 -26
  153. package/build/footer.js +18 -18
  154. package/build/gAssets.js +4 -4
  155. package/build/{getDynamicHealthTool-52ab6221.js → getDynamicHealthTool-628cb656.js} +4 -4
  156. package/build/{getSocialList-dd491e96.js → getSocialList-f2fcc50f.js} +4 -4
  157. package/build/hooks.js +17 -17
  158. package/build/i18n/translationKeys.d.ts +1 -1
  159. package/build/i18n-values/en-PH.js +2 -1
  160. package/build/i18n-values/hi-IN.js +2 -1
  161. package/build/i18n-values/id-ID.js +2 -1
  162. package/build/i18n-values/km-KH.js +2 -1
  163. package/build/i18n-values/ms-MY.js +2 -1
  164. package/build/i18n-values/my-MM.js +2 -1
  165. package/build/i18n-values/th-TH.js +2 -1
  166. package/build/i18n-values/tl-PH.js +2 -1
  167. package/build/i18n-values/vi-VN.js +2 -1
  168. package/build/i18n-values/vi-VN_MB.js +2 -1
  169. package/build/i18n-values/zh-TW.js +2 -1
  170. package/build/i18n.js +1 -1
  171. package/build/i18nV2.js +1 -1
  172. package/build/{index-a2d5e81c.js → index-00302cb4.js} +12 -12
  173. package/build/{index-d91d7535.js → index-0c6427d7.js} +2 -2
  174. package/build/{index-37a0998d.js → index-10d9cfdb.js} +5 -5
  175. package/build/{index-928a93ba.js → index-122c5fb9.js} +2 -2
  176. package/build/{index-16b667e7.js → index-2a48c97f.js} +10 -10
  177. package/build/{index-cab2553b.js → index-35563f12.js} +2 -2
  178. package/build/{index-b6806fac.js → index-3a44158b.js} +32 -32
  179. package/build/{index-f402a723.js → index-57683f28.js} +2 -2
  180. package/build/{index-2fbab8b2.js → index-6922d805.js} +2 -2
  181. package/build/{index-23bade93.js → index-79230bff.js} +9 -9
  182. package/build/{index-8ce0d3e8.js → index-83b804f7.js} +4 -4
  183. package/build/{index-a98976ee.js → index-84c6efc1.js} +2 -2
  184. package/build/{index-62392773.js → index-9c2c196e.js} +6 -6
  185. package/build/{index-b1571e39.js → index-9c2c227f.js} +11 -11
  186. package/build/{index-6feeacd9.js → index-bb55a2a5.js} +1 -1
  187. package/build/{index-f3704324.js → index-bc5dcbc1.js} +2 -2
  188. package/build/{index-39c7a6d0.js → index-c58213cc.js} +102 -61
  189. package/build/{index-854624ab.js → index-cd19b5cc.js} +12 -12
  190. package/build/{index-01dcd4ee.js → index-d56f3314.js} +2 -2
  191. package/build/{index-ffdd1117.js → index-de3537ec.js} +2 -2
  192. package/build/{index-f58041e0.js → index-e1ab3b36.js} +2 -2
  193. package/build/{index-3f571f3c.js → index-e36755e5.js} +4 -4
  194. package/build/{index-eb1702e9.js → index-e9dac48f.js} +277 -390
  195. package/build/{index-6cb96761.js → index-fda0fbbe.js} +3 -3
  196. package/build/{index-58614afe.js → index-fdd78527.js} +4 -4
  197. package/build/index.js +68 -66
  198. package/build/{index.styled-6b0a64f1.js → index.styled-4f0b82d2.js} +2 -2
  199. package/build/{index.styles-0c64c7c2.js → index.styles-cef9703d.js} +6 -6
  200. package/build/lead/components/close.d.ts +2 -2
  201. package/build/lead.js +28 -28
  202. package/build/mantine.js +18 -18
  203. package/build/misc.js +19 -19
  204. package/build/navigation.js +35 -35
  205. package/build/onboardingV2.js +32 -32
  206. package/build/pwg.js +19 -19
  207. package/build/{routing-aae03150.js → routing-3285a2c2.js} +2 -2
  208. package/build/subot.js +22 -22
  209. package/build/together/interfaces/types.d.ts +2 -0
  210. package/build/together.js +34 -34
  211. package/build/{types-aa13b952.js → types-05c5aced.js} +13 -13
  212. package/build/{types-b9672f54.js → types-4cec1d4c.js} +30 -30
  213. package/build/types.js +1 -1
  214. package/build/{useCategory-75420a33.js → useCategory-8319f05f.js} +5 -5
  215. package/build/{useHealthToolCache-1b841c96.js → useHealthToolCache-b6d91149.js} +2 -2
  216. package/build/{useMantineLocale-11ac1d5d.js → useMantineLocale-904a06a5.js} +3 -3
  217. package/build/{usePlacesAutocomplete-35afad37.js → usePlacesAutocomplete-2c183056.js} +1 -1
  218. package/build/{useTranslations-23bd5fea.js → useTranslations-480f64da.js} +1 -1
  219. package/build/{utils-19ca72b5.js → utils-03baf837.js} +4 -4
  220. package/build/{utils-65258a03.js → utils-ca6f6696.js} +5 -5
  221. package/build/{utils-9c7a9493.js → utils-f4ff815d.js} +1 -1
  222. package/build/vaccination.js +26 -26
  223. package/package.json +1 -1
  224. package/build/components/molecules/bmrForm/index.d.ts +0 -17
  225. package/build/components/molecules/bmrForm/index.styled.d.ts +0 -20
  226. package/build/components/molecules/embeddedHeathToolCards/baby-poop/index.styles.d.ts +0 -21
  227. package/build/components/molecules/embeddedHeathToolCards/bmi/context.d.ts +0 -17
  228. package/build/esm/components/molecules/bmrForm/index.d.ts +0 -17
  229. package/build/esm/components/molecules/bmrForm/index.styled.d.ts +0 -20
  230. package/build/esm/components/molecules/embeddedHeathToolCards/baby-poop/index.styles.d.ts +0 -21
  231. package/build/esm/components/molecules/embeddedHeathToolCards/bmi/context.d.ts +0 -17
  232. /package/build/{BMI_BOYS.percentile.monthly-f760039b.js → BMI_BOYS.percentile.monthly-d50fe5ae.js} +0 -0
  233. /package/build/{BMI_BOYS.percentile.weekly-83d03675.js → BMI_BOYS.percentile.weekly-43894113.js} +0 -0
  234. /package/build/{BMI_BOYS.percentile.yearly-232a9028.js → BMI_BOYS.percentile.yearly-fbd052bf.js} +0 -0
  235. /package/build/{BMI_BOYS.zscore.monthly-969c9499.js → BMI_BOYS.zscore.monthly-74c8af46.js} +0 -0
  236. /package/build/{BMI_BOYS.zscore.weekly-f01cc53a.js → BMI_BOYS.zscore.weekly-42f382c7.js} +0 -0
  237. /package/build/{BMI_BOYS.zscore.yearly-06cabbd4.js → BMI_BOYS.zscore.yearly-6ea91784.js} +0 -0
  238. /package/build/{BMI_GIRLS.percentile.monthly-b1dd04b6.js → BMI_GIRLS.percentile.monthly-eeaad411.js} +0 -0
  239. /package/build/{BMI_GIRLS.percentile.weekly-9b3e738b.js → BMI_GIRLS.percentile.weekly-34799c6d.js} +0 -0
  240. /package/build/{BMI_GIRLS.percentile.yearly-77c1dfa9.js → BMI_GIRLS.percentile.yearly-59bdf904.js} +0 -0
  241. /package/build/{BMI_GIRLS.zscore.monthly-3db44bce.js → BMI_GIRLS.zscore.monthly-95f19acb.js} +0 -0
  242. /package/build/{BMI_GIRLS.zscore.weekly-0e340209.js → BMI_GIRLS.zscore.weekly-c2525a68.js} +0 -0
  243. /package/build/{BMI_GIRLS.zscore.yearly-b3f1aa5f.js → BMI_GIRLS.zscore.yearly-c67c83e1.js} +0 -0
  244. /package/build/{ChevronDown-90db784c.js → ChevronDown-91f06fd2.js} +0 -0
  245. /package/build/{Close-34fec37a.js → Close-6e566c9d.js} +0 -0
  246. /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-295c253d.js → HEAD CIRCUM_BOYS.percentile.monthly-342a4a8b.js} +0 -0
  247. /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-8189bde2.js → HEAD CIRCUM_BOYS.percentile.weekly-b582bdc6.js} +0 -0
  248. /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-bd6edffc.js → HEAD CIRCUM_BOYS.percentile.yearly-f45241a8.js} +0 -0
  249. /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-957b07b5.js → HEAD CIRCUM_BOYS.zscore.monthly-c4899e99.js} +0 -0
  250. /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-20b1384b.js → HEAD CIRCUM_BOYS.zscore.weekly-2592ac1c.js} +0 -0
  251. /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-75c3ffec.js → HEAD CIRCUM_BOYS.zscore.yearly-4fdb95df.js} +0 -0
  252. /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-8e4a06e4.js → HEAD CIRCUM_GIRLS.percentile.monthly-35293595.js} +0 -0
  253. /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-984c97e4.js → HEAD CIRCUM_GIRLS.percentile.weekly-cb142232.js} +0 -0
  254. /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-f979a57e.js → HEAD CIRCUM_GIRLS.percentile.yearly-72be1a24.js} +0 -0
  255. /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-2010f7b6.js → HEAD CIRCUM_GIRLS.zscore.monthly-11902907.js} +0 -0
  256. /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-8ac4e71e.js → HEAD CIRCUM_GIRLS.zscore.weekly-f01466fc.js} +0 -0
  257. /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-72087da1.js → HEAD CIRCUM_GIRLS.zscore.yearly-cbcaff35.js} +0 -0
  258. /package/build/{HEIGHT_BOYS.percentile.monthly-55577194.js → HEIGHT_BOYS.percentile.monthly-8b850042.js} +0 -0
  259. /package/build/{HEIGHT_BOYS.percentile.weekly-d5114a8d.js → HEIGHT_BOYS.percentile.weekly-a72cd3c5.js} +0 -0
  260. /package/build/{HEIGHT_BOYS.percentile.yearly-6094b3a8.js → HEIGHT_BOYS.percentile.yearly-20908987.js} +0 -0
  261. /package/build/{HEIGHT_BOYS.zscore.monthly-52722350.js → HEIGHT_BOYS.zscore.monthly-b63b54dc.js} +0 -0
  262. /package/build/{HEIGHT_BOYS.zscore.weekly-cc4484b7.js → HEIGHT_BOYS.zscore.weekly-8c2af19d.js} +0 -0
  263. /package/build/{HEIGHT_BOYS.zscore.yearly-1c33d76a.js → HEIGHT_BOYS.zscore.yearly-ee3ccb3c.js} +0 -0
  264. /package/build/{HEIGHT_GIRLS.percentile.monthly-df48b459.js → HEIGHT_GIRLS.percentile.monthly-bca91c6a.js} +0 -0
  265. /package/build/{HEIGHT_GIRLS.percentile.weekly-db911200.js → HEIGHT_GIRLS.percentile.weekly-a579abb8.js} +0 -0
  266. /package/build/{HEIGHT_GIRLS.percentile.yearly-75d65a5e.js → HEIGHT_GIRLS.percentile.yearly-b60fbbd1.js} +0 -0
  267. /package/build/{HEIGHT_GIRLS.zscore.monthly-6008c969.js → HEIGHT_GIRLS.zscore.monthly-4f5029fd.js} +0 -0
  268. /package/build/{HEIGHT_GIRLS.zscore.weekly-b9d844cc.js → HEIGHT_GIRLS.zscore.weekly-b85f05ee.js} +0 -0
  269. /package/build/{HEIGHT_GIRLS.zscore.yearly-b051ad89.js → HEIGHT_GIRLS.zscore.yearly-44f4fab9.js} +0 -0
  270. /package/build/{Visible-526254e0.js → Visible-63ae4a15.js} +0 -0
  271. /package/build/{WEIGHT_BOYS.percentile.monthly-2ddadf30.js → WEIGHT_BOYS.percentile.monthly-11e4f5e8.js} +0 -0
  272. /package/build/{WEIGHT_BOYS.percentile.weekly-ed55800b.js → WEIGHT_BOYS.percentile.weekly-b6fab62d.js} +0 -0
  273. /package/build/{WEIGHT_BOYS.percentile.yearly-8252604b.js → WEIGHT_BOYS.percentile.yearly-a4801ff8.js} +0 -0
  274. /package/build/{WEIGHT_BOYS.zscore.monthly-2b97ede0.js → WEIGHT_BOYS.zscore.monthly-d5fe14b5.js} +0 -0
  275. /package/build/{WEIGHT_BOYS.zscore.weekly-65deb362.js → WEIGHT_BOYS.zscore.weekly-5701e0e0.js} +0 -0
  276. /package/build/{WEIGHT_BOYS.zscore.yearly-6a28599f.js → WEIGHT_BOYS.zscore.yearly-8eec9677.js} +0 -0
  277. /package/build/{WEIGHT_GIRLS.percentile.monthly-2d4df0cd.js → WEIGHT_GIRLS.percentile.monthly-1119cd80.js} +0 -0
  278. /package/build/{WEIGHT_GIRLS.percentile.weekly-8fe8dad4.js → WEIGHT_GIRLS.percentile.weekly-521dfc88.js} +0 -0
  279. /package/build/{WEIGHT_GIRLS.percentile.yearly-ce1959f7.js → WEIGHT_GIRLS.percentile.yearly-70ce9387.js} +0 -0
  280. /package/build/{WEIGHT_GIRLS.zscore.monthly-35b0d1af.js → WEIGHT_GIRLS.zscore.monthly-23806ed2.js} +0 -0
  281. /package/build/{WEIGHT_GIRLS.zscore.weekly-e6d63d74.js → WEIGHT_GIRLS.zscore.weekly-7b7bd073.js} +0 -0
  282. /package/build/{WEIGHT_GIRLS.zscore.yearly-e4bddc65.js → WEIGHT_GIRLS.zscore.yearly-491f32e1.js} +0 -0
  283. /package/build/{animation-e4b5df1b.js → animation-9d8acebe.js} +0 -0
  284. /package/build/{cart-4cc6d162.js → cart-690cadca.js} +0 -0
  285. /package/build/{cookieHelper-b0d5e738.js → cookieHelper-0b7f586d.js} +0 -0
  286. /package/build/{doctor-1f24bfe7.js → doctor-5ca5d99b.js} +0 -0
  287. /package/build/esm/{BMI_BOYS.percentile.monthly-31639559.js → BMI_BOYS.percentile.monthly-954c2d8f.js} +0 -0
  288. /package/build/esm/{BMI_BOYS.percentile.weekly-6563653e.js → BMI_BOYS.percentile.weekly-4f9c77ab.js} +0 -0
  289. /package/build/esm/{BMI_BOYS.percentile.yearly-8ce14d1c.js → BMI_BOYS.percentile.yearly-1929eb3b.js} +0 -0
  290. /package/build/esm/{BMI_BOYS.zscore.monthly-97de52f7.js → BMI_BOYS.zscore.monthly-66f969ea.js} +0 -0
  291. /package/build/esm/{BMI_BOYS.zscore.weekly-6e773dc7.js → BMI_BOYS.zscore.weekly-c3eb69b3.js} +0 -0
  292. /package/build/esm/{BMI_BOYS.zscore.yearly-c528b4aa.js → BMI_BOYS.zscore.yearly-738ee609.js} +0 -0
  293. /package/build/esm/{BMI_GIRLS.percentile.monthly-bb721522.js → BMI_GIRLS.percentile.monthly-5bd9e974.js} +0 -0
  294. /package/build/esm/{BMI_GIRLS.percentile.weekly-a5e87b35.js → BMI_GIRLS.percentile.weekly-50399b6a.js} +0 -0
  295. /package/build/esm/{BMI_GIRLS.percentile.yearly-17a091ab.js → BMI_GIRLS.percentile.yearly-b780ed5c.js} +0 -0
  296. /package/build/esm/{BMI_GIRLS.zscore.monthly-d87b26c7.js → BMI_GIRLS.zscore.monthly-9946a16f.js} +0 -0
  297. /package/build/esm/{BMI_GIRLS.zscore.weekly-f4b3ef1a.js → BMI_GIRLS.zscore.weekly-6a985189.js} +0 -0
  298. /package/build/esm/{BMI_GIRLS.zscore.yearly-0bd23e87.js → BMI_GIRLS.zscore.yearly-7e06b463.js} +0 -0
  299. /package/build/esm/{ChevronDown-c9d15f1e.js → ChevronDown-761e1d17.js} +0 -0
  300. /package/build/esm/{Close-663ab262.js → Close-e3fe72a2.js} +0 -0
  301. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-2a6197fd.js → HEAD CIRCUM_BOYS.percentile.monthly-b5fd3180.js} +0 -0
  302. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-6f7e9384.js → HEAD CIRCUM_BOYS.percentile.weekly-07f290cd.js} +0 -0
  303. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-a42662ef.js → HEAD CIRCUM_BOYS.percentile.yearly-99c9790d.js} +0 -0
  304. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-17cd4a9c.js → HEAD CIRCUM_BOYS.zscore.monthly-2c61094c.js} +0 -0
  305. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-de072c20.js → HEAD CIRCUM_BOYS.zscore.weekly-55e7391c.js} +0 -0
  306. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-5d0b115b.js → HEAD CIRCUM_BOYS.zscore.yearly-c3ae5aac.js} +0 -0
  307. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-b25ec934.js → HEAD CIRCUM_GIRLS.percentile.monthly-2fc36807.js} +0 -0
  308. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-29197d75.js → HEAD CIRCUM_GIRLS.percentile.weekly-36d69146.js} +0 -0
  309. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-60b8f0b7.js → HEAD CIRCUM_GIRLS.percentile.yearly-79967c54.js} +0 -0
  310. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-04d93c58.js → HEAD CIRCUM_GIRLS.zscore.monthly-15ff247d.js} +0 -0
  311. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-cce24a1c.js → HEAD CIRCUM_GIRLS.zscore.weekly-7e74085f.js} +0 -0
  312. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-a4205263.js → HEAD CIRCUM_GIRLS.zscore.yearly-1a6f280f.js} +0 -0
  313. /package/build/esm/{HEIGHT_BOYS.percentile.monthly-88b7ba38.js → HEIGHT_BOYS.percentile.monthly-42868130.js} +0 -0
  314. /package/build/esm/{HEIGHT_BOYS.percentile.weekly-9e929bc2.js → HEIGHT_BOYS.percentile.weekly-b497520f.js} +0 -0
  315. /package/build/esm/{HEIGHT_BOYS.percentile.yearly-ce0c0291.js → HEIGHT_BOYS.percentile.yearly-489e3a70.js} +0 -0
  316. /package/build/esm/{HEIGHT_BOYS.zscore.monthly-37dfc928.js → HEIGHT_BOYS.zscore.monthly-22b88c68.js} +0 -0
  317. /package/build/esm/{HEIGHT_BOYS.zscore.weekly-d912ecf3.js → HEIGHT_BOYS.zscore.weekly-6b6b951c.js} +0 -0
  318. /package/build/esm/{HEIGHT_BOYS.zscore.yearly-6033af3d.js → HEIGHT_BOYS.zscore.yearly-4293d9f0.js} +0 -0
  319. /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-0f7094a8.js → HEIGHT_GIRLS.percentile.monthly-cbc98ce9.js} +0 -0
  320. /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-2b1c3896.js → HEIGHT_GIRLS.percentile.weekly-9c962736.js} +0 -0
  321. /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-4f6f99b1.js → HEIGHT_GIRLS.percentile.yearly-43d44637.js} +0 -0
  322. /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-59d1a8e4.js → HEIGHT_GIRLS.zscore.monthly-7e8ffefc.js} +0 -0
  323. /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-311e9528.js → HEIGHT_GIRLS.zscore.weekly-30c4a68b.js} +0 -0
  324. /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-c22ed88c.js → HEIGHT_GIRLS.zscore.yearly-cea9956e.js} +0 -0
  325. /package/build/esm/{Visible-78023de7.js → Visible-6294ea92.js} +0 -0
  326. /package/build/esm/{WEIGHT_BOYS.percentile.monthly-ad8d9924.js → WEIGHT_BOYS.percentile.monthly-351b002b.js} +0 -0
  327. /package/build/esm/{WEIGHT_BOYS.percentile.weekly-479fe164.js → WEIGHT_BOYS.percentile.weekly-f4df38c2.js} +0 -0
  328. /package/build/esm/{WEIGHT_BOYS.percentile.yearly-def26126.js → WEIGHT_BOYS.percentile.yearly-5ef225df.js} +0 -0
  329. /package/build/esm/{WEIGHT_BOYS.zscore.monthly-5a309ba4.js → WEIGHT_BOYS.zscore.monthly-d03bbb69.js} +0 -0
  330. /package/build/esm/{WEIGHT_BOYS.zscore.weekly-c408110e.js → WEIGHT_BOYS.zscore.weekly-a642e63d.js} +0 -0
  331. /package/build/esm/{WEIGHT_BOYS.zscore.yearly-9cc4ba3f.js → WEIGHT_BOYS.zscore.yearly-de0f11a4.js} +0 -0
  332. /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-4c34e710.js → WEIGHT_GIRLS.percentile.monthly-4a22c12a.js} +0 -0
  333. /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-621c6b26.js → WEIGHT_GIRLS.percentile.weekly-8273ddae.js} +0 -0
  334. /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-bb5e9883.js → WEIGHT_GIRLS.percentile.yearly-28df4700.js} +0 -0
  335. /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-5c8d8a79.js → WEIGHT_GIRLS.zscore.monthly-a2e302d9.js} +0 -0
  336. /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-6b702c1c.js → WEIGHT_GIRLS.zscore.weekly-b684c8d6.js} +0 -0
  337. /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-364697f3.js → WEIGHT_GIRLS.zscore.yearly-bb99a4f3.js} +0 -0
  338. /package/build/esm/{animation-e80f7924.js → animation-89491bac.js} +0 -0
  339. /package/build/esm/{cart-b6acc8bf.js → cart-e181efa3.js} +0 -0
  340. /package/build/esm/{cookieHelper-774acadd.js → cookieHelper-bdcae9e9.js} +0 -0
  341. /package/build/esm/{doctor-97cbad21.js → doctor-e1e1a438.js} +0 -0
  342. /package/build/esm/{index-d9bf4439.js → index-11ea5f3a.js} +0 -0
  343. /package/build/esm/{index-5f891b02.js → index-2219b86b.js} +0 -0
  344. /package/build/esm/{index-8843aecd.js → index-39aeff4f.js} +0 -0
  345. /package/build/esm/{index-0473e274.js → index-cc4e3181.js} +0 -0
  346. /package/build/esm/{isProduction-0ea8dd7c.js → isProduction-2cb49e0e.js} +0 -0
  347. /package/build/esm/{localizeNumberFormat-20457d95.js → localizeNumberFormat-93a46788.js} +0 -0
  348. /package/build/esm/{normalizeLink-93f71b8d.js → normalizeLink-98886668.js} +0 -0
  349. /package/build/esm/{number-125fff90.js → number-d3e03931.js} +0 -0
  350. /package/build/esm/{paths-7c1b020d.js → paths-47504c6e.js} +0 -0
  351. /package/build/esm/{theme-809826c6.js → theme-ad9ae9bc.js} +0 -0
  352. /package/build/esm/{translationsContext-4ccd0db6.js → translationsContext-dd192b6b.js} +0 -0
  353. /package/build/esm/{tslib.es6-009190f5.js → tslib.es6-77e4ea0d.js} +0 -0
  354. /package/build/esm/{types-afd0ea24.js → types-1184bbca.js} +0 -0
  355. /package/build/esm/{useIsInit-19cbbe0a.js → useIsInit-8442a087.js} +0 -0
  356. /package/build/esm/{useOutsideClick-76556248.js → useOutsideClick-29676c24.js} +0 -0
  357. /package/build/esm/{useScrollbarSize-1a1a2a1c.js → useScrollbarSize-c96444e0.js} +0 -0
  358. /package/build/esm/{useUniqueId-b6678dac.js → useUniqueId-0d137689.js} +0 -0
  359. /package/build/esm/{utils-906afdbb.js → utils-3501a8c9.js} +0 -0
  360. /package/build/{index-732d0cf6.js → index-1327fbe0.js} +0 -0
  361. /package/build/{index-801d0f8c.js → index-14dec016.js} +0 -0
  362. /package/build/{index-66d74ff8.js → index-8515dc14.js} +0 -0
  363. /package/build/{index-991e8580.js → index-ec93dd5c.js} +0 -0
  364. /package/build/{isProduction-45b769c5.js → isProduction-b1fe9e14.js} +0 -0
  365. /package/build/{localizeNumberFormat-454257cf.js → localizeNumberFormat-1a51ee3d.js} +0 -0
  366. /package/build/{normalizeLink-0adecbbe.js → normalizeLink-2fbce9d9.js} +0 -0
  367. /package/build/{number-8c7f489b.js → number-a548c60c.js} +0 -0
  368. /package/build/{paths-4aef546c.js → paths-c6a37ed5.js} +0 -0
  369. /package/build/{theme-a6769818.js → theme-98664cfd.js} +0 -0
  370. /package/build/{translationsContext-e5b47417.js → translationsContext-4b7afa0b.js} +0 -0
  371. /package/build/{tslib.es6-7680ee2c.js → tslib.es6-86f09fff.js} +0 -0
  372. /package/build/{types-287b750a.js → types-68510635.js} +0 -0
  373. /package/build/{useIsInit-8805c830.js → useIsInit-2b2ff2f0.js} +0 -0
  374. /package/build/{useOutsideClick-e57e999e.js → useOutsideClick-cff03e12.js} +0 -0
  375. /package/build/{useScrollbarSize-12f586ff.js → useScrollbarSize-8ba5e28e.js} +0 -0
  376. /package/build/{useUniqueId-0421e0af.js → useUniqueId-3b0ef44a.js} +0 -0
  377. /package/build/{utils-a423ef09.js → utils-1f428807.js} +0 -0
@@ -1,69 +1,68 @@
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-6ee914be.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-8f022797.js';
4
- import { f as formatUrlWithPageParam, M as MediaQueries } from './utils-906afdbb.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-4caf11b0.js';
6
- import { T as Text$1 } from './index-c5ea2b74.js';
7
- import { _ as __rest, a as __awaiter } from './tslib.es6-009190f5.js';
2
+ import { T as Text } from './index-b1db79d0.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-64fbe1fc.js';
4
+ import { f as formatUrlWithPageParam, M as MediaQueries } from './utils-3501a8c9.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-e2d45ff6.js';
6
+ import { T as Text$1 } from './index-8e030e26.js';
7
+ import { _ as __rest, a as __awaiter } from './tslib.es6-77e4ea0d.js';
8
8
  import { Bookmark, CalendarMB } from '@hhgtech/icons/other';
9
- import { C as CommonGAssets } from './index-2b8818a4.js';
10
- import { H as Heading } from './index-e8c205b6.js';
11
- import { t as theme } from './theme-809826c6.js';
12
- import { Card, Group, Box, Flex, createStyles, Stack, getStylesRef, useMantineTheme, rem, Container as Container$1, AspectRatio as AspectRatio$1, ScrollArea, Chip, Badge as Badge$1, MultiSelect, Stepper } from '@mantine/core';
9
+ import { C as CommonGAssets } from './index-cb06c57d.js';
10
+ import { H as Heading } from './index-c853dc6e.js';
11
+ import { t as theme } from './theme-ad9ae9bc.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-5b9987c3.js';
16
- import { L as LOCALE } from './index-0473e274.js';
17
- import './useMantineLocale-6399cf90.js';
18
- import './translationsContext-4ccd0db6.js';
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-df7ed505.js';
16
+ import { L as LOCALE } from './index-cc4e3181.js';
17
+ import './useMantineLocale-5341dd85.js';
18
+ import './translationsContext-dd192b6b.js';
19
19
  import 'string-format';
20
20
  import { useViewportSize } from '@mantine/hooks';
21
- import { i as isInternalLink, d as getTogetherUserPostsApiPath } from './index-c21bddb6.js';
21
+ import { i as isInternalLink, d as getTogetherUserPostsApiPath } from './index-7b6dd120.js';
22
22
  import styled from '@emotion/styled';
23
23
  import throttle from 'lodash/throttle';
24
- import { L as Logo } from './index-a185016f.js';
25
- import { B as Button } from './index-76270f83.js';
26
- import { I as Input } from './index-699e76d2.js';
24
+ import { L as Logo } from './index-23968a4b.js';
25
+ import { B as Button } from './index-0771cb54.js';
26
+ import { I as Input } from './index-b115d850.js';
27
27
  import { keyframes, css } from '@emotion/react';
28
28
  import parse from 'html-react-parser';
29
- import { i as isProduction } from './isProduction-0ea8dd7c.js';
30
- import { u as useTranslations } from './useTranslations-1b0c4139.js';
29
+ import { i as isProduction } from './isProduction-2cb49e0e.js';
30
+ import { u as useTranslations } from './useTranslations-5f0ff5be.js';
31
31
  import { format, addDays, isBefore, startOfMonth, addMonths, subMonths, getDaysInMonth, isToday, isSameDay, isWithinInterval, isAfter, isPast } from 'date-fns';
32
32
  import dayjs from 'dayjs';
33
- 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-30a377c9.js';
34
- import { D as DATE_FORMAT } from './types-afd0ea24.js';
35
- 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-0fedf1d0.js';
36
- import { D as DatePicker } from './index-41775c3c.js';
37
- import { M as MarryBabyText } from './index-6afcded7.js';
38
- import { S as Slider } from './index-56358aaa.js';
39
- import { D as Dropdown } from './index-5990d81a.js';
40
- import { f as formatUserProfileUrl } from './index-14826726.js';
33
+ 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-08683b2c.js';
34
+ import { D as DATE_FORMAT } from './types-1184bbca.js';
35
+ 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-5f7c2eba.js';
36
+ import { D as DatePicker } from './index-f0551563.js';
37
+ import { M as MarryBabyText } from './index-1d14271f.js';
38
+ import { S as Slider } from './index-30aa26a2.js';
39
+ import { D as Dropdown } from './index-54d95469.js';
40
+ import { f as formatUserProfileUrl } from './index-a6c27fed.js';
41
41
  import { useForm as useForm$1, isNotEmpty } from '@mantine/form';
42
- import { u as useHealthToolsCache } from './useHealthToolCache-c34387eb.js';
43
- import { D as DatePicker$1 } from './index-f80ec000.js';
42
+ import { u as useHealthToolsCache } from './useHealthToolCache-38287625.js';
43
+ import { D as DatePicker$1 } from './index-8f004caa.js';
44
44
  import { Controller, useForm } from 'react-hook-form';
45
- import './constants-d0bd18cb.js';
46
- import './utils-e177afd9.js';
47
- import { C as Container } from './index-8843aecd.js';
48
- import './WhatsApp-3d6500ee.js';
49
- import './index.styled-1d3fb673.js';
50
- import './index-5f891b02.js';
51
- import { a as useOutsideClick } from './useOutsideClick-76556248.js';
45
+ import { a as useOutsideClick } from './useOutsideClick-29676c24.js';
52
46
  import enUS from 'date-fns/locale/en-US';
53
47
  import id from 'date-fns/locale/id';
54
48
  import vi from 'date-fns/locale/vi';
55
49
  import zhTW from 'date-fns/locale/zh-TW';
56
- import { g as getSocialList } from './getSocialList-41f22902.js';
50
+ import { g as getSocialList } from './getSocialList-87a58288.js';
57
51
  import { v4 } from 'uuid';
58
- import { g as getCurrentBaseUrl, a as getCurrentSsoUrl } from './routing-ca806d7b.js';
59
- import { I as Icon } from './index-0008f40f.js';
52
+ import './constants-3f24d4bd.js';
53
+ import './utils-3d5bdbed.js';
54
+ import './WhatsApp-98f17e50.js';
55
+ import './index.styled-7e8976d7.js';
56
+ import './index-2219b86b.js';
57
+ import { g as getCurrentBaseUrl, a as getCurrentSsoUrl } from './routing-4707108c.js';
58
+ import { I as Icon } from './index-10f46069.js';
60
59
  import { Close, Plus } from '@hhgtech/icons/core';
61
- import { M as Modal } from './index-f628810d.js';
60
+ import { M as Modal } from './index-8345f710.js';
62
61
  import Cookies from 'js-cookie';
63
62
  import flatten from 'lodash/flatten';
64
63
  import uniqBy from 'lodash/uniqBy';
65
- import { g as getCookie } from './cookieHelper-774acadd.js';
66
- import { n as normalizeLinkSlash, a as normalizeLink } from './normalizeLink-93f71b8d.js';
64
+ import { g as getCookie } from './cookieHelper-bdcae9e9.js';
65
+ import { n as normalizeLinkSlash, a as normalizeLink } from './normalizeLink-98886668.js';
67
66
 
68
67
  var styles$7 = {"alert":"CHw-fZZ","content":"_03U6VRS","close":"EO828Vv"};
69
68
 
@@ -3035,21 +3034,16 @@ const StyledIcon = styled.div `
3035
3034
  }
3036
3035
  `;
3037
3036
 
3038
- const ToolsBannerCard = ({ className, heading, isMobile, bannerUrl, bannerUrlLarge, bannerColor, medicalReview = {
3037
+ const ToolsBannerCard = ({ className, heading, bannerColor, medicalReview = {
3039
3038
  link: '#',
3040
3039
  reviewer: '',
3041
3040
  date: '',
3042
- }, icon, style, isEmbeded, isPregTool, }) => {
3041
+ }, icon, style, isPregTool, }) => {
3043
3042
  const { t } = useTranslations();
3044
3043
  const theme = useMantineTheme();
3045
3044
  const isMarryBaby = theme.other.template === 'mb';
3046
3045
  const siteType = isMarryBaby ? 'marryBaby' : 'helloSites';
3047
3046
  const headingAs = 'h2';
3048
- const bannerBgUrl = isMobile
3049
- ? bannerUrl
3050
- : bannerUrlLarge
3051
- ? bannerUrlLarge
3052
- : bannerUrl;
3053
3047
  const medicalReviewEle = (medicalReview === null || medicalReview === void 0 ? void 0 : medicalReview.reviewer) ? (React__default.createElement(Text, { size: "label2", as: "div", className: "embedded-review", sx: {
3054
3048
  a: {
3055
3049
  textUnderlineOffset: '2px',
@@ -3062,13 +3056,13 @@ const ToolsBannerCard = ({ className, heading, isMobile, bannerUrl, bannerUrlLar
3062
3056
  date: medicalReview.date,
3063
3057
  }),
3064
3058
  } }))) : null;
3065
- return (React__default.createElement(StyledContainer, { className: className, "data-is-mobile": isMobile, style: style, "data-site": siteType, "data-banner-color": bannerColor ||
3059
+ return (React__default.createElement(StyledContainer, { className: className, style: style, "data-site": siteType, "data-banner-color": bannerColor ||
3066
3060
  (isPregTool
3067
- ? theme.colors.pink[2]
3061
+ ? theme.colors.pink[1]
3068
3062
  : isMarryBaby
3069
3063
  ? theme.colors.mb[2]
3070
3064
  : theme.colors.blue[1]) },
3071
- React__default.createElement(StyledWrapper$1, { "data-banner-url": bannerBgUrl, "data-is-mobile": isMobile, "data-is-embedded": isEmbeded },
3065
+ React__default.createElement(StyledWrapper$1, null,
3072
3066
  React__default.createElement(Flex, { gap: rem(24), align: 'center', justify: 'space-between', sx: { padding: rem(16), gap: rem(24) } },
3073
3067
  React__default.createElement(Box, null,
3074
3068
  React__default.createElement(Heading, { tag: "h5", as: headingAs }, heading),
@@ -3302,7 +3296,7 @@ const DueDateFormLastPeriod = ({ locale, onClick, siteType, pageUrl, }) => {
3302
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'))));
3303
3297
  };
3304
3298
 
3305
- const StyledTwins = styled.div `
3299
+ styled.div `
3306
3300
  &[data-is-side='true'] {
3307
3301
  width: 100%;
3308
3302
  margin-bottom: 0;
@@ -3346,7 +3340,7 @@ styled.div `
3346
3340
  }
3347
3341
  }
3348
3342
  `;
3349
- const StyledSubmitButton = styled.div `
3343
+ styled.div `
3350
3344
  width: 100%;
3351
3345
  display: flex;
3352
3346
  justify-content: center;
@@ -3392,7 +3386,7 @@ const StyledInputWrapper = styled.div `
3392
3386
  }
3393
3387
  }
3394
3388
  `;
3395
- const StyledFormInput = styled.div `
3389
+ styled.div `
3396
3390
  position: relative;
3397
3391
  width: calc(50% - 8px);
3398
3392
 
@@ -3884,7 +3878,7 @@ styled.div `
3884
3878
  content: '';
3885
3879
  }
3886
3880
  `;
3887
- const StyledRadioGroup = styled(RadioGroup) `
3881
+ styled(RadioGroup) `
3888
3882
  &[data-direction='horizontal'] div[data-type='circle'] {
3889
3883
  margin-right: 8px;
3890
3884
  }
@@ -3893,23 +3887,23 @@ const StyledRadioGroup = styled(RadioGroup) `
3893
3887
  }
3894
3888
  `;
3895
3889
 
3896
- const DueDateCardEmbed = ({ isMobile, locale, onSubmitDueDate, dueDatePageInfo, expertUrl, isSide, siteType, }) => {
3890
+ const DueDateCardEmbed = ({ locale, onSubmitDueDate, dueDatePageInfo, expertUrl, isSide, siteType, }) => {
3897
3891
  var _a;
3898
3892
  const { t } = useTranslations();
3899
3893
  return (React__default.createElement(HealthToolCardWrapper, { isPregTool: true },
3900
- React__default.createElement(HealthToolCardWrapper.Banner, { isSide: isSide, bannerColor: siteType === 'marryBaby' && theme.mbColors.mint, isEmbeded: true, color: "pink", icon: React__default.createElement("img", { alt: "health-tool-icon", src: (dueDatePageInfo === null || dueDatePageInfo === void 0 ? void 0 : dueDatePageInfo.featured_image) ||
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) ||
3901
3895
  CommonGAssets.getAssetPath('health-tools/due-date-icon.svg'), loading: "lazy" }), heading: t('healthTools.dueDateCalculator'), medicalReview: {
3902
3896
  link: expertUrl,
3903
3897
  reviewer: (_a = dueDatePageInfo === null || dueDatePageInfo === void 0 ? void 0 : dueDatePageInfo.reviewed_by) === null || _a === void 0 ? void 0 : _a.display_name,
3904
3898
  date: dueDatePageInfo === null || dueDatePageInfo === void 0 ? void 0 : dueDatePageInfo.reviewed_date,
3905
- }, isMobile: isMobile }),
3899
+ } }),
3906
3900
  React__default.createElement(StyledContent, { onSubmit: (e) => e.preventDefault(), className: "due-date-cal", "data-is-side": isSide },
3907
3901
  React__default.createElement(DueDateCalculator, { siteType: siteType, locale: locale, onSubmitDueDate: onSubmitDueDate, isSide: isSide }))));
3908
3902
  };
3909
3903
 
3910
3904
  const BmiFormContext = createContext({});
3911
3905
 
3912
- const DefaultForm$1 = (props) => {
3906
+ const DefaultForm$2 = (props) => {
3913
3907
  var _a, _b, _c, _d;
3914
3908
  const { t, locale } = useTranslations();
3915
3909
  const { control, bmiGenerated, isTouched, linkTool, submitProps } = useContext(BmiFormContext);
@@ -3944,7 +3938,7 @@ const DefaultForm$1 = (props) => {
3944
3938
  React__default.createElement(HealthToolFormWrapper.Submit, Object.assign({ className: "bmi-btn bmi--btn-submit", dataEventCategory: "Health Tool", dataEventAction: "BMI", dataEventLabel: `https://${domainLocales[locale]}/${linkTool}`, type: "submit" }, submitProps), t('bmi.submit'))));
3945
3939
  };
3946
3940
 
3947
- const InlineForm$1 = (props) => {
3941
+ const InlineForm$2 = (props) => {
3948
3942
  var _a, _b, _c, _d;
3949
3943
  const { t, locale } = useTranslations();
3950
3944
  const { control, bmiGenerated, isTouched, linkTool, submitProps } = useContext(BmiFormContext);
@@ -4036,180 +4030,107 @@ const BmiForm = (_a) => {
4036
4030
  isTouched,
4037
4031
  linkTool,
4038
4032
  submitProps,
4039
- } }, formLayout === 'inline' ? (React__default.createElement(InlineForm$1, Object.assign({}, commonProps))) : (React__default.createElement(DefaultForm$1, Object.assign({}, commonProps)))));
4033
+ } }, formLayout === 'inline' ? (React__default.createElement(InlineForm$2, Object.assign({}, commonProps))) : (React__default.createElement(DefaultForm$2, Object.assign({}, commonProps)))));
4040
4034
  };
4041
4035
 
4042
- const BMICardEmbed = ({ isMobile, onSubmit, bmiContent, bmiGenerated, bmiUnit, locale, formLayout, }) => {
4043
- var _a, _b, _c;
4036
+ const BMICardEmbed = (_a) => {
4037
+ var _b, _c, _d;
4038
+ var { bmiContent, bmiGenerated, bmiUnit, formProps } = _a, props = __rest(_a, ["bmiContent", "bmiGenerated", "bmiUnit", "formProps"]);
4044
4039
  const { t } = useTranslations();
4045
- return (React__default.createElement(HealthToolCardWrapper, null,
4040
+ return (React__default.createElement(HealthToolCardWrapper, Object.assign({}, props),
4046
4041
  React__default.createElement(HealthToolCardWrapper.Banner, { icon: React__default.createElement("img", { alt: "health-tool-icon", src: (bmiContent === null || bmiContent === void 0 ? void 0 : bmiContent.featured_image) ||
4047
4042
  CommonGAssets.getAssetPath('health-tools/bmi.svg'), loading: "lazy" }), heading: t('bmi.heading'), medicalReview: {
4048
- link: (_a = bmiContent === null || bmiContent === void 0 ? void 0 : bmiContent.reviewBy) === null || _a === void 0 ? void 0 : _a.link,
4049
- reviewer: (_b = bmiContent === null || bmiContent === void 0 ? void 0 : bmiContent.reviewBy) === null || _b === void 0 ? void 0 : _b.reviewer,
4050
- date: (_c = bmiContent === null || bmiContent === void 0 ? void 0 : bmiContent.reviewBy) === null || _c === void 0 ? void 0 : _c.date,
4051
- }, isMobile: isMobile }),
4043
+ link: (_b = bmiContent === null || bmiContent === void 0 ? void 0 : bmiContent.reviewBy) === null || _b === void 0 ? void 0 : _b.link,
4044
+ reviewer: (_c = bmiContent === null || bmiContent === void 0 ? void 0 : bmiContent.reviewBy) === null || _c === void 0 ? void 0 : _c.reviewer,
4045
+ date: (_d = bmiContent === null || bmiContent === void 0 ? void 0 : bmiContent.reviewBy) === null || _d === void 0 ? void 0 : _d.date,
4046
+ } }),
4052
4047
  React__default.createElement(HealthToolCardWrapper.Body, null,
4053
- React__default.createElement(BmiForm, { onSubmit: onSubmit, bmiGenerated: bmiGenerated, locale: locale, bmiUnit: bmiUnit, formLayout: formLayout }))));
4048
+ React__default.createElement(BmiForm, Object.assign({ bmiGenerated: bmiGenerated, bmiUnit: bmiUnit }, formProps)))));
4054
4049
  };
4055
4050
 
4056
- const BabyGrowthCardEmbed = ({ isMobile, onSubmit, onError, schema, babyGrowthContent, formLayout, }) => {
4057
- var _a, _b, _c;
4058
- return (React__default.createElement(HealthToolCardWrapper, null,
4059
- React__default.createElement(HealthToolCardWrapper.Banner, { bannerUrl: CommonGAssets.getAssetPath('embedToolBannerBlue.svg'), bannerUrlLarge: CommonGAssets.getAssetPath('embedToolBannerBlue.svg'), isEmbeded: true, icon: React__default.createElement("img", { className: "embedded-icon", alt: "health-tool-icon", src: (babyGrowthContent === null || babyGrowthContent === void 0 ? void 0 : babyGrowthContent.featuredImage) ||
4051
+ const BabyGrowthCardEmbed = (_a) => {
4052
+ var _b, _c, _d;
4053
+ var { onError, schema, babyGrowthContent, formProps } = _a, props = __rest(_a, ["onError", "schema", "babyGrowthContent", "formProps"]);
4054
+ return (React__default.createElement(HealthToolCardWrapper, Object.assign({}, props),
4055
+ React__default.createElement(HealthToolCardWrapper.Banner, { icon: React__default.createElement("img", { className: "embedded-icon", alt: "health-tool-icon", src: (babyGrowthContent === null || babyGrowthContent === void 0 ? void 0 : babyGrowthContent.featuredImage) ||
4060
4056
  CommonGAssets.getAssetPath('health-tools/toolsIconBabyGrowth.svg'), loading: "lazy" }), heading: (babyGrowthContent === null || babyGrowthContent === void 0 ? void 0 : babyGrowthContent.title) || '', medicalReview: {
4061
- link: (_a = babyGrowthContent === null || babyGrowthContent === void 0 ? void 0 : babyGrowthContent.reviewBy) === null || _a === void 0 ? void 0 : _a.link,
4062
- reviewer: (_b = babyGrowthContent === null || babyGrowthContent === void 0 ? void 0 : babyGrowthContent.reviewBy) === null || _b === void 0 ? void 0 : _b.reviewer.trim(),
4063
- date: (_c = babyGrowthContent === null || babyGrowthContent === void 0 ? void 0 : babyGrowthContent.reviewBy) === null || _c === void 0 ? void 0 : _c.date,
4064
- }, isMobile: isMobile }),
4057
+ link: (_b = babyGrowthContent === null || babyGrowthContent === void 0 ? void 0 : babyGrowthContent.reviewBy) === null || _b === void 0 ? void 0 : _b.link,
4058
+ reviewer: (_c = babyGrowthContent === null || babyGrowthContent === void 0 ? void 0 : babyGrowthContent.reviewBy) === null || _c === void 0 ? void 0 : _c.reviewer.trim(),
4059
+ date: (_d = babyGrowthContent === null || babyGrowthContent === void 0 ? void 0 : babyGrowthContent.reviewBy) === null || _d === void 0 ? void 0 : _d.date,
4060
+ } }),
4065
4061
  React__default.createElement(HealthToolCardWrapper.Body, null,
4066
- React__default.createElement(BabyGrowthForm, { schema: schema, onSubmit: onSubmit, onError: onError, formLayout: formLayout }))));
4062
+ React__default.createElement(BabyGrowthForm, Object.assign({ schema: schema, onError: onError }, formProps)))));
4067
4063
  };
4068
4064
 
4069
- var useStyles$1 = createStyles((theme, params) => {
4070
- const { isMarryBaby, isSide, direction } = params;
4065
+ var useStyles$1 = createStyles((theme, { hasOnClickFn }) => {
4071
4066
  return {
4072
- root: Object.assign(Object.assign(Object.assign(Object.assign({ position: 'relative', display: 'flex' }, (direction === 'auto'
4073
- ? {
4074
- flexDirection: 'row',
4075
- }
4076
- : {
4077
- flexDirection: direction === 'column' ? 'column-reverse' : 'row',
4078
- })), { gap: '8px', padding: '16px', borderRadius: isMarryBaby ? '16px' : '8px' }), (!isMarryBaby && {
4079
- backgroundImage: `url(${CommonGAssets.getAssetPath('bgPattern/baby-poop.svg')})`,
4080
- backgroundRepeat: 'no-repeat',
4081
- backgroundSize: 'cover',
4082
- backgroundPosition: 'center',
4083
- })), { backgroundColor: isMarryBaby
4084
- ? theme.colors.toneGreen.toString()
4085
- : theme.colors[theme.primaryColor][0], [theme.fn.smallerThan('sm')]: Object.assign({}, (direction === 'auto'
4086
- ? {
4087
- flexDirection: 'column-reverse',
4088
- }
4089
- : {})), [theme.fn.smallerThan('md')]: {
4090
- borderRadius: isMarryBaby ? '12px' : '8px',
4091
- }, [theme.fn.largerThan('md')]: { padding: '32px', gap: '20px' } }),
4092
- inner: {
4093
- display: 'flex',
4094
- gap: '16px',
4095
- flexDirection: 'column',
4096
- flex: 1,
4097
- },
4098
- content: {
4067
+ root: {
4068
+ position: 'relative',
4099
4069
  display: 'flex',
4100
4070
  flexDirection: 'column',
4101
- gap: '16px',
4071
+ gap: rem(16),
4102
4072
  },
4103
- reviewText: {
4073
+ sponsorBox: {
4104
4074
  display: 'flex',
4105
- gap: '4px',
4106
- a: {
4107
- color: theme.colors.gray[6],
4108
- fontWeight: 'bold',
4109
- '&:not(:hover)': {
4110
- textDecoration: 'none',
4111
- },
4112
- },
4113
- },
4114
- reviewTextIcon: {
4115
- flexShrink: 0,
4116
- width: '16px',
4117
- height: '16px',
4118
- [theme.fn.largerThan('sm')]: { marginTop: '2px' },
4075
+ gap: rem(12),
4076
+ alignItems: 'center',
4077
+ backgroundColor: theme.colors.neutral[0],
4078
+ border: `1px solid ${theme.colors.neutral[1]}`,
4079
+ borderRadius: rem(4),
4080
+ padding: '4px 12px',
4081
+ alignSelf: 'flex-start',
4119
4082
  },
4120
- thumbnail: Object.assign(Object.assign({ img: {
4121
- objectFit: 'contain',
4122
- objectPosition: 'bottom',
4123
- width: '100%',
4124
- height: '100%',
4125
- } }, (direction === 'column'
4126
- ? {
4127
- width: '80%',
4128
- alignSelf: 'center',
4129
- }
4130
- : direction === 'row'
4131
- ? {
4132
- width: '40%',
4133
- }
4134
- : {})), { [theme.fn.smallerThan('sm')]: Object.assign({}, (direction === 'auto'
4135
- ? {
4136
- width: '80%',
4137
- alignSelf: 'center',
4138
- }
4139
- : {})), [theme.fn.largerThan('sm')]: Object.assign({}, (direction === 'auto'
4140
- ? {
4141
- width: '40%',
4142
- }
4143
- : {})) }),
4144
- action: {
4145
- display: 'flex',
4146
- justifyContent: isMarryBaby ? 'center' : 'flex-start',
4083
+ sponsorLogo: {
4084
+ maxHeight: rem(32),
4147
4085
  },
4148
4086
  btn: {
4149
- minWidth: isMarryBaby ? 'auto' : '143px',
4150
- width: isSide || isMarryBaby ? '100%' : 'auto',
4151
- [theme.fn.smallerThan('md')]: { width: '100%' },
4087
+ minWidth: rem(180),
4088
+ [theme.fn.largerThan('sm')]: {
4089
+ alignSelf: 'flex-end',
4090
+ },
4091
+ visibility: hasOnClickFn ? 'visible' : 'hidden',
4152
4092
  },
4153
- sponsorLogo: Object.assign(Object.assign({ position: 'absolute', top: 0, height: 40, objectFit: 'contain', objectPosition: 'top' }, (direction === 'column'
4154
- ? {
4155
- left: '16px',
4156
- height: 40,
4157
- }
4158
- : direction === 'row'
4159
- ? {
4160
- height: 50,
4161
- right: '40px',
4162
- }
4163
- : {
4164
- left: '16px',
4165
- height: 40,
4166
- })), { [theme.fn.largerThan('sm')]: Object.assign({}, (direction === 'auto'
4167
- ? {
4168
- height: 50,
4169
- right: '40px',
4170
- left: 'unset',
4171
- }
4172
- : {})) }),
4173
4093
  };
4174
4094
  });
4175
4095
 
4176
- const BabyPoopEmbed = ({ babyPoopPage, onClickFindOut, currentUrl, isSide, direction = 'auto', sponsorLogo, }) => {
4096
+ const BabyPoopForm = (_a) => {
4097
+ var { babyPoopPage, onClickFindOut, currentUrl, sponsorLogo, btnProps, styles, classNames } = _a, props = __rest(_a, ["babyPoopPage", "onClickFindOut", "currentUrl", "sponsorLogo", "btnProps", "styles", "classNames"]);
4177
4098
  const { t } = useTranslations();
4178
4099
  const _theme = useMantineTheme();
4179
4100
  const isMarryBaby = _theme.other.template === 'mb';
4180
- const { classes } = useStyles$1({ isMarryBaby, isSide, direction }, { name: 'BabyPoopEmbed' });
4101
+ const { classes } = useStyles$1({ hasOnClickFn: Boolean(onClickFindOut) }, { name: 'BabyPoopForm', styles, classNames });
4102
+ return (React__default.createElement(Box, Object.assign({ className: classes.root }, props),
4103
+ sponsorLogo && (React__default.createElement(Box, { className: classes.sponsorBox },
4104
+ React__default.createElement(Text, { size: "p4" }, t('common.sponsoredBy')),
4105
+ React__default.createElement("img", { loading: "lazy", src: sponsorLogo, alt: "sponsor", className: classes.sponsorLogo }))),
4106
+ React__default.createElement(Text, { size: "p3", className: "description" }, babyPoopPage.description),
4107
+ React__default.createElement(Button$1, Object.assign({ className: classes.btn, size: isMarryBaby ? 'lg' : 'md', variant: isMarryBaby ? 'secondary' : 'primary', onClick: onClickFindOut, dataEventCategory: "Health Tool", dataEventAction: "Baby Stool Inquiry", dataEventLabel: currentUrl }, btnProps), t('babyPoop.findOut'))));
4108
+ };
4109
+
4110
+ const BabyPoopEmbed = (_a) => {
4111
+ var { babyPoopPage, formProps } = _a, props = __rest(_a, ["babyPoopPage", "formProps"]);
4112
+ const theme = useMantineTheme();
4113
+ const isMarryBaby = theme.other.template === 'mb';
4181
4114
  const { reviewedBy, reviewedDate } = babyPoopPage || {};
4182
- return (React__default.createElement("div", { className: classes.root },
4183
- React__default.createElement("div", { className: classes.inner },
4184
- React__default.createElement(Heading, { tag: "h3", as: 'h2', color: !isMarryBaby && '#284A75' }, babyPoopPage.title),
4185
- React__default.createElement("div", { className: classes.content, "data-is-side": isSide },
4186
- React__default.createElement(Text, { size: "p3", className: "description" }, babyPoopPage.description),
4187
- !!reviewedBy && (React__default.createElement("div", { className: classes.reviewText },
4188
- React__default.createElement("img", { src: CommonGAssets.getAssetPath('reviewerCheck.svg'), alt: "check", className: classes.reviewTextIcon, loading: "lazy" }),
4189
- React__default.createElement(Text, { size: "p4", color: theme.colors.gray600 },
4190
- t('categoryPage.info.reviewed'),
4191
- "\u00A0",
4192
- React__default.createElement("a", { href: reviewedBy.profile_url }, reviewedBy.display_name),
4193
- "\u00A0",
4194
- t('categoryPage.onDate', { date: reviewedDate || '' })))),
4195
- React__default.createElement("div", { className: classes.action },
4196
- React__default.createElement(Button$1, { className: classes.btn, size: isMarryBaby ? 'lg' : 'md', variant: isMarryBaby ? 'secondary' : 'primary', onClick: onClickFindOut, dataEventCategory: "Health Tool", dataEventAction: "Baby Stool Inquiry", dataEventLabel: currentUrl, style: {
4197
- visibility: Boolean(onClickFindOut) ? 'visible' : 'hidden',
4198
- } }, t('babyPoop.findOut'))))),
4199
- React__default.createElement("div", { className: classes.thumbnail },
4200
- React__default.createElement("img", { src: isMarryBaby
4115
+ return (React__default.createElement(HealthToolCardWrapper, Object.assign({}, props),
4116
+ React__default.createElement(HealthToolCardWrapper.Banner, { icon: React__default.createElement("img", { alt: "health-tool-icon", src: isMarryBaby
4201
4117
  ? CommonGAssets.getAssetPath('baby-poop.svg')
4202
- : babyPoopPage === null || babyPoopPage === void 0 ? void 0 : babyPoopPage.featuredImage, alt: babyPoopPage.title, loading: "lazy" })),
4203
- sponsorLogo && (React__default.createElement("img", { loading: "lazy", src: sponsorLogo, alt: "sponsor", className: classes.sponsorLogo }))));
4118
+ : babyPoopPage === null || babyPoopPage === void 0 ? void 0 : babyPoopPage.featuredImage, loading: "lazy" }), heading: babyPoopPage.title, medicalReview: {
4119
+ link: reviewedBy === null || reviewedBy === void 0 ? void 0 : reviewedBy.profileUrl,
4120
+ reviewer: reviewedBy === null || reviewedBy === void 0 ? void 0 : reviewedBy.displayName,
4121
+ date: reviewedDate,
4122
+ } }),
4123
+ React__default.createElement(HealthToolCardWrapper.Body, null,
4124
+ React__default.createElement(BabyPoopForm, Object.assign({ babyPoopPage: babyPoopPage }, formProps)))));
4204
4125
  };
4205
4126
 
4206
4127
  const ThrFormContext = createContext({});
4207
4128
 
4208
- const DefaultForm = (_a) => {
4129
+ const DefaultForm$1 = (_a) => {
4209
4130
  var _b;
4210
4131
  var props = __rest(_a, []);
4211
4132
  const { t, locale } = useTranslations();
4212
- const { isAdult, activeValueNote, linkTool, form } = useContext(ThrFormContext);
4133
+ const { isAdult, activeValueNote, linkTool, form, submitProps } = useContext(ThrFormContext);
4213
4134
  return (React__default.createElement(HealthToolFormWrapper, Object.assign({ formLayout: "default" }, props),
4214
4135
  React__default.createElement(GenderOptionControl, Object.assign({}, form.getInputProps('gender'))),
4215
4136
  React__default.createElement(DatePicker$1, Object.assign({}, form.getInputProps('age'), { placeholder: 'DD/MM/YYYY', popoverProps: {
@@ -4232,14 +4153,14 @@ const DefaultForm = (_a) => {
4232
4153
  fontSize: '14px',
4233
4154
  },
4234
4155
  }, withinPortal: true }, form.getInputProps('activeValue')))),
4235
- React__default.createElement(HealthToolFormWrapper.Submit, { type: "submit", dataEventCategory: "Health Tool", dataEventAction: "THR", dataEventLabel: `https://${domainLocales[locale]}/${linkTool}` }, t('bmi.submit'))));
4156
+ React__default.createElement(HealthToolFormWrapper.Submit, Object.assign({ type: "submit", dataEventCategory: "Health Tool", dataEventAction: "THR", dataEventLabel: `https://${domainLocales[locale]}/${linkTool}` }, submitProps), t('bmi.submit'))));
4236
4157
  };
4237
4158
 
4238
- const InlineForm = (_a) => {
4159
+ const InlineForm$1 = (_a) => {
4239
4160
  var _b;
4240
4161
  var props = __rest(_a, []);
4241
4162
  const { t, locale } = useTranslations();
4242
- const { isAdult, activeValueNote, linkTool, form } = useContext(ThrFormContext);
4163
+ const { isAdult, activeValueNote, linkTool, form, submitProps } = useContext(ThrFormContext);
4243
4164
  return (React__default.createElement(HealthToolFormWrapper, Object.assign({ formLayout: "inline" }, props),
4244
4165
  React__default.createElement(HealthToolFormWrapper.FormRow, null,
4245
4166
  React__default.createElement(HealthToolFormWrapper.BorderInlineControl, { label: t('tools.selectGender') },
@@ -4272,11 +4193,11 @@ const InlineForm = (_a) => {
4272
4193
  fontSize: '14px',
4273
4194
  },
4274
4195
  }, withinPortal: true }, form.getInputProps('activeValue'))))),
4275
- React__default.createElement(HealthToolFormWrapper.Submit, { type: "submit", dataEventCategory: "Health Tool", dataEventAction: "THR", dataEventLabel: `https://${domainLocales[locale]}/${linkTool}` }, t('bmi.submit'))));
4196
+ React__default.createElement(HealthToolFormWrapper.Submit, Object.assign({ type: "submit", dataEventCategory: "Health Tool", dataEventAction: "THR", dataEventLabel: `https://${domainLocales[locale]}/${linkTool}` }, submitProps), t('bmi.submit'))));
4276
4197
  };
4277
4198
 
4278
4199
  const ThrForm = (_a) => {
4279
- var { formLayout, onSubmit, onError } = _a, rest = __rest(_a, ["formLayout", "onSubmit", "onError"]);
4200
+ var { formLayout, onSubmit, onError, submitProps } = _a, rest = __rest(_a, ["formLayout", "onSubmit", "onError", "submitProps"]);
4280
4201
  const { t, locale } = useTranslations();
4281
4202
  const minRange = useRef(40);
4282
4203
  const { getHealthToolLink } = useHealthToolsCache(locale);
@@ -4409,39 +4330,40 @@ const ThrForm = (_a) => {
4409
4330
  activeValueNote,
4410
4331
  linkTool,
4411
4332
  form,
4412
- } }, formLayout === 'inline' ? (React__default.createElement(InlineForm, Object.assign({}, commonProps))) : (React__default.createElement(DefaultForm, Object.assign({}, commonProps)))));
4333
+ submitProps,
4334
+ } }, formLayout === 'inline' ? (React__default.createElement(InlineForm$1, Object.assign({}, commonProps))) : (React__default.createElement(DefaultForm$1, Object.assign({}, commonProps)))));
4413
4335
  };
4414
4336
 
4415
- const THRCardEmbed = ({ thrContent, isMobile, formLayout, onSubmit, }) => {
4416
- var _a, _b;
4337
+ const THRCardEmbed = (_a) => {
4338
+ var _b, _c;
4339
+ var { thrContent, formProps } = _a, props = __rest(_a, ["thrContent", "formProps"]);
4417
4340
  const { t } = useTranslations();
4418
- return (React__default.createElement(HealthToolCardWrapper, null,
4341
+ return (React__default.createElement(HealthToolCardWrapper, Object.assign({}, props),
4419
4342
  React__default.createElement(HealthToolCardWrapper.Banner, { icon: React__default.createElement("img", { alt: "health-tool-icon", src: (thrContent === null || thrContent === void 0 ? void 0 : thrContent.featured_image) ||
4420
- CommonGAssets.getAssetPath('health-tools/target-heart-rate-icon.svg'), loading: "lazy" }), heading: t('targetHearRate.heading'), medicalReview: ((_a = thrContent === null || thrContent === void 0 ? void 0 : thrContent.reviewedBy) === null || _a === void 0 ? void 0 : _a.display_name)
4343
+ CommonGAssets.getAssetPath('health-tools/target-heart-rate-icon.svg'), loading: "lazy" }), heading: t('targetHearRate.heading'), medicalReview: ((_b = thrContent === null || thrContent === void 0 ? void 0 : thrContent.reviewedBy) === null || _b === void 0 ? void 0 : _b.display_name)
4421
4344
  ? {
4422
4345
  link: formatUserProfileUrl(thrContent === null || thrContent === void 0 ? void 0 : thrContent.reviewedBy),
4423
- reviewer: (_b = thrContent === null || thrContent === void 0 ? void 0 : thrContent.reviewedBy) === null || _b === void 0 ? void 0 : _b.display_name,
4346
+ reviewer: (_c = thrContent === null || thrContent === void 0 ? void 0 : thrContent.reviewedBy) === null || _c === void 0 ? void 0 : _c.display_name,
4424
4347
  date: thrContent === null || thrContent === void 0 ? void 0 : thrContent.reviewedDate,
4425
4348
  }
4426
- : undefined, isMobile: isMobile }),
4349
+ : undefined }),
4427
4350
  React__default.createElement(HealthToolCardWrapper.Body, null,
4428
- React__default.createElement(ThrForm, { onSubmit: onSubmit, formLayout: formLayout }))));
4351
+ React__default.createElement(ThrForm, Object.assign({}, formProps)))));
4429
4352
  };
4430
4353
 
4431
- const BMRCardEmbed = ({ bmrContent, isMobile, onSubmit, formLayout, bmiGenerated, bmiUnit, }) => {
4432
- var _a, _b, _c;
4354
+ const BMRCardEmbed = (_a) => {
4355
+ var _b, _c, _d;
4356
+ var { bmrContent, bmiGenerated, bmiUnit, formProps } = _a, props = __rest(_a, ["bmrContent", "bmiGenerated", "bmiUnit", "formProps"]);
4433
4357
  const { t } = useTranslations();
4434
- return (React__default.createElement(HealthToolCardWrapper, null,
4358
+ return (React__default.createElement(HealthToolCardWrapper, Object.assign({}, props),
4435
4359
  React__default.createElement(HealthToolCardWrapper.Banner, { icon: React__default.createElement("img", { alt: "health-tool-icon", src: (bmrContent === null || bmrContent === void 0 ? void 0 : bmrContent.featured_image) ||
4436
4360
  CommonGAssets.getAssetPath('health-tools/bmr.svg'), loading: "lazy" }), heading: t('bmr.heading'), medicalReview: {
4437
- link: (_a = bmrContent === null || bmrContent === void 0 ? void 0 : bmrContent.reviewBy) === null || _a === void 0 ? void 0 : _a.link,
4438
- reviewer: (_b = bmrContent === null || bmrContent === void 0 ? void 0 : bmrContent.reviewBy) === null || _b === void 0 ? void 0 : _b.reviewer,
4439
- date: (_c = bmrContent === null || bmrContent === void 0 ? void 0 : bmrContent.reviewBy) === null || _c === void 0 ? void 0 : _c.date,
4440
- }, isMobile: isMobile }),
4361
+ link: (_b = bmrContent === null || bmrContent === void 0 ? void 0 : bmrContent.reviewBy) === null || _b === void 0 ? void 0 : _b.link,
4362
+ reviewer: (_c = bmrContent === null || bmrContent === void 0 ? void 0 : bmrContent.reviewBy) === null || _c === void 0 ? void 0 : _c.reviewer,
4363
+ date: (_d = bmrContent === null || bmrContent === void 0 ? void 0 : bmrContent.reviewBy) === null || _d === void 0 ? void 0 : _d.date,
4364
+ } }),
4441
4365
  React__default.createElement(HealthToolCardWrapper.Body, null,
4442
- React__default.createElement(BmiForm, { onSubmit: onSubmit, bmiGenerated: bmiGenerated, bmiUnit: bmiUnit, formLayout: formLayout, submitProps: {
4443
- dataEventAction: 'BMR',
4444
- } }))));
4366
+ 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' }) })))));
4445
4367
  };
4446
4368
 
4447
4369
  const OvulationForm = ({ locale, onSubmit, isSide, siteType }) => {
@@ -4553,189 +4475,152 @@ const OvulationCalculator = ({ locale, onSubmitOvulation, isSide, siteType, }) =
4553
4475
  }, isSide: isSide })));
4554
4476
  };
4555
4477
 
4556
- const OvulationCardEmbed = ({ onSubmitOvulation, locale, ovulationPageInfo, expertUrl, isSide = false, siteType, isMobile, }) => {
4478
+ const OvulationCardEmbed = ({ onSubmitOvulation, locale, ovulationPageInfo, expertUrl, isSide = false, siteType, }) => {
4557
4479
  var _a;
4558
4480
  const { t } = useTranslations();
4559
4481
  return (React__default.createElement(HealthToolCardWrapper, { isPregTool: true },
4560
- React__default.createElement(HealthToolCardWrapper.Banner, { bannerUrl: CommonGAssets.getAssetPath('embedToolBannerPink.svg'), bannerColor: siteType === 'marryBaby' && theme.mbColors.mint, isEmbeded: true, color: "pink", icon: React__default.createElement("img", { alt: "health-tool-icon", src: (ovulationPageInfo === null || ovulationPageInfo === void 0 ? void 0 : ovulationPageInfo.featured_image) ||
4482
+ React__default.createElement(HealthToolCardWrapper.Banner, { color: "pink", icon: React__default.createElement("img", { alt: "health-tool-icon", src: (ovulationPageInfo === null || ovulationPageInfo === void 0 ? void 0 : ovulationPageInfo.featured_image) ||
4561
4483
  CommonGAssets.getAssetPath('health-tools/ovulation-icon.svg'), loading: "lazy" }), heading: t('healthTools.ovulationCalculator'), medicalReview: {
4562
4484
  link: expertUrl,
4563
4485
  reviewer: (_a = ovulationPageInfo === null || ovulationPageInfo === void 0 ? void 0 : ovulationPageInfo.reviewed_by) === null || _a === void 0 ? void 0 : _a.display_name,
4564
4486
  date: ovulationPageInfo === null || ovulationPageInfo === void 0 ? void 0 : ovulationPageInfo.reviewed_date,
4565
- }, isMobile: isMobile }),
4487
+ } }),
4566
4488
  React__default.createElement(StyledContent, { onSubmit: (e) => e.preventDefault(), className: "ovulation-cal", "data-is-side": isSide },
4567
4489
  React__default.createElement(OvulationCalculator, { siteType: siteType, locale: locale, onSubmitOvulation: onSubmitOvulation, isSide: isSide }))));
4568
4490
  };
4569
4491
 
4570
- const PWGInputForm = ({ siteType, info, onChange, errorMessage = {}, }) => {
4571
- const { t } = useTranslations();
4572
- const [isEdit, setIsEdit] = useState({
4573
- weightBefore: false,
4574
- height: false,
4575
- weight: false,
4576
- });
4577
- const [height, setHeight] = useState(0);
4578
- const ref = useRef(null);
4579
- useEffect(() => {
4580
- var _a;
4581
- setHeight((_a = ref.current) === null || _a === void 0 ? void 0 : _a.clientHeight);
4582
- });
4583
- const checkValidInputIsANumber = (s, cb) => {
4584
- if (s === '' || (!isNaN(s) && !isNaN(parseFloat(s)))) {
4585
- cb(s);
4586
- }
4587
- };
4588
- const onWeightBeforeChanged = (weightBefore) => {
4589
- checkValidInputIsANumber(weightBefore, (a) => {
4590
- setIsEdit((value) => (Object.assign(Object.assign({}, value), { weightBefore: true })));
4591
- const newInfo = Object.assign(Object.assign({}, info), { weightBefore: a });
4592
- onChange && onChange(newInfo);
4593
- });
4594
- };
4595
- const onHeightChanged = (height) => {
4596
- checkValidInputIsANumber(height, (h) => {
4597
- setIsEdit((value) => (Object.assign(Object.assign({}, value), { height: true })));
4598
- const newInfo = Object.assign(Object.assign({}, info), { height: h });
4599
- onChange && onChange(newInfo);
4600
- });
4601
- };
4602
- const onWeightChanged = (weight) => {
4603
- checkValidInputIsANumber(weight, (w) => {
4604
- setIsEdit((value) => (Object.assign(Object.assign({}, value), { weight: true })));
4605
- const newInfo = Object.assign(Object.assign({}, info), { weight: w });
4606
- onChange && onChange(newInfo);
4607
- });
4608
- };
4609
- useEffect(() => {
4610
- onChange &&
4611
- onChange(Object.assign({}, info));
4612
- }, []);
4613
- useEffect(() => {
4614
- setIsEdit({
4615
- weightBefore: false,
4616
- height: false,
4617
- weight: false,
4618
- });
4619
- }, [errorMessage]);
4620
- return siteType === 'marryBaby' ? (React__default.createElement(React__default.Fragment, null,
4621
- React__default.createElement("div", { className: "input-form-pwg input-section" },
4622
- React__default.createElement(StyledTextField, { label: t('pregnancyWeightGain.heightInput'), name: "pwg-height", size: "md", value: info === null || info === void 0 ? void 0 : info.height, CustomInput: React__default.createElement(Input, { className: !(isEdit === null || isEdit === void 0 ? void 0 : isEdit.height) ? 'error-input' : '', name: "pwg-height", size: "md", placeholder: "Nh\u1EADp th\u00F4ng tin", value: info === null || info === void 0 ? void 0 : info.height, type: "number", onKeyDown: (e) => ['e', 'E', '+', '-'].includes(e.key) && e.preventDefault(), onWheelCapture: (event) => event.currentTarget.blur(), errorMessage: !(isEdit === null || isEdit === void 0 ? void 0 : isEdit.height) ? errorMessage === null || errorMessage === void 0 ? void 0 : errorMessage.height : '', showErrorMessage: false, onChange: onHeightChanged }) })),
4623
- React__default.createElement("div", { className: "input-form-pwg input-section" },
4624
- React__default.createElement(StyledTextField, { label: t('pregnancyWeightGain.weightBeforeInput'), name: "pwg-weightBefore", size: "md", value: info === null || info === void 0 ? void 0 : info.weightBefore, CustomInput: React__default.createElement(Input, { className: !(isEdit === null || isEdit === void 0 ? void 0 : isEdit.weightBefore) ? 'error-input' : '', name: "pwg-weightBefore", size: "md", placeholder: "Nh\u1EADp th\u00F4ng tin", value: info === null || info === void 0 ? void 0 : info.weightBefore, type: "number", onKeyDown: (e) => ['e', 'E', '+', '-'].includes(e.key) && e.preventDefault(), onWheelCapture: (event) => event.currentTarget.blur(), errorMessage: !(isEdit === null || isEdit === void 0 ? void 0 : isEdit.weightBefore) ? errorMessage === null || errorMessage === void 0 ? void 0 : errorMessage.height : '', showErrorMessage: false, onChange: onWeightBeforeChanged }) })),
4625
- React__default.createElement("div", { className: "input-form-pwg input-section" },
4626
- React__default.createElement(StyledTextField, { label: t('pregnancyWeightGain.weightInput'), name: "pwg-weight", size: "md", value: info === null || info === void 0 ? void 0 : info.weight, CustomInput: React__default.createElement(Input, { className: !(isEdit === null || isEdit === void 0 ? void 0 : isEdit.weight) ? 'error-input' : '', name: "pwg-weight", size: "md", placeholder: "Nh\u1EADp th\u00F4ng tin", value: info === null || info === void 0 ? void 0 : info.weight, type: "number", onKeyDown: (e) => ['e', 'E', '+', '-'].includes(e.key) && e.preventDefault(), onWheelCapture: (event) => event.currentTarget.blur(), errorMessage: !(isEdit === null || isEdit === void 0 ? void 0 : isEdit.weight) ? errorMessage === null || errorMessage === void 0 ? void 0 : errorMessage.weight : '', showErrorMessage: false, onChange: onWeightChanged }) })))) : (React__default.createElement(React__default.Fragment, null,
4627
- React__default.createElement("div", { className: "input-form-pwg" },
4628
- React__default.createElement(PureInput, { placeholder: t('pwg.placeholder.height'), className: "input-section", label: React__default.createElement("span", { style: {
4629
- color: theme.colors.gray600,
4630
- fontWeight: 'bold',
4631
- marginBottom: '9px',
4632
- }, className: "label-text" },
4633
- t('pregnancyWeightGain.heightInput'),
4634
- ' ',
4635
- React__default.createElement("span", { style: {
4636
- color: `${theme.colors.gray300}`,
4637
- } }, t('bmi.heightInput.desc'))), errorMessage: !isEdit.height ? errorMessage === null || errorMessage === void 0 ? void 0 : errorMessage.height : '', size: "sm", isNumerousKeyboard: true, name: "pwg-height", value: info === null || info === void 0 ? void 0 : info.height, onChange: onHeightChanged })),
4638
- React__default.createElement("div", { className: "input-form-pwg" },
4639
- React__default.createElement(PureInput, { placeholder: t('pwg.placeholder.weight'), className: "input-section", label: React__default.createElement("span", { style: {
4640
- color: theme.colors.gray600,
4641
- fontWeight: 'bold',
4642
- marginBottom: '9px',
4643
- }, ref: ref, className: "label-text" },
4644
- t('pregnancyWeightGain.weightBeforeInput'),
4645
- ' ',
4646
- React__default.createElement("span", { style: {
4647
- color: `${theme.colors.gray300}`,
4648
- } }, t('pregnancyWeightGain.weightInput.desc'))), errorMessage: !isEdit.weightBefore ? errorMessage === null || errorMessage === void 0 ? void 0 : errorMessage.weightBefore : '', size: "sm", isNumerousKeyboard: true, name: "pwg-weightBefore", onChange: onWeightBeforeChanged, value: info === null || info === void 0 ? void 0 : info.weightBefore })),
4649
- React__default.createElement("div", { className: "input-form-pwg" },
4650
- React__default.createElement(PureInput, { placeholder: t('pwg.placeholder.weight'), className: "input-section", label: React__default.createElement("span", { style: {
4651
- color: theme.colors.gray600,
4652
- fontWeight: 'bold',
4653
- marginBottom: '9px',
4654
- minHeight: height,
4655
- }, className: "label-text" },
4656
- t('pregnancyWeightGain.weightInput'),
4657
- ' ',
4658
- React__default.createElement("span", { style: {
4659
- color: `${theme.colors.gray300}`,
4660
- } }, t('pregnancyWeightGain.weightInput.desc'))), errorMessage: !isEdit.weight ? errorMessage === null || errorMessage === void 0 ? void 0 : errorMessage.weight : '', size: "sm", isNumerousKeyboard: true, name: "pwg-weight", value: info === null || info === void 0 ? void 0 : info.weight, onChange: onWeightChanged }))));
4492
+ const PWGFormContext = createContext({});
4493
+
4494
+ const DefaultForm = (_a) => {
4495
+ var props = __rest(_a, []);
4496
+ const { t, locale } = useTranslations();
4497
+ const { linkTool, form, submitProps } = useContext(PWGFormContext);
4498
+ const theme = useMantineTheme();
4499
+ const isMarryBaby = theme.other.template === 'mb';
4500
+ return (React__default.createElement(HealthToolFormWrapper, Object.assign({ formLayout: "default" }, props),
4501
+ 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'))),
4502
+ 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'))),
4503
+ 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'))),
4504
+ 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'))),
4505
+ React__default.createElement(HealthToolFormWrapper.Switching, Object.assign({ label: t('pregnancyWeightGain.havingTwins') }, form.getInputProps('hasTwin'))),
4506
+ 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'))));
4661
4507
  };
4662
4508
 
4663
- const PWGCardEmbed = ({ locale, onClick, inputErrorMessage, pwgContent, onFormChange, info, isMobile, isSide = false, siteType, }) => {
4664
- var _a;
4665
- const { t } = useTranslations();
4666
- const [isTwins, setIsTwins] = useState('notwins');
4667
- const [cycleValue, setCycleValue] = useState({
4668
- label: '1',
4669
- value: 1,
4509
+ const InlineForm = (_a) => {
4510
+ var props = __rest(_a, []);
4511
+ const { t, locale } = useTranslations();
4512
+ const { linkTool, form, submitProps } = useContext(PWGFormContext);
4513
+ const theme = useMantineTheme();
4514
+ const isMarryBaby = theme.other.template === 'mb';
4515
+ return (React__default.createElement(HealthToolFormWrapper, Object.assign({ formLayout: "inline" }, props),
4516
+ React__default.createElement(HealthToolFormWrapper.BorderInlineControl, { label: t('pregnancyWeightGain.weekInput') },
4517
+ React__default.createElement(Input$1.Number, Object.assign({ min: INPUT_RANGE.pregnantWeek.min, max: INPUT_RANGE.pregnantWeek.max, placeholder: `${INPUT_RANGE.pregnantWeek.min} - ${INPUT_RANGE.pregnantWeek.max}`, rightSection: React__default.createElement(HealthToolFormWrapper.Unit, null, t('babyGrowth.kg')) }, form.getInputProps('pregnantWeek')))),
4518
+ React__default.createElement(HealthToolFormWrapper.BorderInlineControl, { label: t('pregnancyWeightGain.weightBeforeInput') },
4519
+ React__default.createElement(Input$1.Number, Object.assign({}, form.getInputProps('lastWeight'), { min: INPUT_RANGE.weight.min, max: INPUT_RANGE.weight.max, placeholder: t('tools.inputPlaceholder', {
4520
+ content: '50',
4521
+ }), rightSection: React__default.createElement(HealthToolFormWrapper.Unit, null, "kg") }))),
4522
+ React__default.createElement(HealthToolFormWrapper.BorderInlineControl, { label: t('pregnancyWeightGain.heightInput') },
4523
+ React__default.createElement(Input$1.Number, Object.assign({}, form.getInputProps('height'), { min: INPUT_RANGE.height.min, max: INPUT_RANGE.height.max, placeholder: t('tools.inputPlaceholder', {
4524
+ content: '160',
4525
+ }), rightSection: React__default.createElement(HealthToolFormWrapper.Unit, null, "cm") }))),
4526
+ React__default.createElement(HealthToolFormWrapper.BorderInlineControl, { label: t('pregnancyWeightGain.weightInput') },
4527
+ React__default.createElement(Input$1.Number, Object.assign({}, form.getInputProps('weight'), { min: INPUT_RANGE.weight.min, max: INPUT_RANGE.weight.max, placeholder: t('tools.inputPlaceholder', {
4528
+ content: '50',
4529
+ }), rightSection: React__default.createElement(HealthToolFormWrapper.Unit, null, "kg") }))),
4530
+ React__default.createElement(HealthToolFormWrapper.BorderInlineControl, { label: t('pregnancyWeightGain.havingTwins'), width: 'none' },
4531
+ React__default.createElement(HealthToolFormWrapper.Switching, Object.assign({}, form.getInputProps('hasTwin')))),
4532
+ 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'))));
4533
+ };
4534
+
4535
+ const MbLayout = (_a) => {
4536
+ var props = __rest(_a, []);
4537
+ const { t, locale } = useTranslations();
4538
+ const { linkTool, form, submitProps } = useContext(PWGFormContext);
4539
+ const theme = useMantineTheme();
4540
+ const isMarryBaby = theme.other.template === 'mb';
4541
+ return (React__default.createElement(HealthToolFormWrapper, Object.assign({ formLayout: "default" }, props),
4542
+ React__default.createElement(HealthToolFormWrapper.FormRow, null,
4543
+ React__default.createElement(HealthToolFormWrapper.BorderBoxControl, { label: t('pregnancyWeightGain.weekInput'), rightSection: t('pregnancy.week') },
4544
+ React__default.createElement(Input$1.Number, Object.assign({ min: INPUT_RANGE.pregnantWeek.min, max: INPUT_RANGE.pregnantWeek.max, placeholder: `${INPUT_RANGE.pregnantWeek.min} - ${INPUT_RANGE.pregnantWeek.max}` }, form.getInputProps('pregnantWeek'), { error: null }))),
4545
+ form.errors.pregnantWeek && (React__default.createElement(HealthToolFormWrapper.Error, null, form.errors.pregnantWeek))),
4546
+ React__default.createElement(HealthToolFormWrapper.FormRow, null,
4547
+ React__default.createElement(HealthToolFormWrapper.BorderBoxControl, { label: t('pregnancyWeightGain.weightBeforeInput'), rightSection: "kg" },
4548
+ React__default.createElement(Input$1.Number, Object.assign({ min: INPUT_RANGE.weight.min, max: INPUT_RANGE.weight.max }, form.getInputProps('lastWeight'), { error: null }))),
4549
+ form.errors.lastWeight && (React__default.createElement(HealthToolFormWrapper.Error, null, form.errors.lastWeight))),
4550
+ React__default.createElement(HealthToolFormWrapper.FormRow, null,
4551
+ React__default.createElement(HealthToolFormWrapper.BorderBoxControl, { label: t('pregnancyWeightGain.heightInput'), rightSection: "cm" },
4552
+ React__default.createElement(Input$1.Number, Object.assign({ min: INPUT_RANGE.height.min, max: INPUT_RANGE.height.max }, form.getInputProps('height'), { error: null }))),
4553
+ form.errors.height && (React__default.createElement(HealthToolFormWrapper.Error, null, form.errors.height))),
4554
+ React__default.createElement(HealthToolFormWrapper.FormRow, null,
4555
+ React__default.createElement(HealthToolFormWrapper.BorderBoxControl, { label: t('pregnancyWeightGain.weightInput'), rightSection: "kg" },
4556
+ React__default.createElement(Input$1.Number, Object.assign({ min: INPUT_RANGE.weight.min, max: INPUT_RANGE.weight.max }, form.getInputProps('weight'), { error: null }))),
4557
+ form.errors.weight && (React__default.createElement(HealthToolFormWrapper.Error, null, form.errors.weight))),
4558
+ React__default.createElement(HealthToolFormWrapper.Switching, Object.assign({ label: t('pregnancyWeightGain.havingTwins') }, form.getInputProps('hasTwin'))),
4559
+ 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'))));
4560
+ };
4561
+
4562
+ const INPUT_RANGE = {
4563
+ height: {
4564
+ min: 1,
4565
+ max: 300,
4566
+ },
4567
+ weight: {
4568
+ min: 1,
4569
+ max: 200,
4570
+ },
4571
+ pregnantWeek: {
4572
+ min: 1,
4573
+ max: 40,
4574
+ },
4575
+ };
4576
+ const PWGForm = (_a) => {
4577
+ var { formLayout = 'default', submitProps, onSubmit } = _a, rest = __rest(_a, ["formLayout", "submitProps", "onSubmit"]);
4578
+ const { t, locale } = useTranslations();
4579
+ const theme = useMantineTheme();
4580
+ const isMarryBaby = theme.other.template === 'mb';
4581
+ const form = useForm$1({
4582
+ validate: {
4583
+ pregnantWeek: isNotEmpty(t('validation.error.requiredField')),
4584
+ height: isNotEmpty(t('validation.error.requiredField')),
4585
+ weight: (value, values) => {
4586
+ return !value
4587
+ ? t('validation.error.requiredField')
4588
+ : Number(value) >= Number(values.lastWeight)
4589
+ ? null
4590
+ : t('pregnancyWeightGain.weightInput.error');
4591
+ },
4592
+ lastWeight: (value, values) => {
4593
+ return !value
4594
+ ? t('validation.error.requiredField')
4595
+ : Number(value) < Number(values.weight)
4596
+ ? null
4597
+ : t('pregnancyWeightGain.weightInput.error');
4598
+ },
4599
+ },
4670
4600
  });
4671
- const weekPregnantLengthDropDownOptions = useMemo(() => [...Array(40)].map((_, index) => ({
4672
- label: `${index + 1}`,
4673
- value: `${index + 1}`,
4674
- })), []);
4675
4601
  const { getHealthToolLink } = useHealthToolsCache(locale);
4676
4602
  const linkTool = useMemo(() => getHealthToolLink(HEALTH_TOOL_TYPE$1.PWG), [getHealthToolLink]);
4677
- return (React__default.createElement(HealthToolCardWrapper, { isPregTool: true },
4678
- React__default.createElement(HealthToolCardWrapper.Banner, { bannerColor: siteType === 'marryBaby' && theme.mbColors.mint, isEmbeded: true, color: "pink", icon: React__default.createElement("img", { alt: "health-tool-icon", src: (pwgContent === null || pwgContent === void 0 ? void 0 : pwgContent.featuredImage) ||
4603
+ const commonProps = Object.assign({ onSubmit: form.onSubmit(onSubmit) }, rest);
4604
+ return (React__default.createElement(PWGFormContext.Provider, { value: {
4605
+ linkTool,
4606
+ form,
4607
+ submitProps,
4608
+ } }, isMarryBaby ? (React__default.createElement(MbLayout, Object.assign({}, commonProps))) : formLayout === 'inline' ? (React__default.createElement(InlineForm, Object.assign({}, commonProps))) : (React__default.createElement(DefaultForm, Object.assign({}, commonProps)))));
4609
+ };
4610
+
4611
+ const PWGCardEmbed = (_a) => {
4612
+ var _b;
4613
+ var { pwgContent, formProps } = _a, props = __rest(_a, ["pwgContent", "formProps"]);
4614
+ const { t } = useTranslations();
4615
+ return (React__default.createElement(HealthToolCardWrapper, Object.assign({ isPregTool: true }, props),
4616
+ React__default.createElement(HealthToolCardWrapper.Banner, { icon: React__default.createElement("img", { alt: "health-tool-icon", src: (pwgContent === null || pwgContent === void 0 ? void 0 : pwgContent.featuredImage) ||
4679
4617
  CommonGAssets.getAssetPath('health-tools/pwg-icon.svg'), loading: "lazy" }), heading: t('pregnancyWeightGain.heading'), medicalReview: {
4680
4618
  link: formatUserProfileUrl(pwgContent === null || pwgContent === void 0 ? void 0 : pwgContent.reviewedBy),
4681
- reviewer: (_a = pwgContent === null || pwgContent === void 0 ? void 0 : pwgContent.reviewedBy) === null || _a === void 0 ? void 0 : _a.display_name,
4619
+ reviewer: (_b = pwgContent === null || pwgContent === void 0 ? void 0 : pwgContent.reviewedBy) === null || _b === void 0 ? void 0 : _b.display_name,
4682
4620
  date: pwgContent === null || pwgContent === void 0 ? void 0 : pwgContent.reviewedDate,
4683
- }, isMobile: isMobile, isSide: isSide }),
4684
- React__default.createElement(Container, null,
4685
- React__default.createElement(StyledContent, { onSubmit: (e) => e.preventDefault(), className: "pwg-view-mobile", "data-is-side": isSide },
4686
- siteType !== 'marryBaby' && (React__default.createElement(StyledTwins, { className: "hide-asking-mobile", "data-is-side": isSide },
4687
- React__default.createElement(Text, { size: "s4", weight: "semiBold", style: {
4688
- display: 'block',
4689
- color: theme.colors.gray600,
4690
- }, className: "label" }, t('pregnancyWeightGain.havingTwins')),
4691
- React__default.createElement(StyledRadioGroup, { options: [
4692
- {
4693
- value: 'twins',
4694
- label: t('switchBtn.yes'),
4695
- },
4696
- {
4697
- value: 'notwins',
4698
- label: t('switchBtn.no'),
4699
- },
4700
- ], value: isTwins, onChange: (v) => setIsTwins(v), className: "gender-selector", id: "twins-check", direction: "horizontal", size: "small" }))),
4701
- React__default.createElement(StyledInputWrapper, null,
4702
- React__default.createElement(StyledFormInput, { className: "input-section input-form-pwg", "data-is-side": isSide }, siteType === 'marryBaby' ? (React__default.createElement(StyledDropDown, { groupedWithLabel: t('pregnancyWeightGain.weekInput'), options: weekPregnantLengthDropDownOptions, placeholder: "28 days", id: "due-date-dropdown", size: "lg", value: cycleValue, onChange: (o) => setCycleValue({
4703
- label: o.label,
4704
- value: o.value,
4705
- }) })) : (React__default.createElement(React__default.Fragment, null,
4706
- React__default.createElement(Text, { size: "s4", weight: "semiBold", style: {
4707
- display: 'inline-block',
4708
- marginBottom: '9px',
4709
- color: theme.colors.gray600,
4710
- } }, t('pregnancyWeightGain.weekInput')),
4711
- React__default.createElement(Dropdown, { options: weekPregnantLengthDropDownOptions, placeholder: String(cycleValue.label), id: "weight-gain-dropdown", size: "md", value: cycleValue, onChange: (o) => setCycleValue({
4712
- label: o.label,
4713
- value: o.value,
4714
- }) })))),
4715
- React__default.createElement(PWGInputForm, { siteType: siteType, info: info, errorMessage: inputErrorMessage, onChange: onFormChange })),
4716
- siteType !== 'marryBaby' && (React__default.createElement(StyledTwins, { className: "hide-asking-desk", "data-is-side": isSide },
4717
- React__default.createElement(Text, { size: "s4", weight: "semiBold", style: {
4718
- display: 'block',
4719
- color: theme.colors.gray600,
4720
- }, className: "label" }, t('pregnancyWeightGain.havingTwins')),
4721
- React__default.createElement(StyledRadioGroup, { options: [
4722
- {
4723
- value: 'twins',
4724
- label: t('switchBtn.yes'),
4725
- },
4726
- {
4727
- value: 'notwins',
4728
- label: t('switchBtn.no'),
4729
- },
4730
- ], value: isTwins, onChange: (v) => setIsTwins(v), className: "gender-selector", id: "twins-check-mobile", direction: "horizontal", size: "small" }))),
4731
- siteType === 'marryBaby' && (React__default.createElement(Checkbox, { name: "twins", label: t('pregnancyWeightGain.havingTwins'), checked: isTwins === 'twins', siteType: "marryBaby", onChange: () => {
4732
- if (isTwins === 'twins')
4733
- setIsTwins('notwins');
4734
- else
4735
- setIsTwins('twins');
4736
- }, value: "twins" })),
4737
- React__default.createElement(StyledSubmitButton, { "data-is-side": isSide, "data-site": siteType },
4738
- React__default.createElement(Button$1, { dataEventCategory: "Health Tool", dataEventAction: "Embedded Pregnancy Weight Gain", dataEventLabel: `https://${domainLocales[siteType === 'marryBaby' ? 'vi-VN_MB' : locale]}/${linkTool}`, className: "due-date-calculate-button", size: "lg", variant: siteType === 'marryBaby' ? 'secondary' : 'primary', onClick: () => onClick(isTwins, cycleValue.value), role: "button" }, t('dueDatePage.lastPeriod.calculate')))))));
4621
+ } }),
4622
+ React__default.createElement(HealthToolCardWrapper.Body, null,
4623
+ React__default.createElement(PWGForm, Object.assign({}, formProps)))));
4739
4624
  };
4740
4625
 
4741
4626
  const StyledCalendarWrapper$1 = styled.div `
@@ -5944,7 +5829,7 @@ const PnBannerEle = (_a) => {
5944
5829
  window.location.href = `${getCurrentSsoUrl(locale)}/?returnUrl=${encodeURIComponent(url)}`;
5945
5830
  }
5946
5831
  });
5947
- return (React__default.createElement(Container$1, Object.assign({ mih: { base: 144, md: 160 }, fluid: true, p: 0, sx: {
5832
+ return (React__default.createElement(Container, Object.assign({ mih: { base: 144, md: 160 }, fluid: true, p: 0, sx: {
5948
5833
  borderRadius: 4,
5949
5834
  cursor: 'pointer',
5950
5835
  }, onClick: bannerClick, "data-event-category": "Newsletter", "data-event-action": "Banner Click", "data-event-label": currentUrl, className: "pointer-event-child-none" }, rest),
@@ -7561,4 +7446,4 @@ const UserProfileNavigation = ({ SSO_URL, UP_BASEPATH = 'user', themeName = 'hel
7561
7446
  logoutButton))));
7562
7447
  };
7563
7448
 
7564
- export { UserProfileNavigation as $, Alert as A, Badge as B, Checkbox as C, DoctorInfo as D, THRCardEmbed as E, FileDropdown as F, Grid as G, ThrForm as H, IconText as I, BMRCardEmbed as J, PWGCardEmbed as K, DateRangePicker as L, MobileBottomNavigation as M, Breadcrumbs as N, OvulationCardEmbed as O, Pagination as P, ShareContainer as Q, Radio as R, ScrollList as S, Tag as T, ShareDrawer as U, AdBlock as V, FixedBottomAdBlock as W, SurveyOrPremiumBanner as X, MAPPING_CATEGORY_PREMIUM_TYPE as Y, MAPPING_CATEGORY_PREMIUM_API_TYPE as Z, SideBannerModal as _, Avatar as a, NavHeader as a0, UserStats as a1, 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 };
7449
+ export { MAPPING_CATEGORY_PREMIUM_API_TYPE 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, PWGCardEmbed as L, MobileBottomNavigation as M, PWGForm as N, OvulationCardEmbed as O, Pagination as P, DateRangePicker as Q, Radio as R, ScrollList as S, Tag as T, Breadcrumbs as U, ShareContainer as V, ShareDrawer as W, AdBlock as X, FixedBottomAdBlock as Y, SurveyOrPremiumBanner as Z, MAPPING_CATEGORY_PREMIUM_TYPE as _, Avatar as a, SideBannerModal as a0, UserProfileNavigation as a1, NavHeader as a2, UserStats as a3, 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 };