@hhgtech/hhg-components 1.24.1 → 1.24.2-beta-1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (285) hide show
  1. package/build/babyGrowth.js +2 -2
  2. package/build/cache.js +1 -1
  3. package/build/care.js +1 -1
  4. package/build/components/mantine/aspectRatio/index.d.ts +5 -0
  5. package/build/components/mantine/aspectRatio/index.styled.d.ts +1 -0
  6. package/build/components/mantine/button/index.d.ts +7 -0
  7. package/build/components/mantine/button/index.styled.d.ts +1 -0
  8. package/build/components/mantine/index.d.ts +4 -0
  9. package/build/components/mantine/provider/index.d.ts +2 -1
  10. package/build/components/mantine/theme/button.d.ts +9 -0
  11. package/build/components/mantine/theme/checkbox.d.ts +11 -0
  12. package/build/components/mantine/theme/index.d.ts +3 -0
  13. package/build/components/mantine/theme/input.d.ts +65 -0
  14. package/build/components/mantine/theme/radio.d.ts +15 -0
  15. package/build/components/mantine/theme/shared.d.ts +6 -0
  16. package/build/components/organisms/navigationV2/components/molecules/navigationBar/index.d.ts +2 -4
  17. package/build/components/organisms/navigationV2/hooks/useHeaderHeight.d.ts +1 -2
  18. package/build/components/organisms/navigationV2/types.d.ts +0 -3
  19. package/build/components.js +1 -1
  20. package/build/constants.js +1 -1
  21. package/build/{core-d6d7b2e4.js → core-ca19dfe7.js} +1 -1
  22. package/build/{dataTransform-ac103d09.js → dataTransform-b8e97d79.js} +1 -1
  23. package/build/esm/babyGrowth.js +7 -7
  24. package/build/esm/cache.js +1 -1
  25. package/build/esm/care.js +1 -1
  26. package/build/esm/components.js +1 -1
  27. package/build/esm/constants.js +1 -1
  28. package/build/esm/{core-5ef98b5b.js → core-81c2a10d.js} +1 -1
  29. package/build/esm/{dataTransform-8dd18e0b.js → dataTransform-2b542c76.js} +1 -1
  30. package/build/esm/footer.js +1 -1
  31. package/build/esm/gAssets.js +1 -1
  32. package/build/esm/getDynamicHealthTool-40fb4fcb.js +1 -0
  33. package/build/esm/{getSocialList-8af5c44f.js → getSocialList-99bba581.js} +1 -1
  34. package/build/esm/hooks.js +1 -1
  35. package/build/esm/i18n.js +1 -1
  36. package/build/esm/{index-8ac39655.js → index-01378eba.js} +11 -11
  37. package/build/esm/index-0bd38191.js +1 -0
  38. package/build/esm/{index-d48263d2.js → index-1335ef96.js} +1 -1
  39. package/build/esm/{index-f9804efb.js → index-1791e23d.js} +1 -1
  40. package/build/esm/{index-a04d4c0f.js → index-214ac1af.js} +1 -1
  41. package/build/esm/{index-1336dea5.js → index-24bbd0d5.js} +1 -1
  42. package/build/esm/{index-57567d62.js → index-2fb45247.js} +1 -1
  43. package/build/esm/index-35a0f664.js +1 -0
  44. package/build/esm/index-38a42f37.js +1 -0
  45. package/build/esm/{index-dc1d887f.js → index-53a28b96.js} +13 -13
  46. package/build/esm/{index-b481678f.js → index-552b590e.js} +2 -2
  47. package/build/esm/index-6d3b539f.js +1 -0
  48. package/build/esm/{index-71ea3a81.js → index-7034eb69.js} +1 -1
  49. package/build/esm/{index-0e8e0874.js → index-71be5920.js} +1 -1
  50. package/build/esm/index-8422ed82.js +1 -0
  51. package/build/esm/index-9d8adf93.js +1 -0
  52. package/build/esm/{index-0721807f.js → index-aa518793.js} +1 -1
  53. package/build/esm/{index-10a20430.js → index-c1857c2d.js} +1 -1
  54. package/build/esm/{index-071ebe3d.js → index-ce5ca9a3.js} +1 -1
  55. package/build/esm/index-d523ae71.js +1 -0
  56. package/build/esm/{index-4eb88489.js → index-f769282b.js} +1 -1
  57. package/build/esm/index.js +1 -1
  58. package/build/esm/{index.styled-4ef98cc4.js → index.styled-53a35ec5.js} +1 -1
  59. package/build/esm/{index.styled-af5a2e07.js → index.styled-5f892397.js} +1 -1
  60. package/build/esm/{index.styled-eb9a30ff.js → index.styled-a65d40a7.js} +1 -1
  61. package/build/esm/{index.styled-01d4bb35.js → index.styled-ae956ac0.js} +5 -5
  62. package/build/esm/{index.styled-9863105c.js → index.styled-d2707317.js} +1 -1
  63. package/build/esm/{index.styled-90760ecb.js → index.styled-d855e194.js} +184 -184
  64. package/build/esm/lead.js +1 -1
  65. package/build/esm/mantine.js +1 -1
  66. package/build/esm/misc.js +1 -1
  67. package/build/esm/navigation.js +1 -1
  68. package/build/esm/onboarding.js +1 -1
  69. package/build/esm/pwg.js +3 -3
  70. package/build/esm/{routing-47989060.js → routing-faaaede9.js} +1 -1
  71. package/build/esm/{screenSizeContext-a975a186.js → screenSizeContext-659caf43.js} +3 -3
  72. package/build/esm/{theme-edbfe442.js → theme-6b7bd325.js} +1 -1
  73. package/build/esm/together.js +1 -1
  74. package/build/esm/{translationsProvider-a953e713.js → translationsProvider-0e79a12a.js} +1 -1
  75. package/build/esm/{types-171d421e.js → types-40049b3f.js} +1 -1
  76. package/build/esm/{types-bed0511a.js → types-8ce784ad.js} +1 -1
  77. package/build/esm/types.js +1 -1
  78. package/build/esm/useHealthToolCache-718cbbb7.js +1 -0
  79. package/build/esm/{useRafState-9888f0bc.js → useRafState-fc0b0d02.js} +1 -1
  80. package/build/esm/{useTranslations-d02f4329.js → useTranslations-968546a6.js} +1 -1
  81. package/build/footer.js +1 -1
  82. package/build/gAssets.js +1 -1
  83. package/build/getDynamicHealthTool-9a866ff7.js +1 -0
  84. package/build/{getSocialList-c17bc23e.js → getSocialList-752ecc88.js} +1 -1
  85. package/build/hooks.js +1 -1
  86. package/build/i18n.js +1 -1
  87. package/build/{index-dc0394d4.js → index-1e9a8775.js} +1 -1
  88. package/build/index-312ef08f.js +1 -0
  89. package/build/index-3ec72615.js +1 -0
  90. package/build/{index-358cfec0.js → index-418e90d8.js} +1 -1
  91. package/build/{index-3ac1dcf4.js → index-41e68508.js} +1 -1
  92. package/build/index-69c0db0a.js +1 -0
  93. package/build/{index-4529c3f3.js → index-8069d1d7.js} +1 -1
  94. package/build/{index-528c39f1.js → index-848fa64c.js} +1 -1
  95. package/build/{index-7aa5051a.js → index-a53f079b.js} +1 -1
  96. package/build/{index-bbd85da8.js → index-b26ecfdc.js} +1 -1
  97. package/build/{index-b6ccddfd.js → index-be61e85d.js} +1 -1
  98. package/build/index-be8d001b.js +1 -0
  99. package/build/{index-be853098.js → index-c7e47242.js} +7 -7
  100. package/build/{index-496a194b.js → index-c9367006.js} +1 -1
  101. package/build/{index-a4be8330.js → index-cf484b7d.js} +1 -1
  102. package/build/index-d60d5ed0.js +1 -0
  103. package/build/{index-991fda9a.js → index-d9be5c49.js} +1 -1
  104. package/build/index-d9fe084e.js +1 -0
  105. package/build/{index-b2f02724.js → index-e27bb585.js} +1 -1
  106. package/build/{index-36d3cc0c.js → index-ec6bfada.js} +1 -1
  107. package/build/index-eda462dc.js +1 -0
  108. package/build/index.js +1 -1
  109. package/build/{index.styled-aac51fc5.js → index.styled-2ea14cde.js} +1 -1
  110. package/build/{index.styled-1c5bbdc7.js → index.styled-8e2ae4d7.js} +4 -4
  111. package/build/{index.styled-1e6c48ef.js → index.styled-90b84b33.js} +1 -1
  112. package/build/{index.styled-b85299db.js → index.styled-c6f43836.js} +216 -216
  113. package/build/{index.styled-7c395875.js → index.styled-d3bae8db.js} +1 -1
  114. package/build/{index.styled-d210aa7e.js → index.styled-db0039e0.js} +1 -1
  115. package/build/lead.js +1 -1
  116. package/build/mantine.js +1 -1
  117. package/build/misc/theme.d.ts +10 -0
  118. package/build/misc.js +1 -1
  119. package/build/navigation.js +1 -1
  120. package/build/onboarding.js +1 -1
  121. package/build/pwg.js +1 -1
  122. package/build/{routing-056f5395.js → routing-453749e7.js} +1 -1
  123. package/build/screenSizeContext-c963764d.js +81 -0
  124. package/build/{theme-ec53fee6.js → theme-3a67cf6b.js} +1 -1
  125. package/build/together.js +1 -1
  126. package/build/{translationsProvider-38955566.js → translationsProvider-01e5a5f4.js} +1 -1
  127. package/build/{types-b63dbb62.js → types-533e972c.js} +1 -1
  128. package/build/{types-d2ab2cfc.js → types-f4ab665b.js} +1 -1
  129. package/build/types.js +1 -1
  130. package/build/{useHealthToolCache-66ecb18f.js → useHealthToolCache-87fe1048.js} +1 -1
  131. package/build/{useRafState-41a3e86c.js → useRafState-1c556a96.js} +1 -1
  132. package/build/useTranslations-9e830974.js +1 -0
  133. package/package.json +1 -4
  134. package/build/components/mantine/theme.d.ts +0 -3
  135. package/build/ecom.js +0 -1
  136. package/build/esm/ecom.js +0 -1
  137. package/build/esm/getDynamicHealthTool-234ab73c.js +0 -1
  138. package/build/esm/index-1f94f502.js +0 -1
  139. package/build/esm/index-36ea70d0.js +0 -1
  140. package/build/esm/index-48896368.js +0 -1
  141. package/build/esm/index-8d2eb329.js +0 -1
  142. package/build/esm/index-b9ff78fb.js +0 -1
  143. package/build/esm/index-edadf59a.js +0 -1
  144. package/build/esm/index-ff3b8ac5.js +0 -1
  145. package/build/esm/types-e00178e8.js +0 -1
  146. package/build/esm/useHealthToolCache-3622b6b0.js +0 -1
  147. package/build/getDynamicHealthTool-daff0a01.js +0 -1
  148. package/build/index-189c3b54.js +0 -1
  149. package/build/index-1cc8c792.js +0 -1
  150. package/build/index-54afc758.js +0 -1
  151. package/build/index-6b30181a.js +0 -1
  152. package/build/index-db6f9987.js +0 -1
  153. package/build/index-dbfd4cd4.js +0 -1
  154. package/build/index-ea027ea8.js +0 -1
  155. package/build/screenSizeContext-4bea30db.js +0 -81
  156. package/build/types-e19c891c.js +0 -1
  157. package/build/useTranslations-aebd2af8.js +0 -1
  158. /package/build/{BMI_BOYS.percentile.monthly-f3ef4155.js → BMI_BOYS.percentile.monthly-108ba112.js} +0 -0
  159. /package/build/{BMI_BOYS.percentile.weekly-36b904e8.js → BMI_BOYS.percentile.weekly-243eeaa3.js} +0 -0
  160. /package/build/{BMI_BOYS.percentile.yearly-3557d958.js → BMI_BOYS.percentile.yearly-f64b773b.js} +0 -0
  161. /package/build/{BMI_BOYS.zscore.monthly-76ced0f6.js → BMI_BOYS.zscore.monthly-0bf403c5.js} +0 -0
  162. /package/build/{BMI_BOYS.zscore.weekly-8a208082.js → BMI_BOYS.zscore.weekly-ea73c185.js} +0 -0
  163. /package/build/{BMI_BOYS.zscore.yearly-5f7c4e9a.js → BMI_BOYS.zscore.yearly-25955e55.js} +0 -0
  164. /package/build/{BMI_GIRLS.percentile.monthly-2af39ca5.js → BMI_GIRLS.percentile.monthly-33ae8c5b.js} +0 -0
  165. /package/build/{BMI_GIRLS.percentile.weekly-e0bea212.js → BMI_GIRLS.percentile.weekly-c4681b89.js} +0 -0
  166. /package/build/{BMI_GIRLS.percentile.yearly-d4a4901d.js → BMI_GIRLS.percentile.yearly-d1b6c753.js} +0 -0
  167. /package/build/{BMI_GIRLS.zscore.monthly-888b604c.js → BMI_GIRLS.zscore.monthly-6232f0fd.js} +0 -0
  168. /package/build/{BMI_GIRLS.zscore.weekly-594bb72d.js → BMI_GIRLS.zscore.weekly-b6849164.js} +0 -0
  169. /package/build/{BMI_GIRLS.zscore.yearly-585b40c7.js → BMI_GIRLS.zscore.yearly-283b4bca.js} +0 -0
  170. /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-d295a0d7.js → HEAD CIRCUM_BOYS.percentile.monthly-f74a5c80.js} +0 -0
  171. /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-bab0019a.js → HEAD CIRCUM_BOYS.percentile.weekly-d39286f2.js} +0 -0
  172. /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-596593ec.js → HEAD CIRCUM_BOYS.percentile.yearly-a1e517cc.js} +0 -0
  173. /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-f8414835.js → HEAD CIRCUM_BOYS.zscore.monthly-17972e50.js} +0 -0
  174. /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-a3aee448.js → HEAD CIRCUM_BOYS.zscore.weekly-06e356eb.js} +0 -0
  175. /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-c7fdd643.js → HEAD CIRCUM_BOYS.zscore.yearly-96ad14bd.js} +0 -0
  176. /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-ceb5f90b.js → HEAD CIRCUM_GIRLS.percentile.monthly-759b03c3.js} +0 -0
  177. /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-5c5a03b4.js → HEAD CIRCUM_GIRLS.percentile.weekly-e041de81.js} +0 -0
  178. /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-930c8ab5.js → HEAD CIRCUM_GIRLS.percentile.yearly-e7635ae7.js} +0 -0
  179. /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-bee2f041.js → HEAD CIRCUM_GIRLS.zscore.monthly-120719a2.js} +0 -0
  180. /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-007c7d1b.js → HEAD CIRCUM_GIRLS.zscore.weekly-ff86bd24.js} +0 -0
  181. /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-c5ff4428.js → HEAD CIRCUM_GIRLS.zscore.yearly-df623fa5.js} +0 -0
  182. /package/build/{HEIGHT_BOYS.percentile.monthly-f717e4b0.js → HEIGHT_BOYS.percentile.monthly-98e3bac7.js} +0 -0
  183. /package/build/{HEIGHT_BOYS.percentile.weekly-e9d5853c.js → HEIGHT_BOYS.percentile.weekly-77c14d61.js} +0 -0
  184. /package/build/{HEIGHT_BOYS.percentile.yearly-377abad9.js → HEIGHT_BOYS.percentile.yearly-65a9070b.js} +0 -0
  185. /package/build/{HEIGHT_BOYS.zscore.monthly-20668647.js → HEIGHT_BOYS.zscore.monthly-e2363e93.js} +0 -0
  186. /package/build/{HEIGHT_BOYS.zscore.weekly-22471a76.js → HEIGHT_BOYS.zscore.weekly-8e7a5d2c.js} +0 -0
  187. /package/build/{HEIGHT_BOYS.zscore.yearly-41f37315.js → HEIGHT_BOYS.zscore.yearly-d48145f8.js} +0 -0
  188. /package/build/{HEIGHT_GIRLS.percentile.monthly-bcbde45d.js → HEIGHT_GIRLS.percentile.monthly-7026506e.js} +0 -0
  189. /package/build/{HEIGHT_GIRLS.percentile.weekly-81c0340f.js → HEIGHT_GIRLS.percentile.weekly-6d22f0bf.js} +0 -0
  190. /package/build/{HEIGHT_GIRLS.percentile.yearly-659a549e.js → HEIGHT_GIRLS.percentile.yearly-a7abdf4c.js} +0 -0
  191. /package/build/{HEIGHT_GIRLS.zscore.monthly-fde95497.js → HEIGHT_GIRLS.zscore.monthly-90cad4ac.js} +0 -0
  192. /package/build/{HEIGHT_GIRLS.zscore.weekly-1f417644.js → HEIGHT_GIRLS.zscore.weekly-a366f1ee.js} +0 -0
  193. /package/build/{HEIGHT_GIRLS.zscore.yearly-a264404e.js → HEIGHT_GIRLS.zscore.yearly-49561db1.js} +0 -0
  194. /package/build/{Locale-9835f39b.js → Locale-d3725c77.js} +0 -0
  195. /package/build/{Visible-c77d6561.js → Visible-40d36f80.js} +0 -0
  196. /package/build/{WEIGHT_BOYS.percentile.monthly-45b249fa.js → WEIGHT_BOYS.percentile.monthly-081e5c0a.js} +0 -0
  197. /package/build/{WEIGHT_BOYS.percentile.weekly-3f101843.js → WEIGHT_BOYS.percentile.weekly-8ea3e35a.js} +0 -0
  198. /package/build/{WEIGHT_BOYS.percentile.yearly-50f8fac0.js → WEIGHT_BOYS.percentile.yearly-9916eb15.js} +0 -0
  199. /package/build/{WEIGHT_BOYS.zscore.monthly-3b7b47e6.js → WEIGHT_BOYS.zscore.monthly-02f30e10.js} +0 -0
  200. /package/build/{WEIGHT_BOYS.zscore.weekly-447c8f42.js → WEIGHT_BOYS.zscore.weekly-f9b8f43b.js} +0 -0
  201. /package/build/{WEIGHT_BOYS.zscore.yearly-5b7798e2.js → WEIGHT_BOYS.zscore.yearly-0588a53b.js} +0 -0
  202. /package/build/{WEIGHT_GIRLS.percentile.monthly-74d4060d.js → WEIGHT_GIRLS.percentile.monthly-e9bdc458.js} +0 -0
  203. /package/build/{WEIGHT_GIRLS.percentile.weekly-5cd5e109.js → WEIGHT_GIRLS.percentile.weekly-61f3fa06.js} +0 -0
  204. /package/build/{WEIGHT_GIRLS.percentile.yearly-7db374f1.js → WEIGHT_GIRLS.percentile.yearly-49eaa5b8.js} +0 -0
  205. /package/build/{WEIGHT_GIRLS.zscore.monthly-4ca09ce0.js → WEIGHT_GIRLS.zscore.monthly-7bb2c82f.js} +0 -0
  206. /package/build/{WEIGHT_GIRLS.zscore.weekly-ccdd1d8b.js → WEIGHT_GIRLS.zscore.weekly-e11abc21.js} +0 -0
  207. /package/build/{WEIGHT_GIRLS.zscore.yearly-0681ede6.js → WEIGHT_GIRLS.zscore.yearly-51b30e83.js} +0 -0
  208. /package/build/{constants-f11928bd.js → constants-92a53509.js} +0 -0
  209. /package/build/{cookieHelper-369dda3a.js → cookieHelper-bf0935e9.js} +0 -0
  210. /package/build/{dataTransform-a913fd27.js → dataTransform-7834fcba.js} +0 -0
  211. /package/build/esm/{BMI_BOYS.percentile.monthly-64a7c9cf.js → BMI_BOYS.percentile.monthly-6577f576.js} +0 -0
  212. /package/build/esm/{BMI_BOYS.percentile.weekly-ecf835ee.js → BMI_BOYS.percentile.weekly-98b8b591.js} +0 -0
  213. /package/build/esm/{BMI_BOYS.percentile.yearly-098c6a90.js → BMI_BOYS.percentile.yearly-005979f2.js} +0 -0
  214. /package/build/esm/{BMI_BOYS.zscore.monthly-e5815987.js → BMI_BOYS.zscore.monthly-125e14ce.js} +0 -0
  215. /package/build/esm/{BMI_BOYS.zscore.weekly-48c34760.js → BMI_BOYS.zscore.weekly-7a6741de.js} +0 -0
  216. /package/build/esm/{BMI_BOYS.zscore.yearly-ab85a1a1.js → BMI_BOYS.zscore.yearly-b8721caf.js} +0 -0
  217. /package/build/esm/{BMI_GIRLS.percentile.monthly-b3d55629.js → BMI_GIRLS.percentile.monthly-59dd3c04.js} +0 -0
  218. /package/build/esm/{BMI_GIRLS.percentile.weekly-0792a884.js → BMI_GIRLS.percentile.weekly-5cd855bd.js} +0 -0
  219. /package/build/esm/{BMI_GIRLS.percentile.yearly-aed1ec47.js → BMI_GIRLS.percentile.yearly-c7eaee21.js} +0 -0
  220. /package/build/esm/{BMI_GIRLS.zscore.monthly-9dc7b26f.js → BMI_GIRLS.zscore.monthly-229f268b.js} +0 -0
  221. /package/build/esm/{BMI_GIRLS.zscore.weekly-70cabb1e.js → BMI_GIRLS.zscore.weekly-461e1354.js} +0 -0
  222. /package/build/esm/{BMI_GIRLS.zscore.yearly-ec4e4766.js → BMI_GIRLS.zscore.yearly-5dff710d.js} +0 -0
  223. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-3fc0fd84.js → HEAD CIRCUM_BOYS.percentile.monthly-eea66ac6.js} +0 -0
  224. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-69a19bd1.js → HEAD CIRCUM_BOYS.percentile.weekly-c48a96de.js} +0 -0
  225. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-22b01d27.js → HEAD CIRCUM_BOYS.percentile.yearly-cc038d19.js} +0 -0
  226. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-05109e86.js → HEAD CIRCUM_BOYS.zscore.monthly-212fed70.js} +0 -0
  227. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-52ed5469.js → HEAD CIRCUM_BOYS.zscore.weekly-e8fb5cad.js} +0 -0
  228. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-56e81756.js → HEAD CIRCUM_BOYS.zscore.yearly-ca99ef9f.js} +0 -0
  229. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-1c5ab536.js → HEAD CIRCUM_GIRLS.percentile.monthly-6580b5f3.js} +0 -0
  230. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-4b44e0e1.js → HEAD CIRCUM_GIRLS.percentile.weekly-00902b1a.js} +0 -0
  231. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-f529f42b.js → HEAD CIRCUM_GIRLS.percentile.yearly-97e5ab3a.js} +0 -0
  232. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-61611f27.js → HEAD CIRCUM_GIRLS.zscore.monthly-4004628c.js} +0 -0
  233. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-09a83456.js → HEAD CIRCUM_GIRLS.zscore.weekly-eed13899.js} +0 -0
  234. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-05e19c3a.js → HEAD CIRCUM_GIRLS.zscore.yearly-e839f07e.js} +0 -0
  235. /package/build/esm/{HEIGHT_BOYS.percentile.monthly-583c7776.js → HEIGHT_BOYS.percentile.monthly-44e7f5cf.js} +0 -0
  236. /package/build/esm/{HEIGHT_BOYS.percentile.weekly-9766dac6.js → HEIGHT_BOYS.percentile.weekly-ab00658b.js} +0 -0
  237. /package/build/esm/{HEIGHT_BOYS.percentile.yearly-257af9e5.js → HEIGHT_BOYS.percentile.yearly-5f7ce964.js} +0 -0
  238. /package/build/esm/{HEIGHT_BOYS.zscore.monthly-5494c84d.js → HEIGHT_BOYS.zscore.monthly-bc9b441f.js} +0 -0
  239. /package/build/esm/{HEIGHT_BOYS.zscore.weekly-f8a81b14.js → HEIGHT_BOYS.zscore.weekly-a1bfd47f.js} +0 -0
  240. /package/build/esm/{HEIGHT_BOYS.zscore.yearly-b7de69e4.js → HEIGHT_BOYS.zscore.yearly-eb71d829.js} +0 -0
  241. /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-b546a3e5.js → HEIGHT_GIRLS.percentile.monthly-eaed32d3.js} +0 -0
  242. /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-38b018e0.js → HEIGHT_GIRLS.percentile.weekly-26281cb0.js} +0 -0
  243. /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-104d1d42.js → HEIGHT_GIRLS.percentile.yearly-126b9d5e.js} +0 -0
  244. /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-642e7d79.js → HEIGHT_GIRLS.zscore.monthly-8333d296.js} +0 -0
  245. /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-cff9a9b9.js → HEIGHT_GIRLS.zscore.weekly-86b79cd7.js} +0 -0
  246. /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-5dc3d52c.js → HEIGHT_GIRLS.zscore.yearly-3e7e0131.js} +0 -0
  247. /package/build/esm/{Locale-73a0c17a.js → Locale-6469ef78.js} +0 -0
  248. /package/build/esm/{Visible-93954133.js → Visible-0362f1ea.js} +0 -0
  249. /package/build/esm/{WEIGHT_BOYS.percentile.monthly-f4ef99ae.js → WEIGHT_BOYS.percentile.monthly-5623a24c.js} +0 -0
  250. /package/build/esm/{WEIGHT_BOYS.percentile.weekly-e8cc661b.js → WEIGHT_BOYS.percentile.weekly-f998ae6d.js} +0 -0
  251. /package/build/esm/{WEIGHT_BOYS.percentile.yearly-98f3ba5b.js → WEIGHT_BOYS.percentile.yearly-285df090.js} +0 -0
  252. /package/build/esm/{WEIGHT_BOYS.zscore.monthly-618e8c47.js → WEIGHT_BOYS.zscore.monthly-a3bd7c1a.js} +0 -0
  253. /package/build/esm/{WEIGHT_BOYS.zscore.weekly-8094a495.js → WEIGHT_BOYS.zscore.weekly-b1edb3bd.js} +0 -0
  254. /package/build/esm/{WEIGHT_BOYS.zscore.yearly-6d7211da.js → WEIGHT_BOYS.zscore.yearly-ebad8f5c.js} +0 -0
  255. /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-8662b9f0.js → WEIGHT_GIRLS.percentile.monthly-7c9c14f4.js} +0 -0
  256. /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-b2daafb4.js → WEIGHT_GIRLS.percentile.weekly-c0badf0b.js} +0 -0
  257. /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-f97f47e4.js → WEIGHT_GIRLS.percentile.yearly-65c50ae2.js} +0 -0
  258. /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-33d7a9d6.js → WEIGHT_GIRLS.zscore.monthly-314436bc.js} +0 -0
  259. /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-ce3c6a2e.js → WEIGHT_GIRLS.zscore.weekly-74bbd106.js} +0 -0
  260. /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-a6e4f397.js → WEIGHT_GIRLS.zscore.yearly-5a31e935.js} +0 -0
  261. /package/build/esm/{constants-3eb7ea33.js → constants-109e061e.js} +0 -0
  262. /package/build/esm/{cookieHelper-d81b5ad1.js → cookieHelper-8b66a28e.js} +0 -0
  263. /package/build/esm/{dataTransform-e5a9d9cd.js → dataTransform-ea2145c9.js} +0 -0
  264. /package/build/esm/{index-84071993.js → index-a446e9f8.js} +0 -0
  265. /package/build/esm/{isProduction-937b1921.js → isProduction-9eb49bc1.js} +0 -0
  266. /package/build/esm/{localizeNumberFormat-6b4fb0dc.js → localizeNumberFormat-e12f7930.js} +0 -0
  267. /package/build/esm/{normalizeLink-8bb143cb.js → normalizeLink-23fd2ac0.js} +0 -0
  268. /package/build/esm/{translationsContext-e93e467d.js → translationsContext-725e616e.js} +0 -0
  269. /package/build/esm/{tslib.es6-e6984c5f.js → tslib.es6-e27bef61.js} +0 -0
  270. /package/build/esm/{useIsInit-a5a92c4e.js → useIsInit-88f62e7c.js} +0 -0
  271. /package/build/esm/{useOutsideClick-d5c63498.js → useOutsideClick-5cfd21a9.js} +0 -0
  272. /package/build/esm/{useScrollbarSize-96962d49.js → useScrollbarSize-9e2afcce.js} +0 -0
  273. /package/build/esm/{useUniqueId-95a8efd1.js → useUniqueId-4a7dfffd.js} +0 -0
  274. /package/build/esm/{utils-c130d8f6.js → utils-e5236a8f.js} +0 -0
  275. /package/build/{index-4cb6849b.js → index-30192e3f.js} +0 -0
  276. /package/build/{isProduction-bc6aa814.js → isProduction-2b0d3781.js} +0 -0
  277. /package/build/{localizeNumberFormat-9c44f2f8.js → localizeNumberFormat-51a286c1.js} +0 -0
  278. /package/build/{normalizeLink-4a2970d0.js → normalizeLink-9cfdf7ee.js} +0 -0
  279. /package/build/{translationsContext-9aee71b7.js → translationsContext-7616530f.js} +0 -0
  280. /package/build/{tslib.es6-0f2c501d.js → tslib.es6-22ab4f5a.js} +0 -0
  281. /package/build/{useIsInit-86d36bd0.js → useIsInit-0ca30f1a.js} +0 -0
  282. /package/build/{useOutsideClick-0c02f765.js → useOutsideClick-afde045e.js} +0 -0
  283. /package/build/{useScrollbarSize-981444f6.js → useScrollbarSize-1f319a61.js} +0 -0
  284. /package/build/{useUniqueId-bcc8050d.js → useUniqueId-e41870ee.js} +0 -0
  285. /package/build/{utils-bb86a03d.js → utils-54e65c44.js} +0 -0
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./index-b6ccddfd.js"),t=require("react"),r=require("./Locale-9835f39b.js"),a=require("./theme-ec53fee6.js"),l=require("./index-4529c3f3.js"),o=require("styled-components"),n=require("./index-7aa5051a.js"),i=require("./index-db6f9987.js"),s=require("./screenSizeContext-4bea30db.js"),d=require("dayjs"),c=require("./useTranslations-aebd2af8.js"),u=require("./index.styled-d210aa7e.js"),C=require("./utils-bb86a03d.js");require("./gAssets.js"),require("./index.styled-1c5bbdc7.js"),require("./index-b2f02724.js"),require("@mantine/core");var h=require("./index-4cb6849b.js"),m=require("./useOutsideClick-0c02f765.js");require("lodash/debounce"),require("./isProduction-bc6aa814.js"),require("./index-3ac1dcf4.js");var f=require("./localizeNumberFormat-9c44f2f8.js"),y=require("./tslib.es6-0f2c501d.js"),p=require("./index-ea027ea8.js"),b=require("recharts"),w=require("lodash/chunk");function g(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}require("./useScrollbarSize-981444f6.js"),require("react-dom"),require("./useUniqueId-bcc8050d.js"),require("./index.styled-7c395875.js"),require("lodash/throttle"),require("./translationsContext-9aee71b7.js"),require("string-format"),require("./index-358cfec0.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-be61e85d.js"),t=require("react"),r=require("./Locale-d3725c77.js"),a=require("./theme-3a67cf6b.js"),l=require("./index-8069d1d7.js"),o=require("styled-components"),n=require("./index-a53f079b.js"),i=require("./index-d60d5ed0.js"),s=require("./screenSizeContext-c963764d.js"),d=require("dayjs"),c=require("./useTranslations-9e830974.js"),u=require("./index.styled-db0039e0.js"),C=require("./utils-54e65c44.js");require("./gAssets.js"),require("./index.styled-8e2ae4d7.js"),require("./index-e27bb585.js"),require("@mantine/core");var h=require("./index-30192e3f.js"),m=require("./useOutsideClick-afde045e.js");require("lodash/debounce"),require("./isProduction-2b0d3781.js"),require("./index-41e68508.js");var f=require("./localizeNumberFormat-51a286c1.js"),y=require("./tslib.es6-22ab4f5a.js"),p=require("./index-be8d001b.js"),b=require("recharts"),w=require("lodash/chunk");function g(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}require("./useScrollbarSize-1f319a61.js"),require("react-dom"),require("./useUniqueId-e41870ee.js"),require("./index.styled-d3bae8db.js"),require("lodash/throttle"),require("./translationsContext-7616530f.js"),require("string-format"),require("./index-418e90d8.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;
@@ -271,7 +271,7 @@
271
271
  gap: 16px;
272
272
  margin-block: 16px;
273
273
  }
274
- `,W={[r.Gender.Boy]:{[r.BabyGrowthChartType.Weight]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_BOYS.percentile.weekly-3f101843.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_BOYS.percentile.monthly-45b249fa.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_BOYS.percentile.yearly-50f8fac0.js")}))},[r.BabyGrowthChartType.Height]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_BOYS.percentile.weekly-e9d5853c.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_BOYS.percentile.monthly-f717e4b0.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_BOYS.percentile.yearly-377abad9.js")}))},[r.BabyGrowthChartType.Head]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_BOYS.percentile.weekly-bab0019a.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_BOYS.percentile.monthly-d295a0d7.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_BOYS.percentile.yearly-596593ec.js")}))},[r.BabyGrowthChartType.BMI]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./BMI_BOYS.percentile.weekly-36b904e8.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./BMI_BOYS.percentile.monthly-f3ef4155.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./BMI_BOYS.percentile.yearly-3557d958.js")}))}},[r.Gender.Girl]:{[r.BabyGrowthChartType.Weight]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_GIRLS.percentile.weekly-5cd5e109.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_GIRLS.percentile.monthly-74d4060d.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_GIRLS.percentile.yearly-7db374f1.js")}))},[r.BabyGrowthChartType.Height]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_GIRLS.percentile.weekly-81c0340f.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_GIRLS.percentile.monthly-bcbde45d.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_GIRLS.percentile.yearly-659a549e.js")}))},[r.BabyGrowthChartType.Head]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_GIRLS.percentile.weekly-5c5a03b4.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_GIRLS.percentile.monthly-ceb5f90b.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_GIRLS.percentile.yearly-930c8ab5.js")}))},[r.BabyGrowthChartType.BMI]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./BMI_GIRLS.percentile.weekly-e0bea212.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./BMI_GIRLS.percentile.monthly-2af39ca5.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./BMI_GIRLS.percentile.yearly-d4a4901d.js")}))}}},Y={[r.Gender.Boy]:{[r.BabyGrowthChartType.Weight]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_BOYS.zscore.weekly-447c8f42.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_BOYS.zscore.monthly-3b7b47e6.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_BOYS.zscore.yearly-5b7798e2.js")}))},[r.BabyGrowthChartType.Height]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_BOYS.zscore.weekly-22471a76.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_BOYS.zscore.monthly-20668647.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_BOYS.zscore.yearly-41f37315.js")}))},[r.BabyGrowthChartType.Head]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_BOYS.zscore.weekly-a3aee448.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_BOYS.zscore.monthly-f8414835.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_BOYS.zscore.yearly-c7fdd643.js")}))},[r.BabyGrowthChartType.BMI]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./BMI_BOYS.zscore.weekly-8a208082.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./BMI_BOYS.zscore.monthly-76ced0f6.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./BMI_BOYS.zscore.yearly-5f7c4e9a.js")}))}},[r.Gender.Girl]:{[r.BabyGrowthChartType.Weight]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_GIRLS.zscore.weekly-ccdd1d8b.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_GIRLS.zscore.monthly-4ca09ce0.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_GIRLS.zscore.yearly-0681ede6.js")}))},[r.BabyGrowthChartType.Height]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_GIRLS.zscore.weekly-1f417644.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_GIRLS.zscore.monthly-fde95497.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_GIRLS.zscore.yearly-a264404e.js")}))},[r.BabyGrowthChartType.Head]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_GIRLS.zscore.weekly-007c7d1b.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_GIRLS.zscore.monthly-bee2f041.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_GIRLS.zscore.yearly-c5ff4428.js")}))},[r.BabyGrowthChartType.BMI]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./BMI_GIRLS.zscore.weekly-594bb72d.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./BMI_GIRLS.zscore.monthly-888b604c.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./BMI_GIRLS.zscore.yearly-585b40c7.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`
274
+ `,W={[r.Gender.Boy]:{[r.BabyGrowthChartType.Weight]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_BOYS.percentile.weekly-8ea3e35a.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_BOYS.percentile.monthly-081e5c0a.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_BOYS.percentile.yearly-9916eb15.js")}))},[r.BabyGrowthChartType.Height]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_BOYS.percentile.weekly-77c14d61.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_BOYS.percentile.monthly-98e3bac7.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_BOYS.percentile.yearly-65a9070b.js")}))},[r.BabyGrowthChartType.Head]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_BOYS.percentile.weekly-d39286f2.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_BOYS.percentile.monthly-f74a5c80.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_BOYS.percentile.yearly-a1e517cc.js")}))},[r.BabyGrowthChartType.BMI]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./BMI_BOYS.percentile.weekly-243eeaa3.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./BMI_BOYS.percentile.monthly-108ba112.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./BMI_BOYS.percentile.yearly-f64b773b.js")}))}},[r.Gender.Girl]:{[r.BabyGrowthChartType.Weight]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_GIRLS.percentile.weekly-61f3fa06.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_GIRLS.percentile.monthly-e9bdc458.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_GIRLS.percentile.yearly-49eaa5b8.js")}))},[r.BabyGrowthChartType.Height]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_GIRLS.percentile.weekly-6d22f0bf.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_GIRLS.percentile.monthly-7026506e.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_GIRLS.percentile.yearly-a7abdf4c.js")}))},[r.BabyGrowthChartType.Head]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_GIRLS.percentile.weekly-e041de81.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_GIRLS.percentile.monthly-759b03c3.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_GIRLS.percentile.yearly-e7635ae7.js")}))},[r.BabyGrowthChartType.BMI]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./BMI_GIRLS.percentile.weekly-c4681b89.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./BMI_GIRLS.percentile.monthly-33ae8c5b.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./BMI_GIRLS.percentile.yearly-d1b6c753.js")}))}}},Y={[r.Gender.Boy]:{[r.BabyGrowthChartType.Weight]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_BOYS.zscore.weekly-f9b8f43b.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_BOYS.zscore.monthly-02f30e10.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_BOYS.zscore.yearly-0588a53b.js")}))},[r.BabyGrowthChartType.Height]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_BOYS.zscore.weekly-8e7a5d2c.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_BOYS.zscore.monthly-e2363e93.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_BOYS.zscore.yearly-d48145f8.js")}))},[r.BabyGrowthChartType.Head]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_BOYS.zscore.weekly-06e356eb.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_BOYS.zscore.monthly-17972e50.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_BOYS.zscore.yearly-96ad14bd.js")}))},[r.BabyGrowthChartType.BMI]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./BMI_BOYS.zscore.weekly-ea73c185.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./BMI_BOYS.zscore.monthly-0bf403c5.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./BMI_BOYS.zscore.yearly-25955e55.js")}))}},[r.Gender.Girl]:{[r.BabyGrowthChartType.Weight]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_GIRLS.zscore.weekly-e11abc21.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_GIRLS.zscore.monthly-7bb2c82f.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./WEIGHT_GIRLS.zscore.yearly-51b30e83.js")}))},[r.BabyGrowthChartType.Height]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_GIRLS.zscore.weekly-a366f1ee.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_GIRLS.zscore.monthly-90cad4ac.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./HEIGHT_GIRLS.zscore.yearly-49561db1.js")}))},[r.BabyGrowthChartType.Head]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_GIRLS.zscore.weekly-ff86bd24.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_GIRLS.zscore.monthly-120719a2.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./HEAD CIRCUM_GIRLS.zscore.yearly-df623fa5.js")}))},[r.BabyGrowthChartType.BMI]:{[r.BabyGrowthChartDuration.Weekly]:()=>Promise.resolve().then((function(){return require("./BMI_GIRLS.zscore.weekly-b6849164.js")})),[r.BabyGrowthChartDuration.Monthly]:()=>Promise.resolve().then((function(){return require("./BMI_GIRLS.zscore.monthly-6232f0fd.js")})),[r.BabyGrowthChartDuration.Yearly]:()=>Promise.resolve().then((function(){return require("./BMI_GIRLS.zscore.yearly-283b4bca.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
275
  position: relative;
276
276
  .custom-chart-label {
277
277
  display: flex;
package/build/cache.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./core-d6d7b2e4.js");require("./tslib.es6-0f2c501d.js"),require("./isProduction-bc6aa814.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-ca19dfe7.js");require("./tslib.es6-22ab4f5a.js"),require("./isProduction-2b0d3781.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-d2ab2cfc.js"),r=require("./constants-f11928bd.js");require("./tslib.es6-0f2c501d.js"),require("react"),require("./index-3ac1dcf4.js"),require("./Locale-9835f39b.js"),require("./isProduction-bc6aa814.js"),require("./cookieHelper-369dda3a.js"),require("./useTranslations-aebd2af8.js"),require("./translationsContext-9aee71b7.js"),require("string-format"),require("lodash/debounce"),require("./index-358cfec0.js"),require("./index.styled-1c5bbdc7.js"),require("./utils-bb86a03d.js"),require("styled-components"),require("./index-4529c3f3.js"),require("./theme-ec53fee6.js"),require("react-loading-skeleton"),require("lodash/shuffle"),require("./useOutsideClick-0c02f765.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-f4ab665b.js"),r=require("./constants-92a53509.js");require("./tslib.es6-22ab4f5a.js"),require("react"),require("./index-41e68508.js"),require("./Locale-d3725c77.js"),require("./isProduction-2b0d3781.js"),require("./cookieHelper-bf0935e9.js"),require("./useTranslations-9e830974.js"),require("./translationsContext-7616530f.js"),require("string-format"),require("lodash/debounce"),require("./index-418e90d8.js"),require("./index.styled-8e2ae4d7.js"),require("./utils-54e65c44.js"),require("styled-components"),require("./index-8069d1d7.js"),require("./theme-3a67cf6b.js"),require("react-loading-skeleton"),require("lodash/shuffle"),require("./useOutsideClick-afde045e.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>;
@@ -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,65 @@
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: (_: any, params: InputStylesParams) => {
32
+ input: {
33
+ '&:focus': {
34
+ boxShadow: string;
35
+ };
36
+ '&:hover': {
37
+ border: string;
38
+ };
39
+ height: number;
40
+ fontSize: number;
41
+ lineHeight: number;
42
+ minHeight?: undefined;
43
+ border: string;
44
+ transition: string;
45
+ } | {
46
+ '&:focus': {
47
+ boxShadow: string;
48
+ };
49
+ '&:hover': {
50
+ border: string;
51
+ };
52
+ height: number;
53
+ fontSize: number;
54
+ lineHeight: number;
55
+ minHeight: string;
56
+ border: string;
57
+ transition: string;
58
+ };
59
+ invalid: {
60
+ border: string;
61
+ color: string;
62
+ };
63
+ };
64
+ };
65
+ };
@@ -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,4 +1,4 @@
1
- import React from 'react';
1
+ /// <reference types="react" />
2
2
  import { MenuItemType } from 'components/organisms/navigationV2/types';
3
3
  export type TypeProps = 'popup' | 'popup-sub-level' | 'home';
4
4
  export interface Props {
@@ -6,8 +6,6 @@ export interface Props {
6
6
  type: TypeProps;
7
7
  languageMenu?: JSX.Element;
8
8
  menuItems: MenuItemType[];
9
- sitewideBannerClosed?: boolean;
10
- setSitewideBannerClosed?: React.Dispatch<React.SetStateAction<boolean>>;
11
9
  }
12
- declare const NavigationBar: ({ onTopBarAppears, type, languageMenu, menuItems, setSitewideBannerClosed, sitewideBannerClosed, }: Props) => JSX.Element;
10
+ declare const NavigationBar: ({ onTopBarAppears, type, languageMenu, menuItems, }: Props) => JSX.Element;
13
11
  export { NavigationBar };
@@ -1,7 +1,6 @@
1
1
  /// <reference types="react" />
2
- export declare const useHeaderHeight: ({ hasSponsoredBanners, isSiteWide, isSponsored, isShowingSiteWideBanner, isMobile, }: {
2
+ export declare const useHeaderHeight: ({ hasSponsoredBanners, isSponsored, isShowingSiteWideBanner, isMobile, }: {
3
3
  hasSponsoredBanners?: boolean;
4
- isSiteWide?: boolean;
5
4
  isSponsored?: boolean;
6
5
  isShowingSiteWideBanner?: boolean;
7
6
  isMobile?: boolean;
@@ -145,9 +145,6 @@ export type State = {
145
145
  isOpenDueDatePopup?: boolean;
146
146
  dueDateRedirectLink?: string | null;
147
147
  dueDate?: string | null;
148
- sitewideClose: {
149
- [key: string]: boolean;
150
- };
151
148
  };
152
149
  export type UrlSource = 'first_login' | 'welcome_back' | 'comment';
153
150
  export type Action = {
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./index-1cc8c792.js"),r=require("./index-bbd85da8.js"),o=require("./index-7aa5051a.js"),t=require("./index-496a194b.js"),a=require("./index.styled-d210aa7e.js"),i=require("./index-358cfec0.js"),s=require("./index.styled-1c5bbdc7.js"),d=require("./index-991fda9a.js"),n=require("./index.styled-b85299db.js"),u=require("./index-4529c3f3.js"),p=require("./index-b2f02724.js"),x=require("./index-b6ccddfd.js"),c=require("./index-ea027ea8.js"),l=require("./index-4cb6849b.js"),q=require("./dataTransform-ac103d09.js"),b=require("./index-528c39f1.js"),g=require("./footer.js");require("react"),require("./utils-bb86a03d.js"),require("./useUniqueId-bcc8050d.js"),require("./gAssets.js"),require("./index-3ac1dcf4.js"),require("./Locale-9835f39b.js"),require("./isProduction-bc6aa814.js"),require("./theme-ec53fee6.js"),require("./tslib.es6-0f2c501d.js"),require("lodash/throttle"),require("keen-slider/react"),require("./useTranslations-aebd2af8.js"),require("./translationsContext-9aee71b7.js"),require("string-format"),require("date-fns"),require("dayjs"),require("@mantine/core"),require("./index.styled-7c395875.js"),require("styled-components"),require("./types-e19c891c.js"),require("./index.styled-aac51fc5.js"),require("./cookieHelper-369dda3a.js"),require("slugify"),require("./routing-056f5395.js"),require("dayjs/plugin/relativeTime"),require("./index-db6f9987.js"),require("./index-6b30181a.js"),require("@mantine/hooks"),require("./index-dc0394d4.js"),require("react-hook-form"),require("./useHealthToolCache-66ecb18f.js"),require("./getDynamicHealthTool-daff0a01.js"),require("./core-d6d7b2e4.js"),require("./normalizeLink-4a2970d0.js"),require("./screenSizeContext-4bea30db.js"),require("./useOutsideClick-0c02f765.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-c17bc23e.js"),require("@mantine/dates"),require("./constants-f11928bd.js"),require("./useIsInit-86d36bd0.js"),require("lodash/debounce"),require("@hookform/resolvers/yup"),require("react-day-picker/DayPickerInput"),require("./useScrollbarSize-981444f6.js"),require("react-dom"),require("./index.styled-1e6c48ef.js"),require("./index-189c3b54.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=a.Heading,exports.Menu=a.Menu,exports.PureInput=a.PureInput,exports.TextArea=a.TextArea,exports.TextDivider=a.TextDivider,exports.Input=i.Input,exports.Label=s.Label,exports.Logo=d.Logo,exports.DatePicker=n.DatePicker,exports.DoctorInfo=n.DoctorInfo,exports.Dropdown=n.Dropdown,exports.MobileBottomNavigation=n.MobileBottomNavigation,exports.MobileBottomNavigationIcon=n.MobileBottomNavigationIcon,exports.Radio=n.Radio,exports.RadioGroup=n.RadioGroup,exports.SurveyQuestionCard=n.SurveyQuestionCard,exports.ToolsBannerCard=n.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=q.Popup,exports.PillCarousel=b.PillCarousel,exports.Footer=g.Footer;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./index-d9fe084e.js"),r=require("./index-b26ecfdc.js"),o=require("./index-a53f079b.js"),t=require("./index-c9367006.js"),i=require("./index.styled-db0039e0.js"),a=require("./index-418e90d8.js"),s=require("./index.styled-8e2ae4d7.js"),n=require("./index-d9be5c49.js"),d=require("./index.styled-c6f43836.js"),u=require("./index-8069d1d7.js"),p=require("./index-e27bb585.js"),x=require("./index-be61e85d.js"),l=require("./index-be8d001b.js"),c=require("./index-30192e3f.js"),q=require("./dataTransform-b8e97d79.js"),g=require("./index-848fa64c.js"),C=require("./footer.js");require("react"),require("./utils-54e65c44.js"),require("./useUniqueId-e41870ee.js"),require("./gAssets.js"),require("./index-41e68508.js"),require("./Locale-d3725c77.js"),require("./isProduction-2b0d3781.js"),require("./theme-3a67cf6b.js"),require("./tslib.es6-22ab4f5a.js"),require("lodash/throttle"),require("keen-slider/react"),require("./useTranslations-9e830974.js"),require("./translationsContext-7616530f.js"),require("string-format"),require("date-fns"),require("dayjs"),require("@mantine/core"),require("./index.styled-d3bae8db.js"),require("styled-components"),require("./index.styled-2ea14cde.js"),require("./cookieHelper-bf0935e9.js"),require("slugify"),require("./routing-453749e7.js"),require("dayjs/plugin/relativeTime"),require("./index-d60d5ed0.js"),require("./index-eda462dc.js"),require("@mantine/hooks"),require("./index-1e9a8775.js"),require("react-hook-form"),require("./useHealthToolCache-87fe1048.js"),require("./getDynamicHealthTool-9a866ff7.js"),require("./core-ca19dfe7.js"),require("./normalizeLink-9cfdf7ee.js"),require("./screenSizeContext-c963764d.js"),require("./useOutsideClick-afde045e.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-752ecc88.js"),require("@mantine/dates"),require("./constants-92a53509.js"),require("./useIsInit-0ca30f1a.js"),require("lodash/debounce"),require("@hookform/resolvers/yup"),require("react-day-picker/DayPickerInput"),require("./useScrollbarSize-1f319a61.js"),require("react-dom"),require("./index.styled-90b84b33.js"),require("./index-312ef08f.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-9835f39b.js");var e=require("./index-3ac1dcf4.js"),O=require("./isProduction-bc6aa814.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-d3725c77.js");var e=require("./index-41e68508.js"),O=require("./isProduction-2b0d3781.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 +1 @@
1
- "use strict";var t=require("./tslib.es6-0f2c501d.js"),e=require("./isProduction-bc6aa814.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
+ "use strict";var t=require("./tslib.es6-22ab4f5a.js"),e=require("./isProduction-2b0d3781.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-aac51fc5.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}:{},a=e=>{var i,o,t,a;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:r(null===(i=null==e?void 0:e.reviewed)||void 0===i?void 0:i.author),editor:r(null===(o=null==e?void 0:e.reviewed)||void 0===o?void 0:o.editor),expert:r(null===(t=null==e?void 0:e.reviewed)||void 0===t?void 0:t.expert),fact_check:r(null===(a=null==e?void 0:e.reviewed)||void 0===a?void 0:a.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}:{}},r=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,a,r,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===(a=e.user)||void 0===a?void 0:a.id)||0,username:(null===(r=e.user)||void 0===r?void 0:r.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,a,r,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===(a=null===(n=e.user)||void 0===n?void 0:n.role)||void 0===a?void 0:a.toLowerCase():"",avatar:(null===(r=e.user)||void 0===r?void 0:r.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||[]}:{}},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:a,formatUserProfile:r,formatBMIResult:e=>{var i,o,t,l,n,a,r,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!==(a=null==e?void 0:e.disclaimer)&&void 0!==a?a:"",illustrator:null!==(r=null==e?void 0:e.illustrator)&&void 0!==r?r:"",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(a),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?r(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?r(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:a,className:r="",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:`${r||""} popup-content`},!!o&&t.default.createElement("div",{className:"close-button",onClick:n},o),a)),t.default.createElement(i.StyledPopupWrapper,{"data-open":l,onClick:n})),exports.dataTransform=h,exports.formatArticle=a,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-2ea14cde.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}:{},a=e=>{var i,o,t,a;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:r(null===(i=null==e?void 0:e.reviewed)||void 0===i?void 0:i.author),editor:r(null===(o=null==e?void 0:e.reviewed)||void 0===o?void 0:o.editor),expert:r(null===(t=null==e?void 0:e.reviewed)||void 0===t?void 0:t.expert),fact_check:r(null===(a=null==e?void 0:e.reviewed)||void 0===a?void 0:a.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}:{}},r=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,a,r,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===(a=e.user)||void 0===a?void 0:a.id)||0,username:(null===(r=e.user)||void 0===r?void 0:r.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,a,r,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===(a=null===(n=e.user)||void 0===n?void 0:n.role)||void 0===a?void 0:a.toLowerCase():"",avatar:(null===(r=e.user)||void 0===r?void 0:r.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||[]}:{}},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:a,formatUserProfile:r,formatBMIResult:e=>{var i,o,t,l,n,a,r,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!==(a=null==e?void 0:e.disclaimer)&&void 0!==a?a:"",illustrator:null!==(r=null==e?void 0:e.illustrator)&&void 0!==r?r:"",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(a),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?r(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?r(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:a,className:r="",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:`${r||""} popup-content`},!!o&&t.default.createElement("div",{className:"close-button",onClick:n},o),a)),t.default.createElement(i.StyledPopupWrapper,{"data-open":l,onClick:n})),exports.dataTransform=h,exports.formatArticle=a,exports.formatComment=f,exports.formatCommunity=c,exports.formatOvulationInfo=y,exports.formatPost=g,exports.formatTopic=p,exports.formatUserProfileUrl=w;