@hhgtech/hhg-components 1.24.16 → 1.24.18

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 (283) hide show
  1. package/README.md +0 -2
  2. package/build/babyGrowth.js +2 -2
  3. package/build/cache.js +1 -1
  4. package/build/care.js +1 -1
  5. package/build/components/mantine/aspectRatio/index.d.ts +5 -0
  6. package/build/components/mantine/aspectRatio/index.styled.d.ts +1 -0
  7. package/build/components/mantine/button/index.d.ts +7 -0
  8. package/build/components/mantine/button/index.styled.d.ts +1 -0
  9. package/build/components/mantine/datepicker/index.d.ts +1 -0
  10. package/build/components/mantine/index.d.ts +4 -0
  11. package/build/components/mantine/provider/index.d.ts +2 -1
  12. package/build/components/mantine/theme/button.d.ts +9 -0
  13. package/build/components/mantine/theme/checkbox.d.ts +11 -0
  14. package/build/components/mantine/theme/index.d.ts +3 -0
  15. package/build/components/mantine/theme/input.d.ts +59 -0
  16. package/build/components/mantine/theme/radio.d.ts +15 -0
  17. package/build/components/mantine/theme/shared.d.ts +6 -0
  18. package/build/components.js +1 -1
  19. package/build/constants.js +1 -1
  20. package/build/core-44b6fd33.js +1 -0
  21. package/build/{dataTransform-a3364c37.js → dataTransform-9466d6d3.js} +1 -1
  22. package/build/esm/babyGrowth.js +7 -7
  23. package/build/esm/cache.js +1 -1
  24. package/build/esm/care.js +1 -1
  25. package/build/esm/components.js +1 -1
  26. package/build/esm/constants.js +1 -1
  27. package/build/esm/{core-05e68f2e.js → core-32e208e4.js} +1 -1
  28. package/build/esm/{dataTransform-fc948613.js → dataTransform-c73f4444.js} +1 -1
  29. package/build/esm/footer.js +1 -1
  30. package/build/esm/gAssets.js +1 -1
  31. package/build/esm/getDynamicHealthTool-d60dea5c.js +1 -0
  32. package/build/esm/{getSocialList-2d8ac762.js → getSocialList-66164a07.js} +1 -1
  33. package/build/esm/hooks.js +1 -1
  34. package/build/esm/i18n.js +1 -1
  35. package/build/esm/{index-406e28ff.js → index-10b64359.js} +1 -1
  36. package/build/esm/{index-ce93c0ee.js → index-12417213.js} +1 -1
  37. package/build/esm/index-31932568.js +67 -0
  38. package/build/esm/{index-84f7e4c5.js → index-37d675fa.js} +1 -1
  39. package/build/esm/{index-cd3471a5.js → index-4409dd2c.js} +11 -11
  40. package/build/esm/{index-cc43363d.js → index-4c4078eb.js} +1 -1
  41. package/build/esm/index-6c7bbcc4.js +1 -0
  42. package/build/esm/{index-689f59a7.js → index-79c1251f.js} +1 -1
  43. package/build/esm/{index-ab1c11d2.js → index-7b96705b.js} +1 -1
  44. package/build/esm/{index-6f06d62f.js → index-8ba2ea1d.js} +1 -1
  45. package/build/esm/{index-0ce9c4bc.js → index-9254d435.js} +1 -1
  46. package/build/esm/{index-ca36dfad.js → index-ae35fac7.js} +1 -1
  47. package/build/esm/{index-5b3673a4.js → index-bd911e00.js} +1 -1
  48. package/build/esm/index-c2c70ac5.js +1 -0
  49. package/build/esm/{index-923b2d1a.js → index-c583dd71.js} +1 -1
  50. package/build/esm/{index-a5d5d8a8.js → index-c5e851bf.js} +1 -1
  51. package/build/esm/{index-7bbcafe4.js → index-d459e63b.js} +1 -1
  52. package/build/esm/index-db427e52.js +1 -0
  53. package/build/esm/{index-4ac1c532.js → index-ee6565d8.js} +3 -3
  54. package/build/esm/index-f68f4e52.js +1 -0
  55. package/build/esm/{index-60c7166f.js → index-f7618a46.js} +1 -1
  56. package/build/esm/index.css +1 -1
  57. package/build/esm/index.js +1 -1
  58. package/build/esm/{index.styled-b34bbc55.js → index.styled-2428dd5c.js} +1 -1
  59. package/build/esm/{index.styled-046c70f8.js → index.styled-8eb8f8e4.js} +1 -1
  60. package/build/esm/{index.styled-6e6866e5.js → index.styled-bf05546b.js} +2 -2
  61. package/build/esm/{index.styled-1912389c.js → index.styled-c42b69ed.js} +1 -1
  62. package/build/esm/{index.styled-068e0752.js → index.styled-d720fd5d.js} +1 -1
  63. package/build/esm/{index.styled-86378e67.js → index.styled-e9a50c39.js} +1 -1
  64. package/build/esm/{index.styled-f900ad52.js → index.styled-fda1f38d.js} +1 -1
  65. package/build/esm/lead.js +1 -1
  66. package/build/esm/mantine.js +1 -1
  67. package/build/esm/misc.js +1 -1
  68. package/build/esm/navigation.js +1 -1
  69. package/build/esm/onboarding.js +1 -1
  70. package/build/esm/pwg.js +5 -5
  71. package/build/esm/{routing-e361ea53.js → routing-5078f6e4.js} +1 -1
  72. package/build/esm/{screenSizeContext-2a98aa33.js → screenSizeContext-29051cf2.js} +1 -1
  73. package/build/esm/{theme-6d95a26a.js → theme-32755fcb.js} +1 -1
  74. package/build/esm/together.js +1 -1
  75. package/build/esm/{translationsProvider-cd3605f0.js → translationsProvider-24160998.js} +1 -1
  76. package/build/esm/{types-76ce1dab.js → types-467064e0.js} +1 -1
  77. package/build/esm/{types-1fcde312.js → types-62b6a766.js} +4 -4
  78. package/build/esm/types.js +1 -1
  79. package/build/esm/useHealthToolCache-89abaf13.js +1 -0
  80. package/build/esm/{useRafState-56f1069e.js → useRafState-f90c4148.js} +1 -1
  81. package/build/esm/{useTranslations-fd9e1f49.js → useTranslations-08940392.js} +1 -1
  82. package/build/footer.js +1 -1
  83. package/build/gAssets.js +1 -1
  84. package/build/{getDynamicHealthTool-b966c91e.js → getDynamicHealthTool-4230a626.js} +1 -1
  85. package/build/{getSocialList-21aa6cc1.js → getSocialList-c0d9deaa.js} +1 -1
  86. package/build/hooks.js +1 -1
  87. package/build/i18n.js +1 -1
  88. package/build/{index-e36e77e9.js → index-08cd99b4.js} +1 -1
  89. package/build/{index-1a72d2c6.js → index-128a6789.js} +1 -1
  90. package/build/{index-da645ad6.js → index-1e73e6ea.js} +1 -1
  91. package/build/{index-414bbf33.js → index-1e892386.js} +1 -1
  92. package/build/{index-5c0abf76.js → index-31315d85.js} +1 -1
  93. package/build/index-43171e19.js +1 -0
  94. package/build/{index-e3337614.js → index-4b2739da.js} +1 -1
  95. package/build/{index-7bdfc4ca.js → index-4e824542.js} +1 -1
  96. package/build/{index-15930b05.js → index-522ced61.js} +1 -1
  97. package/build/index-8be322c5.js +1 -0
  98. package/build/{index-3fa122b0.js → index-8cc8629d.js} +1 -1
  99. package/build/{index-6d2fa56d.js → index-a4e5c235.js} +1 -1
  100. package/build/index-b588dc4d.js +1 -0
  101. package/build/{index-e39e19b6.js → index-b6efb8fb.js} +1 -1
  102. package/build/{index-c9e2716b.js → index-b919e3e6.js} +1 -1
  103. package/build/{index-db09f731.js → index-b9723788.js} +1 -1
  104. package/build/{index-8a331cd3.js → index-ce2c1596.js} +5 -5
  105. package/build/index-ce6bfea9.js +1 -0
  106. package/build/index-e93d63f0.js +1 -0
  107. package/build/index-f54098df.js +62 -0
  108. package/build/index-fd1095ac.js +1 -0
  109. package/build/index.css +1 -1
  110. package/build/index.js +1 -1
  111. package/build/{index.styled-7f7b2b66.js → index.styled-3a45f5c7.js} +1 -1
  112. package/build/{index.styled-3ee62f4d.js → index.styled-413c614c.js} +2 -2
  113. package/build/{index.styled-42f35e96.js → index.styled-4f74cbbe.js} +1 -1
  114. package/build/{index.styled-e09774b3.js → index.styled-a46cbe49.js} +1 -1
  115. package/build/{index.styled-5ba8c093.js → index.styled-a7e71e07.js} +1 -1
  116. package/build/{index.styled-488a758b.js → index.styled-defe74a4.js} +4 -4
  117. package/build/{index.styled-9227302c.js → index.styled-e7a62025.js} +1 -1
  118. package/build/lead.js +1 -1
  119. package/build/mantine.js +1 -1
  120. package/build/misc/theme.d.ts +191 -0
  121. package/build/misc.js +1 -1
  122. package/build/navigation.js +1 -1
  123. package/build/onboarding.js +1 -1
  124. package/build/pwg.js +3 -3
  125. package/build/{routing-c6121b5c.js → routing-0d2fb020.js} +1 -1
  126. package/build/{screenSizeContext-0241a845.js → screenSizeContext-8f7af71c.js} +3 -3
  127. package/build/theme-dfe443d6.js +1 -0
  128. package/build/together.js +1 -1
  129. package/build/{translationsProvider-22982438.js → translationsProvider-9a211600.js} +1 -1
  130. package/build/{types-f3b8e5bd.js → types-52d1a875.js} +1 -1
  131. package/build/{types-60797933.js → types-d4fd4a03.js} +3 -3
  132. package/build/types.js +1 -1
  133. package/build/{useHealthToolCache-44234ce1.js → useHealthToolCache-40cc782f.js} +1 -1
  134. package/build/{useRafState-40b43458.js → useRafState-45c04634.js} +1 -1
  135. package/build/{useTranslations-49f91025.js → useTranslations-82cb6000.js} +1 -1
  136. package/package.json +19 -14
  137. package/build/components/mantine/theme.d.ts +0 -3
  138. package/build/core-5d4bb62a.js +0 -1
  139. package/build/esm/getDynamicHealthTool-83cf2b6d.js +0 -1
  140. package/build/esm/index-049cc534.js +0 -1
  141. package/build/esm/index-0a2ef343.js +0 -1
  142. package/build/esm/index-771c89e2.js +0 -1
  143. package/build/esm/index-cd5f9980.js +0 -67
  144. package/build/esm/index-e6bd8e5e.js +0 -1
  145. package/build/esm/useHealthToolCache-9cf5ca4d.js +0 -1
  146. package/build/index-24d8ed53.js +0 -1
  147. package/build/index-38f3b008.js +0 -1
  148. package/build/index-689b2aeb.js +0 -1
  149. package/build/index-6bb7c07c.js +0 -1
  150. package/build/index-b5604858.js +0 -62
  151. package/build/index-ce9aeebf.js +0 -1
  152. package/build/index-e80e30d0.js +0 -1
  153. package/build/theme-150c2e5b.js +0 -1
  154. /package/build/{BMI_BOYS.percentile.monthly-7595168d.js → BMI_BOYS.percentile.monthly-f89c8531.js} +0 -0
  155. /package/build/{BMI_BOYS.percentile.weekly-4ea20a17.js → BMI_BOYS.percentile.weekly-d8443b05.js} +0 -0
  156. /package/build/{BMI_BOYS.percentile.yearly-3c63d97e.js → BMI_BOYS.percentile.yearly-07dd9945.js} +0 -0
  157. /package/build/{BMI_BOYS.zscore.monthly-3cedb042.js → BMI_BOYS.zscore.monthly-21cbfe6e.js} +0 -0
  158. /package/build/{BMI_BOYS.zscore.weekly-ee112102.js → BMI_BOYS.zscore.weekly-fa680c9e.js} +0 -0
  159. /package/build/{BMI_BOYS.zscore.yearly-2678477b.js → BMI_BOYS.zscore.yearly-f06a652c.js} +0 -0
  160. /package/build/{BMI_GIRLS.percentile.monthly-1f5d7656.js → BMI_GIRLS.percentile.monthly-bdab40d8.js} +0 -0
  161. /package/build/{BMI_GIRLS.percentile.weekly-ec8c6ab1.js → BMI_GIRLS.percentile.weekly-ea5fedff.js} +0 -0
  162. /package/build/{BMI_GIRLS.percentile.yearly-3250a134.js → BMI_GIRLS.percentile.yearly-5c34b88b.js} +0 -0
  163. /package/build/{BMI_GIRLS.zscore.monthly-9da0cd2c.js → BMI_GIRLS.zscore.monthly-4749298a.js} +0 -0
  164. /package/build/{BMI_GIRLS.zscore.weekly-a12ab9ff.js → BMI_GIRLS.zscore.weekly-9284d723.js} +0 -0
  165. /package/build/{BMI_GIRLS.zscore.yearly-85afd4c9.js → BMI_GIRLS.zscore.yearly-259301d8.js} +0 -0
  166. /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-534ad088.js → HEAD CIRCUM_BOYS.percentile.monthly-7c96746f.js} +0 -0
  167. /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-68d213f1.js → HEAD CIRCUM_BOYS.percentile.weekly-45894dc4.js} +0 -0
  168. /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-840ff704.js → HEAD CIRCUM_BOYS.percentile.yearly-8377844d.js} +0 -0
  169. /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-e41bac79.js → HEAD CIRCUM_BOYS.zscore.monthly-1d773ac4.js} +0 -0
  170. /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-20a047f0.js → HEAD CIRCUM_BOYS.zscore.weekly-d1ad2cd1.js} +0 -0
  171. /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-22ae6e2d.js → HEAD CIRCUM_BOYS.zscore.yearly-cfd6753c.js} +0 -0
  172. /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-b7c2dafd.js → HEAD CIRCUM_GIRLS.percentile.monthly-50796078.js} +0 -0
  173. /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-b0b65ba9.js → HEAD CIRCUM_GIRLS.percentile.weekly-e49d53d8.js} +0 -0
  174. /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-252ece0e.js → HEAD CIRCUM_GIRLS.percentile.yearly-c76f91f3.js} +0 -0
  175. /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-ed2487b9.js → HEAD CIRCUM_GIRLS.zscore.monthly-a51a386e.js} +0 -0
  176. /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-b3fe8380.js → HEAD CIRCUM_GIRLS.zscore.weekly-1fc91b9e.js} +0 -0
  177. /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-9848d4f5.js → HEAD CIRCUM_GIRLS.zscore.yearly-f3af54ca.js} +0 -0
  178. /package/build/{HEIGHT_BOYS.percentile.monthly-4e26babb.js → HEIGHT_BOYS.percentile.monthly-7b0fa36c.js} +0 -0
  179. /package/build/{HEIGHT_BOYS.percentile.weekly-1fb8cf5d.js → HEIGHT_BOYS.percentile.weekly-d23c80cc.js} +0 -0
  180. /package/build/{HEIGHT_BOYS.percentile.yearly-37883124.js → HEIGHT_BOYS.percentile.yearly-d483af10.js} +0 -0
  181. /package/build/{HEIGHT_BOYS.zscore.monthly-bebbe244.js → HEIGHT_BOYS.zscore.monthly-2e19ff12.js} +0 -0
  182. /package/build/{HEIGHT_BOYS.zscore.weekly-2884c0f5.js → HEIGHT_BOYS.zscore.weekly-054efac5.js} +0 -0
  183. /package/build/{HEIGHT_BOYS.zscore.yearly-60debaf0.js → HEIGHT_BOYS.zscore.yearly-6482e4d6.js} +0 -0
  184. /package/build/{HEIGHT_GIRLS.percentile.monthly-adf052dd.js → HEIGHT_GIRLS.percentile.monthly-7c92d41b.js} +0 -0
  185. /package/build/{HEIGHT_GIRLS.percentile.weekly-3a247053.js → HEIGHT_GIRLS.percentile.weekly-f408a2a2.js} +0 -0
  186. /package/build/{HEIGHT_GIRLS.percentile.yearly-fd48eb0f.js → HEIGHT_GIRLS.percentile.yearly-f342f134.js} +0 -0
  187. /package/build/{HEIGHT_GIRLS.zscore.monthly-c7e889fe.js → HEIGHT_GIRLS.zscore.monthly-d8e5aa72.js} +0 -0
  188. /package/build/{HEIGHT_GIRLS.zscore.weekly-084095a2.js → HEIGHT_GIRLS.zscore.weekly-d22fe89c.js} +0 -0
  189. /package/build/{HEIGHT_GIRLS.zscore.yearly-4ff2a93e.js → HEIGHT_GIRLS.zscore.yearly-2cfd71b2.js} +0 -0
  190. /package/build/{Locale-895e9c58.js → Locale-efa66a0f.js} +0 -0
  191. /package/build/{Vietnam-0b223354.js → Vietnam-30ac5acd.js} +0 -0
  192. /package/build/{Visible-0ce9ac36.js → Visible-04912386.js} +0 -0
  193. /package/build/{WEIGHT_BOYS.percentile.monthly-939d5011.js → WEIGHT_BOYS.percentile.monthly-27ca09c5.js} +0 -0
  194. /package/build/{WEIGHT_BOYS.percentile.weekly-1da441ab.js → WEIGHT_BOYS.percentile.weekly-3620eca7.js} +0 -0
  195. /package/build/{WEIGHT_BOYS.percentile.yearly-735fd17c.js → WEIGHT_BOYS.percentile.yearly-22255a11.js} +0 -0
  196. /package/build/{WEIGHT_BOYS.zscore.monthly-e0f945f4.js → WEIGHT_BOYS.zscore.monthly-1019c20d.js} +0 -0
  197. /package/build/{WEIGHT_BOYS.zscore.weekly-72535456.js → WEIGHT_BOYS.zscore.weekly-4b1f193f.js} +0 -0
  198. /package/build/{WEIGHT_BOYS.zscore.yearly-fe7bc9ed.js → WEIGHT_BOYS.zscore.yearly-91cbe754.js} +0 -0
  199. /package/build/{WEIGHT_GIRLS.percentile.monthly-0f3152cf.js → WEIGHT_GIRLS.percentile.monthly-a20393dc.js} +0 -0
  200. /package/build/{WEIGHT_GIRLS.percentile.weekly-3e1e0706.js → WEIGHT_GIRLS.percentile.weekly-4f52f812.js} +0 -0
  201. /package/build/{WEIGHT_GIRLS.percentile.yearly-c688070a.js → WEIGHT_GIRLS.percentile.yearly-4d22a1e1.js} +0 -0
  202. /package/build/{WEIGHT_GIRLS.zscore.monthly-b20c30e9.js → WEIGHT_GIRLS.zscore.monthly-f9b14ee0.js} +0 -0
  203. /package/build/{WEIGHT_GIRLS.zscore.weekly-a76c1a04.js → WEIGHT_GIRLS.zscore.weekly-d91e24d5.js} +0 -0
  204. /package/build/{WEIGHT_GIRLS.zscore.yearly-62451f84.js → WEIGHT_GIRLS.zscore.yearly-c5be40f0.js} +0 -0
  205. /package/build/{constants-34449147.js → constants-44e0a75a.js} +0 -0
  206. /package/build/{cookieHelper-5f14cb79.js → cookieHelper-80099e46.js} +0 -0
  207. /package/build/{dataTransform-7807d9ab.js → dataTransform-d89b8c83.js} +0 -0
  208. /package/build/esm/{BMI_BOYS.percentile.monthly-802ef81d.js → BMI_BOYS.percentile.monthly-3b580949.js} +0 -0
  209. /package/build/esm/{BMI_BOYS.percentile.weekly-8d7aa73b.js → BMI_BOYS.percentile.weekly-0038e590.js} +0 -0
  210. /package/build/esm/{BMI_BOYS.percentile.yearly-4e672525.js → BMI_BOYS.percentile.yearly-fc05d13b.js} +0 -0
  211. /package/build/esm/{BMI_BOYS.zscore.monthly-f447f58c.js → BMI_BOYS.zscore.monthly-9412811d.js} +0 -0
  212. /package/build/esm/{BMI_BOYS.zscore.weekly-bea6f1c9.js → BMI_BOYS.zscore.weekly-b03e7bfa.js} +0 -0
  213. /package/build/esm/{BMI_BOYS.zscore.yearly-d5133a1b.js → BMI_BOYS.zscore.yearly-c9d17a60.js} +0 -0
  214. /package/build/esm/{BMI_GIRLS.percentile.monthly-6549b294.js → BMI_GIRLS.percentile.monthly-bb347f20.js} +0 -0
  215. /package/build/esm/{BMI_GIRLS.percentile.weekly-539e506c.js → BMI_GIRLS.percentile.weekly-6c7f10df.js} +0 -0
  216. /package/build/esm/{BMI_GIRLS.percentile.yearly-de15f01b.js → BMI_GIRLS.percentile.yearly-0ceed23d.js} +0 -0
  217. /package/build/esm/{BMI_GIRLS.zscore.monthly-5b120d1b.js → BMI_GIRLS.zscore.monthly-79d585e2.js} +0 -0
  218. /package/build/esm/{BMI_GIRLS.zscore.weekly-aba42819.js → BMI_GIRLS.zscore.weekly-d4e643ee.js} +0 -0
  219. /package/build/esm/{BMI_GIRLS.zscore.yearly-e823fb9d.js → BMI_GIRLS.zscore.yearly-f015b70b.js} +0 -0
  220. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-241a7c40.js → HEAD CIRCUM_BOYS.percentile.monthly-d7116f5d.js} +0 -0
  221. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-f12f852a.js → HEAD CIRCUM_BOYS.percentile.weekly-d9ade644.js} +0 -0
  222. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-5474e01c.js → HEAD CIRCUM_BOYS.percentile.yearly-e310070d.js} +0 -0
  223. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-d00d4347.js → HEAD CIRCUM_BOYS.zscore.monthly-17e761d8.js} +0 -0
  224. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-75759031.js → HEAD CIRCUM_BOYS.zscore.weekly-d36ceaa1.js} +0 -0
  225. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-44843d1e.js → HEAD CIRCUM_BOYS.zscore.yearly-d71bf37a.js} +0 -0
  226. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-d36e8361.js → HEAD CIRCUM_GIRLS.percentile.monthly-f93a84ba.js} +0 -0
  227. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-b995e2c8.js → HEAD CIRCUM_GIRLS.percentile.weekly-62c25dcf.js} +0 -0
  228. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-3dae5bd0.js → HEAD CIRCUM_GIRLS.percentile.yearly-c089eb31.js} +0 -0
  229. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-2e7e5a5b.js → HEAD CIRCUM_GIRLS.zscore.monthly-7265d5be.js} +0 -0
  230. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-9860caf5.js → HEAD CIRCUM_GIRLS.zscore.weekly-e577c502.js} +0 -0
  231. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-d3aa02e9.js → HEAD CIRCUM_GIRLS.zscore.yearly-c12aad4d.js} +0 -0
  232. /package/build/esm/{HEIGHT_BOYS.percentile.monthly-5f4ba9bc.js → HEIGHT_BOYS.percentile.monthly-f8ab197e.js} +0 -0
  233. /package/build/esm/{HEIGHT_BOYS.percentile.weekly-11761f86.js → HEIGHT_BOYS.percentile.weekly-e6dde50c.js} +0 -0
  234. /package/build/esm/{HEIGHT_BOYS.percentile.yearly-6a378a4b.js → HEIGHT_BOYS.percentile.yearly-e4911ac8.js} +0 -0
  235. /package/build/esm/{HEIGHT_BOYS.zscore.monthly-5c68da77.js → HEIGHT_BOYS.zscore.monthly-6b8a0a1f.js} +0 -0
  236. /package/build/esm/{HEIGHT_BOYS.zscore.weekly-264a4736.js → HEIGHT_BOYS.zscore.weekly-f263a1df.js} +0 -0
  237. /package/build/esm/{HEIGHT_BOYS.zscore.yearly-16620a5b.js → HEIGHT_BOYS.zscore.yearly-3c5f49c4.js} +0 -0
  238. /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-7412ca05.js → HEIGHT_GIRLS.percentile.monthly-27b85bc3.js} +0 -0
  239. /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-5db7c0f6.js → HEIGHT_GIRLS.percentile.weekly-9932748b.js} +0 -0
  240. /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-e4f1f52f.js → HEIGHT_GIRLS.percentile.yearly-a9cd1665.js} +0 -0
  241. /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-b78135e8.js → HEIGHT_GIRLS.zscore.monthly-bfb3b22c.js} +0 -0
  242. /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-454d6787.js → HEIGHT_GIRLS.zscore.weekly-d207e523.js} +0 -0
  243. /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-91f39435.js → HEIGHT_GIRLS.zscore.yearly-5b25c021.js} +0 -0
  244. /package/build/esm/{Locale-0bac887d.js → Locale-0d80aa32.js} +0 -0
  245. /package/build/esm/{Vietnam-3acff8c8.js → Vietnam-7862e868.js} +0 -0
  246. /package/build/esm/{Visible-7011a1d6.js → Visible-c8ae8793.js} +0 -0
  247. /package/build/esm/{WEIGHT_BOYS.percentile.monthly-66c0ba46.js → WEIGHT_BOYS.percentile.monthly-b3af000f.js} +0 -0
  248. /package/build/esm/{WEIGHT_BOYS.percentile.weekly-d15fbfa0.js → WEIGHT_BOYS.percentile.weekly-c0a818af.js} +0 -0
  249. /package/build/esm/{WEIGHT_BOYS.percentile.yearly-67b8364c.js → WEIGHT_BOYS.percentile.yearly-4a26af60.js} +0 -0
  250. /package/build/esm/{WEIGHT_BOYS.zscore.monthly-ea33da43.js → WEIGHT_BOYS.zscore.monthly-c3d234f3.js} +0 -0
  251. /package/build/esm/{WEIGHT_BOYS.zscore.weekly-ca6f10ce.js → WEIGHT_BOYS.zscore.weekly-a8ee0058.js} +0 -0
  252. /package/build/esm/{WEIGHT_BOYS.zscore.yearly-5e683f42.js → WEIGHT_BOYS.zscore.yearly-ab055fd2.js} +0 -0
  253. /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-d8ec44c2.js → WEIGHT_GIRLS.percentile.monthly-934fb132.js} +0 -0
  254. /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-3caf43a5.js → WEIGHT_GIRLS.percentile.weekly-1b9f1dde.js} +0 -0
  255. /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-7035d62b.js → WEIGHT_GIRLS.percentile.yearly-f77a2a6d.js} +0 -0
  256. /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-3ccd32e5.js → WEIGHT_GIRLS.zscore.monthly-265c2d83.js} +0 -0
  257. /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-799e5d2f.js → WEIGHT_GIRLS.zscore.weekly-2e8c5052.js} +0 -0
  258. /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-81583088.js → WEIGHT_GIRLS.zscore.yearly-b3b5d519.js} +0 -0
  259. /package/build/esm/{constants-96946035.js → constants-b741e946.js} +0 -0
  260. /package/build/esm/{cookieHelper-c31f3870.js → cookieHelper-20a76375.js} +0 -0
  261. /package/build/esm/{dataTransform-b57dcd5b.js → dataTransform-32c68576.js} +0 -0
  262. /package/build/esm/{index-309b7283.js → index-00e3ba35.js} +0 -0
  263. /package/build/esm/{isProduction-16047c76.js → isProduction-943fdf85.js} +0 -0
  264. /package/build/esm/{localizeNumberFormat-709758aa.js → localizeNumberFormat-b09c122c.js} +0 -0
  265. /package/build/esm/{normalizeLink-f2756a49.js → normalizeLink-41a083ba.js} +0 -0
  266. /package/build/esm/{translationsContext-e145f09f.js → translationsContext-60ea7170.js} +0 -0
  267. /package/build/esm/{tslib.es6-d8037a1a.js → tslib.es6-0162b9b0.js} +0 -0
  268. /package/build/esm/{useIsInit-3d859090.js → useIsInit-4df4e383.js} +0 -0
  269. /package/build/esm/{useOutsideClick-34fd8d3a.js → useOutsideClick-f38e36b7.js} +0 -0
  270. /package/build/esm/{useScrollbarSize-425d4af6.js → useScrollbarSize-686dc2f2.js} +0 -0
  271. /package/build/esm/{useUniqueId-8a9c20ea.js → useUniqueId-10476383.js} +0 -0
  272. /package/build/esm/{utils-89f889b2.js → utils-36afb20f.js} +0 -0
  273. /package/build/{index-41b69d00.js → index-0f3768e1.js} +0 -0
  274. /package/build/{isProduction-443c6670.js → isProduction-0dffc430.js} +0 -0
  275. /package/build/{localizeNumberFormat-54f7a372.js → localizeNumberFormat-aca3da8c.js} +0 -0
  276. /package/build/{normalizeLink-307d4e7a.js → normalizeLink-a75e2e0f.js} +0 -0
  277. /package/build/{translationsContext-2f751431.js → translationsContext-81fe8793.js} +0 -0
  278. /package/build/{tslib.es6-d5a85038.js → tslib.es6-d7a88a93.js} +0 -0
  279. /package/build/{useIsInit-dddb7f1d.js → useIsInit-d6b0a168.js} +0 -0
  280. /package/build/{useOutsideClick-0dabc1bd.js → useOutsideClick-2cdcb752.js} +0 -0
  281. /package/build/{useScrollbarSize-f2df5c9e.js → useScrollbarSize-a12042ae.js} +0 -0
  282. /package/build/{useUniqueId-ef38060f.js → useUniqueId-e8bf8833.js} +0 -0
  283. /package/build/{utils-8ad5cd46.js → utils-17648495.js} +0 -0
package/README.md CHANGED
@@ -12,8 +12,6 @@ Run storybook on localhost:6006
12
12
 
13
13
  Create a new component based on the starter template in terminal
14
14
 
15
- > npm run generate:hook
16
-
17
15
  Create a new hook with the starter template in terminal
18
16
 
19
17
  > PROJECT_PATH=../hhg-discover-fe npm run build-copy
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./index-3fa122b0.js"),t=require("react"),r=require("./Locale-895e9c58.js"),a=require("./theme-150c2e5b.js"),l=require("./index-e39e19b6.js"),o=require("styled-components"),n=require("./index-1a72d2c6.js"),i=require("./index-6bb7c07c.js"),s=require("./screenSizeContext-0241a845.js"),d=require("dayjs"),c=require("./useTranslations-49f91025.js"),u=require("./index.styled-9227302c.js"),C=require("./utils-8ad5cd46.js");require("./gAssets.js"),require("./index.styled-7f7b2b66.js"),require("./index-414bbf33.js"),require("@mantine/core");var h=require("./index-41b69d00.js"),m=require("./useOutsideClick-0dabc1bd.js");require("lodash/debounce"),require("./isProduction-443c6670.js"),require("./index-15930b05.js");var f=require("./localizeNumberFormat-54f7a372.js"),y=require("./tslib.es6-d5a85038.js"),p=require("./index-e80e30d0.js"),b=require("recharts"),w=require("lodash/chunk");function g(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}require("./useScrollbarSize-f2df5c9e.js"),require("react-dom"),require("./useUniqueId-ef38060f.js"),require("./index.styled-e09774b3.js"),require("lodash/throttle"),require("./translationsContext-2f751431.js"),require("string-format"),require("./index-da645ad6.js");var x=g(t),E=g(o),v=g(d),B=g(w);const L=E.default.div`
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./index-8cc8629d.js"),t=require("react"),r=require("./Locale-efa66a0f.js"),a=require("./theme-dfe443d6.js"),l=require("./index-b6efb8fb.js"),o=require("styled-components"),n=require("./index-128a6789.js"),i=require("./index-43171e19.js"),s=require("./screenSizeContext-8f7af71c.js"),d=require("dayjs"),c=require("./useTranslations-82cb6000.js"),u=require("./index.styled-e7a62025.js"),C=require("./utils-17648495.js");require("./gAssets.js"),require("./index.styled-3a45f5c7.js"),require("./index-1e892386.js"),require("@mantine/core");var h=require("./index-0f3768e1.js"),m=require("./useOutsideClick-2cdcb752.js");require("lodash/debounce"),require("./isProduction-0dffc430.js"),require("./index-522ced61.js");var f=require("./localizeNumberFormat-aca3da8c.js"),y=require("./tslib.es6-d7a88a93.js"),p=require("./index-b588dc4d.js"),b=require("recharts"),w=require("lodash/chunk");function g(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}require("./useScrollbarSize-a12042ae.js"),require("react-dom"),require("./useUniqueId-e8bf8833.js"),require("./index.styled-a46cbe49.js"),require("lodash/throttle"),require("./translationsContext-81fe8793.js"),require("string-format"),require("./index-1e73e6ea.js");var x=g(t),E=g(o),v=g(d),B=g(w);const L=E.default.div`
2
2
  display: flex;
3
3
  justify-content: center;
4
4
  gap: 16px;
@@ -272,7 +272,7 @@
272
272
  gap: 16px;
273
273
  margin-block: 16px;
274
274
  }
275
- `,W={[r.Gender.Boy]:{[r.BabyGrowthChartType.Weight]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_BOYS.percentile.weekly-1da441ab.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_BOYS.percentile.monthly-939d5011.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_BOYS.percentile.yearly-735fd17c.js")}))},[r.BabyGrowthChartType.Height]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_BOYS.percentile.weekly-1fb8cf5d.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_BOYS.percentile.monthly-4e26babb.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_BOYS.percentile.yearly-37883124.js")}))},[r.BabyGrowthChartType.Head]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_BOYS.percentile.weekly-68d213f1.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_BOYS.percentile.monthly-534ad088.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_BOYS.percentile.yearly-840ff704.js")}))},[r.BabyGrowthChartType.BMI]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./BMI_BOYS.percentile.weekly-4ea20a17.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./BMI_BOYS.percentile.monthly-7595168d.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./BMI_BOYS.percentile.yearly-3c63d97e.js")}))}},[r.Gender.Girl]:{[r.BabyGrowthChartType.Weight]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_GIRLS.percentile.weekly-3e1e0706.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_GIRLS.percentile.monthly-0f3152cf.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_GIRLS.percentile.yearly-c688070a.js")}))},[r.BabyGrowthChartType.Height]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_GIRLS.percentile.weekly-3a247053.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_GIRLS.percentile.monthly-adf052dd.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_GIRLS.percentile.yearly-fd48eb0f.js")}))},[r.BabyGrowthChartType.Head]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_GIRLS.percentile.weekly-b0b65ba9.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_GIRLS.percentile.monthly-b7c2dafd.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_GIRLS.percentile.yearly-252ece0e.js")}))},[r.BabyGrowthChartType.BMI]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./BMI_GIRLS.percentile.weekly-ec8c6ab1.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./BMI_GIRLS.percentile.monthly-1f5d7656.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./BMI_GIRLS.percentile.yearly-3250a134.js")}))}}},Y={[r.Gender.Boy]:{[r.BabyGrowthChartType.Weight]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_BOYS.zscore.weekly-72535456.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_BOYS.zscore.monthly-e0f945f4.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_BOYS.zscore.yearly-fe7bc9ed.js")}))},[r.BabyGrowthChartType.Height]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_BOYS.zscore.weekly-2884c0f5.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_BOYS.zscore.monthly-bebbe244.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_BOYS.zscore.yearly-60debaf0.js")}))},[r.BabyGrowthChartType.Head]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_BOYS.zscore.weekly-20a047f0.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_BOYS.zscore.monthly-e41bac79.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_BOYS.zscore.yearly-22ae6e2d.js")}))},[r.BabyGrowthChartType.BMI]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./BMI_BOYS.zscore.weekly-ee112102.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./BMI_BOYS.zscore.monthly-3cedb042.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./BMI_BOYS.zscore.yearly-2678477b.js")}))}},[r.Gender.Girl]:{[r.BabyGrowthChartType.Weight]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_GIRLS.zscore.weekly-a76c1a04.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_GIRLS.zscore.monthly-b20c30e9.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_GIRLS.zscore.yearly-62451f84.js")}))},[r.BabyGrowthChartType.Height]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_GIRLS.zscore.weekly-084095a2.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_GIRLS.zscore.monthly-c7e889fe.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_GIRLS.zscore.yearly-4ff2a93e.js")}))},[r.BabyGrowthChartType.Head]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_GIRLS.zscore.weekly-b3fe8380.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_GIRLS.zscore.monthly-ed2487b9.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_GIRLS.zscore.yearly-9848d4f5.js")}))},[r.BabyGrowthChartType.BMI]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./BMI_GIRLS.zscore.weekly-a12ab9ff.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./BMI_GIRLS.zscore.monthly-9da0cd2c.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./BMI_GIRLS.zscore.yearly-85afd4c9.js")}))}}},F=(e,t,a,l)=>l===r.LOCALE.Indonesia?Y[e][t][a]():W[e][t][a](),$=(e,t)=>{const[r,a]=B.default(t,Math.ceil(t.length/2)),l=r.map((e=>e.name)),o=a.map((e=>e.name));return l.includes(e)?{data:r,status:"first-half"}:o.includes(e)?{data:a,status:"second-half"}:{data:t,status:"full"}},U=(e,t)=>[...e,...t.map((e=>({name:e.name,history:e.history,risk:e.risk,toolTipLabel:e.toolTipLabel})))].sort(((e,t)=>e.name-t.name)),K=(e,t,r,a,l)=>[...e,{name:a,history:l,risk:t,toolTipLabel:r}].sort(((e,t)=>e.name-t.name)),X=(e,t=0)=>{const r=[];for(const a in e){e[a].forEach(((e,l)=>{r[l]?r[l][a]=e:r[l]={name:l+t,[a]:e}}))}return r},J=(e,t=0)=>Array.from({length:e-t+1},((e,r)=>r+t)),Q=E.default.div`
275
+ `,W={[r.Gender.Boy]:{[r.BabyGrowthChartType.Weight]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_BOYS.percentile.weekly-3620eca7.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_BOYS.percentile.monthly-27ca09c5.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_BOYS.percentile.yearly-22255a11.js")}))},[r.BabyGrowthChartType.Height]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_BOYS.percentile.weekly-d23c80cc.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_BOYS.percentile.monthly-7b0fa36c.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_BOYS.percentile.yearly-d483af10.js")}))},[r.BabyGrowthChartType.Head]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_BOYS.percentile.weekly-45894dc4.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_BOYS.percentile.monthly-7c96746f.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_BOYS.percentile.yearly-8377844d.js")}))},[r.BabyGrowthChartType.BMI]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./BMI_BOYS.percentile.weekly-d8443b05.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./BMI_BOYS.percentile.monthly-f89c8531.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./BMI_BOYS.percentile.yearly-07dd9945.js")}))}},[r.Gender.Girl]:{[r.BabyGrowthChartType.Weight]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_GIRLS.percentile.weekly-4f52f812.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_GIRLS.percentile.monthly-a20393dc.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_GIRLS.percentile.yearly-4d22a1e1.js")}))},[r.BabyGrowthChartType.Height]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_GIRLS.percentile.weekly-f408a2a2.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_GIRLS.percentile.monthly-7c92d41b.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_GIRLS.percentile.yearly-f342f134.js")}))},[r.BabyGrowthChartType.Head]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_GIRLS.percentile.weekly-e49d53d8.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_GIRLS.percentile.monthly-50796078.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_GIRLS.percentile.yearly-c76f91f3.js")}))},[r.BabyGrowthChartType.BMI]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./BMI_GIRLS.percentile.weekly-ea5fedff.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./BMI_GIRLS.percentile.monthly-bdab40d8.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./BMI_GIRLS.percentile.yearly-5c34b88b.js")}))}}},Y={[r.Gender.Boy]:{[r.BabyGrowthChartType.Weight]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_BOYS.zscore.weekly-4b1f193f.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_BOYS.zscore.monthly-1019c20d.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_BOYS.zscore.yearly-91cbe754.js")}))},[r.BabyGrowthChartType.Height]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_BOYS.zscore.weekly-054efac5.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_BOYS.zscore.monthly-2e19ff12.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_BOYS.zscore.yearly-6482e4d6.js")}))},[r.BabyGrowthChartType.Head]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_BOYS.zscore.weekly-d1ad2cd1.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_BOYS.zscore.monthly-1d773ac4.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_BOYS.zscore.yearly-cfd6753c.js")}))},[r.BabyGrowthChartType.BMI]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./BMI_BOYS.zscore.weekly-fa680c9e.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./BMI_BOYS.zscore.monthly-21cbfe6e.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./BMI_BOYS.zscore.yearly-f06a652c.js")}))}},[r.Gender.Girl]:{[r.BabyGrowthChartType.Weight]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_GIRLS.zscore.weekly-d91e24d5.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_GIRLS.zscore.monthly-f9b14ee0.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_GIRLS.zscore.yearly-c5be40f0.js")}))},[r.BabyGrowthChartType.Height]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_GIRLS.zscore.weekly-d22fe89c.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_GIRLS.zscore.monthly-d8e5aa72.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_GIRLS.zscore.yearly-2cfd71b2.js")}))},[r.BabyGrowthChartType.Head]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_GIRLS.zscore.weekly-1fc91b9e.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_GIRLS.zscore.monthly-a51a386e.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_GIRLS.zscore.yearly-f3af54ca.js")}))},[r.BabyGrowthChartType.BMI]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./BMI_GIRLS.zscore.weekly-9284d723.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./BMI_GIRLS.zscore.monthly-4749298a.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./BMI_GIRLS.zscore.yearly-259301d8.js")}))}}},F=(e,t,a,l)=>l===r.LOCALE.Indonesia?Y[e][t][a]():W[e][t][a](),$=(e,t)=>{const[r,a]=B.default(t,Math.ceil(t.length/2)),l=r.map((e=>e.name)),o=a.map((e=>e.name));return l.includes(e)?{data:r,status:"first-half"}:o.includes(e)?{data:a,status:"second-half"}:{data:t,status:"full"}},U=(e,t)=>[...e,...t.map((e=>({name:e.name,history:e.history,risk:e.risk,toolTipLabel:e.toolTipLabel})))].sort(((e,t)=>e.name-t.name)),K=(e,t,r,a,l)=>[...e,{name:a,history:l,risk:t,toolTipLabel:r}].sort(((e,t)=>e.name-t.name)),X=(e,t=0)=>{const r=[];for(const a in e){e[a].forEach(((e,l)=>{r[l]?r[l][a]=e:r[l]={name:l+t,[a]:e}}))}return r},J=(e,t=0)=>Array.from({length:e-t+1},((e,r)=>r+t)),Q=E.default.div`
276
276
  position: relative;
277
277
  .custom-chart-label {
278
278
  display: flex;
package/build/cache.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./core-5d4bb62a.js");require("./tslib.es6-d5a85038.js"),require("./isProduction-443c6670.js"),exports.getCachedItem=e.getCachedItem,exports.getDataWithCache=e.getDataWithCache,exports.setCachedItem=e.setCachedItem;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./core-44b6fd33.js");require("./tslib.es6-d7a88a93.js"),require("./isProduction-0dffc430.js"),exports.getCachedItem=e.getCachedItem,exports.getDataWithCache=e.getDataWithCache,exports.setCachedItem=e.setCachedItem;
package/build/care.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./types-f3b8e5bd.js"),r=require("./constants-34449147.js");require("./tslib.es6-d5a85038.js"),require("react"),require("./index-15930b05.js"),require("./Locale-895e9c58.js"),require("./isProduction-443c6670.js"),require("./cookieHelper-5f14cb79.js"),require("./useTranslations-49f91025.js"),require("./translationsContext-2f751431.js"),require("string-format"),require("lodash/debounce"),require("./index-da645ad6.js"),require("./index.styled-7f7b2b66.js"),require("./utils-8ad5cd46.js"),require("styled-components"),require("./index-e39e19b6.js"),require("./theme-150c2e5b.js"),require("react-loading-skeleton"),require("lodash/shuffle"),require("./useOutsideClick-0dabc1bd.js"),exports.BookingSearchBar=e.BookingSearchBar,exports.CareTypes=e.types,exports.CareConstants=r.constants;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./types-52d1a875.js"),r=require("./constants-44e0a75a.js");require("./tslib.es6-d7a88a93.js"),require("react"),require("./index-522ced61.js"),require("./Locale-efa66a0f.js"),require("./isProduction-0dffc430.js"),require("./cookieHelper-80099e46.js"),require("./useTranslations-82cb6000.js"),require("./translationsContext-81fe8793.js"),require("string-format"),require("lodash/debounce"),require("./index-1e73e6ea.js"),require("./index.styled-3a45f5c7.js"),require("./utils-17648495.js"),require("styled-components"),require("./index-b6efb8fb.js"),require("./theme-dfe443d6.js"),require("react-loading-skeleton"),require("lodash/shuffle"),require("./useOutsideClick-2cdcb752.js"),exports.BookingSearchBar=e.BookingSearchBar,exports.CareTypes=e.types,exports.CareConstants=r.constants;
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ import { AspectRatioProps as MantineAspectRatioProps } from '@mantine/core';
3
+ export type AspectRatioProps = MantineAspectRatioProps;
4
+ declare const AspectRatio: (props: AspectRatioProps) => JSX.Element;
5
+ export { AspectRatio };
@@ -0,0 +1 @@
1
+ export declare const StyledAspectRatio: import("styled-components").StyledComponent<"div", any, {}, never>;
@@ -0,0 +1,7 @@
1
+ import { ButtonHTMLAttributes } from 'react';
2
+ import { ButtonProps as MantineButtonProps } from '@mantine/core';
3
+ export type ButtonProps = {
4
+ variant?: 'primary' | 'secondary' | 'tertiary' | 'light' | 'ghost' | 'error';
5
+ } & Omit<MantineButtonProps, 'variant'> & ButtonHTMLAttributes<HTMLButtonElement>;
6
+ declare const Button: ({ variant, styles, ...rest }: ButtonProps) => JSX.Element;
7
+ export { Button };
@@ -0,0 +1 @@
1
+ export declare const StyledButton: import("styled-components").StyledComponent<"div", any, {}, never>;
@@ -3,6 +3,7 @@ import { DatePickerProps as MantineDatePickerProps } from '@mantine/dates';
3
3
  import { DateRangePicker } from './range';
4
4
  export type SharedType = {
5
5
  isRange?: boolean;
6
+ isMB?: boolean;
6
7
  };
7
8
  export type DatePickerProps = SharedType & MantineDatePickerProps;
8
9
  export interface CompoundedComponent extends React.ForwardRefExoticComponent<DatePickerProps> {
@@ -2,6 +2,10 @@ export type { SelectProps } from './select';
2
2
  export { Select } from './select';
3
3
  export type { DatePickerProps, DateRangePickerProps } from './datepicker';
4
4
  export { DatePicker } from './datepicker';
5
+ export { Button } from './button';
6
+ export type { ButtonProps } from './button';
7
+ export { AspectRatio } from './aspectRatio';
8
+ export type { AspectRatioProps } from './aspectRatio';
5
9
  export { Indicator } from './indicator';
6
10
  export type { IndicatorProps } from './indicator';
7
11
  export { TextArea } from './textArea';
@@ -4,5 +4,6 @@ import { LOCALE } from 'src/interfaces/types';
4
4
  export type MantineProviderProps = {
5
5
  children: React.ReactNode;
6
6
  locale: LOCALE;
7
+ template?: 'hb' | 'mb';
7
8
  } & _MantineProviderProps;
8
- export declare const MantineProvider: ({ children, locale, ...props }: MantineProviderProps) => JSX.Element;
9
+ export declare const MantineProvider: ({ children, locale, template, ...props }: MantineProviderProps) => JSX.Element;
@@ -0,0 +1,9 @@
1
+ import { ButtonStylesParams, CSSObject, MantineTheme } from '@mantine/core';
2
+ export declare const GlobalButtonStyle: {
3
+ Button: {
4
+ defaultProps: {
5
+ size: string;
6
+ };
7
+ styles: (_theme: MantineTheme, params: ButtonStylesParams) => Partial<Record<"icon" | "label" | "root" | "inner" | "leftIcon" | "rightIcon" | "centerLoader", CSSObject>>;
8
+ };
9
+ };
@@ -0,0 +1,11 @@
1
+ export declare const GlobalCheckboxStyle: {
2
+ Checkbox: {
3
+ styles: {
4
+ input: {
5
+ '&:hover': {
6
+ border: string;
7
+ };
8
+ };
9
+ };
10
+ };
11
+ };
@@ -0,0 +1,3 @@
1
+ import { MantineThemeOverride } from '@mantine/core';
2
+ import { LOCALE } from 'src/interfaces/types';
3
+ export declare const getMantineThemeOverride: (locale: LOCALE, template?: 'hb' | 'mb') => MantineThemeOverride;
@@ -0,0 +1,59 @@
1
+ import { InputStylesParams } from '@mantine/core';
2
+ import { LOCALE } from 'src/interfaces/types';
3
+ export declare const GlobalInputStyle: (locale: LOCALE) => {
4
+ InputWrapper: {
5
+ styles: {
6
+ label: {
7
+ marginBottom: string;
8
+ fontWeight: number;
9
+ fontSize: string;
10
+ lineHeight: string;
11
+ color: string;
12
+ };
13
+ description: {
14
+ fontWeight: number;
15
+ fontSize: string;
16
+ lineHeight: string;
17
+ color: string;
18
+ marginBottom: string;
19
+ };
20
+ error: {
21
+ marginTop: string;
22
+ };
23
+ };
24
+ };
25
+ NumberInput: {
26
+ defaultProps: {
27
+ decimalSeparator: "," | ".";
28
+ };
29
+ };
30
+ Input: {
31
+ styles: (_theme: any, params: InputStylesParams) => {
32
+ input: {
33
+ border: string;
34
+ transition: string;
35
+ "&::not(.mantine-Textarea-input)": {
36
+ height: number;
37
+ fontSize: number;
38
+ lineHeight: number;
39
+ minHeight?: undefined;
40
+ } | {
41
+ height: number;
42
+ fontSize: number;
43
+ lineHeight: number;
44
+ minHeight: string;
45
+ };
46
+ '&:hover': {
47
+ border: string;
48
+ };
49
+ '&:focus': {
50
+ boxShadow: string;
51
+ };
52
+ };
53
+ invalid: {
54
+ border: string;
55
+ color: string;
56
+ };
57
+ };
58
+ };
59
+ };
@@ -0,0 +1,15 @@
1
+ export declare const GlobalRadioStyle: {
2
+ Radio: {
3
+ styles: {
4
+ radio: {
5
+ '&:checked': {
6
+ backgroundColor: string;
7
+ };
8
+ '&:hover': {
9
+ border: string;
10
+ };
11
+ backgroundColor: string;
12
+ };
13
+ };
14
+ };
15
+ };
@@ -0,0 +1,6 @@
1
+ export declare const ANIMATION_DURATION = "100ms";
2
+ export declare const SHARED_HOVER: {
3
+ '&:hover': {
4
+ border: string;
5
+ };
6
+ };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./index-e36e77e9.js"),r=require("./index-c9e2716b.js"),o=require("./index-1a72d2c6.js"),t=require("./index-db09f731.js"),i=require("./index.styled-9227302c.js"),a=require("./index-da645ad6.js"),s=require("./index.styled-7f7b2b66.js"),n=require("./index-7bdfc4ca.js"),d=require("./index.styled-5ba8c093.js"),u=require("./index-e39e19b6.js"),p=require("./index-414bbf33.js"),x=require("./index-3fa122b0.js"),c=require("./index-e80e30d0.js"),l=require("./index-41b69d00.js"),b=require("./dataTransform-a3364c37.js"),q=require("./index-ce9aeebf.js"),g=require("./footer.js");require("react"),require("./utils-8ad5cd46.js"),require("./useUniqueId-ef38060f.js"),require("./gAssets.js"),require("./index-15930b05.js"),require("./Locale-895e9c58.js"),require("./isProduction-443c6670.js"),require("./theme-150c2e5b.js"),require("./tslib.es6-d5a85038.js"),require("lodash/throttle"),require("keen-slider/react"),require("./useTranslations-49f91025.js"),require("./translationsContext-2f751431.js"),require("string-format"),require("date-fns"),require("dayjs"),require("@mantine/core"),require("./index.styled-e09774b3.js"),require("styled-components"),require("./index.styled-3ee62f4d.js"),require("./cookieHelper-5f14cb79.js"),require("slugify"),require("./routing-c6121b5c.js"),require("dayjs/plugin/relativeTime"),require("./index-6bb7c07c.js"),require("./index-689b2aeb.js"),require("@mantine/hooks"),require("./index-e3337614.js"),require("react-hook-form"),require("./useHealthToolCache-44234ce1.js"),require("./getDynamicHealthTool-b966c91e.js"),require("./core-5d4bb62a.js"),require("./normalizeLink-307d4e7a.js"),require("./screenSizeContext-0241a845.js"),require("./useOutsideClick-0dabc1bd.js"),require("date-fns/locale/en-US"),require("date-fns/locale/id"),require("date-fns/locale/vi"),require("date-fns/locale/zh-TW"),require("./getSocialList-21aa6cc1.js"),require("@mantine/dates"),require("./constants-34449147.js"),require("./useIsInit-dddb7f1d.js"),require("lodash/debounce"),require("@hookform/resolvers/yup"),require("react-day-picker/DayPickerInput"),require("./useScrollbarSize-f2df5c9e.js"),require("react-dom"),require("./index.styled-488a758b.js"),require("./index-6d2fa56d.js"),require("@mantine/carousel"),exports.Alert=e.Alert,exports.ArticleCard=e.ArticleCard,exports.BMICardEmbed=e.BMICardEmbed,exports.BMRCardEmbed=e.BMRCardEmbed,exports.BabyGrowthCardEmbed=e.BabyGrowthCardEmbed,exports.BabyPoopEmbed=e.BabyPoopEmbed,exports.Badge=e.Badge,exports.BorderHeading=e.BorderHeading,exports.Breadcrumbs=e.Breadcrumbs,exports.Carousel=e.Carousel,exports.CategoryCard=e.CategoryCard,exports.Checkbox=e.Checkbox,exports.CheckboxGroup=e.CheckboxGroup,exports.CookieAcceptConfirm=e.CookieAcceptConfirm,exports.DateRangePicker=e.DateRangePicker,exports.DueDateCardEmbed=e.DueDateCardEmbed,exports.FileDropdown=e.FileDropdown,exports.FloatButtonGroup=e.FloatButtonGroup,exports.Grid=e.Grid,exports.IconText=e.IconText,exports.Immunization=e.Immunization,exports.OvulationCardEmbed=e.OvulationCardEmbed,exports.PWGCardEmbed=e.PWGCardEmbed,exports.Pagination=e.Pagination,exports.Progress=e.Progress,exports.ProgressBar=e.ProgressBar,exports.RateStars=e.RateStars,exports.RecordsByAgeGroup=e.RecordsByAgeGroup,exports.ScrollList=e.ScrollList,exports.SeoHead=e.SeoHead,exports.Shadow=e.Shadow,exports.ShareContainer=e.ShareContainer,exports.ShareDrawer=e.ShareDrawer,exports.SideMenu=e.index,exports.StatisticCard=e.StatisticCard,exports.SurveyThankyouCard=e.SurveyThankyouCard,exports.THRCardEmbed=e.THRCardEmbed,exports.Table=e.index$1,exports.Tag=e.Tag,exports.TimelineBanner=e.TimelineBanner,exports.Toggle=e.Toggle,exports.UnderlinedLink=e.UnderlinedLink,exports.Uploader=e.Uploader,exports.VaccineCard=e.VaccineCard,exports.VaccineDetailPopup=e.VaccineDetailPopup,exports.Avatar=r.Avatar,exports.Flag=r.Flag,exports.LanguageSwitcher=r.LanguageSwitcher,exports.NavigationLogoutPopup=r.NavigationLogoutPopup,exports.NavigationProfileButton=r.NavigationProfileButton,exports.NavigationV2=r.NavigationV2,exports.ProfilePopup=r.ProfilePopup,exports.UserProfileNavigation=r.UserProfileNavigation,exports.UserProfileNavigationHeader=r.NavHeader,exports.UserProfileNavigationStats=r.UserStats,exports.getNavMenuContent=r.getNavMenuContent,exports.getNavMenuContentWithCache=r.getNavMenuContentWithCache,exports.Button=o.Button,exports.AuthorBadge=t.AuthorBadge,exports.BtnChoice=t.BtnChoice,exports.Divider=t.Divider,exports.Tabs=t.Tabs,exports.Heading=i.Heading,exports.Menu=i.Menu,exports.PureInput=i.PureInput,exports.TextArea=i.TextArea,exports.TextDivider=i.TextDivider,exports.Input=a.Input,exports.Label=s.Label,exports.Logo=n.Logo,exports.DatePicker=d.DatePicker,exports.DoctorInfo=d.DoctorInfo,exports.Dropdown=d.Dropdown,exports.MobileBottomNavigation=d.MobileBottomNavigation,exports.MobileBottomNavigationIcon=d.MobileBottomNavigationIcon,exports.Radio=d.Radio,exports.RadioGroup=d.RadioGroup,exports.SurveyQuestionCard=d.SurveyQuestionCard,exports.ToolsBannerCard=d.ToolsBannerCard,exports.Text=u.Text,exports.Container=p.Container,exports.Drawer=x.Drawer,exports.Icon=x.Icon,exports.Modal=x.Modal,exports.RadioImageGroup=x.RadioImageGroup,exports.NewBabyProfileRadio=c.NewBabyProfileRadio,exports.CustomReferenceDot=l.CustomReferenceDot,exports.Popup=b.Popup,exports.PillCarousel=q.PillCarousel,exports.Footer=g.Footer;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./index-08cd99b4.js"),r=require("./index-b919e3e6.js"),o=require("./index-128a6789.js"),t=require("./index-b9723788.js"),i=require("./index.styled-e7a62025.js"),a=require("./index-1e73e6ea.js"),s=require("./index.styled-3a45f5c7.js"),n=require("./index-4e824542.js"),d=require("./index.styled-a7e71e07.js"),u=require("./index-b6efb8fb.js"),p=require("./index-1e892386.js"),x=require("./index-8cc8629d.js"),l=require("./index-b588dc4d.js"),c=require("./index-0f3768e1.js"),q=require("./dataTransform-9466d6d3.js"),g=require("./index-8be322c5.js"),C=require("./footer.js");require("react"),require("./utils-17648495.js"),require("./useUniqueId-e8bf8833.js"),require("./gAssets.js"),require("./index-522ced61.js"),require("./Locale-efa66a0f.js"),require("./isProduction-0dffc430.js"),require("./theme-dfe443d6.js"),require("./tslib.es6-d7a88a93.js"),require("lodash/throttle"),require("keen-slider/react"),require("dayjs"),require("./screenSizeContext-8f7af71c.js"),require("styled-components"),require("./useTranslations-82cb6000.js"),require("./translationsContext-81fe8793.js"),require("string-format"),require("date-fns"),require("@mantine/core"),require("./index.styled-a46cbe49.js"),require("./index.styled-413c614c.js"),require("./cookieHelper-80099e46.js"),require("slugify"),require("./routing-0d2fb020.js"),require("dayjs/plugin/relativeTime"),require("./index-43171e19.js"),require("./index-ce6bfea9.js"),require("@mantine/hooks"),require("./index-4b2739da.js"),require("react-hook-form"),require("./useHealthToolCache-40cc782f.js"),require("./getDynamicHealthTool-4230a626.js"),require("./core-44b6fd33.js"),require("./normalizeLink-a75e2e0f.js"),require("./useOutsideClick-2cdcb752.js"),require("date-fns/locale/en-US"),require("date-fns/locale/id"),require("date-fns/locale/vi"),require("date-fns/locale/zh-TW"),require("./getSocialList-c0d9deaa.js"),require("@mantine/dates"),require("./constants-44e0a75a.js"),require("./useIsInit-d6b0a168.js"),require("lodash/debounce"),require("@hookform/resolvers/yup"),require("react-day-picker/DayPickerInput"),require("./useScrollbarSize-a12042ae.js"),require("react-dom"),require("./index.styled-defe74a4.js"),require("./index-a4e5c235.js"),require("@mantine/carousel"),exports.Alert=e.Alert,exports.ArticleCard=e.ArticleCard,exports.BMICardEmbed=e.BMICardEmbed,exports.BMRCardEmbed=e.BMRCardEmbed,exports.BabyGrowthCardEmbed=e.BabyGrowthCardEmbed,exports.BabyPoopEmbed=e.BabyPoopEmbed,exports.Badge=e.Badge,exports.BorderHeading=e.BorderHeading,exports.Breadcrumbs=e.Breadcrumbs,exports.Carousel=e.Carousel,exports.CategoryCard=e.CategoryCard,exports.Checkbox=e.Checkbox,exports.CheckboxGroup=e.CheckboxGroup,exports.CookieAcceptConfirm=e.CookieAcceptConfirm,exports.DateRangePicker=e.DateRangePicker,exports.DueDateCardEmbed=e.DueDateCardEmbed,exports.FileDropdown=e.FileDropdown,exports.FloatButtonGroup=e.FloatButtonGroup,exports.Grid=e.Grid,exports.IconText=e.IconText,exports.Immunization=e.Immunization,exports.OvulationCardEmbed=e.OvulationCardEmbed,exports.PWGCardEmbed=e.PWGCardEmbed,exports.Pagination=e.Pagination,exports.Progress=e.Progress,exports.ProgressBar=e.ProgressBar,exports.RateStars=e.RateStars,exports.RecordsByAgeGroup=e.RecordsByAgeGroup,exports.ScrollList=e.ScrollList,exports.SeoHead=e.SeoHead,exports.Shadow=e.Shadow,exports.ShareContainer=e.ShareContainer,exports.ShareDrawer=e.ShareDrawer,exports.SideMenu=e.index,exports.StatisticCard=e.StatisticCard,exports.SurveyThankyouCard=e.SurveyThankyouCard,exports.THRCardEmbed=e.THRCardEmbed,exports.Table=e.index$1,exports.Tag=e.Tag,exports.TimelineBanner=e.TimelineBanner,exports.Toggle=e.Toggle,exports.UnderlinedLink=e.UnderlinedLink,exports.Uploader=e.Uploader,exports.VaccineCard=e.VaccineCard,exports.VaccineDetailPopup=e.VaccineDetailPopup,exports.Avatar=r.Avatar,exports.Flag=r.Flag,exports.LanguageSwitcher=r.LanguageSwitcher,exports.NavigationLogoutPopup=r.NavigationLogoutPopup,exports.NavigationProfileButton=r.NavigationProfileButton,exports.NavigationV2=r.NavigationV2,exports.ProfilePopup=r.ProfilePopup,exports.UserProfileNavigation=r.UserProfileNavigation,exports.UserProfileNavigationHeader=r.NavHeader,exports.UserProfileNavigationStats=r.UserStats,exports.getNavMenuContent=r.getNavMenuContent,exports.getNavMenuContentWithCache=r.getNavMenuContentWithCache,exports.Button=o.Button,exports.AuthorBadge=t.AuthorBadge,exports.BtnChoice=t.BtnChoice,exports.Divider=t.Divider,exports.Tabs=t.Tabs,exports.Heading=i.Heading,exports.Menu=i.Menu,exports.PureInput=i.PureInput,exports.TextArea=i.TextArea,exports.TextDivider=i.TextDivider,exports.Input=a.Input,exports.Label=s.Label,exports.Logo=n.Logo,exports.DatePicker=d.DatePicker,exports.DoctorInfo=d.DoctorInfo,exports.Dropdown=d.Dropdown,exports.MobileBottomNavigation=d.MobileBottomNavigation,exports.MobileBottomNavigationIcon=d.MobileBottomNavigationIcon,exports.Radio=d.Radio,exports.RadioGroup=d.RadioGroup,exports.SurveyQuestionCard=d.SurveyQuestionCard,exports.ToolsBannerCard=d.ToolsBannerCard,exports.Text=u.Text,exports.Container=p.Container,exports.Drawer=x.Drawer,exports.Icon=x.Icon,exports.Modal=x.Modal,exports.RadioImageGroup=x.RadioImageGroup,exports.NewBabyProfileRadio=l.NewBabyProfileRadio,exports.CustomReferenceDot=c.CustomReferenceDot,exports.Popup=q.Popup,exports.PillCarousel=g.PillCarousel,exports.Footer=C.Footer;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),require("./Locale-895e9c58.js");var e=require("./index-15930b05.js"),O=require("./isProduction-443c6670.js");exports.CARE_BOOKING_LOCALES=e.CARE_BOOKING_LOCALES,exports.CARE_LOCALES=e.CARE_LOCALES,exports.FAVICONS=e.FAVICONS,exports.ISO_FORMAT=e.ISO_FORMAT,exports.LOCALE_SPECS=e.LOCALE_SPECS,Object.defineProperty(exports,"QUERY_HEALTH_TOOL",{enumerable:!0,get:function(){return e.QUERY_HEALTH_TOOL}}),exports.STATIC_PAGES=e.STATIC_PAGES,exports.TOGETHER_LOCALES=e.TOGETHER_LOCALES,exports.UP_BASEPATH=e.UP_BASEPATH,exports.USER_GEOLOCATION_COORDINATES_COOKIE=e.USER_GEOLOCATION_COORDINATES_COOKIE,exports.domainLocales=e.domainLocales,exports.siteHost=e.siteHost,exports.siteOptions=e.siteOptions,exports.isProduction=O.isProduction;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),require("./Locale-efa66a0f.js");var e=require("./index-522ced61.js"),O=require("./isProduction-0dffc430.js");exports.CARE_BOOKING_LOCALES=e.CARE_BOOKING_LOCALES,exports.CARE_LOCALES=e.CARE_LOCALES,exports.FAVICONS=e.FAVICONS,exports.ISO_FORMAT=e.ISO_FORMAT,exports.LOCALE_SPECS=e.LOCALE_SPECS,Object.defineProperty(exports,"QUERY_HEALTH_TOOL",{enumerable:!0,get:function(){return e.QUERY_HEALTH_TOOL}}),exports.STATIC_PAGES=e.STATIC_PAGES,exports.TOGETHER_LOCALES=e.TOGETHER_LOCALES,exports.UP_BASEPATH=e.UP_BASEPATH,exports.USER_GEOLOCATION_COORDINATES_COOKIE=e.USER_GEOLOCATION_COORDINATES_COOKIE,exports.domainLocales=e.domainLocales,exports.siteHost=e.siteHost,exports.siteOptions=e.siteOptions,exports.isProduction=O.isProduction;
@@ -0,0 +1 @@
1
+ "use strict";var t=require("./tslib.es6-d7a88a93.js"),e=require("./isProduction-0dffc430.js");const a={},i=t=>{if("undefined"!=typeof window){let a;try{a=JSON.parse(localStorage.getItem((e.isProduction?"":"staging_")+"hhg-cache-"+t)||"{}")}catch(t){}return a||{}}return a[t]},r=(t,i)=>{try{"undefined"!=typeof window?localStorage.setItem((e.isProduction?"":"staging_")+"hhg-cache-"+t,JSON.stringify({data:i,time:Date.now()})):a[t]={data:i,time:Date.now()}}catch(t){}};exports.getCachedItem=i,exports.getDataWithCache=(e,a,o,n=9e5)=>t.__awaiter(void 0,void 0,void 0,(function*(){const t=i(e);if(t&&t.data&&t.time&&Date.now()-t.time<n)return t.data;if(a){const t=yield a();return o&&!o(t)||r(e,t),t}return null})),exports.setCachedItem=r;
@@ -1 +1 @@
1
- "use strict";var e=require("react"),i=require("./index.styled-3ee62f4d.js");function o(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var t=o(e);const l=e=>e?{displayName:e.display_name||null,avatar:e.avatar||null,thumbnailAvatar:e.avatar_thumbnail||null,profileUrl:e.profile_url||null,description:e.description||null,metaTag:e.meta_tag||"",specialty:e.specialty||"",organisation:e.organisation||""}:{},n=e=>e?{id:e.ID||null,name:e.name||null,specialty:e.specialty||null,avatar:e.avatar||null,permalink:e.permalink||null,thumbnailAvatar:e.avatar_thumbnail||null}:{},r=e=>{var i,o,t,r;return e?{id:e.ID,postName:e.post_name,sponsor:e.sponsor?d(e.sponsor):null,isSponsored:e.is_sponsored||null,postTitle:e.post_title||"",postModified:e.post_modified||"",postDate:e.post_date||"",modifiedTime:e.modified_time||"",permalink:e.permalink||"",featureImage:e.image||null,featureImageMobile:e.image_medium||null,featureImageMobileXs:e.image_thumbnail||null,author:l(e.author),reviewer:e.reviewed_by&&l(e.reviewed_by)||null,articleReviewed:(null==e?void 0:e.reviewed)?Object.assign(Object.assign({},null==e?void 0:e.reviewed),{author:a(null===(i=null==e?void 0:e.reviewed)||void 0===i?void 0:i.author),editor:a(null===(o=null==e?void 0:e.reviewed)||void 0===o?void 0:o.editor),expert:a(null===(t=null==e?void 0:e.reviewed)||void 0===t?void 0:t.expert),fact_check:a(null===(r=null==e?void 0:e.reviewed)||void 0===r?void 0:r.fact_check)}):null,category:s(e.category),postContent:e.post_content||null,sections:e.sections||null,categories:(e.categories||[]).map(s),sources:e.sources||null,description:e.description||null,excerpt:e.excerpt||null,expert:n(e.expert),metaTag:e.meta_tag||null}:{}},a=e=>void 0!==e&&e?Object.assign(Object.assign({},e),{profile_url:(null==e?void 0:e.slug)?["expert","medical"].includes((null==e?void 0:e.role)||"")?`/expert/${null==e?void 0:e.slug}`:`/author/${null==e?void 0:e.slug}`:e.profile_url}):null,d=e=>e?{title:e.title,logo:e.logo,link:e.link}:{},u=e=>({postTitle:e.post_title,permalink:e.permalink}),s=e=>{var i,o;return e?{termId:e.term_id||null,sponsor:e.sponsor?d(e.sponsor):null,isSponsored:e.is_sponsored||null,categoryName:e.cat_name||null,name:e.name||null,iconUrl:e.icon||"",slugName:e.category_nicename||null,description:e.description||null,featureImage:e.image||null,displayName:e.name||null,parent:e.parent||null,permalink:e.permalink||null,slug:e.slug||null,childCates:(null===(i=e.child_cates)||void 0===i?void 0:i.map((e=>s(e))))||[],colorFeatureImage:e.color_feature_image||null,imageColor:e.image_color||null,textColor:e.text_color||null,catParent:(null===(o=e.cat_parent)||void 0===o?void 0:o.name)?{name:e.cat_parent.name,permalink:e.cat_parent.permalink}:{},metaTag:e.meta_tag||"",reviewedBy:e.reviewed_by?u(e.reviewed_by):null,reviewedDate:e.reviewed_date||"",faqs:e.faqs?e.faqs.map((e=>m(e))):null}:{}},m=e=>({title:e.title,content:e.content}),v=e=>e?{icon:e.icon,link:e.link.startsWith("http")?e.link:"/health-tools"+e.link,subtitle:e.subtitle,title:e.title}:{},c=e=>e?{topicCount:e.topics_count||0,postCount:e.posts_count||0,memberCount:e.members_count||0,thumbnail:e.thumbnail||"",coverImage:e.cover_image||"",mobileCoverImage:e.mobile_cover_image||"",name:e.name||"",description:e.description||"",slug:e.slug||"",id:e.id||0,joined:Boolean(e.joined),isActive:null===e.is_active||void 0===e.is_active||Boolean(e.is_active),mappedCategoryId:e.mapped_category_id||0,discoverCategory:e.discover_category?{categoryId:e.discover_category.category_id||0,name:e.discover_category.name||""}:null,isHidden:Boolean(e.is_hidden)}:{},p=e=>{var i,o,t,l;return e?{id:e.id||0,name:e.name||"",image:e.thumbnail||"",slug:e.slug||"",url:"/"+(null===(i=e.community)||void 0===i?void 0:i.slug)+"/"+(null==e?void 0:e.slug)||"",description:e.description||"",joined:e.joined||!1,postCount:e.count_posts||0,memberCount:e.count_members||0,communityId:String(null===(o=e.community)||void 0===o?void 0:o.id),communitySlug:null===(t=e.community)||void 0===t?void 0:t.slug,communityName:null===(l=e.community)||void 0===l?void 0:l.name,order:e.order||0,isActive:null===e.is_active||void 0===e.is_active||Boolean(e.is_active),mappedCategoryId:e.mapped_category_id||0,discoverCategory:e.discover_category?{categoryId:e.discover_category.category_id||0,name:e.discover_category.name||""}:null,isHidden:Boolean(e.is_hidden)}:{}},_=e=>e?{answer:null==e?void 0:e.answer.map(f),expert:null==e?void 0:e.expert}:{},g=e=>{var i,o,t,l,n,r,a,d,u,s,m,v,c,p,g,y,f,w,h,b,k;return e?{id:e.id,topics:(null===(i=e.topics)||void 0===i?void 0:i.map((i=>{var o,t,l,n;return{id:i.id||0,name:i.name||"",slug:i.slug||"",url:"/"+(null===(o=e.community)||void 0===o?void 0:o.slug)+"/"+i.slug,communityId:String(null===(t=e.community)||void 0===t?void 0:t.id),communitySlug:(null===(l=e.community)||void 0===l?void 0:l.slug)||"",communityName:(null===(n=e.community)||void 0===n?void 0:n.name)||"",isHidden:Boolean(i.is_hidden),isActive:!0}})))||[],community:{id:(null===(o=e.community)||void 0===o?void 0:o.id)||0,name:(null===(t=e.community)||void 0===t?void 0:t.name)||"",slug:(null===(l=e.community)||void 0===l?void 0:l.slug)||"",isActive:!0,isHidden:Boolean(null===(n=e.community)||void 0===n?void 0:n.is_hidden)},slug:e.slug||"",author:{id:(null===(r=e.user)||void 0===r?void 0:r.id)||0,username:(null===(a=e.user)||void 0===a?void 0:a.user_name)||"",email:(null===(d=e.user)||void 0===d?void 0:d.email)||"",name:(null===(u=e.user)||void 0===u?void 0:u.name)||"",avatar:(null===(s=e.user)||void 0===s?void 0:s.avatar)||"",role:(null===(m=e.user)||void 0===m?void 0:m.role)?null===(c=null===(v=e.user)||void 0===v?void 0:v.role)||void 0===c?void 0:c.toLowerCase():"",type:(null===(p=e.user)||void 0===p?void 0:p.type)||"",partnerId:(null===(g=e.user)||void 0===g?void 0:g.partner_id)?String(null===(y=e.user)||void 0===y?void 0:y.partner_id):"",title:(null===(f=e.user)||void 0===f?void 0:f.title)||"",doctorId:(null===(w=e.user)||void 0===w?void 0:w.doctor_id)?String(null===(h=e.user)||void 0===h?void 0:h.doctor_id):"",hospitalId:(null===(b=e.user)||void 0===b?void 0:b.hospital_id)?String(null===(k=e.user)||void 0===k?void 0:k.hospital_id):""},previewUrl:{title:e.preview_title||"",url:e.preview_link||"",image:e.preview_image||"",description:e.preview_description||""},createdAt:e.created_at||"",scheduleDateTime:e.schedule_datetime||"",photos:e.images||[],description:e.description||"",commentsCount:e.comments_count||0,likesCount:e.likes_count||0,title:e.name||"",isPin:!!e.is_pin,pinDate:e.pin_date||"",liked:e.liked||!1,bookmarked:Boolean(e.bookmarked)||!1,mentions:e.mentions||[],commented:Boolean(e.commented)||!1,introUrl:e.intro_url||"",bannerImage:e.banner_image||"",isAnonymous:e.is_anonymous?1:0,isAskDoctor:e.is_question?1:0,expertAnswer:_(null==e?void 0:e.expert_answer),createdTime:e.created_time||""}:{}},y=e=>e?{disclaimer:e.disclaimer,featuredImage:e.featured_image,info:e.informations||[],reviewedBy:e.reviewed_by?{id:e.reviewed_by.ID,permalink:e.reviewed_by.permalink,name:e.reviewed_by.name,postTitle:e.reviewed_by.post_title}:null,reviewedDate:e.reviewed_date}:{},f=e=>{var i,o,t,l,n,r,a,d,u,s,m,v,c,p,_,g,y,w,h,b,k,I,C,x,S,T,P,A,B,D,q,U;return e?{content:e.content,countLikes:e.likes_count,countReplies:e.replies_count,createdAt:e.created_at,createdTime:e.created_time,id:String(e.id),images:e.image||[],link:e.link||null,replies:e.replies&&e.replies.length>0?e.replies.map(f):[],author:{id:(null===(i=e.user)||void 0===i?void 0:i.id)||0,username:(null===(o=e.user)||void 0===o?void 0:o.user_name)||"",name:(null===(t=e.user)||void 0===t?void 0:t.name)||"",role:(null===(l=e.user)||void 0===l?void 0:l.role)?null===(r=null===(n=e.user)||void 0===n?void 0:n.role)||void 0===r?void 0:r.toLowerCase():"",avatar:(null===(a=e.user)||void 0===a?void 0:a.avatar)||"",type:(null===(d=e.user)||void 0===d?void 0:d.type)||"",email:(null===(u=e.user)||void 0===u?void 0:u.email)||"",partnerId:(null===(s=e.user)||void 0===s?void 0:s.partner_id)?String(null===(m=e.user)||void 0===m?void 0:m.partner_id):"",title:(null===(v=e.user)||void 0===v?void 0:v.title)||"",doctorId:(null===(c=e.user)||void 0===c?void 0:c.doctor_id)?String(null===(p=e.user)||void 0===p?void 0:p.doctor_id):"",hospitalId:(null===(_=e.user)||void 0===_?void 0:_.hospital_id)?String(null===(g=e.user)||void 0===g?void 0:g.hospital_id):""},liked:!!e.liked,mentionedUser:e.mentioned?{id:(null===(y=e.mentioned)||void 0===y?void 0:y.id)||0,username:(null===(w=e.mentioned)||void 0===w?void 0:w.user_name)||"",name:(null===(h=e.mentioned)||void 0===h?void 0:h.name)||"",role:(null===(b=e.mentioned)||void 0===b?void 0:b.role)?null===(I=null===(k=e.mentioned)||void 0===k?void 0:k.role)||void 0===I?void 0:I.toLowerCase():"",avatar:(null===(C=e.mentioned)||void 0===C?void 0:C.avatar)||"",type:(null===(x=e.mentioned)||void 0===x?void 0:x.type)||"",email:(null===(S=e.mentioned)||void 0===S?void 0:S.email)||"",partnerId:(null===(T=e.mentioned)||void 0===T?void 0:T.partner_id)?String(null===(P=e.mentioned)||void 0===P?void 0:P.partner_id):"",doctorId:(null===(A=e.mentioned)||void 0===A?void 0:A.doctor_id)?String(null===(B=e.mentioned)||void 0===B?void 0:B.doctor_id):"",hospitalId:(null===(D=e.mentioned)||void 0===D?void 0:D.hospital_id)?String(null===(q=e.mentioned)||void 0===q?void 0:q.hospital_id):"",title:(null===(U=e.mentioned)||void 0===U?void 0:U.title)||""}:null,mentions:e.mentions||[],isSensitive:e.is_sensitive||0,userReadComment:e.user_read_comment,source:e.source||[],isVerify:e.is_verify||0,isOppose:e.is_oppose||0,userVerify:e.user_verify||{},categorySlug:e.categories||""}:{}},w=e=>void 0!==e&&e?(null==e?void 0:e.turn_off_profile)?"":(null==e?void 0:e.slug)?["expert","medical"].includes((null==e?void 0:e.role)||"")?`/expert/${null==e?void 0:e.slug}`:`/author/${null==e?void 0:e.slug}`:(null==e?void 0:e.profile_url)||(null==e?void 0:e.permalink)||"#":"";var h=Object.freeze({__proto__:null,formatAuthor:l,formatArticleExpert:n,formatArticle:r,formatUserProfile:a,formatBMIResult:e=>{var i,o,t,l,n,r,a,d,u;return e&&e.status?{status:null==e?void 0:e.status,comparison:null!==(i=null==e?void 0:e.comparison)&&void 0!==i?i:"",assessmentData:[{tab:"tools.condition",content:null!==(o=null==e?void 0:e.condition)&&void 0!==o?o:""},{tab:"tools.risks",content:null!==(t=null==e?void 0:e.risk)&&void 0!==t?t:""},{tab:"tools.suggestion",content:null!==(l=null==e?void 0:e.suggestion)&&void 0!==l?l:""}],chartData:(null===(n=null==e?void 0:e.chart_data)||void 0===n?void 0:n.length)>0?null==e?void 0:e.chart_data:[],disclaimer:null!==(r=null==e?void 0:e.disclaimer)&&void 0!==r?r:"",illustrator:null!==(a=null==e?void 0:e.illustrator)&&void 0!==a?a:"",faqs:null!==(d=null==e?void 0:e.faqs)&&void 0!==d?d:[],suggestedArticlesLink:null!==(u=null==e?void 0:e.suggested_articles_link)&&void 0!==u?u:""}:{}},formatSponsor:d,formatReviewedCategory:u,formatCategory:s,formatCategoryApi:e=>e?{categoryInfo:s(e.data.category)||null,explainersPosts:(e.data.explainers_posts||[]).map(r),subCategories:(e.data.sub_categories||[]).map(s)}:{},formatFaqsCategory:m,formatHealthTool:v,formatHealthToolTypeCategory:e=>{var i,o;return e?{termId:(null==e?void 0:e.term_id)||0,name:(null==e?void 0:e.name)||"",healthTools:null!==(o=null===(i=null==e?void 0:e.health_tools)||void 0===i?void 0:i.map((e=>v(e))))&&void 0!==o?o:[]}:{}},formatCommunity:c,formatTopic:p,formatExpertAnswer:_,formatPost:g,formatPostPagination:e=>e?{currentPage:e.current||0,lastPage:e.last||0,total:e.total_items||0}:{},formatNotification:e=>{var i,o,t;return e?{time:e.created_at,content:e.content,postId:String(e.post_id),fromUser:{name:null===(i=e.from_user)||void 0===i?void 0:i.name,id:null===(o=e.from_user)||void 0===o?void 0:o.id,avatar:null===(t=e.from_user)||void 0===t?void 0:t.avatar},toUserId:String(e.to_user_id),postSlug:e.post_slug||"",communitySlug:e.community_slug||""}:{}},formatSpotlightsList:e=>e?e.map((e=>({id:e.ID,name:e.name,permalink:e.permalink,image:(null==e?void 0:e.small_banner)||(null==e?void 0:e.image),imageMedium:(null==e?void 0:e.image_medium)||null,imageThumbnail:(null==e?void 0:e.image_thumbnail)||null,startDate:null==e?void 0:e.start_date,endDate:null==e?void 0:e.end_date}))):[],formatOvulationInfo:y,formatSuggestedArticle:e=>e?{postId:e.post_id||null,categoryId:e.category_id||null,postUrl:e.post_url||null,postReviewed:e.post_reviewed||null,postPageviews:e.post_pageviews||null,postRank:e.post_rank||null,isPin:e.is_pin||null,frequency:e.frequency||null,topic:e.topic||null}:{},formatTopicHealthTool:e=>e?{id:e.tool_id||null,topicFrequency:e.frequency||null,topicId:e.topic_id||null,topicName:e.topic_name||null,isPinned:!!e.is_pin||null,toolLink:e.tool_link||""}:{},formatComment:f,formatReportedPostToPostDetail:e=>e?{name:e.title,description:e.description,images:e.images,likes_count:e.count_likes,comments_count:e.count_comments,topics:[],slug:e.post_slug,id:e.post_id,is_pin:e.is_pin,pin_date:"",post_type:e.post_type,schedule_datetime:e.schedule_datetime,is_active:e.is_active,preview_title:e.preview_title||"",preview_image:e.preview_image||"",preview_description:e.preview_description||"",preview_link:e.preview_link||"",user:e.user,created_at:"",created_time:"",community:{id:e.community_id,name:e.community_name,slug:e.community_slug,description:""}}:{},formatTopicSubot:e=>e?{chatBotId:e.subot_id,isPinned:e.is_pin,topicId:e.topic_id,topicFrequency:e.frequency}:{},formatSiteWideBanner:(e,i)=>void 0!==e&&e?{content:(null==e?void 0:e.content)||"",icon:(null==e?void 0:e.icon)||"",type:i||"other"}:null,formatPWGContent:e=>e?{disclaimer:e.disclaimer,info:e.info||[],reviewedBy:e.reviewed_by?a(e.reviewed_by):null,reviewedDate:e.reviewed_date,metaTag:e.meta_tag}:{},formatUserProfileUrl:w,formatTHRContent:e=>e?{disclaimer:e.disclaimer,info:e.info||[],reviewedBy:e.reviewed_by?a(e.reviewed_by):null,reviewedDate:e.reviewed_date,metaTag:e.meta_tag}:{},formatBabyGrowthContent:e=>{var i,o,t;return e&&e.information?{information:null!==(i=e.information.map((e=>({title:e.title,description:e.description}))))&&void 0!==i?i:[],reviewBy:{reviewer:(null===(o=e.reviewed_by)||void 0===o?void 0:o.display_name)||(null===(t=e.reviewed_by)||void 0===t?void 0:t.name)||"",date:e.reviewed_date||"",link:w(null==e?void 0:e.reviewed_by)},metaTag:e.meta_tag||"",title:e.title||"",description:e.description||"",disclaimer:e.disclaimer||"",is_sponsored:e.is_sponsored||!1,sponsor:e.sponsor,featuredImage:e.featured_image||""}:{}}});exports.Popup=({type:e="lead",closeIcon:o,isOpen:l=!0,onClose:n,children:r,className:a="",enableAnimation:d=!0})=>t.default.createElement(t.default.Fragment,null,t.default.createElement(i.StyledPopup$2,{"data-open":l,"data-type":e,"data-animation":d},t.default.createElement("div",{className:`${a||""} popup-content`},!!o&&t.default.createElement("div",{className:"close-button",onClick:n},o),r)),t.default.createElement(i.StyledPopupWrapper,{"data-open":l,onClick:n})),exports.dataTransform=h,exports.formatArticle=r,exports.formatCategory=s,exports.formatComment=f,exports.formatCommunity=c,exports.formatOvulationInfo=y,exports.formatPost=g,exports.formatTopic=p,exports.formatUserProfileUrl=w;
1
+ "use strict";var e=require("react"),i=require("./index.styled-413c614c.js");function o(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var t=o(e);const l=e=>e?{displayName:e.display_name||null,avatar:e.avatar||null,thumbnailAvatar:e.avatar_thumbnail||null,profileUrl:e.profile_url||null,description:e.description||null,metaTag:e.meta_tag||"",specialty:e.specialty||"",organisation:e.organisation||""}:{},n=e=>e?{id:e.ID||null,name:e.name||null,specialty:e.specialty||null,avatar:e.avatar||null,permalink:e.permalink||null,thumbnailAvatar:e.avatar_thumbnail||null}:{},r=e=>{var i,o,t,r;return e?{id:e.ID,postName:e.post_name,sponsor:e.sponsor?d(e.sponsor):null,isSponsored:e.is_sponsored||null,postTitle:e.post_title||"",postModified:e.post_modified||"",postDate:e.post_date||"",modifiedTime:e.modified_time||"",permalink:e.permalink||"",featureImage:e.image||null,featureImageMobile:e.image_medium||null,featureImageMobileXs:e.image_thumbnail||null,author:l(e.author),reviewer:e.reviewed_by&&l(e.reviewed_by)||null,articleReviewed:(null==e?void 0:e.reviewed)?Object.assign(Object.assign({},null==e?void 0:e.reviewed),{author:a(null===(i=null==e?void 0:e.reviewed)||void 0===i?void 0:i.author),editor:a(null===(o=null==e?void 0:e.reviewed)||void 0===o?void 0:o.editor),expert:a(null===(t=null==e?void 0:e.reviewed)||void 0===t?void 0:t.expert),fact_check:a(null===(r=null==e?void 0:e.reviewed)||void 0===r?void 0:r.fact_check)}):null,category:s(e.category),postContent:e.post_content||null,sections:e.sections||null,categories:(e.categories||[]).map(s),sources:e.sources||null,description:e.description||null,excerpt:e.excerpt||null,expert:n(e.expert),metaTag:e.meta_tag||null}:{}},a=e=>void 0!==e&&e?Object.assign(Object.assign({},e),{profile_url:(null==e?void 0:e.slug)?["expert","medical"].includes((null==e?void 0:e.role)||"")?`/expert/${null==e?void 0:e.slug}`:`/author/${null==e?void 0:e.slug}`:e.profile_url}):null,d=e=>e?{title:e.title,logo:e.logo,link:e.link}:{},u=e=>({postTitle:e.post_title,permalink:e.permalink}),s=e=>{var i,o;return e?{termId:e.term_id||null,sponsor:e.sponsor?d(e.sponsor):null,isSponsored:e.is_sponsored||null,categoryName:e.cat_name||null,name:e.name||null,iconUrl:e.icon||"",slugName:e.category_nicename||null,description:e.description||null,featureImage:e.image||null,displayName:e.name||null,parent:e.parent||null,permalink:e.permalink||null,slug:e.slug||null,childCates:(null===(i=e.child_cates)||void 0===i?void 0:i.map((e=>s(e))))||[],colorFeatureImage:e.color_feature_image||null,imageColor:e.image_color||null,textColor:e.text_color||null,catParent:(null===(o=e.cat_parent)||void 0===o?void 0:o.name)?{name:e.cat_parent.name,permalink:e.cat_parent.permalink}:{},metaTag:e.meta_tag||"",reviewedBy:e.reviewed_by?u(e.reviewed_by):null,reviewedDate:e.reviewed_date||"",faqs:e.faqs?e.faqs.map((e=>m(e))):null}:{}},m=e=>({title:e.title,content:e.content}),v=e=>e?{icon:e.icon,link:e.link.startsWith("http")?e.link:"/health-tools"+e.link,subtitle:e.subtitle,title:e.title}:{},c=e=>e?{topicCount:e.topics_count||0,postCount:e.posts_count||0,memberCount:e.members_count||0,thumbnail:e.thumbnail||"",coverImage:e.cover_image||"",mobileCoverImage:e.mobile_cover_image||"",name:e.name||"",description:e.description||"",slug:e.slug||"",id:e.id||0,joined:Boolean(e.joined),isActive:null===e.is_active||void 0===e.is_active||Boolean(e.is_active),mappedCategoryId:e.mapped_category_id||0,discoverCategory:e.discover_category?{categoryId:e.discover_category.category_id||0,name:e.discover_category.name||""}:null,isHidden:Boolean(e.is_hidden)}:{},p=e=>{var i,o,t,l;return e?{id:e.id||0,name:e.name||"",image:e.thumbnail||"",slug:e.slug||"",url:"/"+(null===(i=e.community)||void 0===i?void 0:i.slug)+"/"+(null==e?void 0:e.slug)||"",description:e.description||"",joined:e.joined||!1,postCount:e.count_posts||0,memberCount:e.count_members||0,communityId:String(null===(o=e.community)||void 0===o?void 0:o.id),communitySlug:null===(t=e.community)||void 0===t?void 0:t.slug,communityName:null===(l=e.community)||void 0===l?void 0:l.name,order:e.order||0,isActive:null===e.is_active||void 0===e.is_active||Boolean(e.is_active),mappedCategoryId:e.mapped_category_id||0,discoverCategory:e.discover_category?{categoryId:e.discover_category.category_id||0,name:e.discover_category.name||""}:null,isHidden:Boolean(e.is_hidden)}:{}},_=e=>e?{answer:null==e?void 0:e.answer.map(f),expert:null==e?void 0:e.expert}:{},g=e=>{var i,o,t,l,n,r,a,d,u,s,m,v,c,p,g,y,f,w,h,b,k;return e?{id:e.id,topics:(null===(i=e.topics)||void 0===i?void 0:i.map((i=>{var o,t,l,n;return{id:i.id||0,name:i.name||"",slug:i.slug||"",url:"/"+(null===(o=e.community)||void 0===o?void 0:o.slug)+"/"+i.slug,communityId:String(null===(t=e.community)||void 0===t?void 0:t.id),communitySlug:(null===(l=e.community)||void 0===l?void 0:l.slug)||"",communityName:(null===(n=e.community)||void 0===n?void 0:n.name)||"",isHidden:Boolean(i.is_hidden),isActive:!0}})))||[],community:{id:(null===(o=e.community)||void 0===o?void 0:o.id)||0,name:(null===(t=e.community)||void 0===t?void 0:t.name)||"",slug:(null===(l=e.community)||void 0===l?void 0:l.slug)||"",isActive:!0,isHidden:Boolean(null===(n=e.community)||void 0===n?void 0:n.is_hidden)},slug:e.slug||"",author:{id:(null===(r=e.user)||void 0===r?void 0:r.id)||0,username:(null===(a=e.user)||void 0===a?void 0:a.user_name)||"",email:(null===(d=e.user)||void 0===d?void 0:d.email)||"",name:(null===(u=e.user)||void 0===u?void 0:u.name)||"",avatar:(null===(s=e.user)||void 0===s?void 0:s.avatar)||"",role:(null===(m=e.user)||void 0===m?void 0:m.role)?null===(c=null===(v=e.user)||void 0===v?void 0:v.role)||void 0===c?void 0:c.toLowerCase():"",type:(null===(p=e.user)||void 0===p?void 0:p.type)||"",partnerId:(null===(g=e.user)||void 0===g?void 0:g.partner_id)?String(null===(y=e.user)||void 0===y?void 0:y.partner_id):"",title:(null===(f=e.user)||void 0===f?void 0:f.title)||"",doctorId:(null===(w=e.user)||void 0===w?void 0:w.doctor_id)?String(null===(h=e.user)||void 0===h?void 0:h.doctor_id):"",hospitalId:(null===(b=e.user)||void 0===b?void 0:b.hospital_id)?String(null===(k=e.user)||void 0===k?void 0:k.hospital_id):""},previewUrl:{title:e.preview_title||"",url:e.preview_link||"",image:e.preview_image||"",description:e.preview_description||""},createdAt:e.created_at||"",scheduleDateTime:e.schedule_datetime||"",photos:e.images||[],description:e.description||"",commentsCount:e.comments_count||0,likesCount:e.likes_count||0,title:e.name||"",isPin:!!e.is_pin,pinDate:e.pin_date||"",liked:e.liked||!1,bookmarked:Boolean(e.bookmarked)||!1,mentions:e.mentions||[],commented:Boolean(e.commented)||!1,introUrl:e.intro_url||"",bannerImage:e.banner_image||"",isAnonymous:e.is_anonymous?1:0,isAskDoctor:e.is_question?1:0,expertAnswer:_(null==e?void 0:e.expert_answer),createdTime:e.created_time||""}:{}},y=e=>e?{disclaimer:e.disclaimer,featuredImage:e.featured_image,info:e.informations||[],reviewedBy:e.reviewed_by?{id:e.reviewed_by.ID,permalink:e.reviewed_by.permalink,name:e.reviewed_by.name,postTitle:e.reviewed_by.post_title}:null,reviewedDate:e.reviewed_date}:{},f=e=>{var i,o,t,l,n,r,a,d,u,s,m,v,c,p,_,g,y,w,h,b,k,I,C,x,S,T,P,A,B,D,q,U;return e?{content:e.content,countLikes:e.likes_count,countReplies:e.replies_count,createdAt:e.created_at,createdTime:e.created_time,id:String(e.id),images:e.image||[],link:e.link||null,replies:e.replies&&e.replies.length>0?e.replies.map(f):[],author:{id:(null===(i=e.user)||void 0===i?void 0:i.id)||0,username:(null===(o=e.user)||void 0===o?void 0:o.user_name)||"",name:(null===(t=e.user)||void 0===t?void 0:t.name)||"",role:(null===(l=e.user)||void 0===l?void 0:l.role)?null===(r=null===(n=e.user)||void 0===n?void 0:n.role)||void 0===r?void 0:r.toLowerCase():"",avatar:(null===(a=e.user)||void 0===a?void 0:a.avatar)||"",type:(null===(d=e.user)||void 0===d?void 0:d.type)||"",email:(null===(u=e.user)||void 0===u?void 0:u.email)||"",partnerId:(null===(s=e.user)||void 0===s?void 0:s.partner_id)?String(null===(m=e.user)||void 0===m?void 0:m.partner_id):"",title:(null===(v=e.user)||void 0===v?void 0:v.title)||"",doctorId:(null===(c=e.user)||void 0===c?void 0:c.doctor_id)?String(null===(p=e.user)||void 0===p?void 0:p.doctor_id):"",hospitalId:(null===(_=e.user)||void 0===_?void 0:_.hospital_id)?String(null===(g=e.user)||void 0===g?void 0:g.hospital_id):""},liked:!!e.liked,mentionedUser:e.mentioned?{id:(null===(y=e.mentioned)||void 0===y?void 0:y.id)||0,username:(null===(w=e.mentioned)||void 0===w?void 0:w.user_name)||"",name:(null===(h=e.mentioned)||void 0===h?void 0:h.name)||"",role:(null===(b=e.mentioned)||void 0===b?void 0:b.role)?null===(I=null===(k=e.mentioned)||void 0===k?void 0:k.role)||void 0===I?void 0:I.toLowerCase():"",avatar:(null===(C=e.mentioned)||void 0===C?void 0:C.avatar)||"",type:(null===(x=e.mentioned)||void 0===x?void 0:x.type)||"",email:(null===(S=e.mentioned)||void 0===S?void 0:S.email)||"",partnerId:(null===(T=e.mentioned)||void 0===T?void 0:T.partner_id)?String(null===(P=e.mentioned)||void 0===P?void 0:P.partner_id):"",doctorId:(null===(A=e.mentioned)||void 0===A?void 0:A.doctor_id)?String(null===(B=e.mentioned)||void 0===B?void 0:B.doctor_id):"",hospitalId:(null===(D=e.mentioned)||void 0===D?void 0:D.hospital_id)?String(null===(q=e.mentioned)||void 0===q?void 0:q.hospital_id):"",title:(null===(U=e.mentioned)||void 0===U?void 0:U.title)||""}:null,mentions:e.mentions||[],isSensitive:e.is_sensitive||0,userReadComment:e.user_read_comment,source:e.source||[],isVerify:e.is_verify||0,isOppose:e.is_oppose||0,userVerify:e.user_verify||{},categorySlug:e.categories||""}:{}},w=e=>void 0!==e&&e?(null==e?void 0:e.turn_off_profile)?"":(null==e?void 0:e.slug)?["expert","medical"].includes((null==e?void 0:e.role)||"")?`/expert/${null==e?void 0:e.slug}`:`/author/${null==e?void 0:e.slug}`:(null==e?void 0:e.profile_url)||(null==e?void 0:e.permalink)||"#":"";var h=Object.freeze({__proto__:null,formatAuthor:l,formatArticleExpert:n,formatArticle:r,formatUserProfile:a,formatBMIResult:e=>{var i,o,t,l,n,r,a,d,u;return e&&e.status?{status:null==e?void 0:e.status,comparison:null!==(i=null==e?void 0:e.comparison)&&void 0!==i?i:"",assessmentData:[{tab:"tools.condition",content:null!==(o=null==e?void 0:e.condition)&&void 0!==o?o:""},{tab:"tools.risks",content:null!==(t=null==e?void 0:e.risk)&&void 0!==t?t:""},{tab:"tools.suggestion",content:null!==(l=null==e?void 0:e.suggestion)&&void 0!==l?l:""}],chartData:(null===(n=null==e?void 0:e.chart_data)||void 0===n?void 0:n.length)>0?null==e?void 0:e.chart_data:[],disclaimer:null!==(r=null==e?void 0:e.disclaimer)&&void 0!==r?r:"",illustrator:null!==(a=null==e?void 0:e.illustrator)&&void 0!==a?a:"",faqs:null!==(d=null==e?void 0:e.faqs)&&void 0!==d?d:[],suggestedArticlesLink:null!==(u=null==e?void 0:e.suggested_articles_link)&&void 0!==u?u:""}:{}},formatSponsor:d,formatReviewedCategory:u,formatCategory:s,formatCategoryApi:e=>e?{categoryInfo:s(e.data.category)||null,explainersPosts:(e.data.explainers_posts||[]).map(r),subCategories:(e.data.sub_categories||[]).map(s)}:{},formatFaqsCategory:m,formatHealthTool:v,formatHealthToolTypeCategory:e=>{var i,o;return e?{termId:(null==e?void 0:e.term_id)||0,name:(null==e?void 0:e.name)||"",healthTools:null!==(o=null===(i=null==e?void 0:e.health_tools)||void 0===i?void 0:i.map((e=>v(e))))&&void 0!==o?o:[]}:{}},formatCommunity:c,formatTopic:p,formatExpertAnswer:_,formatPost:g,formatPostPagination:e=>e?{currentPage:e.current||0,lastPage:e.last||0,total:e.total_items||0}:{},formatNotification:e=>{var i,o,t;return e?{time:e.created_at,content:e.content,postId:String(e.post_id),fromUser:{name:null===(i=e.from_user)||void 0===i?void 0:i.name,id:null===(o=e.from_user)||void 0===o?void 0:o.id,avatar:null===(t=e.from_user)||void 0===t?void 0:t.avatar},toUserId:String(e.to_user_id),postSlug:e.post_slug||"",communitySlug:e.community_slug||""}:{}},formatSpotlightsList:e=>e?e.map((e=>({id:e.ID,name:e.name,permalink:e.permalink,image:(null==e?void 0:e.small_banner)||(null==e?void 0:e.image),imageMedium:(null==e?void 0:e.image_medium)||null,imageThumbnail:(null==e?void 0:e.image_thumbnail)||null,startDate:null==e?void 0:e.start_date,endDate:null==e?void 0:e.end_date}))):[],formatOvulationInfo:y,formatSuggestedArticle:e=>e?{postId:e.post_id||null,categoryId:e.category_id||null,postUrl:e.post_url||null,postReviewed:e.post_reviewed||null,postPageviews:e.post_pageviews||null,postRank:e.post_rank||null,isPin:e.is_pin||null,frequency:e.frequency||null,topic:e.topic||null}:{},formatTopicHealthTool:e=>e?{id:e.tool_id||null,topicFrequency:e.frequency||null,topicId:e.topic_id||null,topicName:e.topic_name||null,isPinned:!!e.is_pin||null,toolLink:e.tool_link||""}:{},formatComment:f,formatReportedPostToPostDetail:e=>e?{name:e.title,description:e.description,images:e.images,likes_count:e.count_likes,comments_count:e.count_comments,topics:[],slug:e.post_slug,id:e.post_id,is_pin:e.is_pin,pin_date:"",post_type:e.post_type,schedule_datetime:e.schedule_datetime,is_active:e.is_active,preview_title:e.preview_title||"",preview_image:e.preview_image||"",preview_description:e.preview_description||"",preview_link:e.preview_link||"",user:e.user,created_at:"",created_time:"",community:{id:e.community_id,name:e.community_name,slug:e.community_slug,description:""}}:{},formatTopicSubot:e=>e?{chatBotId:e.subot_id,isPinned:e.is_pin,topicId:e.topic_id,topicFrequency:e.frequency}:{},formatSiteWideBanner:(e,i)=>void 0!==e&&e?{content:(null==e?void 0:e.content)||"",icon:(null==e?void 0:e.icon)||"",type:i||"other"}:null,formatPWGContent:e=>e?{disclaimer:e.disclaimer,info:e.info||[],reviewedBy:e.reviewed_by?a(e.reviewed_by):null,reviewedDate:e.reviewed_date,metaTag:e.meta_tag}:{},formatUserProfileUrl:w,formatTHRContent:e=>e?{disclaimer:e.disclaimer,info:e.info||[],reviewedBy:e.reviewed_by?a(e.reviewed_by):null,reviewedDate:e.reviewed_date,metaTag:e.meta_tag}:{},formatBabyGrowthContent:e=>{var i,o,t;return e&&e.information?{information:null!==(i=e.information.map((e=>({title:e.title,description:e.description}))))&&void 0!==i?i:[],reviewBy:{reviewer:(null===(o=e.reviewed_by)||void 0===o?void 0:o.display_name)||(null===(t=e.reviewed_by)||void 0===t?void 0:t.name)||"",date:e.reviewed_date||"",link:w(null==e?void 0:e.reviewed_by)},metaTag:e.meta_tag||"",title:e.title||"",description:e.description||"",disclaimer:e.disclaimer||"",is_sponsored:e.is_sponsored||!1,sponsor:e.sponsor,featuredImage:e.featured_image||""}:{}}});exports.Popup=({type:e="lead",closeIcon:o,isOpen:l=!0,onClose:n,children:r,className:a="",enableAnimation:d=!0})=>t.default.createElement(t.default.Fragment,null,t.default.createElement(i.StyledPopup$2,{"data-open":l,"data-type":e,"data-animation":d},t.default.createElement("div",{className:`${a||""} popup-content`},!!o&&t.default.createElement("div",{className:"close-button",onClick:n},o),r)),t.default.createElement(i.StyledPopupWrapper,{"data-open":l,onClick:n})),exports.dataTransform=h,exports.formatArticle=r,exports.formatCategory=s,exports.formatComment=f,exports.formatCommunity=c,exports.formatOvulationInfo=y,exports.formatPost=g,exports.formatTopic=p,exports.formatUserProfileUrl=w;