@hhgtech/hhg-components 1.28.67 → 1.28.69

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 (521) hide show
  1. package/build/BMI_BOYS.percentile.monthly-48c9471d.js +688 -0
  2. package/build/BMI_BOYS.percentile.weekly-4965852e.js +182 -0
  3. package/build/BMI_BOYS.percentile.yearly-0f7cc8f4.js +83 -0
  4. package/build/BMI_BOYS.zscore.monthly-5bb8a433.js +440 -0
  5. package/build/BMI_BOYS.zscore.weekly-3d56f80f.js +118 -0
  6. package/build/BMI_BOYS.zscore.yearly-57081f24.js +55 -0
  7. package/build/BMI_GIRLS.percentile.monthly-95859cd9.js +688 -0
  8. package/build/BMI_GIRLS.percentile.weekly-009cf4df.js +182 -0
  9. package/build/BMI_GIRLS.percentile.yearly-4436947b.js +83 -0
  10. package/build/BMI_GIRLS.zscore.monthly-689b4eee.js +440 -0
  11. package/build/BMI_GIRLS.zscore.weekly-dff693df.js +118 -0
  12. package/build/BMI_GIRLS.zscore.yearly-05ef5f4f.js +55 -0
  13. package/build/ChevronDown-275f1ab5.js +29 -0
  14. package/build/HEAD CIRCUM_BOYS.percentile.monthly-55c580a7.js +688 -0
  15. package/build/HEAD CIRCUM_BOYS.percentile.weekly-e30f4a42.js +182 -0
  16. package/build/HEAD CIRCUM_BOYS.percentile.yearly-2378a5f0.js +83 -0
  17. package/build/HEAD CIRCUM_BOYS.zscore.monthly-102d5559.js +440 -0
  18. package/build/HEAD CIRCUM_BOYS.zscore.weekly-7b0f1ba8.js +118 -0
  19. package/build/HEAD CIRCUM_BOYS.zscore.yearly-e9237d31.js +55 -0
  20. package/build/HEAD CIRCUM_GIRLS.percentile.monthly-1ddda8b3.js +688 -0
  21. package/build/HEAD CIRCUM_GIRLS.percentile.weekly-843147ea.js +182 -0
  22. package/build/HEAD CIRCUM_GIRLS.percentile.yearly-9b51c237.js +83 -0
  23. package/build/HEAD CIRCUM_GIRLS.zscore.monthly-3f1b233c.js +440 -0
  24. package/build/HEAD CIRCUM_GIRLS.zscore.weekly-9e14d3fe.js +118 -0
  25. package/build/HEAD CIRCUM_GIRLS.zscore.yearly-d924f5ae.js +55 -0
  26. package/build/HEIGHT_BOYS.percentile.monthly-15538920.js +688 -0
  27. package/build/HEIGHT_BOYS.percentile.weekly-10bd0277.js +182 -0
  28. package/build/HEIGHT_BOYS.percentile.yearly-8e678d38.js +237 -0
  29. package/build/HEIGHT_BOYS.zscore.monthly-2c110da9.js +440 -0
  30. package/build/HEIGHT_BOYS.zscore.weekly-288b7733.js +118 -0
  31. package/build/HEIGHT_BOYS.zscore.yearly-42f6f9f7.js +153 -0
  32. package/build/HEIGHT_GIRLS.percentile.monthly-04abe7d2.js +688 -0
  33. package/build/HEIGHT_GIRLS.percentile.weekly-9653b16c.js +182 -0
  34. package/build/HEIGHT_GIRLS.percentile.yearly-9efacd67.js +237 -0
  35. package/build/HEIGHT_GIRLS.zscore.monthly-c64a97b2.js +440 -0
  36. package/build/HEIGHT_GIRLS.zscore.weekly-3302dd83.js +118 -0
  37. package/build/HEIGHT_GIRLS.zscore.yearly-ebe5114f.js +153 -0
  38. package/build/Subot-5fc40fb5.js +217 -0
  39. package/build/Visible-5c5d57cf.js +29 -0
  40. package/build/WEIGHT_BOYS.percentile.monthly-5e11e7a0.js +688 -0
  41. package/build/WEIGHT_BOYS.percentile.weekly-68ae2578.js +182 -0
  42. package/build/WEIGHT_BOYS.percentile.yearly-030c06a4.js +138 -0
  43. package/build/WEIGHT_BOYS.zscore.monthly-d22c7b57.js +440 -0
  44. package/build/WEIGHT_BOYS.zscore.weekly-d8d901e6.js +118 -0
  45. package/build/WEIGHT_BOYS.zscore.yearly-c311a084.js +90 -0
  46. package/build/WEIGHT_GIRLS.percentile.monthly-5c44f8eb.js +688 -0
  47. package/build/WEIGHT_GIRLS.percentile.weekly-faa98671.js +182 -0
  48. package/build/WEIGHT_GIRLS.percentile.yearly-560b862e.js +138 -0
  49. package/build/WEIGHT_GIRLS.zscore.monthly-5365ba1a.js +440 -0
  50. package/build/WEIGHT_GIRLS.zscore.weekly-0d9dc521.js +118 -0
  51. package/build/WEIGHT_GIRLS.zscore.yearly-5a3c4e43.js +90 -0
  52. package/build/adapters.js +36 -1
  53. package/build/{esm/animation-0340efb3.js → animation-eb4e500b.js} +32 -10
  54. package/build/babyGrowth.js +913 -47
  55. package/build/cache.js +13 -1
  56. package/build/care.js +38 -1
  57. package/build/components/navigationV2/hooks/useNavConfig.d.ts +1 -3
  58. package/build/components.js +186 -1
  59. package/build/constants-8b8bc19f.js +255 -0
  60. package/build/constants-ae18ce18.js +935 -0
  61. package/build/constants.js +43 -1
  62. package/build/cookieHelper-5c9f4bb8.js +43 -0
  63. package/build/core-2aa8d86c.js +51 -0
  64. package/build/dataTransform-089f414c.js +66 -0
  65. package/build/ecom.js +745 -1
  66. package/build/esm/BMI_BOYS.percentile.monthly-de5dce68.js +686 -0
  67. package/build/esm/BMI_BOYS.percentile.weekly-9d3990b6.js +180 -0
  68. package/build/esm/BMI_BOYS.percentile.yearly-98b9114a.js +81 -0
  69. package/build/esm/BMI_BOYS.zscore.monthly-394646f0.js +438 -0
  70. package/build/esm/BMI_BOYS.zscore.weekly-c669ea51.js +116 -0
  71. package/build/esm/BMI_BOYS.zscore.yearly-771ef6b6.js +53 -0
  72. package/build/esm/BMI_GIRLS.percentile.monthly-1ff3d499.js +686 -0
  73. package/build/esm/BMI_GIRLS.percentile.weekly-211d2f27.js +180 -0
  74. package/build/esm/BMI_GIRLS.percentile.yearly-206fdcff.js +81 -0
  75. package/build/esm/BMI_GIRLS.zscore.monthly-b1137e36.js +438 -0
  76. package/build/esm/BMI_GIRLS.zscore.weekly-63ed3cd6.js +116 -0
  77. package/build/esm/BMI_GIRLS.zscore.yearly-221d187c.js +53 -0
  78. package/build/esm/ChevronDown-9a8ece61.js +7 -0
  79. package/build/esm/HEAD CIRCUM_BOYS.percentile.monthly-4c37847c.js +686 -0
  80. package/build/esm/HEAD CIRCUM_BOYS.percentile.weekly-8f6ea38a.js +180 -0
  81. package/build/esm/HEAD CIRCUM_BOYS.percentile.yearly-6c12a99a.js +81 -0
  82. package/build/esm/HEAD CIRCUM_BOYS.zscore.monthly-c531b497.js +438 -0
  83. package/build/esm/HEAD CIRCUM_BOYS.zscore.weekly-6cafba00.js +116 -0
  84. package/build/esm/HEAD CIRCUM_BOYS.zscore.yearly-fe8114a0.js +53 -0
  85. package/build/esm/HEAD CIRCUM_GIRLS.percentile.monthly-25ce0d36.js +686 -0
  86. package/build/esm/HEAD CIRCUM_GIRLS.percentile.weekly-5d3f2862.js +180 -0
  87. package/build/esm/HEAD CIRCUM_GIRLS.percentile.yearly-2b709ca5.js +81 -0
  88. package/build/esm/HEAD CIRCUM_GIRLS.zscore.monthly-e8617bae.js +438 -0
  89. package/build/esm/HEAD CIRCUM_GIRLS.zscore.weekly-f3252d67.js +116 -0
  90. package/build/esm/HEAD CIRCUM_GIRLS.zscore.yearly-5b62d41f.js +53 -0
  91. package/build/esm/HEIGHT_BOYS.percentile.monthly-63d2cf96.js +686 -0
  92. package/build/esm/HEIGHT_BOYS.percentile.weekly-8ea5102d.js +180 -0
  93. package/build/esm/HEIGHT_BOYS.percentile.yearly-8107b77b.js +235 -0
  94. package/build/esm/HEIGHT_BOYS.zscore.monthly-641cdfa3.js +438 -0
  95. package/build/esm/HEIGHT_BOYS.zscore.weekly-86da0362.js +116 -0
  96. package/build/esm/HEIGHT_BOYS.zscore.yearly-060f6e79.js +151 -0
  97. package/build/esm/HEIGHT_GIRLS.percentile.monthly-fb987d37.js +686 -0
  98. package/build/esm/HEIGHT_GIRLS.percentile.weekly-82655dc0.js +180 -0
  99. package/build/esm/HEIGHT_GIRLS.percentile.yearly-a63b8456.js +235 -0
  100. package/build/esm/HEIGHT_GIRLS.zscore.monthly-77d676a3.js +438 -0
  101. package/build/esm/HEIGHT_GIRLS.zscore.weekly-c0387a4e.js +116 -0
  102. package/build/esm/HEIGHT_GIRLS.zscore.yearly-41203c20.js +151 -0
  103. package/build/esm/Subot-3289bd8e.js +212 -0
  104. package/build/esm/Visible-a3d436dd.js +7 -0
  105. package/build/esm/WEIGHT_BOYS.percentile.monthly-50802d8b.js +686 -0
  106. package/build/esm/WEIGHT_BOYS.percentile.weekly-4d72ddd6.js +180 -0
  107. package/build/esm/WEIGHT_BOYS.percentile.yearly-20a29844.js +136 -0
  108. package/build/esm/WEIGHT_BOYS.zscore.monthly-729e6614.js +438 -0
  109. package/build/esm/WEIGHT_BOYS.zscore.weekly-90352f48.js +116 -0
  110. package/build/esm/WEIGHT_BOYS.zscore.yearly-fe1871cc.js +88 -0
  111. package/build/esm/WEIGHT_GIRLS.percentile.monthly-e6afb2e0.js +686 -0
  112. package/build/esm/WEIGHT_GIRLS.percentile.weekly-b66d3016.js +180 -0
  113. package/build/esm/WEIGHT_GIRLS.percentile.yearly-a55622c5.js +136 -0
  114. package/build/esm/WEIGHT_GIRLS.zscore.monthly-2cdcbe75.js +438 -0
  115. package/build/esm/WEIGHT_GIRLS.zscore.weekly-d5be31d5.js +116 -0
  116. package/build/esm/WEIGHT_GIRLS.zscore.yearly-99e8d3a7.js +88 -0
  117. package/build/esm/adapters.js +26 -1
  118. package/build/{animation-d5d9ef32.js → esm/animation-3d5edc39.js} +22 -10
  119. package/build/esm/babyGrowth.js +883 -47
  120. package/build/esm/cache.js +3 -1
  121. package/build/esm/care.js +26 -1
  122. package/build/esm/components/navigationV2/hooks/useNavConfig.d.ts +1 -3
  123. package/build/esm/components.js +88 -1
  124. package/build/esm/constants-2a6d2434.js +932 -0
  125. package/build/esm/constants-b77ffe3d.js +238 -0
  126. package/build/esm/constants.js +4 -1
  127. package/build/esm/cookieHelper-d314282c.js +39 -0
  128. package/build/esm/core-8c73d133.js +47 -0
  129. package/build/esm/dataTransform-8ecfc046.js +56 -0
  130. package/build/esm/ecom.js +737 -1
  131. package/build/esm/footer.js +31 -1
  132. package/build/esm/gAssets.js +5 -1
  133. package/build/esm/getDynamicHealthTool-f4497aa5.js +44 -0
  134. package/build/esm/getSocialList-a5b8462e.js +66 -0
  135. package/build/esm/hooks.js +21 -1
  136. package/build/esm/i18n-values/en-PH.js +600 -1
  137. package/build/esm/i18n-values/hi-IN.js +600 -1
  138. package/build/esm/i18n-values/id-ID.js +600 -1
  139. package/build/esm/i18n-values/km-KH.js +600 -1
  140. package/build/esm/i18n-values/ms-MY.js +602 -1
  141. package/build/esm/i18n-values/my-MM.js +600 -1
  142. package/build/esm/i18n-values/th-TH.js +600 -1
  143. package/build/esm/i18n-values/tl-PH.js +600 -1
  144. package/build/esm/i18n-values/vi-VN.js +607 -1
  145. package/build/esm/i18n-values/vi-VN_MB.js +607 -1
  146. package/build/esm/i18n-values/zh-TW.js +600 -1
  147. package/build/esm/i18n.js +55 -1
  148. package/build/esm/i18nV2.js +18 -1
  149. package/build/esm/index-12fa4985.js +8 -0
  150. package/build/esm/index-1e59f99a.js +152 -0
  151. package/build/esm/index-32e53dac.js +1936 -0
  152. package/build/esm/index-3474401a.js +149 -0
  153. package/build/esm/index-34899aa3.js +17 -0
  154. package/build/esm/index-350e8f5b.js +124 -0
  155. package/build/esm/index-41bf860a.js +151 -0
  156. package/build/esm/index-4aa8e518.js +116 -0
  157. package/build/esm/index-4fe2b03f.js +32 -0
  158. package/build/esm/index-6ea6484e.js +29 -0
  159. package/build/esm/index-717401ee.js +184 -0
  160. package/build/esm/index-7af5242a.js +24 -0
  161. package/build/esm/index-7b8c85cd.js +8302 -0
  162. package/build/esm/index-81f295b7.js +23 -0
  163. package/build/esm/index-8858383e.js +52 -0
  164. package/build/esm/index-8f52dcf3.js +33 -0
  165. package/build/esm/index-9ea7e838.js +33 -0
  166. package/build/esm/index-aabac2aa.js +3241 -0
  167. package/build/esm/index-b9b2c417.js +837 -0
  168. package/build/esm/index-c2da5293.js +12 -0
  169. package/build/esm/index-c56d60db.js +370 -0
  170. package/build/esm/index-c5d7f692.js +24 -0
  171. package/build/esm/index-cc93e010.js +53 -0
  172. package/build/esm/index-d7f046db.js +5 -0
  173. package/build/esm/index-d8177667.js +14 -0
  174. package/build/esm/index-da139dda.js +615 -0
  175. package/build/esm/index-e612be9c.js +905 -0
  176. package/build/esm/index-f3d0592b.js +71 -0
  177. package/build/esm/index.js +190 -1
  178. package/build/{index.styled-0a1fb891.js → esm/index.styled-9c9db9cc.js} +17 -5
  179. package/build/esm/index.styles-5add27c5.js +1303 -0
  180. package/build/esm/isProduction-0ea904dd.js +27 -0
  181. package/build/esm/lead.js +2140 -1
  182. package/build/esm/localizeNumberFormat-2ac3773e.js +23 -0
  183. package/build/esm/mantine.js +113 -1
  184. package/build/esm/misc.js +22 -1
  185. package/build/esm/navigation.js +51 -1
  186. package/build/esm/normalizeLink-d1c9617e.js +12 -0
  187. package/build/esm/number-0c126a39.js +38 -0
  188. package/build/esm/onboardingV2.js +860 -34
  189. package/build/esm/paths-a8204db4.js +14 -0
  190. package/build/esm/pwg.js +208 -7
  191. package/build/esm/routing-2474f896.js +40 -0
  192. package/build/esm/subot.js +4553 -134
  193. package/build/esm/theme-e74db08c.js +186 -0
  194. package/build/esm/together.js +52 -1
  195. package/build/esm/translationsContext-ad3e25de.js +5 -0
  196. package/build/esm/tslib.es6-1b1533a9.js +38 -0
  197. package/build/esm/types-06f00b3d.js +8015 -0
  198. package/build/esm/types-15e34418.js +3432 -0
  199. package/build/esm/types-ba190c26.js +21 -0
  200. package/build/esm/types.js +1 -1
  201. package/build/esm/unifyEnv.js +42 -1
  202. package/build/esm/useCategory-2c87152d.js +292 -0
  203. package/build/esm/useHealthToolCache-29d22ddb.js +17 -0
  204. package/build/esm/useIsInit-8a2fc8e5.js +11 -0
  205. package/build/esm/useOutsideClick-c8a7ff20.js +45 -0
  206. package/build/esm/usePlacesAutocomplete-63e04e8e.js +80 -0
  207. package/build/esm/useScrollbarSize-51ce1374.js +57 -0
  208. package/build/esm/useTranslations-4f1db486.js +26 -0
  209. package/build/esm/useUniqueId-3638402f.js +41 -0
  210. package/build/esm/utils-2c484c05.js +132 -0
  211. package/build/esm/utils-3a2a47d9.js +22 -0
  212. package/build/esm/utils-6d7b88da.js +367 -0
  213. package/build/esm/utils-70718e9c.js +1124 -0
  214. package/build/esm/vaccination.js +868 -40
  215. package/build/footer.js +39 -1
  216. package/build/gAssets.js +14 -1
  217. package/build/getDynamicHealthTool-114a1e27.js +48 -0
  218. package/build/getSocialList-4713441d.js +72 -0
  219. package/build/hooks.js +44 -1
  220. package/build/i18n-values/en-PH.js +611 -1
  221. package/build/i18n-values/hi-IN.js +611 -1
  222. package/build/i18n-values/id-ID.js +611 -1
  223. package/build/i18n-values/km-KH.js +611 -1
  224. package/build/i18n-values/ms-MY.js +613 -1
  225. package/build/i18n-values/my-MM.js +611 -1
  226. package/build/i18n-values/th-TH.js +611 -1
  227. package/build/i18n-values/tl-PH.js +611 -1
  228. package/build/i18n-values/vi-VN.js +618 -1
  229. package/build/i18n-values/vi-VN_MB.js +618 -1
  230. package/build/i18n-values/zh-TW.js +611 -1
  231. package/build/i18n.js +64 -1
  232. package/build/i18nV2.js +26 -1
  233. package/build/index-020e6908.js +39 -0
  234. package/build/index-0da9b2e8.js +59 -0
  235. package/build/index-11468c00.js +157 -0
  236. package/build/index-117448a5.js +133 -0
  237. package/build/index-12c07f71.js +18 -0
  238. package/build/index-1a105e87.js +123 -0
  239. package/build/index-1baaedb0.js +55 -0
  240. package/build/index-32d38318.js +7 -0
  241. package/build/index-38582ee0.js +8373 -0
  242. package/build/index-3e5fc2d6.js +1994 -0
  243. package/build/index-3eef6bed.js +853 -0
  244. package/build/index-4035e658.js +159 -0
  245. package/build/index-488d71ae.js +30 -0
  246. package/build/index-5553f9e1.js +930 -0
  247. package/build/index-5fa68e45.js +380 -0
  248. package/build/index-7b467209.js +39 -0
  249. package/build/index-81cb1142.js +77 -0
  250. package/build/index-84ab5b89.js +38 -0
  251. package/build/index-8a95d709.js +30 -0
  252. package/build/index-9da9f0c3.js +35 -0
  253. package/build/index-af91c83e.js +20 -0
  254. package/build/index-b6aea85e.js +191 -0
  255. package/build/index-bc4f4c33.js +156 -0
  256. package/build/index-c604d6bb.js +624 -0
  257. package/build/index-d330735e.js +30 -0
  258. package/build/index-d8a7efaf.js +14 -0
  259. package/build/index-e2e81fa2.js +23 -0
  260. package/build/index-e3d896b3.js +3261 -0
  261. package/build/index.js +436 -1
  262. package/build/{esm/index.styled-14b65c9e.js → index.styled-5628b3e7.js} +25 -5
  263. package/build/index.styles-b822bf42.js +1342 -0
  264. package/build/isProduction-5ce3a388.js +29 -0
  265. package/build/lead.js +2168 -1
  266. package/build/localizeNumberFormat-f5f50987.js +31 -0
  267. package/build/mantine.js +154 -1
  268. package/build/misc.js +70 -1
  269. package/build/navigation.js +61 -1
  270. package/build/normalizeLink-6f7b85d8.js +15 -0
  271. package/build/number-79fe92e1.js +40 -0
  272. package/build/onboardingV2.js +892 -34
  273. package/build/paths-a5643d9e.js +16 -0
  274. package/build/pwg.js +217 -7
  275. package/build/routing-191a9a00.js +46 -0
  276. package/build/subot.js +4592 -134
  277. package/build/theme-fa910869.js +189 -0
  278. package/build/together.js +112 -1
  279. package/build/translationsContext-950334bf.js +7 -0
  280. package/build/tslib.es6-65e312a5.js +41 -0
  281. package/build/types-0f117a9f.js +8084 -0
  282. package/build/types-1fedb3d1.js +3446 -0
  283. package/build/types-52a4e888.js +24 -0
  284. package/build/types.js +56 -1
  285. package/build/unifyEnv.js +46 -1
  286. package/build/useCategory-cfc702f5.js +299 -0
  287. package/build/useHealthToolCache-43a7014d.js +19 -0
  288. package/build/useIsInit-89535012.js +13 -0
  289. package/build/useOutsideClick-c6813964.js +49 -0
  290. package/build/usePlacesAutocomplete-297de092.js +84 -0
  291. package/build/useScrollbarSize-0fa31aa7.js +64 -0
  292. package/build/useTranslations-e1853417.js +32 -0
  293. package/build/useUniqueId-11369116.js +44 -0
  294. package/build/utils-52113753.js +384 -0
  295. package/build/utils-64bd0c42.js +143 -0
  296. package/build/utils-661411f6.js +1171 -0
  297. package/build/utils-e1513cbc.js +25 -0
  298. package/build/vaccination.js +891 -40
  299. package/package.json +4 -5
  300. package/build/BMI_BOYS.percentile.monthly-c56b0165.js +0 -1
  301. package/build/BMI_BOYS.percentile.weekly-64287e04.js +0 -1
  302. package/build/BMI_BOYS.percentile.yearly-8db65d54.js +0 -1
  303. package/build/BMI_BOYS.zscore.monthly-f12389cd.js +0 -1
  304. package/build/BMI_BOYS.zscore.weekly-fff37a57.js +0 -1
  305. package/build/BMI_BOYS.zscore.yearly-a19b57eb.js +0 -1
  306. package/build/BMI_GIRLS.percentile.monthly-a4b36d7d.js +0 -1
  307. package/build/BMI_GIRLS.percentile.weekly-b6089202.js +0 -1
  308. package/build/BMI_GIRLS.percentile.yearly-0d340818.js +0 -1
  309. package/build/BMI_GIRLS.zscore.monthly-fd5b57c0.js +0 -1
  310. package/build/BMI_GIRLS.zscore.weekly-d4577f50.js +0 -1
  311. package/build/BMI_GIRLS.zscore.yearly-e40b8a7d.js +0 -1
  312. package/build/ChevronDown-602ce39e.js +0 -1
  313. package/build/HEAD CIRCUM_BOYS.percentile.monthly-2e4c5776.js +0 -1
  314. package/build/HEAD CIRCUM_BOYS.percentile.weekly-fc5728a5.js +0 -1
  315. package/build/HEAD CIRCUM_BOYS.percentile.yearly-6bfab277.js +0 -1
  316. package/build/HEAD CIRCUM_BOYS.zscore.monthly-6af7ce44.js +0 -1
  317. package/build/HEAD CIRCUM_BOYS.zscore.weekly-9adb819b.js +0 -1
  318. package/build/HEAD CIRCUM_BOYS.zscore.yearly-9a6cdbcf.js +0 -1
  319. package/build/HEAD CIRCUM_GIRLS.percentile.monthly-e7bfe9c6.js +0 -1
  320. package/build/HEAD CIRCUM_GIRLS.percentile.weekly-9f17e019.js +0 -1
  321. package/build/HEAD CIRCUM_GIRLS.percentile.yearly-8a59f541.js +0 -1
  322. package/build/HEAD CIRCUM_GIRLS.zscore.monthly-b7ddb16c.js +0 -1
  323. package/build/HEAD CIRCUM_GIRLS.zscore.weekly-72701c55.js +0 -1
  324. package/build/HEAD CIRCUM_GIRLS.zscore.yearly-dd94bded.js +0 -1
  325. package/build/HEIGHT_BOYS.percentile.monthly-b890068c.js +0 -1
  326. package/build/HEIGHT_BOYS.percentile.weekly-a1aa5130.js +0 -1
  327. package/build/HEIGHT_BOYS.percentile.yearly-5727d920.js +0 -1
  328. package/build/HEIGHT_BOYS.zscore.monthly-13b70aa6.js +0 -1
  329. package/build/HEIGHT_BOYS.zscore.weekly-3e1d7f23.js +0 -1
  330. package/build/HEIGHT_BOYS.zscore.yearly-a956102d.js +0 -1
  331. package/build/HEIGHT_GIRLS.percentile.monthly-da5ec01b.js +0 -1
  332. package/build/HEIGHT_GIRLS.percentile.weekly-e6205d32.js +0 -1
  333. package/build/HEIGHT_GIRLS.percentile.yearly-caefa502.js +0 -1
  334. package/build/HEIGHT_GIRLS.zscore.monthly-102ba473.js +0 -1
  335. package/build/HEIGHT_GIRLS.zscore.weekly-db4f710b.js +0 -1
  336. package/build/HEIGHT_GIRLS.zscore.yearly-36465920.js +0 -1
  337. package/build/Subot-4751194d.js +0 -1
  338. package/build/Visible-9497c463.js +0 -1
  339. package/build/WEIGHT_BOYS.percentile.monthly-554d0361.js +0 -1
  340. package/build/WEIGHT_BOYS.percentile.weekly-8e5334b8.js +0 -1
  341. package/build/WEIGHT_BOYS.percentile.yearly-536e1ccb.js +0 -1
  342. package/build/WEIGHT_BOYS.zscore.monthly-01eccee1.js +0 -1
  343. package/build/WEIGHT_BOYS.zscore.weekly-ee8f2c6b.js +0 -1
  344. package/build/WEIGHT_BOYS.zscore.yearly-0aea2749.js +0 -1
  345. package/build/WEIGHT_GIRLS.percentile.monthly-7abf9d06.js +0 -1
  346. package/build/WEIGHT_GIRLS.percentile.weekly-f9b6e963.js +0 -1
  347. package/build/WEIGHT_GIRLS.percentile.yearly-254865a5.js +0 -1
  348. package/build/WEIGHT_GIRLS.zscore.monthly-909f7417.js +0 -1
  349. package/build/WEIGHT_GIRLS.zscore.weekly-e62cd084.js +0 -1
  350. package/build/WEIGHT_GIRLS.zscore.yearly-8d6e5405.js +0 -1
  351. package/build/constants-00e06f68.js +0 -108
  352. package/build/constants-51251306.js +0 -1
  353. package/build/cookieHelper-7d519a72.js +0 -1
  354. package/build/core-ba3af3e2.js +0 -1
  355. package/build/dataTransform-1805eae3.js +0 -1
  356. package/build/esm/BMI_BOYS.percentile.monthly-6272f835.js +0 -1
  357. package/build/esm/BMI_BOYS.percentile.weekly-80d18f47.js +0 -1
  358. package/build/esm/BMI_BOYS.percentile.yearly-a7e5b5f6.js +0 -1
  359. package/build/esm/BMI_BOYS.zscore.monthly-d3658f97.js +0 -1
  360. package/build/esm/BMI_BOYS.zscore.weekly-6e6708dc.js +0 -1
  361. package/build/esm/BMI_BOYS.zscore.yearly-b8400c9d.js +0 -1
  362. package/build/esm/BMI_GIRLS.percentile.monthly-98586b46.js +0 -1
  363. package/build/esm/BMI_GIRLS.percentile.weekly-7c1511b0.js +0 -1
  364. package/build/esm/BMI_GIRLS.percentile.yearly-ea667f90.js +0 -1
  365. package/build/esm/BMI_GIRLS.zscore.monthly-3a4fd1a6.js +0 -1
  366. package/build/esm/BMI_GIRLS.zscore.weekly-cc1de097.js +0 -1
  367. package/build/esm/BMI_GIRLS.zscore.yearly-6dd1a364.js +0 -1
  368. package/build/esm/ChevronDown-4e59cac6.js +0 -1
  369. package/build/esm/HEAD CIRCUM_BOYS.percentile.monthly-bd0965ae.js +0 -1
  370. package/build/esm/HEAD CIRCUM_BOYS.percentile.weekly-db1053f7.js +0 -1
  371. package/build/esm/HEAD CIRCUM_BOYS.percentile.yearly-cd38b622.js +0 -1
  372. package/build/esm/HEAD CIRCUM_BOYS.zscore.monthly-d7f88a95.js +0 -1
  373. package/build/esm/HEAD CIRCUM_BOYS.zscore.weekly-76f7db79.js +0 -1
  374. package/build/esm/HEAD CIRCUM_BOYS.zscore.yearly-3ce70f8e.js +0 -1
  375. package/build/esm/HEAD CIRCUM_GIRLS.percentile.monthly-b2e678ae.js +0 -1
  376. package/build/esm/HEAD CIRCUM_GIRLS.percentile.weekly-8e2664bb.js +0 -1
  377. package/build/esm/HEAD CIRCUM_GIRLS.percentile.yearly-f5c075a9.js +0 -1
  378. package/build/esm/HEAD CIRCUM_GIRLS.zscore.monthly-6f87849e.js +0 -1
  379. package/build/esm/HEAD CIRCUM_GIRLS.zscore.weekly-48da0aaa.js +0 -1
  380. package/build/esm/HEAD CIRCUM_GIRLS.zscore.yearly-4eea437b.js +0 -1
  381. package/build/esm/HEIGHT_BOYS.percentile.monthly-d1a8cc8e.js +0 -1
  382. package/build/esm/HEIGHT_BOYS.percentile.weekly-2b6cfe6c.js +0 -1
  383. package/build/esm/HEIGHT_BOYS.percentile.yearly-9e78afc3.js +0 -1
  384. package/build/esm/HEIGHT_BOYS.zscore.monthly-5292d78a.js +0 -1
  385. package/build/esm/HEIGHT_BOYS.zscore.weekly-fbdee645.js +0 -1
  386. package/build/esm/HEIGHT_BOYS.zscore.yearly-c11a8f1b.js +0 -1
  387. package/build/esm/HEIGHT_GIRLS.percentile.monthly-8e11e2dc.js +0 -1
  388. package/build/esm/HEIGHT_GIRLS.percentile.weekly-dc3965cb.js +0 -1
  389. package/build/esm/HEIGHT_GIRLS.percentile.yearly-490f7b4e.js +0 -1
  390. package/build/esm/HEIGHT_GIRLS.zscore.monthly-e3531c32.js +0 -1
  391. package/build/esm/HEIGHT_GIRLS.zscore.weekly-36a16a66.js +0 -1
  392. package/build/esm/HEIGHT_GIRLS.zscore.yearly-61736bba.js +0 -1
  393. package/build/esm/Subot-4642c5bf.js +0 -1
  394. package/build/esm/Visible-ff7d225c.js +0 -1
  395. package/build/esm/WEIGHT_BOYS.percentile.monthly-0cfe7ecd.js +0 -1
  396. package/build/esm/WEIGHT_BOYS.percentile.weekly-89802113.js +0 -1
  397. package/build/esm/WEIGHT_BOYS.percentile.yearly-0eb40972.js +0 -1
  398. package/build/esm/WEIGHT_BOYS.zscore.monthly-7f8c5a15.js +0 -1
  399. package/build/esm/WEIGHT_BOYS.zscore.weekly-3dcfa8ce.js +0 -1
  400. package/build/esm/WEIGHT_BOYS.zscore.yearly-98ce1ea0.js +0 -1
  401. package/build/esm/WEIGHT_GIRLS.percentile.monthly-df98e335.js +0 -1
  402. package/build/esm/WEIGHT_GIRLS.percentile.weekly-63fff42a.js +0 -1
  403. package/build/esm/WEIGHT_GIRLS.percentile.yearly-8db8cdd0.js +0 -1
  404. package/build/esm/WEIGHT_GIRLS.zscore.monthly-15c83c6d.js +0 -1
  405. package/build/esm/WEIGHT_GIRLS.zscore.weekly-747a55ec.js +0 -1
  406. package/build/esm/WEIGHT_GIRLS.zscore.yearly-197dc52d.js +0 -1
  407. package/build/esm/constants-6ecfa77c.js +0 -1
  408. package/build/esm/constants-f7c80032.js +0 -108
  409. package/build/esm/cookieHelper-4f089e3c.js +0 -1
  410. package/build/esm/core-80112758.js +0 -1
  411. package/build/esm/dataTransform-0fa341bb.js +0 -1
  412. package/build/esm/getDynamicHealthTool-a4c9d6dd.js +0 -1
  413. package/build/esm/getSocialList-4e48deba.js +0 -1
  414. package/build/esm/index-13dc1f44.js +0 -1
  415. package/build/esm/index-13e62563.js +0 -137
  416. package/build/esm/index-1e7ad007.js +0 -1
  417. package/build/esm/index-24557f2b.js +0 -1
  418. package/build/esm/index-252cb964.js +0 -1
  419. package/build/esm/index-2e99f941.js +0 -1
  420. package/build/esm/index-3452fed2.js +0 -1
  421. package/build/esm/index-3aff939b.js +0 -1
  422. package/build/esm/index-459e0362.js +0 -1
  423. package/build/esm/index-45dcd965.js +0 -1
  424. package/build/esm/index-486b71cd.js +0 -1
  425. package/build/esm/index-5408f5a4.js +0 -113
  426. package/build/esm/index-5e1af23a.js +0 -1
  427. package/build/esm/index-79ef3a30.js +0 -1
  428. package/build/esm/index-7c77273a.js +0 -1
  429. package/build/esm/index-823fd7c0.js +0 -117
  430. package/build/esm/index-8c77d7e0.js +0 -1
  431. package/build/esm/index-93e5b4f3.js +0 -1
  432. package/build/esm/index-9c7b9011.js +0 -2748
  433. package/build/esm/index-9e5956c2.js +0 -1
  434. package/build/esm/index-a83aad1c.js +0 -375
  435. package/build/esm/index-b7cc3ca2.js +0 -1
  436. package/build/esm/index-bf11f9e9.js +0 -50
  437. package/build/esm/index-ce3d38fd.js +0 -1
  438. package/build/esm/index-d27a0e25.js +0 -1
  439. package/build/esm/index-e21276e3.js +0 -1
  440. package/build/esm/index-f9514788.js +0 -177
  441. package/build/esm/index-fd04ccb7.js +0 -1430
  442. package/build/esm/index.styles-94af560f.js +0 -817
  443. package/build/esm/isProduction-00695d80.js +0 -1
  444. package/build/esm/localizeNumberFormat-8355a44f.js +0 -1
  445. package/build/esm/normalizeLink-1c194268.js +0 -1
  446. package/build/esm/number-1347eb7b.js +0 -1
  447. package/build/esm/paths-749b4b53.js +0 -1
  448. package/build/esm/routing-2b284b30.js +0 -1
  449. package/build/esm/theme-3db3c9a8.js +0 -1
  450. package/build/esm/translationsContext-6d2efd65.js +0 -1
  451. package/build/esm/tslib.es6-266309d1.js +0 -1
  452. package/build/esm/types-6d397125.js +0 -3004
  453. package/build/esm/types-850814a7.js +0 -785
  454. package/build/esm/types-d3da37d2.js +0 -1
  455. package/build/esm/useCategory-f5f74749.js +0 -1
  456. package/build/esm/useHealthToolCache-f1488032.js +0 -1
  457. package/build/esm/useIsInit-9661c5f5.js +0 -1
  458. package/build/esm/useOutsideClick-0704b383.js +0 -1
  459. package/build/esm/usePlacesAutocomplete-0733ec49.js +0 -1
  460. package/build/esm/useScrollbarSize-90b179a5.js +0 -1
  461. package/build/esm/useTranslations-df1b3bb8.js +0 -1
  462. package/build/esm/useUniqueId-03fbaecd.js +0 -1
  463. package/build/esm/utils-3d2e3f0f.js +0 -141
  464. package/build/esm/utils-5b4e60da.js +0 -1
  465. package/build/esm/utils-970ce0c0.js +0 -8
  466. package/build/esm/utils-b87ec473.js +0 -1
  467. package/build/getDynamicHealthTool-31f44ca1.js +0 -1
  468. package/build/getSocialList-29c0a6e8.js +0 -1
  469. package/build/index-1714c81c.js +0 -2748
  470. package/build/index-238813a4.js +0 -375
  471. package/build/index-2438163d.js +0 -1430
  472. package/build/index-29d302f4.js +0 -137
  473. package/build/index-3184ae4e.js +0 -1
  474. package/build/index-34b6bd24.js +0 -1
  475. package/build/index-35192783.js +0 -1
  476. package/build/index-41d684a8.js +0 -50
  477. package/build/index-4a8c8ce6.js +0 -1
  478. package/build/index-58e0d49f.js +0 -1
  479. package/build/index-64d2f812.js +0 -1
  480. package/build/index-85c621a2.js +0 -113
  481. package/build/index-90f4bc02.js +0 -1
  482. package/build/index-9a845847.js +0 -117
  483. package/build/index-9ed509d1.js +0 -1
  484. package/build/index-aa495d24.js +0 -1
  485. package/build/index-ad5cf64d.js +0 -1
  486. package/build/index-b21a1d96.js +0 -1
  487. package/build/index-b320255d.js +0 -1
  488. package/build/index-b9af15da.js +0 -1
  489. package/build/index-bd4b31bf.js +0 -1
  490. package/build/index-bf81cb71.js +0 -1
  491. package/build/index-c3cbb8f3.js +0 -1
  492. package/build/index-d25afe2f.js +0 -1
  493. package/build/index-e7c1ff53.js +0 -177
  494. package/build/index-ed8656f9.js +0 -1
  495. package/build/index-f6217f73.js +0 -1
  496. package/build/index-f7088d57.js +0 -1
  497. package/build/index.styles-2ecb9c85.js +0 -817
  498. package/build/isProduction-28d96804.js +0 -1
  499. package/build/localizeNumberFormat-22b2d7aa.js +0 -1
  500. package/build/normalizeLink-594ccff1.js +0 -1
  501. package/build/number-cf06dcc0.js +0 -1
  502. package/build/paths-ed72ecb8.js +0 -1
  503. package/build/routing-f2edd0d0.js +0 -1
  504. package/build/theme-f2b8aad7.js +0 -1
  505. package/build/translationsContext-4c4c33c4.js +0 -1
  506. package/build/tslib.es6-ceb091fd.js +0 -1
  507. package/build/types-49f0543a.js +0 -785
  508. package/build/types-5b303b71.js +0 -1
  509. package/build/types-bfd12e24.js +0 -3004
  510. package/build/useCategory-94d60dab.js +0 -1
  511. package/build/useHealthToolCache-7307d240.js +0 -1
  512. package/build/useIsInit-c3cf1925.js +0 -1
  513. package/build/useOutsideClick-15fef824.js +0 -1
  514. package/build/usePlacesAutocomplete-6ab0181b.js +0 -1
  515. package/build/useScrollbarSize-ab332673.js +0 -1
  516. package/build/useTranslations-233c68bc.js +0 -1
  517. package/build/useUniqueId-46834e18.js +0 -1
  518. package/build/utils-13ea4f2f.js +0 -8
  519. package/build/utils-45e691a3.js +0 -1
  520. package/build/utils-bee8be92.js +0 -141
  521. package/build/utils-d5766c73.js +0 -1
@@ -1,8 +1,58 @@
1
- import{D as e,M as t}from"./index-f9514788.js";export{B as BabyGrowthGender}from"./index-f9514788.js";import r,{useMemo as o,useRef as l,useState as a,useEffect as i}from"react";import{L as n,G as c,B as s,a as d}from"./Subot-4642c5bf.js";import{t as m}from"./theme-3db3c9a8.js";import{T as C}from"./index-d27a0e25.js";import p from"styled-components";import{B as h}from"./index-3452fed2.js";import{Boy as y,Girl as f,CheckActiveMB as u,BabyBoyMB as g,BabyGirlMB as b,GenderBoy as E,GenderGirl as x,CalendarMB as v,Calendar as w}from"@hhgtech/icons/other";import{M as L}from"./index-7c77273a.js";import k from"dayjs";import{a as M,l as H}from"./localizeNumberFormat-8355a44f.js";import{Kebab as I}from"@hhgtech/icons/core";import{u as j}from"./useTranslations-df1b3bb8.js";import{H as S}from"./index-24557f2b.js";import{s as R}from"./utils-5b4e60da.js";import{_ as z,a as G}from"./tslib.es6-266309d1.js";import"@mantine/core";import"./index.styles-94af560f.js";import"./index-5408f5a4.js";import"./index-2e99f941.js";import"./constants-f7c80032.js";import"./utils-3d2e3f0f.js";import{T as Z}from"./index-459e0362.js";import"./utils-970ce0c0.js";import{C as _}from"./index-8c77d7e0.js";import"./index-9e5956c2.js";import"@mantine/dates";import"@mantine/hooks";import{a as N}from"./useOutsideClick-0704b383.js";import{I as V}from"./index-5e1af23a.js";import{ResponsiveContainer as T,LineChart as A,CartesianGrid as W,Tooltip as Y,XAxis as D,YAxis as O,Line as $,ReferenceDot as F}from"recharts";import P from"lodash/chunk";import"./useScrollbarSize-90b179a5.js";import"lodash/debounce";import"react-dom";import"./index.styled-14b65c9e.js";import"./translationsContext-6d2efd65.js";import"string-format";import"./animation-0340efb3.js";import"react-keyed-flatten-children";import"@mantine/carousel";import"classnames";import"./useUniqueId-03fbaecd.js";import"./isProduction-00695d80.js";import"./cookieHelper-4f089e3c.js";import"slugify";import"date-fns/locale";const U=p.div`
1
+ import { D as Drawer, M as Modal } from './index-c56d60db.js';
2
+ export { B as BabyGrowthGender } from './index-c56d60db.js';
3
+ import React__default, { useMemo, useRef, useState, useEffect } from 'react';
4
+ import { L as LOCALE, G as Gender, B as BabyGrowthChartType, a as BabyGrowthChartDuration } from './Subot-3289bd8e.js';
5
+ import { t as theme } from './theme-e74db08c.js';
6
+ import { T as Text } from './index-3474401a.js';
7
+ import styled from 'styled-components';
8
+ import { B as Button } from './index-6ea6484e.js';
9
+ import { Boy, Girl, CheckActiveMB, BabyBoyMB, BabyGirlMB, GenderBoy, GenderGirl, CalendarMB, Calendar } from '@hhgtech/icons/other';
10
+ import { M as MarryBabyText } from './index-81f295b7.js';
11
+ import dayjs from 'dayjs';
12
+ import { a as ageGenerate, l as localizeNumberFormat } from './localizeNumberFormat-2ac3773e.js';
13
+ import { Kebab } from '@hhgtech/icons/core';
14
+ import { u as useTranslations } from './useTranslations-4f1db486.js';
15
+ import { H as Heading } from './index-34899aa3.js';
16
+ import { s as startCase } from './utils-2c484c05.js';
17
+ import { _ as __rest, a as __awaiter } from './tslib.es6-1b1533a9.js';
18
+ import '@mantine/core';
19
+ import './index.styles-5add27c5.js';
20
+ import './index-32e53dac.js';
21
+ import './index-8858383e.js';
22
+ import './constants-b77ffe3d.js';
23
+ import './utils-6d7b88da.js';
24
+ import { T as Text$1 } from './index-7af5242a.js';
25
+ import './utils-70718e9c.js';
26
+ import { C as CustomReferenceDot } from './index-12fa4985.js';
27
+ import './index-e612be9c.js';
28
+ import '@mantine/dates';
29
+ import '@mantine/hooks';
30
+ import { a as useOutsideClick } from './useOutsideClick-c8a7ff20.js';
31
+ import { I as Input } from './index-8f52dcf3.js';
32
+ import { ResponsiveContainer, LineChart, CartesianGrid, Tooltip, XAxis, YAxis, Line, ReferenceDot } from 'recharts';
33
+ import chunk from 'lodash/chunk';
34
+ import './useScrollbarSize-51ce1374.js';
35
+ import 'lodash/debounce';
36
+ import 'react-dom';
37
+ import './index.styled-9c9db9cc.js';
38
+ import './translationsContext-ad3e25de.js';
39
+ import 'string-format';
40
+ import './animation-3d5edc39.js';
41
+ import 'react-keyed-flatten-children';
42
+ import '@mantine/carousel';
43
+ import 'classnames';
44
+ import './useUniqueId-3638402f.js';
45
+ import './isProduction-0ea904dd.js';
46
+ import './cookieHelper-d314282c.js';
47
+ import 'slugify';
48
+ import 'date-fns/locale';
49
+
50
+ const StyledBabyGrowthLegend = styled.div `
2
51
  display: flex;
3
52
  justify-content: center;
4
53
  gap: 16px;
5
- `,K=p.div`
54
+ `;
55
+ const StyledLegend = styled.div `
6
56
  display: flex;
7
57
  justify-content: center;
8
58
  align-items: center;
@@ -12,16 +62,24 @@ import{D as e,M as t}from"./index-f9514788.js";export{B as BabyGrowthGender}from
12
62
  height: 8px;
13
63
  border-radius: 50%;
14
64
  }
15
- `,q=({legends:e,locale:t})=>r.createElement(U,null,e.map(((e,o)=>r.createElement(K,{key:o},r.createElement("span",{className:"dot",style:{backgroundColor:e.color}}),r.createElement(C,{size:"n1",color:m.colors.gray800},t===n.Indonesia?e["z-score"]:e.text))))),J=p.div`
65
+ `;
66
+
67
+ const BabyGrowthLegend = ({ legends, locale, }) => {
68
+ return (React__default.createElement(StyledBabyGrowthLegend, null, legends.map((legend, index) => (React__default.createElement(StyledLegend, { key: index },
69
+ React__default.createElement("span", { className: "dot", style: { backgroundColor: legend.color } }),
70
+ React__default.createElement(Text, { size: "n1", color: theme.colors.gray800 }, locale === LOCALE.Indonesia ? legend['z-score'] : legend.text))))));
71
+ };
72
+
73
+ const StyledBabyGrowthSwitch = styled.div `
16
74
  display: flex;
17
75
  justify-content: center;
18
76
  .switch {
19
- border: 1px solid ${m.colors.neutral200};
77
+ border: 1px solid ${theme.colors.neutral200};
20
78
  padding: 6px 12px;
21
79
  font-weight: 600;
22
80
  font-size: 11px;
23
81
  &:nth-child(2n + 1) {
24
- border-radius: ${m.borderRadius} 0px 0px 6px;
82
+ border-radius: ${theme.borderRadius} 0px 0px 6px;
25
83
  border-right: none;
26
84
  }
27
85
  &:nth-child(2n) {
@@ -29,7 +87,20 @@ import{D as e,M as t}from"./index-f9514788.js";export{B as BabyGrowthGender}from
29
87
  border-left: none;
30
88
  }
31
89
  }
32
- `;var Q;!function(e){e[e.WHO=0]="WHO",e[e.CDC=1]="CDC"}(Q||(Q={}));const X=({switchType:e,onTypeChange:t})=>r.createElement(J,null,r.createElement(h,{className:"switch",size:"sm",color:e===Q.WHO?"primary":"ghost",onClick:()=>t(Q.WHO)},"WHO"),r.createElement(h,{className:"switch",size:"sm",isDisabled:!0,color:e===Q.CDC?"primary":"ghost",onClick:()=>t(Q.CDC)},"CDC")),ee=p.div`
90
+ `;
91
+
92
+ var BabyGrowthSwitchChart;
93
+ (function (BabyGrowthSwitchChart) {
94
+ BabyGrowthSwitchChart[BabyGrowthSwitchChart["WHO"] = 0] = "WHO";
95
+ BabyGrowthSwitchChart[BabyGrowthSwitchChart["CDC"] = 1] = "CDC";
96
+ })(BabyGrowthSwitchChart || (BabyGrowthSwitchChart = {}));
97
+ const BabyGrowthSwitch = ({ switchType, onTypeChange, }) => {
98
+ return (React__default.createElement(StyledBabyGrowthSwitch, null,
99
+ React__default.createElement(Button, { className: "switch", size: "sm", color: switchType === BabyGrowthSwitchChart.WHO ? 'primary' : 'ghost', onClick: () => onTypeChange(BabyGrowthSwitchChart.WHO) }, "WHO"),
100
+ React__default.createElement(Button, { className: "switch", size: "sm", isDisabled: true, color: switchType === BabyGrowthSwitchChart.CDC ? 'primary' : 'ghost', onClick: () => onTypeChange(BabyGrowthSwitchChart.CDC) }, "CDC")));
101
+ };
102
+
103
+ const StyledBabyGrowthTooltip = styled.div `
33
104
  /* position: absolute; */
34
105
  display: flex;
35
106
  align-items: stretch;
@@ -50,15 +121,68 @@ import{D as e,M as t}from"./index-f9514788.js";export{B as BabyGrowthGender}from
50
121
  display: flex;
51
122
  align-items: center;
52
123
  padding: 4px 8px;
53
- background: ${m.colors.yellow600};
124
+ background: ${theme.colors.yellow600};
54
125
  border-radius: 3px;
55
126
  }
56
127
  .tooltip {
57
128
  text-align: left;
58
129
  }
59
- `,te=[{name:["3rd","-3SD","97th","3SD"],color:m.colors.red600},{name:["15rd","-2SD","85th","2SD"],color:m.colors.yellow600},{name:["50th","0Median"],color:m.colors.green600}],re={"3rd":"-3SD","15th":"-2SD","50th":"Median","85th":"2SD","97th":"3SD"},oe=e=>{var t;const{payload:l,locale:a,active:i}=e,c=null===(t=null==l?void 0:l[0])||void 0===t?void 0:t.payload;if(!(c&&c.history&&c.name&&c.risk&&c.toolTipLabel&&i))return null;const s=o((()=>{var e;return null===(e=te.find((e=>e.name.includes(c.risk||""))))||void 0===e?void 0:e.color}),[c.risk]),d=o((()=>a===n.Indonesia?c.risk?re[c.risk]:"":c.risk),[a,c.risk]);return r.createElement(ee,null,r.createElement("div",{className:"risk",style:{backgroundColor:s}},r.createElement(C,{size:"s3",color:m.colors.white,weight:"semiBold"},d)),r.createElement("div",{className:"tooltip"},(c.toolTipLabel||[]).map(((e,t)=>r.createElement(C,{key:t,size:"n1",color:m.colors.gray600},e)))))},le="300ms",ae=p.div`
60
- background: ${m.colors.gray50};
61
- border-radius: ${m.borderRadius};
130
+ `;
131
+
132
+ const LABELS_COLOR = [
133
+ {
134
+ name: ['3rd', '-3SD', '97th', '3SD'],
135
+ color: theme.colors.red600,
136
+ },
137
+ {
138
+ name: ['15rd', '-2SD', '85th', '2SD'],
139
+ color: theme.colors.yellow600,
140
+ },
141
+ {
142
+ name: ['50th', '0Median'],
143
+ color: theme.colors.green600,
144
+ },
145
+ ];
146
+ const MAPPED_RISK_LEVEL = {
147
+ '3rd': '-3SD',
148
+ '15th': '-2SD',
149
+ '50th': 'Median',
150
+ '85th': '2SD',
151
+ '97th': '3SD',
152
+ };
153
+ const BabyGrowthTooltip = (props) => {
154
+ var _a;
155
+ const { payload, locale, active } = props;
156
+ const currentPayload = (_a = payload === null || payload === void 0 ? void 0 : payload[0]) === null || _a === void 0 ? void 0 : _a.payload;
157
+ if (!currentPayload ||
158
+ !currentPayload.history ||
159
+ !currentPayload.name ||
160
+ !currentPayload.risk ||
161
+ !currentPayload.toolTipLabel ||
162
+ !active)
163
+ return null;
164
+ const riskColor = useMemo(() => {
165
+ var _a;
166
+ return (_a = LABELS_COLOR.find((per) => per.name.includes(currentPayload.risk || ''))) === null || _a === void 0 ? void 0 : _a.color;
167
+ }, [currentPayload.risk]);
168
+ const mappedRiskLevel = useMemo(() => {
169
+ if (locale === LOCALE.Indonesia) {
170
+ return currentPayload.risk ? MAPPED_RISK_LEVEL[currentPayload.risk] : '';
171
+ }
172
+ return currentPayload.risk;
173
+ }, [locale, currentPayload.risk]);
174
+ return (React__default.createElement(StyledBabyGrowthTooltip, null,
175
+ React__default.createElement("div", { className: "risk", style: {
176
+ backgroundColor: riskColor,
177
+ } },
178
+ React__default.createElement(Text, { size: "s3", color: theme.colors.white, weight: "semiBold" }, mappedRiskLevel)),
179
+ React__default.createElement("div", { className: "tooltip" }, (currentPayload.toolTipLabel || []).map((tooltip, index) => (React__default.createElement(Text, { key: index, size: "n1", color: theme.colors.gray600 }, tooltip))))));
180
+ };
181
+
182
+ const ACTIVE_DURATION$1 = '300ms';
183
+ const StyledBabyGrowthProfileRadio = styled.div `
184
+ background: ${theme.colors.gray50};
185
+ border-radius: ${theme.borderRadius};
62
186
  padding: 16px 20px;
63
187
  display: flex;
64
188
  justify-content: space-between;
@@ -97,22 +221,22 @@ import{D as e,M as t}from"./index-f9514788.js";export{B as BabyGrowthGender}from
97
221
  width: 22px;
98
222
  height: 22px;
99
223
  background: #ffffff;
100
- border: 2px solid ${m.colors.gray600};
224
+ border: 2px solid ${theme.colors.gray600};
101
225
  border-radius: 50%;
102
- transition: all ${le} ease-in-out;
226
+ transition: all ${ACTIVE_DURATION$1} ease-in-out;
103
227
  &.active {
104
- border-color: ${m.colors.primaryBase};
228
+ border-color: ${theme.colors.primaryBase};
105
229
  &::before {
106
230
  content: '';
107
231
  position: absolute;
108
232
  inset: 0;
109
233
  width: 100%;
110
234
  height: 100%;
111
- background-color: ${m.colors.primaryBase};
235
+ background-color: ${theme.colors.primaryBase};
112
236
  background-clip: content-box;
113
237
  padding: 5px;
114
238
  border-radius: 50%;
115
- animation: fadeIn ${le} ease-in-out forwards;
239
+ animation: fadeIn ${ACTIVE_DURATION$1} ease-in-out forwards;
116
240
  }
117
241
  }
118
242
  }
@@ -126,7 +250,7 @@ import{D as e,M as t}from"./index-f9514788.js";export{B as BabyGrowthGender}from
126
250
  background: #ffffff;
127
251
  border: 1.3px solid #9495a0;
128
252
  border-radius: 10px;
129
- transition: all ${le} ease-in-out;
253
+ transition: all ${ACTIVE_DURATION$1} ease-in-out;
130
254
  &.active {
131
255
  border: none;
132
256
  &::before {
@@ -137,15 +261,30 @@ import{D as e,M as t}from"./index-f9514788.js";export{B as BabyGrowthGender}from
137
261
  height: 100%;
138
262
  padding: 0;
139
263
  border-radius: 10px;
140
- animation: fadeIn ${le} ease-in-out forwards;
264
+ animation: fadeIn ${ACTIVE_DURATION$1} ease-in-out forwards;
141
265
  }
142
266
  }
143
267
  }
144
- `,ie=({profile:e,onChange:t,isActive:o,siteType:l})=>{const a="marryBaby"===l;return r.createElement(ae,{onClick:()=>t(String(e.id)),"data-is-mb":a,"data-isActive":a&&o},a?r.createElement(r.Fragment,null,r.createElement("div",{className:"baby"},r.createElement(L,{type:"bodytext-1",color:m.colors.gray800},e.name)),r.createElement("div",{className:o?"radio active":"radio"},o&&r.createElement(u,{size:26}))):r.createElement(r.Fragment,null,r.createElement("div",{className:"baby"},"male"===e.gender?r.createElement(y,{size:24}):r.createElement(f,{size:24}),r.createElement(C,{size:"p2",color:m.colors.gray800},e.name)),r.createElement("div",{className:o?"radio active":"radio"})))},ne=p.div`
268
+ `;
269
+
270
+ const BabyGrowthProfileRadio = ({ profile, onChange, isActive, siteType, }) => {
271
+ const isMarryBaby = siteType === 'marryBaby';
272
+ return (React__default.createElement(StyledBabyGrowthProfileRadio, { onClick: () => onChange(String(profile.id)), "data-is-mb": isMarryBaby, "data-isActive": isMarryBaby && isActive }, !isMarryBaby ? (React__default.createElement(React__default.Fragment, null,
273
+ React__default.createElement("div", { className: "baby" },
274
+ //@ts-ignore
275
+ profile.gender === 'male' ? React__default.createElement(Boy, { size: 24 }) : React__default.createElement(Girl, { size: 24 }),
276
+ React__default.createElement(Text, { size: "p2", color: theme.colors.gray800 }, profile.name)),
277
+ React__default.createElement("div", { className: isActive ? 'radio active' : 'radio' }))) : (React__default.createElement(React__default.Fragment, null,
278
+ React__default.createElement("div", { className: "baby" },
279
+ React__default.createElement(MarryBabyText, { type: "bodytext-1", color: theme.colors.gray800 }, profile.name)),
280
+ React__default.createElement("div", { className: isActive ? 'radio active' : 'radio' }, isActive && React__default.createElement(CheckActiveMB, { size: 26 }))))));
281
+ };
282
+
283
+ const StyledBabyGrowthRecord = styled.div `
145
284
  cursor: pointer;
146
285
  position: relative;
147
286
  padding: 20px 2px;
148
- border-bottom: 1px solid ${m.colors.gray100};
287
+ border-bottom: 1px solid ${theme.colors.gray100};
149
288
  .time {
150
289
  display: flex;
151
290
  align-items: center;
@@ -168,11 +307,13 @@ import{D as e,M as t}from"./index-f9514788.js";export{B as BabyGrowthGender}from
168
307
  align-items: center;
169
308
  gap: 8px;
170
309
  }
171
- `,ce=p.div`
310
+ `;
311
+
312
+ const StyledMenu = styled.div `
172
313
  min-width: 212px;
173
- width: ${e=>e.width+"px"};
314
+ width: ${(props) => props.width + 'px'};
174
315
  background-color: #ffffff;
175
- border-radius: ${m.borderRadius};
316
+ border-radius: ${theme.borderRadius};
176
317
  overflow: hidden;
177
318
  filter: drop-shadow(0px 10px 16px rgba(0, 0, 0, 0.04))
178
319
  drop-shadow(0px 2px 8px rgba(0, 0, 0, 0.04))
@@ -180,7 +321,8 @@ import{D as e,M as t}from"./index-f9514788.js";export{B as BabyGrowthGender}from
180
321
  ul {
181
322
  list-style: none;
182
323
  }
183
- `,se=p.li`
324
+ `;
325
+ const StyledMenuItem = styled.li `
184
326
  background-color: inherit;
185
327
  display: flex;
186
328
  align-items: center;
@@ -190,22 +332,39 @@ import{D as e,M as t}from"./index-f9514788.js";export{B as BabyGrowthGender}from
190
332
  cursor: pointer;
191
333
  transition: background-color 200ms ease-in-out;
192
334
  &:hover {
193
- background-color: ${m.colors.neutral50};
335
+ background-color: ${theme.colors.neutral50};
194
336
  }
195
337
  .icon {
196
338
  width: 16px;
197
339
  height: 16px;
198
340
  }
199
- `,de=e=>{var{children:t,width:o=300}=e,l=z(e,["children","width"]);return r.createElement(ce,Object.assign({},l,{width:o}),r.createElement("ul",null,t))};de.Item=e=>{var{icon:t,children:o}=e,l=z(e,["icon","children"]);return r.createElement(se,Object.assign({},l),t&&r.createElement("div",{className:"icon"},t),o)};const me=p.div`
341
+ `;
342
+
343
+ const MenuItem = (_a) => {
344
+ var { icon, children } = _a, rest = __rest(_a, ["icon", "children"]);
345
+ return (React__default.createElement(StyledMenuItem, Object.assign({}, rest),
346
+ icon && React__default.createElement("div", { className: "icon" }, icon),
347
+ children));
348
+ };
349
+
350
+ const MenuWrapper = (_a) => {
351
+ var { children, width = 300 } = _a, rest = __rest(_a, ["children", "width"]);
352
+ return (React__default.createElement(StyledMenu, Object.assign({}, rest, { width: width }),
353
+ React__default.createElement("ul", null, children)));
354
+ };
355
+ const Menu = MenuWrapper;
356
+ Menu.Item = MenuItem;
357
+
358
+ const StyledChildCard = styled.div `
200
359
  /* Auto layout */
201
360
  position: relative;
202
361
  display: flex;
203
362
  align-items: flex-start;
204
363
  padding: 16px;
205
364
  gap: 16px;
206
- background: ${m.colors.white};
207
- border: 1px solid ${m.colors.gray100};
208
- border-radius: ${m.borderRadius};
365
+ background: ${theme.colors.white};
366
+ border: 1px solid ${theme.colors.gray100};
367
+ border-radius: ${theme.borderRadius};
209
368
 
210
369
  &[data-theme='marryBaby'] {
211
370
  border: 1px solid #f3f3f3;
@@ -234,12 +393,14 @@ import{D as e,M as t}from"./index-f9514788.js";export{B as BabyGrowthGender}from
234
393
  }
235
394
  }
236
395
  }
237
- `,Ce=p.div`
396
+ `;
397
+ const StyledOption = styled.div `
238
398
  position: absolute;
239
399
  top: 18px;
240
400
  right: 16px;
241
401
  cursor: pointer;
242
- `,pe=p(de)`
402
+ `;
403
+ const StyledChildCardMenu = styled(Menu) `
243
404
  position: absolute;
244
405
  right: 0;
245
406
  z-index: 1;
@@ -251,11 +412,176 @@ import{D as e,M as t}from"./index-f9514788.js";export{B as BabyGrowthGender}from
251
412
  gap: 16px;
252
413
  align-items: center;
253
414
  :hover {
254
- background-color: ${m.mbColors.tonePink};
415
+ background-color: ${theme.mbColors.tonePink};
255
416
  }
256
417
  }
257
418
  }
258
- `,he=({name:e,onClose:t,onEdit:o,onSwitch:a,onAdd:i,onRemove:n,siteType:c})=>{const{t:s}=j(),d="marryBaby"===c,C=l();return N(C,t),r.createElement("div",{ref:C},d?r.createElement(pe,{width:250,"data-site":c},r.createElement(de.Item,{onClick:o,icon:r.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.1512 4.29354C13.7553 3.68946 14.5746 3.3501 15.4289 3.3501C17.2078 3.3501 18.65 4.79223 18.65 6.5712C18.65 7.42549 18.3106 8.24479 17.7065 8.84886L16.9689 9.58652C16.9626 9.59307 16.9562 9.5995 16.9496 9.6058L13.7897 12.7657C12.0036 14.5518 9.76564 15.8189 7.31513 16.4315L6.55809 16.6208C5.84616 16.7988 5.20129 16.1539 5.37927 15.442L5.56853 14.6849C6.18116 12.2344 7.44827 9.99647 9.23437 8.21036L12.3943 5.0504C12.4006 5.04388 12.407 5.0375 12.4135 5.03127L13.1512 4.29354ZM12.2667 7.01649L10.1536 9.1296C8.53411 10.7491 7.3852 12.7783 6.82972 15.0002L6.77301 15.227L6.99983 15.1703C9.22177 14.6149 11.251 13.4659 12.8705 11.8464L14.9836 9.73334C14.3478 9.52953 13.7639 9.13743 13.3133 8.68678C12.8626 8.23613 12.4705 7.65226 12.2667 7.01649ZM16.1622 8.55469C15.5984 8.66895 14.8552 8.39025 14.2325 7.76754C13.6098 7.14483 13.3311 6.40165 13.4454 5.83784L14.0704 5.21278C14.4307 4.8525 14.9193 4.6501 15.4289 4.6501C16.4899 4.6501 17.35 5.5102 17.35 6.5712C17.35 7.08071 17.1476 7.56935 16.7873 7.92962L16.1622 8.55469Z",fill:"#3E3F58"}),r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.34998 20.0001C4.34998 19.6411 4.64099 19.3501 4.99998 19.3501H19C19.359 19.3501 19.65 19.6411 19.65 20.0001C19.65 20.3591 19.359 20.6501 19 20.6501H4.99998C4.64099 20.6501 4.34998 20.3591 4.34998 20.0001Z",fill:"#3E3F58"}))},r.createElement(L,{type:"bodytext-2",color:m.mbColors.gray},s("childCard.menu.edit",{name:e}))),r.createElement(de.Item,{onClick:a,icon:r.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.5951 4.50716C12.8673 4.19494 13.3411 4.16249 13.6533 4.43468L19.4929 9.52559C19.7286 9.73108 19.812 10.0613 19.7023 10.3541C19.5926 10.6469 19.3127 10.8409 19 10.8409H5C4.58579 10.8409 4.25 10.5051 4.25 10.0909C4.25 9.67671 4.58579 9.34092 5 9.34092H16.9984L12.6676 5.56534C12.3554 5.29315 12.3229 4.81938 12.5951 4.50716Z",fill:"#3E3F58"}),r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.4049 19.4928C11.1327 19.8051 10.6589 19.8375 10.3467 19.5653L4.50715 14.4744C4.27144 14.2689 4.18796 13.9387 4.29768 13.6459C4.40741 13.3531 4.68729 13.1591 5 13.1591L19 13.1591C19.4142 13.1591 19.75 13.4949 19.75 13.9091C19.75 14.3233 19.4142 14.6591 19 14.6591L7.00161 14.6591L11.3324 18.4347C11.6446 18.7069 11.6771 19.1806 11.4049 19.4928Z",fill:"#3E3F58"}))},r.createElement(L,{type:"bodytext-2",color:m.mbColors.gray},s("childCard.menu.switch"))),r.createElement(de.Item,{onClick:i,icon:r.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},r.createElement("path",{d:"M11.8123 22.1251C8.24982 22.1251 5.15607 19.837 4.10577 16.4444C4.01202 16.1441 4.18048 15.8248 4.48077 15.731C4.78107 15.6373 5.1004 15.8057 5.19415 16.106C6.09357 19.0313 8.75665 20.981 11.8123 20.981C14.868 20.981 17.5311 19.0123 18.4305 16.106C18.5242 15.8057 18.8436 15.6373 19.1439 15.731C19.4442 15.8248 19.6126 16.1441 19.5189 16.4444C18.4686 19.837 15.3748 22.1251 11.8123 22.1251Z",fill:"#3E3F58"}),r.createElement("path",{d:"M4.3125 16.875C2.75684 16.875 1.5 15.6182 1.5 14.0625C1.5 12.5244 2.73779 11.2881 4.25684 11.25C4.96875 9.33691 6.41309 7.72559 8.26904 6.82471C8.55029 6.69434 8.88721 6.80566 9.01904 7.08691C9.14941 7.36816 9.03809 7.70654 8.75684 7.83691C7.05029 8.66309 5.73779 10.1997 5.19434 12C5.11816 12.2622 4.85596 12.4307 4.57471 12.394C4.46191 12.375 4.38721 12.375 4.3125 12.375C3.375 12.375 2.625 13.125 2.625 14.0625C2.625 15 3.375 15.75 4.3125 15.75C4.38721 15.75 4.46191 15.75 4.55566 15.731C4.85596 15.6943 5.15625 15.8994 5.19434 16.1997C5.23096 16.5 5.02441 16.8003 4.72559 16.8369C4.57471 16.856 4.44434 16.875 4.3125 16.875ZM19.3125 16.875C19.1807 16.875 19.0503 16.856 18.8994 16.8369C18.6006 16.8003 18.375 16.5 18.4307 16.1997C18.4688 15.8994 18.769 15.6753 19.0693 15.731C19.1631 15.75 19.2378 15.75 19.3125 15.75C20.25 15.75 21 15 21 14.0625C21 13.125 20.25 12.375 19.3125 12.375C19.2378 12.375 19.1631 12.375 19.0693 12.394C18.7881 12.4307 18.5244 12.2622 18.4497 12C17.5503 9.07471 14.8872 7.125 11.8315 7.125C10.856 7.125 9.39404 6.46875 9.39404 4.6875C9.39404 4.36816 9.63721 4.125 9.95654 4.125C10.2744 4.125 10.519 4.36816 10.519 4.6875C10.519 5.96191 11.6997 6 11.8315 6C15.2432 6 18.2256 8.10059 19.3872 11.25C20.9062 11.2881 22.144 12.5244 22.144 14.0625C22.125 15.6182 20.8682 16.875 19.3125 16.875Z",fill:"#3E3F58"}),r.createElement("circle",{cx:"11.8125",cy:"17.8125",r:"0.9375",fill:"#3E3F58"}),r.createElement("path",{d:"M16.0938 13.1694C15.897 13.0702 15.6596 13.1484 15.5592 13.343C15.5561 13.3488 15.2533 13.9219 14.7187 13.9219C14.1841 13.9219 13.8814 13.3488 13.8799 13.3453C13.781 13.148 13.5421 13.069 13.3452 13.1671C13.1483 13.2655 13.0689 13.5048 13.167 13.7017C13.188 13.7434 13.6876 14.7188 14.7187 14.7188C15.7499 14.7188 16.2495 13.7433 16.2705 13.7017C16.3685 13.5056 16.2892 13.2686 16.0938 13.1694Z",fill:"#3E3F58"}),r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.1344 13.0892L16.1346 13.0893C16.3737 13.2108 16.4714 13.5014 16.351 13.7421L16.3509 13.7425C16.3382 13.7675 16.2027 14.0317 15.9361 14.2906C15.6691 14.55 15.2651 14.809 14.7188 14.809C14.1725 14.809 13.7685 14.55 13.5014 14.2906C13.2349 14.0317 13.0994 13.7675 13.0867 13.7424L13.0865 13.742L13.0865 13.742C12.9664 13.5009 13.0635 13.2075 13.305 13.0867L13.3051 13.0867C13.5463 12.9666 13.8392 13.0633 13.9604 13.3051L13.9625 13.3094L13.9625 13.3094C13.9628 13.31 13.9635 13.3112 13.9646 13.313C13.9776 13.3355 14.0457 13.4532 14.1633 13.5717C14.2976 13.707 14.4853 13.8321 14.7188 13.8321C14.9522 13.8321 15.1399 13.707 15.2744 13.5714C15.3411 13.5042 15.3925 13.4366 15.4274 13.3854C15.4448 13.3598 15.458 13.3386 15.4667 13.3238C15.4711 13.3164 15.4744 13.3106 15.4766 13.3068L15.4797 13.3011C15.6028 13.0634 15.8935 12.9678 16.1344 13.0892ZM13.8799 13.3455C13.8814 13.349 14.1841 13.9221 14.7188 13.9221C15.2517 13.9221 15.5543 13.3525 15.5592 13.3432L15.5592 13.3431C15.6597 13.1486 15.897 13.0704 16.0939 13.1696C16.2892 13.2688 16.3686 13.5058 16.2705 13.7019C16.2495 13.7435 15.7499 14.719 14.7188 14.719C13.6877 14.719 13.1881 13.7435 13.167 13.7019C13.069 13.505 13.1484 13.2657 13.3453 13.1672C13.5422 13.0692 13.7811 13.1482 13.8799 13.3455Z",fill:"#3E3F58"}),r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.5094 13.0893L10.5091 13.0892C10.2682 12.9678 9.97759 13.0634 9.85442 13.3011L9.85131 13.3068C9.84916 13.3106 9.84588 13.3164 9.8415 13.3238C9.83273 13.3386 9.81958 13.3598 9.80218 13.3854C9.76727 13.4366 9.71585 13.5042 9.6492 13.5714C9.51469 13.707 9.327 13.8321 9.09355 13.8321C8.86008 13.8321 8.67238 13.707 8.53807 13.5717C8.47152 13.5047 8.42025 13.4372 8.38558 13.3864C8.35996 13.3488 8.34478 13.3223 8.33921 13.3126L8.33682 13.3085L8.33512 13.3051C8.21396 13.0633 7.92186 12.9667 7.68003 13.0866L7.67978 13.0867C7.43828 13.2075 7.34115 13.5009 7.46124 13.742L7.46147 13.7424C7.47414 13.7675 7.60963 14.0317 7.87619 14.2906C8.14326 14.55 8.54722 14.809 9.09355 14.809C9.63987 14.809 10.0438 14.55 10.3109 14.2906C10.5775 14.0317 10.713 13.7675 10.7256 13.7425L10.7258 13.7421C10.8462 13.5014 10.7484 13.2108 10.5094 13.0893ZM9.93396 13.3432L9.934 13.3431C10.0062 13.2033 10.1491 13.1235 10.297 13.1266C10.1492 13.1236 10.0064 13.2033 9.93422 13.3431L9.93419 13.3432C9.92921 13.3526 9.62669 13.9221 9.09377 13.9221C9.08851 13.9221 9.08327 13.9221 9.07806 13.922C9.0832 13.9221 9.08836 13.9221 9.09355 13.9221C9.62649 13.9221 9.92901 13.3525 9.93396 13.3432ZM9.06061 14.7186C8.0518 14.6982 7.56261 13.7431 7.5418 13.7019C7.44375 13.505 7.52313 13.2657 7.72002 13.1672C7.7803 13.1373 7.84434 13.1239 7.90705 13.1253C7.84441 13.1239 7.78045 13.1374 7.72024 13.1672C7.52335 13.2657 7.44397 13.505 7.54203 13.7019C7.56283 13.7431 8.05195 14.6981 9.06061 14.7186Z",fill:"#3E3F58"}),r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19.8 2.3999C19.9144 2.3999 20.0071 2.49262 20.0071 2.60698V3.99282H21.3929C21.5073 3.99282 21.6 4.08554 21.6 4.1999C21.6 4.31427 21.5073 4.40698 21.3929 4.40698H20.0071V5.79282C20.0071 5.90719 19.9144 5.9999 19.8 5.9999C19.6856 5.9999 19.5929 5.90719 19.5929 5.79282V4.40698H18.2071C18.0927 4.40698 18 4.31427 18 4.1999C18 4.08554 18.0927 3.99282 18.2071 3.99282H19.5929V2.60698C19.5929 2.49262 19.6856 2.3999 19.8 2.3999Z",fill:"#3E3F58"}),r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19.2929 2.60718C19.2929 2.32712 19.5199 2.1001 19.8 2.1001C20.08 2.1001 20.307 2.32712 20.307 2.60718V3.69302H21.3929C21.6729 3.69302 21.9 3.92005 21.9 4.2001C21.9 4.48015 21.6729 4.70718 21.3929 4.70718H20.307V5.79302C20.307 6.07307 20.08 6.3001 19.8 6.3001C19.5199 6.3001 19.2929 6.07307 19.2929 5.79302V4.70718H18.207C17.927 4.70718 17.7 4.48015 17.7 4.2001C17.7 3.92005 17.927 3.69302 18.207 3.69302H19.2929V2.60718Z",fill:"#3E3F58"}))},r.createElement(L,{type:"bodytext-2",color:m.mbColors.gray},s("childCard.menu.add"))),r.createElement(de.Item,{onClick:n,icon:r.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.6094 2.61873C11.0508 2.44123 11.5233 2.3501 12 2.3501C12.4767 2.3501 12.9491 2.44123 13.3905 2.61873C13.832 2.79625 14.2343 3.05692 14.5741 3.38678C14.9139 3.71668 15.1845 4.10937 15.3695 4.54295C15.4685 4.77508 15.5419 5.01633 15.5887 5.2626H16.9895C18.4406 5.2626 19.65 6.40947 19.65 7.86442V8.01078C19.65 8.89985 19.1605 9.68128 18.4237 10.1037C18.884 10.8243 19.2029 11.64 19.3437 12.5139L19.3813 12.7472C19.5681 13.9067 19.4973 15.0915 19.1738 16.2218L19.0562 16.6329C18.3288 19.1745 16.1665 21.0699 13.5141 21.522C12.5123 21.6928 11.4876 21.6928 10.4858 21.522C7.83339 21.0699 5.67109 19.1745 4.94377 16.6329L4.82611 16.2218C4.50265 15.0915 4.43185 13.9067 4.61867 12.7472L4.65627 12.5139C4.79707 11.64 5.11599 10.8243 5.57625 10.1037C4.83944 9.68128 4.34998 8.89985 4.34998 8.01078V7.86442C4.34998 6.40947 5.55937 5.2626 7.01043 5.2626H8.41124C8.45805 5.01633 8.53144 4.77508 8.63048 4.54295C8.81547 4.10937 9.08608 3.71668 9.42589 3.38678C9.76565 3.05692 10.168 2.79625 10.6094 2.61873ZM9.74907 5.2626L14.2509 5.2626C14.2288 5.19175 14.2031 5.12183 14.1738 5.05312C14.0572 4.77998 13.8859 4.53053 13.6685 4.31952C13.4511 4.10848 13.192 3.94008 12.9055 3.82486C12.619 3.70963 12.3112 3.6501 12 3.6501C11.6887 3.6501 11.381 3.70963 11.0944 3.82486C10.8079 3.94008 10.5488 4.10848 10.3314 4.31952C10.1141 4.53053 9.94273 4.77998 9.8262 5.05311C9.79688 5.12183 9.77115 5.19175 9.74907 5.2626ZM7.01043 6.5626C6.2408 6.5626 5.64998 7.16345 5.64998 7.86442V8.01078C5.64998 8.53694 6.03782 9.01141 6.60612 9.11574C6.65027 9.12384 6.69443 9.13185 6.73861 9.13975C6.73934 9.13988 6.74007 9.14001 6.7408 9.14014C6.9188 9.17198 7.09704 9.20218 7.27549 9.23076C10.5824 9.76029 13.9603 9.73008 17.2592 9.14014C17.2597 9.14004 17.2603 9.13994 17.2608 9.13984C17.3052 9.13191 17.3495 9.12388 17.3938 9.11574C17.9621 9.01141 18.35 8.53694 18.35 8.01078V7.86442C18.35 7.16345 17.7591 6.5626 16.9895 6.5626H7.01043ZM6.89224 10.4854C6.40537 11.1346 6.07257 11.8962 5.93971 12.7207L5.90212 12.954C5.74569 13.9249 5.80489 14.917 6.07594 15.8642L6.19359 16.2753C6.77869 18.3198 8.5277 19.8695 10.7042 20.2405C11.5615 20.3866 12.4385 20.3866 13.2957 20.2405C15.4722 19.8695 17.2212 18.3198 17.8063 16.2753L17.924 15.8642C18.1951 14.917 18.2543 13.9249 18.0978 12.954L18.0602 12.7207C17.9274 11.8962 17.5946 11.1346 17.1077 10.4854C17.0485 10.4953 16.9893 10.5049 16.93 10.5144C13.6061 11.0467 10.2137 11.037 6.89224 10.4854ZM9.34998 16.5918V12.7084C9.34998 12.3495 9.64099 12.0584 9.99998 12.0584C10.359 12.0584 10.65 12.3495 10.65 12.7084V16.5918C10.65 16.9508 10.359 17.2418 9.99998 17.2418C9.64099 17.2418 9.34998 16.9508 9.34998 16.5918ZM14 12.0584C14.359 12.0584 14.65 12.3495 14.65 12.7084V16.5918C14.65 16.9508 14.359 17.2418 14 17.2418C13.641 17.2418 13.35 16.9508 13.35 16.5918V12.7084C13.35 12.3495 13.641 12.0584 14 12.0584Z",fill:"#3E3F58"}))},r.createElement(L,{type:"bodytext-2",color:m.mbColors.red},s("childCard.menu.remove",{name:e})))):r.createElement(pe,{width:250},r.createElement(de.Item,{onClick:o,icon:r.createElement("svg",{width:"16",height:"17",viewBox:"0 0 16 17",fill:"none"},r.createElement("path",{d:"M12.7812 1.83301C12.2987 1.83301 11.8162 2.01676 11.4479 2.38509L10.6667 3.16634L13.3333 5.83301L14.1146 5.05176C14.8506 4.31576 14.8506 3.12176 14.1146 2.38509C13.7463 2.01676 13.2638 1.83301 12.7812 1.83301ZM9.66667 4.16634L2 11.833V14.4997H4.66667L12.3333 6.83301L9.66667 4.16634Z",fill:"#595959"}))},r.createElement(Z,{size:"p2",color:m.colors.gray800},s("childCard.menu.edit",{name:e}))),r.createElement(de.Item,{onClick:a,icon:r.createElement("svg",{width:"16",height:"17",viewBox:"0 0 16 17",fill:"none"},r.createElement("path",{d:"M8 2.5C4.9478 2.5 2.4204 4.79359 2.05078 7.7513C2.03763 7.83928 2.04222 7.929 2.06428 8.01518C2.08634 8.10136 2.12542 8.18226 2.17922 8.2531C2.23303 8.32394 2.30046 8.3833 2.37756 8.42768C2.45465 8.47206 2.53985 8.50057 2.62813 8.51152C2.71642 8.52247 2.806 8.51564 2.8916 8.49143C2.9772 8.46723 3.05709 8.42614 3.12657 8.37059C3.19605 8.31503 3.2537 8.24613 3.29615 8.16795C3.33859 8.08978 3.36496 8.00389 3.3737 7.91536C3.66141 5.61307 5.61354 3.83333 8 3.83333C9.34288 3.83333 10.5434 4.39987 11.3919 5.30339L10.0977 6.59766C9.96766 6.72766 9.96766 6.93901 10.0977 7.06901C10.1623 7.13434 10.248 7.16667 10.3333 7.16667H13.3333C13.5101 7.16667 13.6797 7.09643 13.8047 6.9714C13.9298 6.84638 14 6.67681 14 6.5V3.5C14 3.41467 13.967 3.32966 13.9023 3.26432C13.7723 3.13432 13.561 3.13432 13.431 3.26432L12.3359 4.35938C11.2437 3.21415 9.7037 2.5 8 2.5ZM13.2943 8.49089C13.1292 8.48959 12.9695 8.54959 12.8461 8.65928C12.7227 8.76896 12.6444 8.92053 12.6263 9.08464C12.3386 11.3869 10.3865 13.1667 8 13.1667C6.65713 13.1667 5.45884 12.5994 4.60938 11.6953L5.90234 10.4023C6.03234 10.2723 6.03234 10.061 5.90234 9.93099C5.83768 9.86566 5.752 9.83333 5.66667 9.83333H2.66667C2.48986 9.83333 2.32029 9.90357 2.19526 10.0286C2.07024 10.1536 2 10.3232 2 10.5V13.5C2 13.5853 2.03299 13.6703 2.09766 13.7357C2.22766 13.8657 2.43901 13.8657 2.56901 13.7357L3.66536 12.6393C4.75711 13.7836 6.29696 14.5 8 14.5C11.0522 14.5 13.5796 12.2064 13.9492 9.2487C13.9622 9.1548 13.955 9.05922 13.928 8.96833C13.9011 8.87745 13.8552 8.79334 13.7932 8.72163C13.7312 8.64991 13.6546 8.59224 13.5686 8.55245C13.4826 8.51266 13.3891 8.49167 13.2943 8.49089Z",fill:"#595959"}))},r.createElement(Z,{size:"p2",color:m.colors.gray800},s("childCard.menu.switch"))),r.createElement(de.Item,{onClick:i,icon:r.createElement("svg",{width:"16",height:"17",viewBox:"0 0 16 17",fill:"none"},r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.9564 8.56545C15.7745 7.46727 14.9673 6.57273 13.9127 6.26C13.5273 5.44545 12.9818 4.73273 12.32 4.14364C11.1709 3.11818 9.65818 2.5 8 2.5C6.34182 2.5 4.82909 3.11818 3.68 4.14364C3.01091 4.73273 2.46545 5.45273 2.08727 6.26C1.03273 6.57273 0.225455 7.46 0.0436364 8.56545C0.0145455 8.71818 0 8.87818 0 9.04545C0 9.21273 0.0145455 9.37273 0.0436364 9.52545C0.225455 10.6236 1.03273 11.5182 2.08727 11.8309C2.46545 12.6382 3.01091 13.3509 3.66545 13.9327C4.81455 14.9655 6.33455 15.5909 8 15.5909C9.66545 15.5909 11.1855 14.9655 12.3418 13.9327C12.9964 13.3509 13.5418 12.6309 13.92 11.8309C14.9673 11.5182 15.7745 10.6309 15.9564 9.52545C15.9855 9.37273 16 9.21273 16 9.04545C16 8.87818 15.9855 8.71818 15.9564 8.56545ZM6.18182 7.04545C5.67974 7.04545 5.27273 7.45247 5.27273 7.95455C5.27273 8.45662 5.67974 8.86364 6.18182 8.86364C6.6839 8.86364 7.09091 8.45662 7.09091 7.95455C7.09091 7.45247 6.6839 7.04545 6.18182 7.04545ZM9.81818 7.04545C9.3161 7.04545 8.90909 7.45247 8.90909 7.95455C8.90909 8.45662 9.3161 8.86364 9.81818 8.86364C10.3203 8.86364 10.7273 8.45662 10.7273 7.95455C10.7273 7.45247 10.3203 7.04545 9.81818 7.04545ZM5.01821 10.5H10.9818C11.1128 10.5 11.2073 10.6455 11.1491 10.7691C10.5455 11.9109 9.36002 12.6818 8.00002 12.6818C6.64002 12.6818 5.45457 11.9109 4.85093 10.7691C4.78548 10.6455 4.88002 10.5 5.01821 10.5ZM12.9538 10.4875C12.9991 10.4938 13.0435 10.5 13.0909 10.5C13.8909 10.5 14.5455 9.84545 14.5455 9.04545C14.5455 8.24545 13.8909 7.59091 13.0909 7.59091C13.0435 7.59091 12.9991 7.5971 12.9538 7.60343C12.9297 7.60679 12.9053 7.6102 12.88 7.61273C12.7345 7.12545 12.5236 6.67455 12.2545 6.26C11.3455 4.87091 9.78182 3.95455 8 3.95455C6.21818 3.95455 4.65455 4.87091 3.74545 6.26C3.47636 6.67455 3.26545 7.12545 3.12 7.61273C3.09473 7.6102 3.07033 7.60679 3.0462 7.60343C3.0009 7.5971 2.95654 7.59091 2.90909 7.59091C2.10909 7.59091 1.45455 8.24545 1.45455 9.04545C1.45455 9.84545 2.10909 10.5 2.90909 10.5C2.95654 10.5 3.0009 10.4938 3.0462 10.4875C3.07033 10.4841 3.09473 10.4807 3.12 10.4782C3.26545 10.9655 3.47636 11.4164 3.74545 11.8309C4.65455 13.22 6.21818 14.1364 8 14.1364C9.78182 14.1364 11.3455 13.22 12.2545 11.8309C12.5236 11.4164 12.7345 10.9655 12.88 10.4782C12.9053 10.4807 12.9297 10.4841 12.9538 10.4875Z",fill:"#595959"}),r.createElement("path",{d:"M2.5 2V1C2.5 0.725 2.275 0.5 2 0.5C1.725 0.5 1.5 0.725 1.5 1V2H0.5C0.225 2 0 2.225 0 2.5C0 2.775 0.225 3 0.5 3H1.5V4C1.5 4.275 1.725 4.5 2 4.5C2.275 4.5 2.5 4.275 2.5 4V3H3.5C3.775 3 4 2.775 4 2.5C4 2.225 3.775 2 3.5 2H2.5Z",fill:"#595959"}))},r.createElement(Z,{size:"p2",color:m.colors.gray800},s("childCard.menu.add"))),r.createElement(de.Item,{onClick:n,icon:r.createElement("svg",{width:"16",height:"17",viewBox:"0 0 16 17",fill:"none"},r.createElement("path",{d:"M6.66699 1.83301L6.00033 2.49967H3.33366C2.93366 2.49967 2.66699 2.76634 2.66699 3.16634C2.66699 3.56634 2.93366 3.83301 3.33366 3.83301H4.66699H11.3337H12.667C13.067 3.83301 13.3337 3.56634 13.3337 3.16634C13.3337 2.76634 13.067 2.49967 12.667 2.49967H10.0003L9.33366 1.83301H6.66699ZM3.33366 5.16634V13.833C3.33366 14.5663 3.93366 15.1663 4.66699 15.1663H11.3337C12.067 15.1663 12.667 14.5663 12.667 13.833V5.16634H3.33366ZM6.00033 6.49967C6.40033 6.49967 6.66699 6.76634 6.66699 7.16634V13.1663C6.66699 13.5663 6.40033 13.833 6.00033 13.833C5.60033 13.833 5.33366 13.5663 5.33366 13.1663V7.16634C5.33366 6.76634 5.60033 6.49967 6.00033 6.49967ZM10.0003 6.49967C10.4003 6.49967 10.667 6.76634 10.667 7.16634V13.1663C10.667 13.5663 10.4003 13.833 10.0003 13.833C9.60033 13.833 9.33366 13.5663 9.33366 13.1663V7.16634C9.33366 6.76634 9.60033 6.49967 10.0003 6.49967Z",fill:"#F44D2C"}))},r.createElement(Z,{size:"p2",color:m.colors.red600},s("childCard.menu.remove",{name:e})))))},ye=(e,t)=>{if(e)if(e.year<1){if(0===e.month)switch(e.week){case 0:case 1:return t("childCard.age.oneWeek");default:return t("childCard.age.week",{weeks:e.week})}if(1===e.month)return t("childCard.age.oneMonth");if(e.month>1)return t("childCard.age.months",{month:e.month})}else{if(1===e.year)return t("childCard.age.oneYear");if(0===e.month)return t("childCard.age.yearNoMonth",{year:e.year});if(e.month>0)return t("childCard.age.yearMonth",{year:e.year,month:e.month})}},fe=({name:e,gender:t,age:o,isLoggedIn:l=!1,showMenu:i=!1,onEdit:n,onSwitch:s,onAdd:d,onRemove:p,className:h,siteType:u})=>{const{t:k}=j(),[M,H]=a(!1),B="marryBaby"===u;return r.createElement(me,{className:h,"data-theme":u},B?r.createElement(r.Fragment,null,r.createElement("div",{"data-testid":"gender"},t===c.Boy?r.createElement(g,{"data-testid":"boy",id:"boy",size:48}):r.createElement(b,{"data-testid":"girl",id:"girl",size:48})),r.createElement("div",{className:"information"},r.createElement(L,{type:"subtitle-1",color:m.mbColors.dark},R(e)||k("childCard.noName")),r.createElement("div",{className:"detail"},r.createElement("div",null,t===c.Boy?r.createElement(E,{size:14}):r.createElement(x,{size:14}),r.createElement(L,{type:"bodytext-2",color:m.mbColors.gray},k(t===c.Girl?"childCard.girl":"childCard.boy"))),r.createElement("div",null,r.createElement(v,{size:20}),o&&r.createElement(L,{type:"bodytext-2",color:m.mbColors.gray},ye(o,k)))))):r.createElement(r.Fragment,null,r.createElement("div",{"data-testid":"gender"},t===c.Boy?r.createElement(y,{"data-testid":"boy",id:"boy"}):r.createElement(f,{"data-testid":"girl",id:"girl"})),r.createElement("div",{className:"information"},r.createElement(S,{tag:"h5",fontWeight:"bold",color:m.colors.gray800},R(e)||k("childCard.noName")),r.createElement("div",{className:"detail"},r.createElement("div",null,t===c.Boy?r.createElement(E,null):r.createElement(x,null),r.createElement(C,{size:"p3",color:m.colors.gray800,style:{textTransform:"capitalize"}},k(t===c.Girl?"childCard.girl":"childCard.boy"))),r.createElement("div",null,r.createElement(w,{size:16}),o&&r.createElement(C,{size:"p3",color:m.colors.gray800},ye(o,k)))))),i&&l&&r.createElement(Ce,null,r.createElement(I,{onClick:()=>H((e=>!e))}),M&&r.createElement(he,{siteType:u,name:e,onClose:()=>H(!1),onEdit:()=>{H(!1),n()},onSwitch:()=>{H(!1),s()},onAdd:()=>{H(!1),d()},onRemove:()=>{H(!1),p()}})))},ue=(e,t)=>e&&"NaN"!==e?e+" "+(t||""):"--",ge=({measurementDate:e=new Date,weight:t,height:o,head:l,onEdit:a,birthday:i,dateFormat:n="DD/MM/YYYY",siteType:c})=>{const{t:s}=j(),d="marryBaby"===c;return r.createElement(ne,{onClick:a},r.createElement("div",{className:"time"},d?r.createElement("svg",{width:"14",height:"16",viewBox:"0 0 14 16",fill:"none"},r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.05257 0.762695C4.32181 0.762695 4.54007 0.980956 4.54007 1.2502V1.53122C4.60167 1.51424 4.66369 1.49824 4.72611 1.48326C6.2217 1.12422 7.77833 1.12422 9.27392 1.48326C9.33634 1.49824 9.39836 1.51424 9.45995 1.53122V1.2502C9.45995 0.980956 9.67821 0.762695 9.94745 0.762695C10.2167 0.762695 10.435 0.980956 10.435 1.2502V1.89841C12.0148 2.66392 13.1931 4.12969 13.6002 5.90621C13.9499 7.43197 13.9499 9.01971 13.6002 10.5455C13.0985 12.7345 11.426 14.4518 9.27392 14.9684C7.77833 15.3275 6.2217 15.3275 4.72611 14.9684C2.57399 14.4518 0.901521 12.7345 0.399789 10.5455C0.0500868 9.01971 0.0500868 7.43197 0.399789 5.90621C0.806964 4.12969 1.98518 2.66392 3.56507 1.89841V1.2502C3.56507 0.980956 3.78333 0.762695 4.05257 0.762695ZM3.56507 3.00938C2.88276 3.4302 2.31064 4.01866 1.90229 4.72184H12.0977C11.6894 4.01865 11.1173 3.4302 10.435 3.00938V3.1355C10.435 3.40474 10.2167 3.623 9.94745 3.623C9.67821 3.623 9.45995 3.40474 9.45995 3.1355V2.55069C9.32464 2.5049 9.18667 2.46501 9.04633 2.43132C7.70034 2.1082 6.29969 2.1082 4.9537 2.43132C4.81336 2.46501 4.67538 2.5049 4.54007 2.55069V3.1355C4.54007 3.40474 4.32181 3.623 4.05257 3.623C3.78333 3.623 3.56507 3.40474 3.56507 3.1355V3.00938ZM12.5322 5.69684H1.46788C1.42273 5.83649 1.38339 5.97898 1.35015 6.12403C1.0333 7.50643 1.0333 8.94525 1.35015 10.3277C1.77137 12.1654 3.17113 13.5924 4.9537 14.0204C6.29969 14.3435 7.70034 14.3435 9.04632 14.0204C10.8289 13.5924 12.2287 12.1654 12.6499 10.3276C12.9667 8.94525 12.9667 7.50643 12.6499 6.12403C12.6166 5.97898 12.5773 5.83649 12.5322 5.69684Z",fill:"#3E3F58"})):r.createElement("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none"},r.createElement("path",{d:"M5.64421 0.666016C5.27621 0.666016 4.97754 0.964682 4.97754 1.33268V1.99935H4.31087C3.57754 1.99935 2.97754 2.59935 2.97754 3.33268V12.666C2.97754 13.3993 3.57754 13.9993 4.31087 13.9993H13.6442C14.3775 13.9993 14.9775 13.3993 14.9775 12.666V3.33268C14.9775 2.59935 14.3775 1.99935 13.6442 1.99935H12.9775V1.33268C12.9775 0.964682 12.6789 0.666016 12.3109 0.666016C11.9429 0.666016 11.6442 0.964682 11.6442 1.33268V1.99935H6.31087V1.33268C6.31087 0.964682 6.01221 0.666016 5.64421 0.666016ZM4.31087 5.33268H13.6442V11.9993C13.6442 12.3673 13.3455 12.666 12.9775 12.666H4.97754C4.60954 12.666 4.31087 12.3673 4.31087 11.9993V5.33268Z",fill:"#8C8C8C"})),r.createElement(C,{size:"p3",color:m.colors.gray600},`${k(e).format(n)} (${ye(M(i,e),s)})`),d?r.createElement("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none"},r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.15119 1.29354C8.75527 0.689463 9.57457 0.350098 10.4289 0.350098C12.2078 0.350098 13.65 1.79223 13.65 3.5712C13.65 4.42549 13.3106 5.24479 12.7065 5.84886L11.9689 6.58652C11.9626 6.59307 11.9562 6.5995 11.9496 6.6058L8.78969 9.76569C7.00359 11.5518 4.76564 12.8189 2.31513 13.4315L1.55809 13.6208C0.846159 13.7988 0.201291 13.1539 0.379274 12.442L0.568533 11.6849C1.18116 9.23441 2.44827 6.99647 4.23437 5.21036L7.39433 2.0504C7.40058 2.04388 7.40696 2.0375 7.41346 2.03127L8.15119 1.29354ZM7.26672 4.01649L5.15361 6.1296C3.53411 7.7491 2.3852 9.77829 1.82972 12.0002L1.77301 12.227L1.99983 12.1703C4.22177 11.6149 6.25096 10.4659 7.87045 8.84645L9.98356 6.73334C9.34779 6.52953 8.76392 6.13743 8.31328 5.68678C7.86263 5.23613 7.47052 4.65226 7.26672 4.01649ZM11.1622 5.55469C10.5984 5.66895 9.85522 5.39025 9.23251 4.76754C8.6098 4.14483 8.3311 3.40165 8.44536 2.83784L9.07043 2.21278C9.43071 1.8525 9.91935 1.6501 10.4289 1.6501C11.4899 1.6501 12.35 2.5102 12.35 3.5712C12.35 4.08071 12.1476 4.56935 11.7873 4.92962L11.1622 5.55469Z",fill:"#3E3F58"})):r.createElement("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",className:"edit-button"},r.createElement("path",{d:"M12.7721 1.33398C12.2911 1.33398 11.8102 1.51773 11.443 1.88607L10.6643 2.66732L13.3224 5.33398L14.1011 4.55273C14.8348 3.81673 14.8348 2.62273 14.1011 1.88607C13.734 1.51773 13.253 1.33398 12.7721 1.33398ZM9.66748 3.66732L2.02539 11.334V14.0007H4.68351L12.3256 6.33398L9.66748 3.66732Z",fill:"#8C8C8C"}))),r.createElement("div",{className:"record"},r.createElement("div",{className:"record-item"},d?r.createElement(L,{type:"bodytext-2",color:m.mbColors.gray},s("babyGrowth.weight")):r.createElement("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none"},r.createElement("path",{d:"M8.44401 9.86602C8.44401 9.57146 8.68279 9.33268 8.97734 9.33268C9.2719 9.33268 9.51068 9.57146 9.51068 9.86602V11.466C9.51068 11.7606 9.2719 11.9993 8.97734 11.9993C8.68279 11.9993 8.44401 11.7606 8.44401 11.466V9.86602Z",fill:"#8C8C8C"}),r.createElement("path",{d:"M8.17595 3.05319C7.96767 3.26147 7.96767 3.59916 8.17595 3.80744L8.83592 4.46741C9.0442 4.67569 9.38189 4.67569 9.59017 4.46741C9.79844 4.25913 9.79844 3.92144 9.59017 3.71316L8.9302 3.05319C8.72192 2.84491 8.38423 2.84492 8.17595 3.05319Z",fill:"#8C8C8C"}),r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.2941 3.66435C12.1261 1.98071 10.7053 0.666016 8.97738 0.666016C7.2495 0.666016 5.82868 1.9807 5.66067 3.66434L3.67054 3.86336C2.92499 3.93791 2.38724 4.61197 2.48017 5.35545L3.498 13.4981C3.5814 14.1653 4.1486 14.666 4.82104 14.666H13.1336C13.806 14.666 14.3732 14.1653 14.4567 13.4981L15.4745 5.35545C15.5674 4.61197 15.0297 3.93791 14.2841 3.86336L12.2941 3.66435ZM12.1607 4.991C11.7386 6.34768 10.473 7.33268 8.97738 7.33268C7.48176 7.33268 6.2162 6.34767 5.79403 4.99099L3.80321 5.19007L4.82104 13.3327L13.1336 13.3327L14.1514 5.19007L12.1607 4.991ZM10.9774 3.99935C10.9774 5.10392 10.0819 5.99935 8.97738 5.99935C7.87281 5.99935 6.97738 5.10392 6.97738 3.99935C6.97738 2.89478 7.87281 1.99935 8.97738 1.99935C10.0819 1.99935 10.9774 2.89478 10.9774 3.99935Z",fill:"#8C8C8C"})),r.createElement(C,{size:"s3",color:m.colors.gray800,weight:"semiBold"},ue(H(t),"kg"))),r.createElement("div",{className:"record-item"},d?r.createElement(L,{type:"bodytext-2",color:m.mbColors.gray},s("babyGrowth.height")):r.createElement("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none"},r.createElement("g",{clipPath:"url(#clip0_855_82991)"},r.createElement("path",{d:"M12.6055 13.9993L12.6055 1.99935C12.6055 1.26602 12.0055 0.666016 11.2721 0.666016L5.9388 0.666015C5.20547 0.666015 4.60547 1.26602 4.60547 1.99935L4.60547 13.9993C4.60547 14.7327 5.20547 15.3327 5.9388 15.3327L11.2721 15.3327C12.0055 15.3327 12.6055 14.7327 12.6055 13.9993ZM5.9388 13.9993L5.9388 1.99935L11.2721 1.99935L11.2721 3.33268L8.60547 3.33268L8.60547 4.66602L11.2721 4.66602L11.2721 5.99935L8.60547 5.99935L8.60547 7.33268L11.2721 7.33268L11.2721 8.66602L8.60547 8.66601L8.60547 9.99935L11.2721 9.99935L11.2721 11.3327L8.60547 11.3327L8.60547 12.666L11.2721 12.666L11.2721 13.9993L5.9388 13.9993Z",fill:"#8C8C8C"})),r.createElement("defs",null,r.createElement("clipPath",{id:"clip0_855_82991"},r.createElement("rect",{width:"16",height:"16",fill:"white",transform:"translate(16.6055) rotate(90)"})))),r.createElement(C,{size:"s3",color:m.colors.gray800,weight:"semiBold"},ue(H(o),"cm"))),r.createElement("div",{className:"record-item"},d?r.createElement(L,{type:"bodytext-2",color:m.mbColors.gray},s("babyGrowth.head")):r.createElement("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none"},r.createElement("g",{clipPath:"url(#clip0_855_82994)"},r.createElement("path",{d:"M9.90072 7.83268C10.361 7.83268 10.734 7.45959 10.734 6.99935C10.734 6.53911 10.361 6.16602 9.90072 6.16602C9.44048 6.16602 9.06738 6.53911 9.06738 6.99935C9.06738 7.45959 9.44048 7.83268 9.90072 7.83268Z",fill:"#8C8C8C"}),r.createElement("path",{d:"M6.56771 7.83268C7.02795 7.83268 7.40104 7.45959 7.40104 6.99935C7.40104 6.53911 7.02795 6.16602 6.56771 6.16602C6.10747 6.16602 5.73438 6.53911 5.73438 6.99935C5.73438 7.45959 6.10747 7.83268 6.56771 7.83268Z",fill:"#8C8C8C"}),r.createElement("path",{d:"M15.528 7.56C15.3614 6.55333 14.6214 5.73333 13.6547 5.44667C13.3014 4.7 12.8014 4.04667 12.1947 3.50667C11.1414 2.56667 9.7547 2 8.2347 2C6.7147 2 5.32803 2.56667 4.2747 3.50667C3.66137 4.04667 3.16137 4.70667 2.8147 5.44667C1.84803 5.73333 1.10803 6.54667 0.941367 7.56C0.9147 7.7 0.901367 7.84667 0.901367 8C0.901367 8.15333 0.9147 8.3 0.941367 8.44C1.10803 9.44667 1.84803 10.2667 2.8147 10.5533C3.16137 11.2933 3.66137 11.9467 4.26137 12.48C5.3147 13.4267 6.70803 14 8.2347 14C9.76137 14 11.1547 13.4267 12.2147 12.48C12.8147 11.9467 13.3147 11.2867 13.6614 10.5533C14.6214 10.2667 15.3614 9.45333 15.528 8.44C15.5547 8.3 15.568 8.15333 15.568 8C15.568 7.84667 15.5547 7.7 15.528 7.56ZM12.9014 9.33333C12.8347 9.33333 12.7747 9.32 12.708 9.31333C12.5747 9.76 12.3814 10.1733 12.1347 10.5533C11.3014 11.8267 9.86803 12.6667 8.2347 12.6667C6.60137 12.6667 5.16803 11.8267 4.3347 10.5533C4.08803 10.1733 3.8947 9.76 3.76137 9.31333C3.6947 9.32 3.6347 9.33333 3.56803 9.33333C2.8347 9.33333 2.2347 8.73333 2.2347 8C2.2347 7.26667 2.8347 6.66667 3.56803 6.66667C3.6347 6.66667 3.6947 6.68 3.76137 6.68667C3.8947 6.24 4.08803 5.82667 4.3347 5.44667C5.16803 4.17333 6.60137 3.33333 8.2347 3.33333C9.86803 3.33333 11.3014 4.17333 12.1347 5.44667C12.3814 5.82667 12.5747 6.24 12.708 6.68667C12.7747 6.68 12.8347 6.66667 12.9014 6.66667C13.6347 6.66667 14.2347 7.26667 14.2347 8C14.2347 8.73333 13.6347 9.33333 12.9014 9.33333ZM8.2347 11.3333C9.5747 11.3333 10.728 10.5133 11.2347 9.33333H5.2347C5.74137 10.5133 6.8947 11.3333 8.2347 11.3333Z",fill:"#8C8C8C"})),r.createElement("defs",null,r.createElement("clipPath",{id:"clip0_855_82994"},r.createElement("rect",{width:"16",height:"16",fill:"white",transform:"translate(0.234375)"})))),r.createElement(C,{size:"s3",color:m.colors.gray800,weight:"semiBold"},ue(H(l),"cm")))))},be=p(e)`
419
+ `;
420
+
421
+ const ChildCardMenu = ({ name, onClose, onEdit, onSwitch, onAdd, onRemove, siteType, }) => {
422
+ const { t } = useTranslations();
423
+ const isMarryBaby = siteType === 'marryBaby';
424
+ const ref = useRef();
425
+ useOutsideClick(ref, onClose);
426
+ return (React__default.createElement("div", { ref: ref }, isMarryBaby ? (React__default.createElement(StyledChildCardMenu, { width: 250, "data-site": siteType },
427
+ React__default.createElement(Menu.Item, { onClick: onEdit, icon: React__default.createElement("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none" },
428
+ React__default.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M13.1512 4.29354C13.7553 3.68946 14.5746 3.3501 15.4289 3.3501C17.2078 3.3501 18.65 4.79223 18.65 6.5712C18.65 7.42549 18.3106 8.24479 17.7065 8.84886L16.9689 9.58652C16.9626 9.59307 16.9562 9.5995 16.9496 9.6058L13.7897 12.7657C12.0036 14.5518 9.76564 15.8189 7.31513 16.4315L6.55809 16.6208C5.84616 16.7988 5.20129 16.1539 5.37927 15.442L5.56853 14.6849C6.18116 12.2344 7.44827 9.99647 9.23437 8.21036L12.3943 5.0504C12.4006 5.04388 12.407 5.0375 12.4135 5.03127L13.1512 4.29354ZM12.2667 7.01649L10.1536 9.1296C8.53411 10.7491 7.3852 12.7783 6.82972 15.0002L6.77301 15.227L6.99983 15.1703C9.22177 14.6149 11.251 13.4659 12.8705 11.8464L14.9836 9.73334C14.3478 9.52953 13.7639 9.13743 13.3133 8.68678C12.8626 8.23613 12.4705 7.65226 12.2667 7.01649ZM16.1622 8.55469C15.5984 8.66895 14.8552 8.39025 14.2325 7.76754C13.6098 7.14483 13.3311 6.40165 13.4454 5.83784L14.0704 5.21278C14.4307 4.8525 14.9193 4.6501 15.4289 4.6501C16.4899 4.6501 17.35 5.5102 17.35 6.5712C17.35 7.08071 17.1476 7.56935 16.7873 7.92962L16.1622 8.55469Z", fill: "#3E3F58" }),
429
+ React__default.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M4.34998 20.0001C4.34998 19.6411 4.64099 19.3501 4.99998 19.3501H19C19.359 19.3501 19.65 19.6411 19.65 20.0001C19.65 20.3591 19.359 20.6501 19 20.6501H4.99998C4.64099 20.6501 4.34998 20.3591 4.34998 20.0001Z", fill: "#3E3F58" })) },
430
+ React__default.createElement(MarryBabyText, { type: "bodytext-2", color: theme.mbColors.gray }, t('childCard.menu.edit', { name }))),
431
+ React__default.createElement(Menu.Item, { onClick: onSwitch, icon: React__default.createElement("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none" },
432
+ React__default.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M12.5951 4.50716C12.8673 4.19494 13.3411 4.16249 13.6533 4.43468L19.4929 9.52559C19.7286 9.73108 19.812 10.0613 19.7023 10.3541C19.5926 10.6469 19.3127 10.8409 19 10.8409H5C4.58579 10.8409 4.25 10.5051 4.25 10.0909C4.25 9.67671 4.58579 9.34092 5 9.34092H16.9984L12.6676 5.56534C12.3554 5.29315 12.3229 4.81938 12.5951 4.50716Z", fill: "#3E3F58" }),
433
+ React__default.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M11.4049 19.4928C11.1327 19.8051 10.6589 19.8375 10.3467 19.5653L4.50715 14.4744C4.27144 14.2689 4.18796 13.9387 4.29768 13.6459C4.40741 13.3531 4.68729 13.1591 5 13.1591L19 13.1591C19.4142 13.1591 19.75 13.4949 19.75 13.9091C19.75 14.3233 19.4142 14.6591 19 14.6591L7.00161 14.6591L11.3324 18.4347C11.6446 18.7069 11.6771 19.1806 11.4049 19.4928Z", fill: "#3E3F58" })) },
434
+ React__default.createElement(MarryBabyText, { type: "bodytext-2", color: theme.mbColors.gray }, t('childCard.menu.switch'))),
435
+ React__default.createElement(Menu.Item, { onClick: onAdd, icon: React__default.createElement("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none" },
436
+ React__default.createElement("path", { d: "M11.8123 22.1251C8.24982 22.1251 5.15607 19.837 4.10577 16.4444C4.01202 16.1441 4.18048 15.8248 4.48077 15.731C4.78107 15.6373 5.1004 15.8057 5.19415 16.106C6.09357 19.0313 8.75665 20.981 11.8123 20.981C14.868 20.981 17.5311 19.0123 18.4305 16.106C18.5242 15.8057 18.8436 15.6373 19.1439 15.731C19.4442 15.8248 19.6126 16.1441 19.5189 16.4444C18.4686 19.837 15.3748 22.1251 11.8123 22.1251Z", fill: "#3E3F58" }),
437
+ React__default.createElement("path", { d: "M4.3125 16.875C2.75684 16.875 1.5 15.6182 1.5 14.0625C1.5 12.5244 2.73779 11.2881 4.25684 11.25C4.96875 9.33691 6.41309 7.72559 8.26904 6.82471C8.55029 6.69434 8.88721 6.80566 9.01904 7.08691C9.14941 7.36816 9.03809 7.70654 8.75684 7.83691C7.05029 8.66309 5.73779 10.1997 5.19434 12C5.11816 12.2622 4.85596 12.4307 4.57471 12.394C4.46191 12.375 4.38721 12.375 4.3125 12.375C3.375 12.375 2.625 13.125 2.625 14.0625C2.625 15 3.375 15.75 4.3125 15.75C4.38721 15.75 4.46191 15.75 4.55566 15.731C4.85596 15.6943 5.15625 15.8994 5.19434 16.1997C5.23096 16.5 5.02441 16.8003 4.72559 16.8369C4.57471 16.856 4.44434 16.875 4.3125 16.875ZM19.3125 16.875C19.1807 16.875 19.0503 16.856 18.8994 16.8369C18.6006 16.8003 18.375 16.5 18.4307 16.1997C18.4688 15.8994 18.769 15.6753 19.0693 15.731C19.1631 15.75 19.2378 15.75 19.3125 15.75C20.25 15.75 21 15 21 14.0625C21 13.125 20.25 12.375 19.3125 12.375C19.2378 12.375 19.1631 12.375 19.0693 12.394C18.7881 12.4307 18.5244 12.2622 18.4497 12C17.5503 9.07471 14.8872 7.125 11.8315 7.125C10.856 7.125 9.39404 6.46875 9.39404 4.6875C9.39404 4.36816 9.63721 4.125 9.95654 4.125C10.2744 4.125 10.519 4.36816 10.519 4.6875C10.519 5.96191 11.6997 6 11.8315 6C15.2432 6 18.2256 8.10059 19.3872 11.25C20.9062 11.2881 22.144 12.5244 22.144 14.0625C22.125 15.6182 20.8682 16.875 19.3125 16.875Z", fill: "#3E3F58" }),
438
+ React__default.createElement("circle", { cx: "11.8125", cy: "17.8125", r: "0.9375", fill: "#3E3F58" }),
439
+ React__default.createElement("path", { d: "M16.0938 13.1694C15.897 13.0702 15.6596 13.1484 15.5592 13.343C15.5561 13.3488 15.2533 13.9219 14.7187 13.9219C14.1841 13.9219 13.8814 13.3488 13.8799 13.3453C13.781 13.148 13.5421 13.069 13.3452 13.1671C13.1483 13.2655 13.0689 13.5048 13.167 13.7017C13.188 13.7434 13.6876 14.7188 14.7187 14.7188C15.7499 14.7188 16.2495 13.7433 16.2705 13.7017C16.3685 13.5056 16.2892 13.2686 16.0938 13.1694Z", fill: "#3E3F58" }),
440
+ React__default.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M16.1344 13.0892L16.1346 13.0893C16.3737 13.2108 16.4714 13.5014 16.351 13.7421L16.3509 13.7425C16.3382 13.7675 16.2027 14.0317 15.9361 14.2906C15.6691 14.55 15.2651 14.809 14.7188 14.809C14.1725 14.809 13.7685 14.55 13.5014 14.2906C13.2349 14.0317 13.0994 13.7675 13.0867 13.7424L13.0865 13.742L13.0865 13.742C12.9664 13.5009 13.0635 13.2075 13.305 13.0867L13.3051 13.0867C13.5463 12.9666 13.8392 13.0633 13.9604 13.3051L13.9625 13.3094L13.9625 13.3094C13.9628 13.31 13.9635 13.3112 13.9646 13.313C13.9776 13.3355 14.0457 13.4532 14.1633 13.5717C14.2976 13.707 14.4853 13.8321 14.7188 13.8321C14.9522 13.8321 15.1399 13.707 15.2744 13.5714C15.3411 13.5042 15.3925 13.4366 15.4274 13.3854C15.4448 13.3598 15.458 13.3386 15.4667 13.3238C15.4711 13.3164 15.4744 13.3106 15.4766 13.3068L15.4797 13.3011C15.6028 13.0634 15.8935 12.9678 16.1344 13.0892ZM13.8799 13.3455C13.8814 13.349 14.1841 13.9221 14.7188 13.9221C15.2517 13.9221 15.5543 13.3525 15.5592 13.3432L15.5592 13.3431C15.6597 13.1486 15.897 13.0704 16.0939 13.1696C16.2892 13.2688 16.3686 13.5058 16.2705 13.7019C16.2495 13.7435 15.7499 14.719 14.7188 14.719C13.6877 14.719 13.1881 13.7435 13.167 13.7019C13.069 13.505 13.1484 13.2657 13.3453 13.1672C13.5422 13.0692 13.7811 13.1482 13.8799 13.3455Z", fill: "#3E3F58" }),
441
+ React__default.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M10.5094 13.0893L10.5091 13.0892C10.2682 12.9678 9.97759 13.0634 9.85442 13.3011L9.85131 13.3068C9.84916 13.3106 9.84588 13.3164 9.8415 13.3238C9.83273 13.3386 9.81958 13.3598 9.80218 13.3854C9.76727 13.4366 9.71585 13.5042 9.6492 13.5714C9.51469 13.707 9.327 13.8321 9.09355 13.8321C8.86008 13.8321 8.67238 13.707 8.53807 13.5717C8.47152 13.5047 8.42025 13.4372 8.38558 13.3864C8.35996 13.3488 8.34478 13.3223 8.33921 13.3126L8.33682 13.3085L8.33512 13.3051C8.21396 13.0633 7.92186 12.9667 7.68003 13.0866L7.67978 13.0867C7.43828 13.2075 7.34115 13.5009 7.46124 13.742L7.46147 13.7424C7.47414 13.7675 7.60963 14.0317 7.87619 14.2906C8.14326 14.55 8.54722 14.809 9.09355 14.809C9.63987 14.809 10.0438 14.55 10.3109 14.2906C10.5775 14.0317 10.713 13.7675 10.7256 13.7425L10.7258 13.7421C10.8462 13.5014 10.7484 13.2108 10.5094 13.0893ZM9.93396 13.3432L9.934 13.3431C10.0062 13.2033 10.1491 13.1235 10.297 13.1266C10.1492 13.1236 10.0064 13.2033 9.93422 13.3431L9.93419 13.3432C9.92921 13.3526 9.62669 13.9221 9.09377 13.9221C9.08851 13.9221 9.08327 13.9221 9.07806 13.922C9.0832 13.9221 9.08836 13.9221 9.09355 13.9221C9.62649 13.9221 9.92901 13.3525 9.93396 13.3432ZM9.06061 14.7186C8.0518 14.6982 7.56261 13.7431 7.5418 13.7019C7.44375 13.505 7.52313 13.2657 7.72002 13.1672C7.7803 13.1373 7.84434 13.1239 7.90705 13.1253C7.84441 13.1239 7.78045 13.1374 7.72024 13.1672C7.52335 13.2657 7.44397 13.505 7.54203 13.7019C7.56283 13.7431 8.05195 14.6981 9.06061 14.7186Z", fill: "#3E3F58" }),
442
+ React__default.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M19.8 2.3999C19.9144 2.3999 20.0071 2.49262 20.0071 2.60698V3.99282H21.3929C21.5073 3.99282 21.6 4.08554 21.6 4.1999C21.6 4.31427 21.5073 4.40698 21.3929 4.40698H20.0071V5.79282C20.0071 5.90719 19.9144 5.9999 19.8 5.9999C19.6856 5.9999 19.5929 5.90719 19.5929 5.79282V4.40698H18.2071C18.0927 4.40698 18 4.31427 18 4.1999C18 4.08554 18.0927 3.99282 18.2071 3.99282H19.5929V2.60698C19.5929 2.49262 19.6856 2.3999 19.8 2.3999Z", fill: "#3E3F58" }),
443
+ React__default.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M19.2929 2.60718C19.2929 2.32712 19.5199 2.1001 19.8 2.1001C20.08 2.1001 20.307 2.32712 20.307 2.60718V3.69302H21.3929C21.6729 3.69302 21.9 3.92005 21.9 4.2001C21.9 4.48015 21.6729 4.70718 21.3929 4.70718H20.307V5.79302C20.307 6.07307 20.08 6.3001 19.8 6.3001C19.5199 6.3001 19.2929 6.07307 19.2929 5.79302V4.70718H18.207C17.927 4.70718 17.7 4.48015 17.7 4.2001C17.7 3.92005 17.927 3.69302 18.207 3.69302H19.2929V2.60718Z", fill: "#3E3F58" })) },
444
+ React__default.createElement(MarryBabyText, { type: "bodytext-2", color: theme.mbColors.gray }, t('childCard.menu.add'))),
445
+ React__default.createElement(Menu.Item, { onClick: onRemove, icon: React__default.createElement("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none" },
446
+ React__default.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M10.6094 2.61873C11.0508 2.44123 11.5233 2.3501 12 2.3501C12.4767 2.3501 12.9491 2.44123 13.3905 2.61873C13.832 2.79625 14.2343 3.05692 14.5741 3.38678C14.9139 3.71668 15.1845 4.10937 15.3695 4.54295C15.4685 4.77508 15.5419 5.01633 15.5887 5.2626H16.9895C18.4406 5.2626 19.65 6.40947 19.65 7.86442V8.01078C19.65 8.89985 19.1605 9.68128 18.4237 10.1037C18.884 10.8243 19.2029 11.64 19.3437 12.5139L19.3813 12.7472C19.5681 13.9067 19.4973 15.0915 19.1738 16.2218L19.0562 16.6329C18.3288 19.1745 16.1665 21.0699 13.5141 21.522C12.5123 21.6928 11.4876 21.6928 10.4858 21.522C7.83339 21.0699 5.67109 19.1745 4.94377 16.6329L4.82611 16.2218C4.50265 15.0915 4.43185 13.9067 4.61867 12.7472L4.65627 12.5139C4.79707 11.64 5.11599 10.8243 5.57625 10.1037C4.83944 9.68128 4.34998 8.89985 4.34998 8.01078V7.86442C4.34998 6.40947 5.55937 5.2626 7.01043 5.2626H8.41124C8.45805 5.01633 8.53144 4.77508 8.63048 4.54295C8.81547 4.10937 9.08608 3.71668 9.42589 3.38678C9.76565 3.05692 10.168 2.79625 10.6094 2.61873ZM9.74907 5.2626L14.2509 5.2626C14.2288 5.19175 14.2031 5.12183 14.1738 5.05312C14.0572 4.77998 13.8859 4.53053 13.6685 4.31952C13.4511 4.10848 13.192 3.94008 12.9055 3.82486C12.619 3.70963 12.3112 3.6501 12 3.6501C11.6887 3.6501 11.381 3.70963 11.0944 3.82486C10.8079 3.94008 10.5488 4.10848 10.3314 4.31952C10.1141 4.53053 9.94273 4.77998 9.8262 5.05311C9.79688 5.12183 9.77115 5.19175 9.74907 5.2626ZM7.01043 6.5626C6.2408 6.5626 5.64998 7.16345 5.64998 7.86442V8.01078C5.64998 8.53694 6.03782 9.01141 6.60612 9.11574C6.65027 9.12384 6.69443 9.13185 6.73861 9.13975C6.73934 9.13988 6.74007 9.14001 6.7408 9.14014C6.9188 9.17198 7.09704 9.20218 7.27549 9.23076C10.5824 9.76029 13.9603 9.73008 17.2592 9.14014C17.2597 9.14004 17.2603 9.13994 17.2608 9.13984C17.3052 9.13191 17.3495 9.12388 17.3938 9.11574C17.9621 9.01141 18.35 8.53694 18.35 8.01078V7.86442C18.35 7.16345 17.7591 6.5626 16.9895 6.5626H7.01043ZM6.89224 10.4854C6.40537 11.1346 6.07257 11.8962 5.93971 12.7207L5.90212 12.954C5.74569 13.9249 5.80489 14.917 6.07594 15.8642L6.19359 16.2753C6.77869 18.3198 8.5277 19.8695 10.7042 20.2405C11.5615 20.3866 12.4385 20.3866 13.2957 20.2405C15.4722 19.8695 17.2212 18.3198 17.8063 16.2753L17.924 15.8642C18.1951 14.917 18.2543 13.9249 18.0978 12.954L18.0602 12.7207C17.9274 11.8962 17.5946 11.1346 17.1077 10.4854C17.0485 10.4953 16.9893 10.5049 16.93 10.5144C13.6061 11.0467 10.2137 11.037 6.89224 10.4854ZM9.34998 16.5918V12.7084C9.34998 12.3495 9.64099 12.0584 9.99998 12.0584C10.359 12.0584 10.65 12.3495 10.65 12.7084V16.5918C10.65 16.9508 10.359 17.2418 9.99998 17.2418C9.64099 17.2418 9.34998 16.9508 9.34998 16.5918ZM14 12.0584C14.359 12.0584 14.65 12.3495 14.65 12.7084V16.5918C14.65 16.9508 14.359 17.2418 14 17.2418C13.641 17.2418 13.35 16.9508 13.35 16.5918V12.7084C13.35 12.3495 13.641 12.0584 14 12.0584Z", fill: "#3E3F58" })) },
447
+ React__default.createElement(MarryBabyText, { type: "bodytext-2", color: theme.mbColors.red }, t('childCard.menu.remove', { name }))))) : (React__default.createElement(StyledChildCardMenu, { width: 250 },
448
+ React__default.createElement(Menu.Item, { onClick: onEdit, icon: React__default.createElement("svg", { width: "16", height: "17", viewBox: "0 0 16 17", fill: "none" },
449
+ React__default.createElement("path", { d: "M12.7812 1.83301C12.2987 1.83301 11.8162 2.01676 11.4479 2.38509L10.6667 3.16634L13.3333 5.83301L14.1146 5.05176C14.8506 4.31576 14.8506 3.12176 14.1146 2.38509C13.7463 2.01676 13.2638 1.83301 12.7812 1.83301ZM9.66667 4.16634L2 11.833V14.4997H4.66667L12.3333 6.83301L9.66667 4.16634Z", fill: "#595959" })) },
450
+ React__default.createElement(Text$1, { size: "p2", color: theme.colors.gray800 }, t('childCard.menu.edit', { name }))),
451
+ React__default.createElement(Menu.Item, { onClick: onSwitch, icon: React__default.createElement("svg", { width: "16", height: "17", viewBox: "0 0 16 17", fill: "none" },
452
+ React__default.createElement("path", { d: "M8 2.5C4.9478 2.5 2.4204 4.79359 2.05078 7.7513C2.03763 7.83928 2.04222 7.929 2.06428 8.01518C2.08634 8.10136 2.12542 8.18226 2.17922 8.2531C2.23303 8.32394 2.30046 8.3833 2.37756 8.42768C2.45465 8.47206 2.53985 8.50057 2.62813 8.51152C2.71642 8.52247 2.806 8.51564 2.8916 8.49143C2.9772 8.46723 3.05709 8.42614 3.12657 8.37059C3.19605 8.31503 3.2537 8.24613 3.29615 8.16795C3.33859 8.08978 3.36496 8.00389 3.3737 7.91536C3.66141 5.61307 5.61354 3.83333 8 3.83333C9.34288 3.83333 10.5434 4.39987 11.3919 5.30339L10.0977 6.59766C9.96766 6.72766 9.96766 6.93901 10.0977 7.06901C10.1623 7.13434 10.248 7.16667 10.3333 7.16667H13.3333C13.5101 7.16667 13.6797 7.09643 13.8047 6.9714C13.9298 6.84638 14 6.67681 14 6.5V3.5C14 3.41467 13.967 3.32966 13.9023 3.26432C13.7723 3.13432 13.561 3.13432 13.431 3.26432L12.3359 4.35938C11.2437 3.21415 9.7037 2.5 8 2.5ZM13.2943 8.49089C13.1292 8.48959 12.9695 8.54959 12.8461 8.65928C12.7227 8.76896 12.6444 8.92053 12.6263 9.08464C12.3386 11.3869 10.3865 13.1667 8 13.1667C6.65713 13.1667 5.45884 12.5994 4.60938 11.6953L5.90234 10.4023C6.03234 10.2723 6.03234 10.061 5.90234 9.93099C5.83768 9.86566 5.752 9.83333 5.66667 9.83333H2.66667C2.48986 9.83333 2.32029 9.90357 2.19526 10.0286C2.07024 10.1536 2 10.3232 2 10.5V13.5C2 13.5853 2.03299 13.6703 2.09766 13.7357C2.22766 13.8657 2.43901 13.8657 2.56901 13.7357L3.66536 12.6393C4.75711 13.7836 6.29696 14.5 8 14.5C11.0522 14.5 13.5796 12.2064 13.9492 9.2487C13.9622 9.1548 13.955 9.05922 13.928 8.96833C13.9011 8.87745 13.8552 8.79334 13.7932 8.72163C13.7312 8.64991 13.6546 8.59224 13.5686 8.55245C13.4826 8.51266 13.3891 8.49167 13.2943 8.49089Z", fill: "#595959" })) },
453
+ React__default.createElement(Text$1, { size: "p2", color: theme.colors.gray800 }, t('childCard.menu.switch'))),
454
+ React__default.createElement(Menu.Item, { onClick: onAdd, icon: React__default.createElement("svg", { width: "16", height: "17", viewBox: "0 0 16 17", fill: "none" },
455
+ React__default.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M15.9564 8.56545C15.7745 7.46727 14.9673 6.57273 13.9127 6.26C13.5273 5.44545 12.9818 4.73273 12.32 4.14364C11.1709 3.11818 9.65818 2.5 8 2.5C6.34182 2.5 4.82909 3.11818 3.68 4.14364C3.01091 4.73273 2.46545 5.45273 2.08727 6.26C1.03273 6.57273 0.225455 7.46 0.0436364 8.56545C0.0145455 8.71818 0 8.87818 0 9.04545C0 9.21273 0.0145455 9.37273 0.0436364 9.52545C0.225455 10.6236 1.03273 11.5182 2.08727 11.8309C2.46545 12.6382 3.01091 13.3509 3.66545 13.9327C4.81455 14.9655 6.33455 15.5909 8 15.5909C9.66545 15.5909 11.1855 14.9655 12.3418 13.9327C12.9964 13.3509 13.5418 12.6309 13.92 11.8309C14.9673 11.5182 15.7745 10.6309 15.9564 9.52545C15.9855 9.37273 16 9.21273 16 9.04545C16 8.87818 15.9855 8.71818 15.9564 8.56545ZM6.18182 7.04545C5.67974 7.04545 5.27273 7.45247 5.27273 7.95455C5.27273 8.45662 5.67974 8.86364 6.18182 8.86364C6.6839 8.86364 7.09091 8.45662 7.09091 7.95455C7.09091 7.45247 6.6839 7.04545 6.18182 7.04545ZM9.81818 7.04545C9.3161 7.04545 8.90909 7.45247 8.90909 7.95455C8.90909 8.45662 9.3161 8.86364 9.81818 8.86364C10.3203 8.86364 10.7273 8.45662 10.7273 7.95455C10.7273 7.45247 10.3203 7.04545 9.81818 7.04545ZM5.01821 10.5H10.9818C11.1128 10.5 11.2073 10.6455 11.1491 10.7691C10.5455 11.9109 9.36002 12.6818 8.00002 12.6818C6.64002 12.6818 5.45457 11.9109 4.85093 10.7691C4.78548 10.6455 4.88002 10.5 5.01821 10.5ZM12.9538 10.4875C12.9991 10.4938 13.0435 10.5 13.0909 10.5C13.8909 10.5 14.5455 9.84545 14.5455 9.04545C14.5455 8.24545 13.8909 7.59091 13.0909 7.59091C13.0435 7.59091 12.9991 7.5971 12.9538 7.60343C12.9297 7.60679 12.9053 7.6102 12.88 7.61273C12.7345 7.12545 12.5236 6.67455 12.2545 6.26C11.3455 4.87091 9.78182 3.95455 8 3.95455C6.21818 3.95455 4.65455 4.87091 3.74545 6.26C3.47636 6.67455 3.26545 7.12545 3.12 7.61273C3.09473 7.6102 3.07033 7.60679 3.0462 7.60343C3.0009 7.5971 2.95654 7.59091 2.90909 7.59091C2.10909 7.59091 1.45455 8.24545 1.45455 9.04545C1.45455 9.84545 2.10909 10.5 2.90909 10.5C2.95654 10.5 3.0009 10.4938 3.0462 10.4875C3.07033 10.4841 3.09473 10.4807 3.12 10.4782C3.26545 10.9655 3.47636 11.4164 3.74545 11.8309C4.65455 13.22 6.21818 14.1364 8 14.1364C9.78182 14.1364 11.3455 13.22 12.2545 11.8309C12.5236 11.4164 12.7345 10.9655 12.88 10.4782C12.9053 10.4807 12.9297 10.4841 12.9538 10.4875Z", fill: "#595959" }),
456
+ React__default.createElement("path", { d: "M2.5 2V1C2.5 0.725 2.275 0.5 2 0.5C1.725 0.5 1.5 0.725 1.5 1V2H0.5C0.225 2 0 2.225 0 2.5C0 2.775 0.225 3 0.5 3H1.5V4C1.5 4.275 1.725 4.5 2 4.5C2.275 4.5 2.5 4.275 2.5 4V3H3.5C3.775 3 4 2.775 4 2.5C4 2.225 3.775 2 3.5 2H2.5Z", fill: "#595959" })) },
457
+ React__default.createElement(Text$1, { size: "p2", color: theme.colors.gray800 }, t('childCard.menu.add'))),
458
+ React__default.createElement(Menu.Item, { onClick: onRemove, icon: React__default.createElement("svg", { width: "16", height: "17", viewBox: "0 0 16 17", fill: "none" },
459
+ React__default.createElement("path", { d: "M6.66699 1.83301L6.00033 2.49967H3.33366C2.93366 2.49967 2.66699 2.76634 2.66699 3.16634C2.66699 3.56634 2.93366 3.83301 3.33366 3.83301H4.66699H11.3337H12.667C13.067 3.83301 13.3337 3.56634 13.3337 3.16634C13.3337 2.76634 13.067 2.49967 12.667 2.49967H10.0003L9.33366 1.83301H6.66699ZM3.33366 5.16634V13.833C3.33366 14.5663 3.93366 15.1663 4.66699 15.1663H11.3337C12.067 15.1663 12.667 14.5663 12.667 13.833V5.16634H3.33366ZM6.00033 6.49967C6.40033 6.49967 6.66699 6.76634 6.66699 7.16634V13.1663C6.66699 13.5663 6.40033 13.833 6.00033 13.833C5.60033 13.833 5.33366 13.5663 5.33366 13.1663V7.16634C5.33366 6.76634 5.60033 6.49967 6.00033 6.49967ZM10.0003 6.49967C10.4003 6.49967 10.667 6.76634 10.667 7.16634V13.1663C10.667 13.5663 10.4003 13.833 10.0003 13.833C9.60033 13.833 9.33366 13.5663 9.33366 13.1663V7.16634C9.33366 6.76634 9.60033 6.49967 10.0003 6.49967Z", fill: "#F44D2C" })) },
460
+ React__default.createElement(Text$1, { size: "p2", color: theme.colors.red600 }, t('childCard.menu.remove', { name })))))));
461
+ };
462
+
463
+ const renderChildAge = (age, t) => {
464
+ if (age) {
465
+ if (age.year < 1) {
466
+ if (age.month === 0) {
467
+ switch (age.week) {
468
+ case 0:
469
+ return t('childCard.age.oneWeek');
470
+ case 1:
471
+ return t('childCard.age.oneWeek');
472
+ default:
473
+ return t('childCard.age.week', { weeks: age.week });
474
+ }
475
+ }
476
+ if (age.month === 1) {
477
+ return t('childCard.age.oneMonth');
478
+ }
479
+ if (age.month > 1) {
480
+ return t('childCard.age.months', { month: age.month });
481
+ }
482
+ }
483
+ else if (age.year === 1) {
484
+ return t('childCard.age.oneYear');
485
+ }
486
+ else {
487
+ if (age.month === 0) {
488
+ return t('childCard.age.yearNoMonth', { year: age.year });
489
+ }
490
+ if (age.month > 0) {
491
+ return t('childCard.age.yearMonth', {
492
+ year: age.year,
493
+ month: age.month,
494
+ });
495
+ }
496
+ }
497
+ }
498
+ };
499
+ const ChildCard = ({ name, gender, age, isLoggedIn = false, showMenu = false, onEdit, onSwitch, onAdd, onRemove, className, siteType, }) => {
500
+ const { t } = useTranslations();
501
+ const [isMenuOpen, setIsMenuOpen] = useState(false);
502
+ const isMarryBaby = siteType === 'marryBaby';
503
+ return (React__default.createElement(StyledChildCard, { className: className, "data-theme": siteType },
504
+ isMarryBaby ? (React__default.createElement(React__default.Fragment, null,
505
+ React__default.createElement("div", { "data-testid": "gender" }, gender === Gender.Boy ? (React__default.createElement(BabyBoyMB, { "data-testid": "boy", id: "boy", size: 48 })) : (React__default.createElement(BabyGirlMB, { "data-testid": "girl", id: "girl", size: 48 }))),
506
+ React__default.createElement("div", { className: "information" },
507
+ React__default.createElement(MarryBabyText, { type: "subtitle-1", color: theme.mbColors.dark }, startCase(name) || t('childCard.noName')),
508
+ React__default.createElement("div", { className: "detail" },
509
+ React__default.createElement("div", null,
510
+ gender === Gender.Boy ? (React__default.createElement(GenderBoy, { size: 14 })) : (React__default.createElement(GenderGirl, { size: 14 })),
511
+ React__default.createElement(MarryBabyText, { type: "bodytext-2", color: theme.mbColors.gray }, t(gender === Gender.Girl ? 'childCard.girl' : 'childCard.boy'))),
512
+ React__default.createElement("div", null,
513
+ React__default.createElement(CalendarMB, { size: 20 }),
514
+ age && (React__default.createElement(MarryBabyText, { type: "bodytext-2", color: theme.mbColors.gray }, renderChildAge(age, t)))))))) : (React__default.createElement(React__default.Fragment, null,
515
+ React__default.createElement("div", { "data-testid": "gender" }, gender === Gender.Boy ? (React__default.createElement(Boy, { "data-testid": "boy", id: "boy" })) : (React__default.createElement(Girl, { "data-testid": "girl", id: "girl" }))),
516
+ React__default.createElement("div", { className: "information" },
517
+ React__default.createElement(Heading, { tag: "h5", fontWeight: "bold", color: theme.colors.gray800 }, startCase(name) || t('childCard.noName')),
518
+ React__default.createElement("div", { className: "detail" },
519
+ React__default.createElement("div", null,
520
+ gender === Gender.Boy ? React__default.createElement(GenderBoy, null) : React__default.createElement(GenderGirl, null),
521
+ React__default.createElement(Text, { size: "p3", color: theme.colors.gray800, style: { textTransform: 'capitalize' } }, t(gender === Gender.Girl ? 'childCard.girl' : 'childCard.boy'))),
522
+ React__default.createElement("div", null,
523
+ React__default.createElement(Calendar, { size: 16 }),
524
+ age && (React__default.createElement(Text, { size: "p3", color: theme.colors.gray800 }, renderChildAge(age, t)))))))),
525
+ showMenu && isLoggedIn && (React__default.createElement(StyledOption, null,
526
+ React__default.createElement(Kebab, { onClick: () => setIsMenuOpen((v) => !v) }),
527
+ isMenuOpen && (React__default.createElement(ChildCardMenu, { siteType: siteType, name: name, onClose: () => setIsMenuOpen(false), onEdit: () => {
528
+ setIsMenuOpen(false);
529
+ onEdit();
530
+ }, onSwitch: () => {
531
+ setIsMenuOpen(false);
532
+ onSwitch();
533
+ }, onAdd: () => {
534
+ setIsMenuOpen(false);
535
+ onAdd();
536
+ }, onRemove: () => {
537
+ setIsMenuOpen(false);
538
+ onRemove();
539
+ } }))))));
540
+ };
541
+
542
+ const emptyValue = (value, suffix) => {
543
+ return value && value !== 'NaN' ? value + ' ' + (suffix || '') : '--';
544
+ };
545
+ const BabyGrowthRecord = ({ measurementDate = new Date(), weight, height, head, onEdit, birthday, dateFormat = 'DD/MM/YYYY', siteType, }) => {
546
+ const { t } = useTranslations();
547
+ const isMarryBaby = siteType === 'marryBaby';
548
+ return (React__default.createElement(StyledBabyGrowthRecord, { onClick: onEdit },
549
+ React__default.createElement("div", { className: "time" },
550
+ isMarryBaby ? (React__default.createElement("svg", { width: "14", height: "16", viewBox: "0 0 14 16", fill: "none" },
551
+ React__default.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M4.05257 0.762695C4.32181 0.762695 4.54007 0.980956 4.54007 1.2502V1.53122C4.60167 1.51424 4.66369 1.49824 4.72611 1.48326C6.2217 1.12422 7.77833 1.12422 9.27392 1.48326C9.33634 1.49824 9.39836 1.51424 9.45995 1.53122V1.2502C9.45995 0.980956 9.67821 0.762695 9.94745 0.762695C10.2167 0.762695 10.435 0.980956 10.435 1.2502V1.89841C12.0148 2.66392 13.1931 4.12969 13.6002 5.90621C13.9499 7.43197 13.9499 9.01971 13.6002 10.5455C13.0985 12.7345 11.426 14.4518 9.27392 14.9684C7.77833 15.3275 6.2217 15.3275 4.72611 14.9684C2.57399 14.4518 0.901521 12.7345 0.399789 10.5455C0.0500868 9.01971 0.0500868 7.43197 0.399789 5.90621C0.806964 4.12969 1.98518 2.66392 3.56507 1.89841V1.2502C3.56507 0.980956 3.78333 0.762695 4.05257 0.762695ZM3.56507 3.00938C2.88276 3.4302 2.31064 4.01866 1.90229 4.72184H12.0977C11.6894 4.01865 11.1173 3.4302 10.435 3.00938V3.1355C10.435 3.40474 10.2167 3.623 9.94745 3.623C9.67821 3.623 9.45995 3.40474 9.45995 3.1355V2.55069C9.32464 2.5049 9.18667 2.46501 9.04633 2.43132C7.70034 2.1082 6.29969 2.1082 4.9537 2.43132C4.81336 2.46501 4.67538 2.5049 4.54007 2.55069V3.1355C4.54007 3.40474 4.32181 3.623 4.05257 3.623C3.78333 3.623 3.56507 3.40474 3.56507 3.1355V3.00938ZM12.5322 5.69684H1.46788C1.42273 5.83649 1.38339 5.97898 1.35015 6.12403C1.0333 7.50643 1.0333 8.94525 1.35015 10.3277C1.77137 12.1654 3.17113 13.5924 4.9537 14.0204C6.29969 14.3435 7.70034 14.3435 9.04632 14.0204C10.8289 13.5924 12.2287 12.1654 12.6499 10.3276C12.9667 8.94525 12.9667 7.50643 12.6499 6.12403C12.6166 5.97898 12.5773 5.83649 12.5322 5.69684Z", fill: "#3E3F58" }))) : (React__default.createElement("svg", { width: "17", height: "16", viewBox: "0 0 17 16", fill: "none" },
552
+ React__default.createElement("path", { d: "M5.64421 0.666016C5.27621 0.666016 4.97754 0.964682 4.97754 1.33268V1.99935H4.31087C3.57754 1.99935 2.97754 2.59935 2.97754 3.33268V12.666C2.97754 13.3993 3.57754 13.9993 4.31087 13.9993H13.6442C14.3775 13.9993 14.9775 13.3993 14.9775 12.666V3.33268C14.9775 2.59935 14.3775 1.99935 13.6442 1.99935H12.9775V1.33268C12.9775 0.964682 12.6789 0.666016 12.3109 0.666016C11.9429 0.666016 11.6442 0.964682 11.6442 1.33268V1.99935H6.31087V1.33268C6.31087 0.964682 6.01221 0.666016 5.64421 0.666016ZM4.31087 5.33268H13.6442V11.9993C13.6442 12.3673 13.3455 12.666 12.9775 12.666H4.97754C4.60954 12.666 4.31087 12.3673 4.31087 11.9993V5.33268Z", fill: "#8C8C8C" }))),
553
+ React__default.createElement(Text, { size: "p3", color: theme.colors.gray600 }, `${dayjs(measurementDate).format(dateFormat)} (${renderChildAge(ageGenerate(birthday, measurementDate), t)})`),
554
+ isMarryBaby ? (React__default.createElement("svg", { width: "14", height: "14", viewBox: "0 0 14 14", fill: "none" },
555
+ React__default.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M8.15119 1.29354C8.75527 0.689463 9.57457 0.350098 10.4289 0.350098C12.2078 0.350098 13.65 1.79223 13.65 3.5712C13.65 4.42549 13.3106 5.24479 12.7065 5.84886L11.9689 6.58652C11.9626 6.59307 11.9562 6.5995 11.9496 6.6058L8.78969 9.76569C7.00359 11.5518 4.76564 12.8189 2.31513 13.4315L1.55809 13.6208C0.846159 13.7988 0.201291 13.1539 0.379274 12.442L0.568533 11.6849C1.18116 9.23441 2.44827 6.99647 4.23437 5.21036L7.39433 2.0504C7.40058 2.04388 7.40696 2.0375 7.41346 2.03127L8.15119 1.29354ZM7.26672 4.01649L5.15361 6.1296C3.53411 7.7491 2.3852 9.77829 1.82972 12.0002L1.77301 12.227L1.99983 12.1703C4.22177 11.6149 6.25096 10.4659 7.87045 8.84645L9.98356 6.73334C9.34779 6.52953 8.76392 6.13743 8.31328 5.68678C7.86263 5.23613 7.47052 4.65226 7.26672 4.01649ZM11.1622 5.55469C10.5984 5.66895 9.85522 5.39025 9.23251 4.76754C8.6098 4.14483 8.3311 3.40165 8.44536 2.83784L9.07043 2.21278C9.43071 1.8525 9.91935 1.6501 10.4289 1.6501C11.4899 1.6501 12.35 2.5102 12.35 3.5712C12.35 4.08071 12.1476 4.56935 11.7873 4.92962L11.1622 5.55469Z", fill: "#3E3F58" }))) : (React__default.createElement("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", className: "edit-button" },
556
+ React__default.createElement("path", { d: "M12.7721 1.33398C12.2911 1.33398 11.8102 1.51773 11.443 1.88607L10.6643 2.66732L13.3224 5.33398L14.1011 4.55273C14.8348 3.81673 14.8348 2.62273 14.1011 1.88607C13.734 1.51773 13.253 1.33398 12.7721 1.33398ZM9.66748 3.66732L2.02539 11.334V14.0007H4.68351L12.3256 6.33398L9.66748 3.66732Z", fill: "#8C8C8C" })))),
557
+ React__default.createElement("div", { className: "record" },
558
+ React__default.createElement("div", { className: "record-item" },
559
+ isMarryBaby ? (React__default.createElement(MarryBabyText, { type: "bodytext-2", color: theme.mbColors.gray }, t('babyGrowth.weight'))) : (React__default.createElement("svg", { width: "17", height: "16", viewBox: "0 0 17 16", fill: "none" },
560
+ React__default.createElement("path", { d: "M8.44401 9.86602C8.44401 9.57146 8.68279 9.33268 8.97734 9.33268C9.2719 9.33268 9.51068 9.57146 9.51068 9.86602V11.466C9.51068 11.7606 9.2719 11.9993 8.97734 11.9993C8.68279 11.9993 8.44401 11.7606 8.44401 11.466V9.86602Z", fill: "#8C8C8C" }),
561
+ React__default.createElement("path", { d: "M8.17595 3.05319C7.96767 3.26147 7.96767 3.59916 8.17595 3.80744L8.83592 4.46741C9.0442 4.67569 9.38189 4.67569 9.59017 4.46741C9.79844 4.25913 9.79844 3.92144 9.59017 3.71316L8.9302 3.05319C8.72192 2.84491 8.38423 2.84492 8.17595 3.05319Z", fill: "#8C8C8C" }),
562
+ React__default.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M12.2941 3.66435C12.1261 1.98071 10.7053 0.666016 8.97738 0.666016C7.2495 0.666016 5.82868 1.9807 5.66067 3.66434L3.67054 3.86336C2.92499 3.93791 2.38724 4.61197 2.48017 5.35545L3.498 13.4981C3.5814 14.1653 4.1486 14.666 4.82104 14.666H13.1336C13.806 14.666 14.3732 14.1653 14.4567 13.4981L15.4745 5.35545C15.5674 4.61197 15.0297 3.93791 14.2841 3.86336L12.2941 3.66435ZM12.1607 4.991C11.7386 6.34768 10.473 7.33268 8.97738 7.33268C7.48176 7.33268 6.2162 6.34767 5.79403 4.99099L3.80321 5.19007L4.82104 13.3327L13.1336 13.3327L14.1514 5.19007L12.1607 4.991ZM10.9774 3.99935C10.9774 5.10392 10.0819 5.99935 8.97738 5.99935C7.87281 5.99935 6.97738 5.10392 6.97738 3.99935C6.97738 2.89478 7.87281 1.99935 8.97738 1.99935C10.0819 1.99935 10.9774 2.89478 10.9774 3.99935Z", fill: "#8C8C8C" }))),
563
+ React__default.createElement(Text, { size: "s3", color: theme.colors.gray800, weight: "semiBold" }, emptyValue(localizeNumberFormat(weight), 'kg'))),
564
+ React__default.createElement("div", { className: "record-item" },
565
+ isMarryBaby ? (React__default.createElement(MarryBabyText, { type: "bodytext-2", color: theme.mbColors.gray }, t('babyGrowth.height'))) : (React__default.createElement("svg", { width: "17", height: "16", viewBox: "0 0 17 16", fill: "none" },
566
+ React__default.createElement("g", { clipPath: "url(#clip0_855_82991)" },
567
+ React__default.createElement("path", { d: "M12.6055 13.9993L12.6055 1.99935C12.6055 1.26602 12.0055 0.666016 11.2721 0.666016L5.9388 0.666015C5.20547 0.666015 4.60547 1.26602 4.60547 1.99935L4.60547 13.9993C4.60547 14.7327 5.20547 15.3327 5.9388 15.3327L11.2721 15.3327C12.0055 15.3327 12.6055 14.7327 12.6055 13.9993ZM5.9388 13.9993L5.9388 1.99935L11.2721 1.99935L11.2721 3.33268L8.60547 3.33268L8.60547 4.66602L11.2721 4.66602L11.2721 5.99935L8.60547 5.99935L8.60547 7.33268L11.2721 7.33268L11.2721 8.66602L8.60547 8.66601L8.60547 9.99935L11.2721 9.99935L11.2721 11.3327L8.60547 11.3327L8.60547 12.666L11.2721 12.666L11.2721 13.9993L5.9388 13.9993Z", fill: "#8C8C8C" })),
568
+ React__default.createElement("defs", null,
569
+ React__default.createElement("clipPath", { id: "clip0_855_82991" },
570
+ React__default.createElement("rect", { width: "16", height: "16", fill: "white", transform: "translate(16.6055) rotate(90)" }))))),
571
+ React__default.createElement(Text, { size: "s3", color: theme.colors.gray800, weight: "semiBold" }, emptyValue(localizeNumberFormat(height), 'cm'))),
572
+ React__default.createElement("div", { className: "record-item" },
573
+ isMarryBaby ? (React__default.createElement(MarryBabyText, { type: "bodytext-2", color: theme.mbColors.gray }, t('babyGrowth.head'))) : (React__default.createElement("svg", { width: "17", height: "16", viewBox: "0 0 17 16", fill: "none" },
574
+ React__default.createElement("g", { clipPath: "url(#clip0_855_82994)" },
575
+ React__default.createElement("path", { d: "M9.90072 7.83268C10.361 7.83268 10.734 7.45959 10.734 6.99935C10.734 6.53911 10.361 6.16602 9.90072 6.16602C9.44048 6.16602 9.06738 6.53911 9.06738 6.99935C9.06738 7.45959 9.44048 7.83268 9.90072 7.83268Z", fill: "#8C8C8C" }),
576
+ React__default.createElement("path", { d: "M6.56771 7.83268C7.02795 7.83268 7.40104 7.45959 7.40104 6.99935C7.40104 6.53911 7.02795 6.16602 6.56771 6.16602C6.10747 6.16602 5.73438 6.53911 5.73438 6.99935C5.73438 7.45959 6.10747 7.83268 6.56771 7.83268Z", fill: "#8C8C8C" }),
577
+ React__default.createElement("path", { d: "M15.528 7.56C15.3614 6.55333 14.6214 5.73333 13.6547 5.44667C13.3014 4.7 12.8014 4.04667 12.1947 3.50667C11.1414 2.56667 9.7547 2 8.2347 2C6.7147 2 5.32803 2.56667 4.2747 3.50667C3.66137 4.04667 3.16137 4.70667 2.8147 5.44667C1.84803 5.73333 1.10803 6.54667 0.941367 7.56C0.9147 7.7 0.901367 7.84667 0.901367 8C0.901367 8.15333 0.9147 8.3 0.941367 8.44C1.10803 9.44667 1.84803 10.2667 2.8147 10.5533C3.16137 11.2933 3.66137 11.9467 4.26137 12.48C5.3147 13.4267 6.70803 14 8.2347 14C9.76137 14 11.1547 13.4267 12.2147 12.48C12.8147 11.9467 13.3147 11.2867 13.6614 10.5533C14.6214 10.2667 15.3614 9.45333 15.528 8.44C15.5547 8.3 15.568 8.15333 15.568 8C15.568 7.84667 15.5547 7.7 15.528 7.56ZM12.9014 9.33333C12.8347 9.33333 12.7747 9.32 12.708 9.31333C12.5747 9.76 12.3814 10.1733 12.1347 10.5533C11.3014 11.8267 9.86803 12.6667 8.2347 12.6667C6.60137 12.6667 5.16803 11.8267 4.3347 10.5533C4.08803 10.1733 3.8947 9.76 3.76137 9.31333C3.6947 9.32 3.6347 9.33333 3.56803 9.33333C2.8347 9.33333 2.2347 8.73333 2.2347 8C2.2347 7.26667 2.8347 6.66667 3.56803 6.66667C3.6347 6.66667 3.6947 6.68 3.76137 6.68667C3.8947 6.24 4.08803 5.82667 4.3347 5.44667C5.16803 4.17333 6.60137 3.33333 8.2347 3.33333C9.86803 3.33333 11.3014 4.17333 12.1347 5.44667C12.3814 5.82667 12.5747 6.24 12.708 6.68667C12.7747 6.68 12.8347 6.66667 12.9014 6.66667C13.6347 6.66667 14.2347 7.26667 14.2347 8C14.2347 8.73333 13.6347 9.33333 12.9014 9.33333ZM8.2347 11.3333C9.5747 11.3333 10.728 10.5133 11.2347 9.33333H5.2347C5.74137 10.5133 6.8947 11.3333 8.2347 11.3333Z", fill: "#8C8C8C" })),
578
+ React__default.createElement("defs", null,
579
+ React__default.createElement("clipPath", { id: "clip0_855_82994" },
580
+ React__default.createElement("rect", { width: "16", height: "16", fill: "white", transform: "translate(0.234375)" }))))),
581
+ React__default.createElement(Text, { size: "s3", color: theme.colors.gray800, weight: "semiBold" }, emptyValue(localizeNumberFormat(head), 'cm'))))));
582
+ };
583
+
584
+ const StyledBabyGrowthChooseProfileDrawer = styled(Drawer) `
259
585
  .add-profile-container {
260
586
  display: flex;
261
587
  flex-direction: column;
@@ -274,7 +600,8 @@ import{D as e,M as t}from"./index-f9514788.js";export{B as BabyGrowthGender}from
274
600
  width: 100%;
275
601
  }
276
602
  }
277
- `,Ee=p(t)`
603
+ `;
604
+ const StyledModal = styled(Modal) `
278
605
  .hhg-modal {
279
606
  min-width: 570px;
280
607
  }
@@ -284,7 +611,7 @@ import{D as e,M as t}from"./index-f9514788.js";export{B as BabyGrowthGender}from
284
611
  align-items: center;
285
612
  justify-content: space-between;
286
613
  padding-bottom: 16px;
287
- border-bottom: 1px solid ${m.colors.neutral100};
614
+ border-bottom: 1px solid ${theme.colors.neutral100};
288
615
  }
289
616
 
290
617
  .close-button {
@@ -296,7 +623,7 @@ import{D as e,M as t}from"./index-f9514788.js";export{B as BabyGrowthGender}from
296
623
  display: flex;
297
624
  flex-direction: column;
298
625
  gap: 8px;
299
- border-bottom: 1px solid ${m.colors.neutral100};
626
+ border-bottom: 1px solid ${theme.colors.neutral100};
300
627
  max-height: 300px;
301
628
  overflow-y: auto;
302
629
  }
@@ -311,9 +638,12 @@ import{D as e,M as t}from"./index-f9514788.js";export{B as BabyGrowthGender}from
311
638
  width: 100%;
312
639
  }
313
640
  }
314
- `,xe="300ms",ve=p.div`
315
- background: ${m.colors.gray50};
316
- border-radius: ${m.borderRadius};
641
+ `;
642
+
643
+ const ACTIVE_DURATION = '300ms';
644
+ const StyledNewBabyProfileRadio = styled.div `
645
+ background: ${theme.colors.gray50};
646
+ border-radius: ${theme.borderRadius};
317
647
  padding: 16px 20px;
318
648
 
319
649
  @keyframes fadeIn {
@@ -353,22 +683,22 @@ import{D as e,M as t}from"./index-f9514788.js";export{B as BabyGrowthGender}from
353
683
  width: 22px;
354
684
  height: 22px;
355
685
  background: #ffffff;
356
- border: 2px solid ${m.colors.gray600};
686
+ border: 2px solid ${theme.colors.gray600};
357
687
  border-radius: 50%;
358
- transition: all ${xe} ease-in-out;
688
+ transition: all ${ACTIVE_DURATION} ease-in-out;
359
689
  &.active {
360
- border-color: ${m.colors.primaryBase};
690
+ border-color: ${theme.colors.primaryBase};
361
691
  &::before {
362
692
  content: '';
363
693
  position: absolute;
364
694
  inset: 0;
365
695
  width: 100%;
366
696
  height: 100%;
367
- background-color: ${m.colors.primaryBase};
697
+ background-color: ${theme.colors.primaryBase};
368
698
  background-clip: content-box;
369
699
  padding: 5px;
370
700
  border-radius: 50%;
371
- animation: fadeIn ${xe} ease-in-out forwards;
701
+ animation: fadeIn ${ACTIVE_DURATION} ease-in-out forwards;
372
702
  }
373
703
  }
374
704
  }
@@ -382,7 +712,7 @@ import{D as e,M as t}from"./index-f9514788.js";export{B as BabyGrowthGender}from
382
712
  background: #ffffff;
383
713
  border: 1.3px solid #9495a0;
384
714
  border-radius: 10px;
385
- transition: all ${xe} ease-in-out;
715
+ transition: all ${ACTIVE_DURATION} ease-in-out;
386
716
  &.active {
387
717
  border: none;
388
718
  &::before {
@@ -393,11 +723,330 @@ import{D as e,M as t}from"./index-f9514788.js";export{B as BabyGrowthGender}from
393
723
  height: 100%;
394
724
  padding: 0;
395
725
  border-radius: 10px;
396
- animation: fadeIn ${xe} ease-in-out forwards;
726
+ animation: fadeIn ${ACTIVE_DURATION} ease-in-out forwards;
397
727
  }
398
728
  }
399
729
  }
400
- `,we=({isActive:e,onChange:t,value:o="",onInputChange:l,siteType:a})=>{const{t:i}=j(),n="marryBaby"===a;return r.createElement(ve,{onClick:()=>t("new"),"data-is-mb":n,"data-isActive":n&&e},"marryBaby"===a?r.createElement("div",{className:"title"},r.createElement(L,{type:"bodytext-1",color:m.colors.gray800},i("chooseBaby.new")),r.createElement("div",{className:e?"radio active":"radio"},e&&r.createElement(u,{size:26}))):r.createElement("div",{className:"title"},r.createElement(C,{size:"p2",color:m.colors.gray800},i("chooseBaby.new")),r.createElement("div",{className:e?"radio active":"radio"})),r.createElement(V,{name:"name",value:o,size:"md",placeholder:i("chooseBaby.placeholder"),type:"text",onChange:l}))},Le=e=>{var t,o,{babyProfiles:l,currentProfileId:i,onClose:n,onCreate:c,onAddMeasurement:s,onSwitchProfile:d,open:C,isMobile:p,isMyProfile:y=!1,buttonGroup:f,newBabyValue:u,onNewBabyValueChange:g,siteType:b,buttonText:E,headerText:x}=e,v=z(e,["babyProfiles","currentProfileId","onClose","onCreate","onAddMeasurement","onSwitchProfile","open","isMobile","isMyProfile","buttonGroup","newBabyValue","onNewBabyValueChange","siteType","buttonText","headerText"]);const w=e=>y?r.createElement(r.Fragment,null,r.createElement(h,{theme:b,onClick:()=>{null==c||c(),n()},size:"lg",color:"secondary",icon:r.createElement("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none"},r.createElement("path",{d:"M13.5 9.75H9.75V13.5C9.75 13.9125 9.4125 14.25 9 14.25C8.5875 14.25 8.25 13.9125 8.25 13.5V9.75H4.5C4.0875 9.75 3.75 9.4125 3.75 9C3.75 8.5875 4.0875 8.25 4.5 8.25H8.25V4.5C8.25 4.0875 8.5875 3.75 9 3.75C9.4125 3.75 9.75 4.0875 9.75 4.5V8.25H13.5C13.9125 8.25 14.25 8.5875 14.25 9C14.25 9.4125 13.9125 9.75 13.5 9.75Z",fill:"#2D87F3"}))},H("babyGrowth.drawer.createBaby")),r.createElement(h,{theme:b,size:"lg",color:"primary",onClick:()=>{null==e||e(),y?null==d||d(k):null==s||s(k),n()}},H(y?"babyGrowth.drawer.switchProfile":"babyGrowth.drawer.addMeasurement"))):r.createElement(h,{theme:b,size:"lg",color:"primary",onClick:()=>{null==s||s(k),null==e||e(),n()}},E||H("chooseBaby.button")),[k,M]=a(String(i)||String(null===(t=l[0])||void 0===t?void 0:t.id)),{t:H}=j();return p?r.createElement(be,Object.assign({title:x||"Baby profiles",onClose:n,open:C,placement:"bottom"},v),(({internalClose:e})=>{var t;return r.createElement("div",{className:"add-profile-container"},r.createElement("div",{className:"profile-container"},null===(t=l||[])||void 0===t?void 0:t.map((e=>r.createElement(ie,{siteType:b,key:e.id,profile:e,isActive:k===String(e.id),onChange:M}))),!y&&r.createElement(we,{siteType:b,value:u,onInputChange:g,isActive:"new"===k,onChange:M})),r.createElement("div",{className:"button-group"},f||w(e)))})):r.createElement(Ee,{type:"confirm",isOpen:C,onClose:n,siteType:b},r.createElement("div",{className:"header"},r.createElement("div",{className:"title"},"marryBaby"===b?r.createElement(L,{type:"subtitle-1",color:m.mbColors.dark},H("chooseBaby.title")):r.createElement(Z,{size:"s2",type:"semiBold"},x||H("chooseBaby.title")),r.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",className:"close-button",onClick:n},r.createElement("path",{d:"M5.99007 4.99067C5.79114 4.99072 5.59674 5.0501 5.43173 5.16121C5.26672 5.27233 5.1386 5.43013 5.06374 5.61444C4.98889 5.79875 4.9707 6.0012 5.0115 6.1959C5.05231 6.39061 5.15025 6.56872 5.29281 6.70747L10.5858 12.0004L5.29281 17.2934C5.19684 17.3855 5.12021 17.4959 5.06743 17.618C5.01464 17.7402 4.98676 17.8716 4.9854 18.0046C4.98405 18.1377 5.00926 18.2697 5.05954 18.3928C5.10983 18.516 5.1842 18.6279 5.27827 18.722C5.37235 18.8161 5.48426 18.8904 5.60743 18.9407C5.73061 18.991 5.86259 19.0162 5.99563 19.0149C6.12867 19.0135 6.2601 18.9856 6.38223 18.9328C6.50436 18.8801 6.61473 18.8034 6.70687 18.7075L11.9998 13.4145L17.2928 18.7075C17.385 18.8034 17.4953 18.8801 17.6175 18.9328C17.7396 18.9856 17.871 19.0135 18.0041 19.0149C18.1371 19.0162 18.2691 18.991 18.3922 18.9407C18.5154 18.8904 18.6273 18.8161 18.7214 18.722C18.8155 18.6279 18.8899 18.516 18.9401 18.3928C18.9904 18.2697 19.0156 18.1377 19.0143 18.0047C19.0129 17.8716 18.985 17.7402 18.9323 17.618C18.8795 17.4959 18.8028 17.3855 18.7069 17.2934L13.4139 12.0004L18.7069 6.70747C18.8514 6.567 18.9501 6.38616 18.99 6.18864C19.03 5.99112 19.0093 5.78614 18.9308 5.60055C18.8523 5.41497 18.7195 5.25744 18.5499 5.14861C18.3803 5.03978 18.1817 4.98473 17.9803 4.99067C17.7205 4.99841 17.4739 5.10699 17.2928 5.2934L11.9998 10.5864L6.70687 5.2934C6.61368 5.19761 6.50224 5.12146 6.37912 5.06947C6.25601 5.01747 6.12372 4.99068 5.99007 4.99067Z",fill:"#595959"})))),r.createElement("div",{className:"profile-container"},null===(o=l||[])||void 0===o?void 0:o.map((e=>r.createElement(ie,{key:e.id,profile:e,isActive:k===String(e.id),onChange:M,siteType:b}))),!y&&r.createElement(we,{value:u,onInputChange:g,isActive:"new"===k,onChange:M,siteType:b})),r.createElement("div",{className:"button-group"},f||w()))},ke={[c.Boy]:{[s.Height]:{[d.Weekly]:()=>import("./HEIGHT_BOYS.percentile.weekly-2b6cfe6c.js"),[d.Monthly]:()=>import("./HEIGHT_BOYS.percentile.monthly-d1a8cc8e.js"),[d.Yearly]:()=>import("./HEIGHT_BOYS.percentile.yearly-9e78afc3.js")},[s.Weight]:{[d.Weekly]:()=>import("./WEIGHT_BOYS.percentile.weekly-89802113.js"),[d.Monthly]:()=>import("./WEIGHT_BOYS.percentile.monthly-0cfe7ecd.js"),[d.Yearly]:()=>import("./WEIGHT_BOYS.percentile.yearly-0eb40972.js")},[s.Head]:{[d.Weekly]:()=>import("./HEAD CIRCUM_BOYS.percentile.weekly-db1053f7.js"),[d.Monthly]:()=>import("./HEAD CIRCUM_BOYS.percentile.monthly-bd0965ae.js"),[d.Yearly]:()=>import("./HEAD CIRCUM_BOYS.percentile.yearly-cd38b622.js")},[s.BMI]:{[d.Weekly]:()=>import("./BMI_BOYS.percentile.weekly-80d18f47.js"),[d.Monthly]:()=>import("./BMI_BOYS.percentile.monthly-6272f835.js"),[d.Yearly]:()=>import("./BMI_BOYS.percentile.yearly-a7e5b5f6.js")}},[c.Girl]:{[s.Height]:{[d.Weekly]:()=>import("./HEIGHT_GIRLS.percentile.weekly-dc3965cb.js"),[d.Monthly]:()=>import("./HEIGHT_GIRLS.percentile.monthly-8e11e2dc.js"),[d.Yearly]:()=>import("./HEIGHT_GIRLS.percentile.yearly-490f7b4e.js")},[s.Weight]:{[d.Weekly]:()=>import("./WEIGHT_GIRLS.percentile.weekly-63fff42a.js"),[d.Monthly]:()=>import("./WEIGHT_GIRLS.percentile.monthly-df98e335.js"),[d.Yearly]:()=>import("./WEIGHT_GIRLS.percentile.yearly-8db8cdd0.js")},[s.Head]:{[d.Weekly]:()=>import("./HEAD CIRCUM_GIRLS.percentile.weekly-8e2664bb.js"),[d.Monthly]:()=>import("./HEAD CIRCUM_GIRLS.percentile.monthly-b2e678ae.js"),[d.Yearly]:()=>import("./HEAD CIRCUM_GIRLS.percentile.yearly-f5c075a9.js")},[s.BMI]:{[d.Weekly]:()=>import("./BMI_GIRLS.percentile.weekly-7c1511b0.js"),[d.Monthly]:()=>import("./BMI_GIRLS.percentile.monthly-98586b46.js"),[d.Yearly]:()=>import("./BMI_GIRLS.percentile.yearly-ea667f90.js")}}},Me={[c.Boy]:{[s.Height]:{[d.Weekly]:()=>import("./HEIGHT_BOYS.zscore.weekly-fbdee645.js"),[d.Monthly]:()=>import("./HEIGHT_BOYS.zscore.monthly-5292d78a.js"),[d.Yearly]:()=>import("./HEIGHT_BOYS.zscore.yearly-c11a8f1b.js")},[s.Weight]:{[d.Weekly]:()=>import("./WEIGHT_BOYS.zscore.weekly-3dcfa8ce.js"),[d.Monthly]:()=>import("./WEIGHT_BOYS.zscore.monthly-7f8c5a15.js"),[d.Yearly]:()=>import("./WEIGHT_BOYS.zscore.yearly-98ce1ea0.js")},[s.Head]:{[d.Weekly]:()=>import("./HEAD CIRCUM_BOYS.zscore.weekly-76f7db79.js"),[d.Monthly]:()=>import("./HEAD CIRCUM_BOYS.zscore.monthly-d7f88a95.js"),[d.Yearly]:()=>import("./HEAD CIRCUM_BOYS.zscore.yearly-3ce70f8e.js")},[s.BMI]:{[d.Weekly]:()=>import("./BMI_BOYS.zscore.weekly-6e6708dc.js"),[d.Monthly]:()=>import("./BMI_BOYS.zscore.monthly-d3658f97.js"),[d.Yearly]:()=>import("./BMI_BOYS.zscore.yearly-b8400c9d.js")}},[c.Girl]:{[s.Height]:{[d.Weekly]:()=>import("./HEIGHT_GIRLS.zscore.weekly-36a16a66.js"),[d.Monthly]:()=>import("./HEIGHT_GIRLS.zscore.monthly-e3531c32.js"),[d.Yearly]:()=>import("./HEIGHT_GIRLS.zscore.yearly-61736bba.js")},[s.Weight]:{[d.Weekly]:()=>import("./WEIGHT_GIRLS.zscore.weekly-747a55ec.js"),[d.Monthly]:()=>import("./WEIGHT_GIRLS.zscore.monthly-15c83c6d.js"),[d.Yearly]:()=>import("./WEIGHT_GIRLS.zscore.yearly-197dc52d.js")},[s.Head]:{[d.Weekly]:()=>import("./HEAD CIRCUM_GIRLS.zscore.weekly-48da0aaa.js"),[d.Monthly]:()=>import("./HEAD CIRCUM_GIRLS.zscore.monthly-6f87849e.js"),[d.Yearly]:()=>import("./HEAD CIRCUM_GIRLS.zscore.yearly-4eea437b.js")},[s.BMI]:{[d.Weekly]:()=>import("./BMI_GIRLS.zscore.weekly-cc1de097.js"),[d.Monthly]:()=>import("./BMI_GIRLS.zscore.monthly-3a4fd1a6.js"),[d.Yearly]:()=>import("./BMI_GIRLS.zscore.yearly-6dd1a364.js")}}},He=(e,t,r,o,l)=>{const a=e.slice(t-1,r);let[i,n]=[a[0][o],a[0][o]];return a.forEach((e=>{e[o]>n&&(n=e[o]),e[o]<i&&(i=e[o])})),[(0|i)-l,(0|n)+l]},Ie=(e,t,r,o)=>o===n.Indonesia?Me[e][t][r]():ke[e][t][r](),Be=(e,t)=>{const[r,o]=P(t,Math.ceil(t.length/2)),l=r.map((e=>e.name)),a=o.map((e=>e.name));return l.includes(e)?{data:r,status:"first-half"}:a.includes(e)?{data:o,status:"second-half"}:{data:t,status:"full"}},je=(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)),Se=(e,t,r,o,l)=>[...e,{name:o,history:l,risk:t,toolTipLabel:r}].sort(((e,t)=>e.name-t.name)),Re=(e,t=0)=>{const r=[];for(const o in e){e[o].forEach(((e,l)=>{r[l]?r[l][o]=e:r[l]={name:l+t,[o]:e}}))}return r},ze=(e,t=0)=>Array.from({length:e-t+1},((e,r)=>r+t)),Ge=()=>{var e;const t=null===(e=document.getElementsByClassName("recharts-cartesian-grid-vertical"))||void 0===e?void 0:e[0];if(console.log(t),!t)return;const r=t.getElementsByTagName("line");for(let e=0;e<r.length;e++){if(e%2!=0){const o=r[e],l=r[e+1],a=o.getAttribute("x1"),i=o.getAttribute("y"),n=o.getAttribute("height"),c=o.getAttribute("x1"),s=l.getAttribute("x1");console.log({oddLine:o,nextLine:l});const d=document.createElementNS("http://www.w3.org/1999/xhtml","rect");d.setAttribute("stroke",m.colors.primary50),d.setAttribute("fill",m.colors.primary50),d.setAttribute("x",a),d.setAttribute("y",i),d.setAttribute("height",n),d.setAttribute("width",String(Number(s)-Number(c))),t.appendChild(o),t.appendChild(d)}else t.appendChild(r[e]);console.log(t)}},Ze=p.div`
730
+ `;
731
+
732
+ const NewBabyProfileRadio = ({ isActive, onChange, value = '', onInputChange, siteType, }) => {
733
+ const { t } = useTranslations();
734
+ const isMarryBaby = siteType === 'marryBaby';
735
+ return (React__default.createElement(StyledNewBabyProfileRadio, { onClick: () => onChange('new'), "data-is-mb": isMarryBaby, "data-isActive": isMarryBaby && isActive },
736
+ siteType === 'marryBaby' ? (React__default.createElement("div", { className: "title" },
737
+ React__default.createElement(MarryBabyText, { type: "bodytext-1", color: theme.colors.gray800 }, t('chooseBaby.new')),
738
+ React__default.createElement("div", { className: isActive ? 'radio active' : 'radio' }, isActive && React__default.createElement(CheckActiveMB, { size: 26 })))) : (React__default.createElement("div", { className: "title" },
739
+ React__default.createElement(Text, { size: "p2", color: theme.colors.gray800 }, t('chooseBaby.new')),
740
+ React__default.createElement("div", { className: isActive ? 'radio active' : 'radio' }))),
741
+ React__default.createElement(Input, { name: "name", value: value, size: "md", placeholder: t('chooseBaby.placeholder'), type: "text", onChange: onInputChange })));
742
+ };
743
+
744
+ const BabyGrowthChooseProfileDrawer = (_a) => {
745
+ var _b, _c;
746
+ var { babyProfiles, currentProfileId, onClose, onCreate, onAddMeasurement, onSwitchProfile, open, isMobile, isMyProfile = false, buttonGroup, newBabyValue, onNewBabyValueChange, siteType, buttonText, headerText } = _a, rest = __rest(_a, ["babyProfiles", "currentProfileId", "onClose", "onCreate", "onAddMeasurement", "onSwitchProfile", "open", "isMobile", "isMyProfile", "buttonGroup", "newBabyValue", "onNewBabyValueChange", "siteType", "buttonText", "headerText"]);
747
+ const renderButton = (internalClose) => {
748
+ if (!isMyProfile) {
749
+ return (React__default.createElement(Button
750
+ // style={{ width: siteType === 'marryBaby' ? '100%' : 'unset' }}
751
+ , {
752
+ // style={{ width: siteType === 'marryBaby' ? '100%' : 'unset' }}
753
+ theme: siteType, size: "lg", color: "primary", onClick: () => {
754
+ onAddMeasurement === null || onAddMeasurement === void 0 ? void 0 : onAddMeasurement(currentProfile);
755
+ internalClose === null || internalClose === void 0 ? void 0 : internalClose();
756
+ onClose();
757
+ } }, buttonText || t('chooseBaby.button')));
758
+ }
759
+ return (React__default.createElement(React__default.Fragment, null,
760
+ React__default.createElement(Button
761
+ // style={{ width: siteType === 'marryBaby' ? '100%' : 'unset' }}
762
+ , {
763
+ // style={{ width: siteType === 'marryBaby' ? '100%' : 'unset' }}
764
+ theme: siteType, onClick: () => {
765
+ onCreate === null || onCreate === void 0 ? void 0 : onCreate();
766
+ onClose();
767
+ }, size: "lg", color: "secondary", icon: React__default.createElement("svg", { width: "18", height: "18", viewBox: "0 0 18 18", fill: "none" },
768
+ React__default.createElement("path", { d: "M13.5 9.75H9.75V13.5C9.75 13.9125 9.4125 14.25 9 14.25C8.5875 14.25 8.25 13.9125 8.25 13.5V9.75H4.5C4.0875 9.75 3.75 9.4125 3.75 9C3.75 8.5875 4.0875 8.25 4.5 8.25H8.25V4.5C8.25 4.0875 8.5875 3.75 9 3.75C9.4125 3.75 9.75 4.0875 9.75 4.5V8.25H13.5C13.9125 8.25 14.25 8.5875 14.25 9C14.25 9.4125 13.9125 9.75 13.5 9.75Z", fill: "#2D87F3" })) }, t('babyGrowth.drawer.createBaby')),
769
+ React__default.createElement(Button
770
+ // style={{ width: siteType === 'marryBaby' ? '100%' : 'unset' }}
771
+ , {
772
+ // style={{ width: siteType === 'marryBaby' ? '100%' : 'unset' }}
773
+ theme: siteType, size: "lg", color: "primary", onClick: () => {
774
+ internalClose === null || internalClose === void 0 ? void 0 : internalClose();
775
+ if (isMyProfile) {
776
+ onSwitchProfile === null || onSwitchProfile === void 0 ? void 0 : onSwitchProfile(currentProfile);
777
+ }
778
+ else {
779
+ onAddMeasurement === null || onAddMeasurement === void 0 ? void 0 : onAddMeasurement(currentProfile);
780
+ }
781
+ onClose();
782
+ } }, isMyProfile
783
+ ? t('babyGrowth.drawer.switchProfile')
784
+ : t('babyGrowth.drawer.addMeasurement'))));
785
+ };
786
+ const [currentProfile, setCurrentProfile] = useState(String(currentProfileId) || String((_b = babyProfiles[0]) === null || _b === void 0 ? void 0 : _b.id));
787
+ const { t } = useTranslations();
788
+ if (isMobile) {
789
+ return (React__default.createElement(StyledBabyGrowthChooseProfileDrawer, Object.assign({ title: headerText || 'Baby profiles', onClose: onClose, open: open, placement: "bottom" }, rest), ({ internalClose }) => {
790
+ var _a;
791
+ return (React__default.createElement("div", { className: "add-profile-container" },
792
+ React__default.createElement("div", { className: "profile-container" }, (_a = (babyProfiles || [])) === null || _a === void 0 ? void 0 :
793
+ _a.map((profile) => (React__default.createElement(BabyGrowthProfileRadio, { siteType: siteType, key: profile.id, profile: profile, isActive: currentProfile === String(profile.id), onChange: setCurrentProfile }))),
794
+ !isMyProfile && (React__default.createElement(NewBabyProfileRadio, { siteType: siteType, value: newBabyValue, onInputChange: onNewBabyValueChange, isActive: currentProfile === 'new', onChange: setCurrentProfile }))),
795
+ React__default.createElement("div", { className: "button-group" }, buttonGroup ? buttonGroup : renderButton(internalClose))));
796
+ }));
797
+ }
798
+ else {
799
+ return (React__default.createElement(StyledModal, { type: "confirm", isOpen: open, onClose: onClose, siteType: siteType },
800
+ React__default.createElement("div", { className: "header" },
801
+ React__default.createElement("div", { className: "title" },
802
+ siteType === 'marryBaby' ? (React__default.createElement(MarryBabyText, { type: "subtitle-1", color: theme.mbColors.dark }, t('chooseBaby.title'))) : (React__default.createElement(Text$1, { size: "s2", type: "semiBold" }, headerText || t('chooseBaby.title'))),
803
+ React__default.createElement("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", className: "close-button", onClick: onClose },
804
+ React__default.createElement("path", { d: "M5.99007 4.99067C5.79114 4.99072 5.59674 5.0501 5.43173 5.16121C5.26672 5.27233 5.1386 5.43013 5.06374 5.61444C4.98889 5.79875 4.9707 6.0012 5.0115 6.1959C5.05231 6.39061 5.15025 6.56872 5.29281 6.70747L10.5858 12.0004L5.29281 17.2934C5.19684 17.3855 5.12021 17.4959 5.06743 17.618C5.01464 17.7402 4.98676 17.8716 4.9854 18.0046C4.98405 18.1377 5.00926 18.2697 5.05954 18.3928C5.10983 18.516 5.1842 18.6279 5.27827 18.722C5.37235 18.8161 5.48426 18.8904 5.60743 18.9407C5.73061 18.991 5.86259 19.0162 5.99563 19.0149C6.12867 19.0135 6.2601 18.9856 6.38223 18.9328C6.50436 18.8801 6.61473 18.8034 6.70687 18.7075L11.9998 13.4145L17.2928 18.7075C17.385 18.8034 17.4953 18.8801 17.6175 18.9328C17.7396 18.9856 17.871 19.0135 18.0041 19.0149C18.1371 19.0162 18.2691 18.991 18.3922 18.9407C18.5154 18.8904 18.6273 18.8161 18.7214 18.722C18.8155 18.6279 18.8899 18.516 18.9401 18.3928C18.9904 18.2697 19.0156 18.1377 19.0143 18.0047C19.0129 17.8716 18.985 17.7402 18.9323 17.618C18.8795 17.4959 18.8028 17.3855 18.7069 17.2934L13.4139 12.0004L18.7069 6.70747C18.8514 6.567 18.9501 6.38616 18.99 6.18864C19.03 5.99112 19.0093 5.78614 18.9308 5.60055C18.8523 5.41497 18.7195 5.25744 18.5499 5.14861C18.3803 5.03978 18.1817 4.98473 17.9803 4.99067C17.7205 4.99841 17.4739 5.10699 17.2928 5.2934L11.9998 10.5864L6.70687 5.2934C6.61368 5.19761 6.50224 5.12146 6.37912 5.06947C6.25601 5.01747 6.12372 4.99068 5.99007 4.99067Z", fill: "#595959" })))),
805
+ React__default.createElement("div", { className: "profile-container" }, (_c = (babyProfiles || [])) === null || _c === void 0 ? void 0 :
806
+ _c.map((profile) => (React__default.createElement(BabyGrowthProfileRadio, { key: profile.id, profile: profile, isActive: currentProfile === String(profile.id), onChange: setCurrentProfile, siteType: siteType }))),
807
+ !isMyProfile && (React__default.createElement(NewBabyProfileRadio, { value: newBabyValue, onInputChange: onNewBabyValueChange, isActive: currentProfile === 'new', onChange: setCurrentProfile, siteType: siteType }))),
808
+ React__default.createElement("div", { className: "button-group" }, buttonGroup ? buttonGroup : renderButton())));
809
+ }
810
+ };
811
+
812
+ const BabyGrowthChartPercentile = {
813
+ [Gender.Boy]: {
814
+ [BabyGrowthChartType.Height]: {
815
+ [BabyGrowthChartDuration.Weekly]: () => import('./HEIGHT_BOYS.percentile.weekly-8ea5102d.js'),
816
+ [BabyGrowthChartDuration.Monthly]: () => import('./HEIGHT_BOYS.percentile.monthly-63d2cf96.js'),
817
+ [BabyGrowthChartDuration.Yearly]: () => import('./HEIGHT_BOYS.percentile.yearly-8107b77b.js'),
818
+ },
819
+ [BabyGrowthChartType.Weight]: {
820
+ [BabyGrowthChartDuration.Weekly]: () => import('./WEIGHT_BOYS.percentile.weekly-4d72ddd6.js'),
821
+ [BabyGrowthChartDuration.Monthly]: () => import('./WEIGHT_BOYS.percentile.monthly-50802d8b.js'),
822
+ [BabyGrowthChartDuration.Yearly]: () => import('./WEIGHT_BOYS.percentile.yearly-20a29844.js'),
823
+ },
824
+ [BabyGrowthChartType.Head]: {
825
+ [BabyGrowthChartDuration.Weekly]: () => import('./HEAD CIRCUM_BOYS.percentile.weekly-8f6ea38a.js'),
826
+ [BabyGrowthChartDuration.Monthly]: () => import('./HEAD CIRCUM_BOYS.percentile.monthly-4c37847c.js'),
827
+ [BabyGrowthChartDuration.Yearly]: () => import('./HEAD CIRCUM_BOYS.percentile.yearly-6c12a99a.js'),
828
+ },
829
+ [BabyGrowthChartType.BMI]: {
830
+ [BabyGrowthChartDuration.Weekly]: () => import('./BMI_BOYS.percentile.weekly-9d3990b6.js'),
831
+ [BabyGrowthChartDuration.Monthly]: () => import('./BMI_BOYS.percentile.monthly-de5dce68.js'),
832
+ [BabyGrowthChartDuration.Yearly]: () => import('./BMI_BOYS.percentile.yearly-98b9114a.js'),
833
+ },
834
+ },
835
+ [Gender.Girl]: {
836
+ [BabyGrowthChartType.Height]: {
837
+ [BabyGrowthChartDuration.Weekly]: () => import('./HEIGHT_GIRLS.percentile.weekly-82655dc0.js'),
838
+ [BabyGrowthChartDuration.Monthly]: () => import('./HEIGHT_GIRLS.percentile.monthly-fb987d37.js'),
839
+ [BabyGrowthChartDuration.Yearly]: () => import('./HEIGHT_GIRLS.percentile.yearly-a63b8456.js'),
840
+ },
841
+ [BabyGrowthChartType.Weight]: {
842
+ [BabyGrowthChartDuration.Weekly]: () => import('./WEIGHT_GIRLS.percentile.weekly-b66d3016.js'),
843
+ [BabyGrowthChartDuration.Monthly]: () => import('./WEIGHT_GIRLS.percentile.monthly-e6afb2e0.js'),
844
+ [BabyGrowthChartDuration.Yearly]: () => import('./WEIGHT_GIRLS.percentile.yearly-a55622c5.js'),
845
+ },
846
+ [BabyGrowthChartType.Head]: {
847
+ [BabyGrowthChartDuration.Weekly]: () => import('./HEAD CIRCUM_GIRLS.percentile.weekly-5d3f2862.js'),
848
+ [BabyGrowthChartDuration.Monthly]: () => import('./HEAD CIRCUM_GIRLS.percentile.monthly-25ce0d36.js'),
849
+ [BabyGrowthChartDuration.Yearly]: () => import('./HEAD CIRCUM_GIRLS.percentile.yearly-2b709ca5.js'),
850
+ },
851
+ [BabyGrowthChartType.BMI]: {
852
+ [BabyGrowthChartDuration.Weekly]: () => import('./BMI_GIRLS.percentile.weekly-211d2f27.js'),
853
+ [BabyGrowthChartDuration.Monthly]: () => import('./BMI_GIRLS.percentile.monthly-1ff3d499.js'),
854
+ [BabyGrowthChartDuration.Yearly]: () => import('./BMI_GIRLS.percentile.yearly-206fdcff.js'),
855
+ },
856
+ },
857
+ };
858
+ const BabyGrowthChartZScore = {
859
+ [Gender.Boy]: {
860
+ [BabyGrowthChartType.Height]: {
861
+ [BabyGrowthChartDuration.Weekly]: () => import('./HEIGHT_BOYS.zscore.weekly-86da0362.js'),
862
+ [BabyGrowthChartDuration.Monthly]: () => import('./HEIGHT_BOYS.zscore.monthly-641cdfa3.js'),
863
+ [BabyGrowthChartDuration.Yearly]: () => import('./HEIGHT_BOYS.zscore.yearly-060f6e79.js'),
864
+ },
865
+ [BabyGrowthChartType.Weight]: {
866
+ [BabyGrowthChartDuration.Weekly]: () => import('./WEIGHT_BOYS.zscore.weekly-90352f48.js'),
867
+ [BabyGrowthChartDuration.Monthly]: () => import('./WEIGHT_BOYS.zscore.monthly-729e6614.js'),
868
+ [BabyGrowthChartDuration.Yearly]: () => import('./WEIGHT_BOYS.zscore.yearly-fe1871cc.js'),
869
+ },
870
+ [BabyGrowthChartType.Head]: {
871
+ [BabyGrowthChartDuration.Weekly]: () => import('./HEAD CIRCUM_BOYS.zscore.weekly-6cafba00.js'),
872
+ [BabyGrowthChartDuration.Monthly]: () => import('./HEAD CIRCUM_BOYS.zscore.monthly-c531b497.js'),
873
+ [BabyGrowthChartDuration.Yearly]: () => import('./HEAD CIRCUM_BOYS.zscore.yearly-fe8114a0.js'),
874
+ },
875
+ [BabyGrowthChartType.BMI]: {
876
+ [BabyGrowthChartDuration.Weekly]: () => import('./BMI_BOYS.zscore.weekly-c669ea51.js'),
877
+ [BabyGrowthChartDuration.Monthly]: () => import('./BMI_BOYS.zscore.monthly-394646f0.js'),
878
+ [BabyGrowthChartDuration.Yearly]: () => import('./BMI_BOYS.zscore.yearly-771ef6b6.js'),
879
+ },
880
+ },
881
+ [Gender.Girl]: {
882
+ [BabyGrowthChartType.Height]: {
883
+ [BabyGrowthChartDuration.Weekly]: () => import('./HEIGHT_GIRLS.zscore.weekly-c0387a4e.js'),
884
+ [BabyGrowthChartDuration.Monthly]: () => import('./HEIGHT_GIRLS.zscore.monthly-77d676a3.js'),
885
+ [BabyGrowthChartDuration.Yearly]: () => import('./HEIGHT_GIRLS.zscore.yearly-41203c20.js'),
886
+ },
887
+ [BabyGrowthChartType.Weight]: {
888
+ [BabyGrowthChartDuration.Weekly]: () => import('./WEIGHT_GIRLS.zscore.weekly-d5be31d5.js'),
889
+ [BabyGrowthChartDuration.Monthly]: () => import('./WEIGHT_GIRLS.zscore.monthly-2cdcbe75.js'),
890
+ [BabyGrowthChartDuration.Yearly]: () => import('./WEIGHT_GIRLS.zscore.yearly-99e8d3a7.js'),
891
+ },
892
+ [BabyGrowthChartType.Head]: {
893
+ [BabyGrowthChartDuration.Weekly]: () => import('./HEAD CIRCUM_GIRLS.zscore.weekly-f3252d67.js'),
894
+ [BabyGrowthChartDuration.Monthly]: () => import('./HEAD CIRCUM_GIRLS.zscore.monthly-e8617bae.js'),
895
+ [BabyGrowthChartDuration.Yearly]: () => import('./HEAD CIRCUM_GIRLS.zscore.yearly-5b62d41f.js'),
896
+ },
897
+ [BabyGrowthChartType.BMI]: {
898
+ [BabyGrowthChartDuration.Weekly]: () => import('./BMI_GIRLS.zscore.weekly-63ed3cd6.js'),
899
+ [BabyGrowthChartDuration.Monthly]: () => import('./BMI_GIRLS.zscore.monthly-b1137e36.js'),
900
+ [BabyGrowthChartDuration.Yearly]: () => import('./BMI_GIRLS.zscore.yearly-221d187c.js'),
901
+ },
902
+ },
903
+ };
904
+ const getAxisYDomain = (data, from, to, ref, offset) => {
905
+ const refData = data.slice(from - 1, to);
906
+ let [bottom, top] = [refData[0][ref], refData[0][ref]];
907
+ refData.forEach((d) => {
908
+ if (d[ref] > top)
909
+ top = d[ref];
910
+ if (d[ref] < bottom)
911
+ bottom = d[ref];
912
+ });
913
+ return [(bottom | 0) - offset, (top | 0) + offset];
914
+ };
915
+ const generateGrowthChart = (gender, type, duration, locale) => {
916
+ if (locale === LOCALE.Indonesia)
917
+ return BabyGrowthChartZScore[gender][type][duration]();
918
+ return BabyGrowthChartPercentile[gender][type][duration]();
919
+ };
920
+ const divideChartData = (x, fullChartData) => {
921
+ const [firstHalfData, secondHalfData] = chunk(fullChartData, Math.ceil(fullChartData.length / 2));
922
+ const firstHalfXLable = firstHalfData.map((data) => data.name);
923
+ const secondHalfXLable = secondHalfData.map((data) => data.name);
924
+ if (firstHalfXLable.includes(x))
925
+ return { data: firstHalfData, status: 'first-half' };
926
+ if (secondHalfXLable.includes(x))
927
+ return { data: secondHalfData, status: 'second-half' };
928
+ return { data: fullChartData, status: 'full' };
929
+ };
930
+ const refineDataWithLine = (fullChartData, lineData) => {
931
+ return [
932
+ ...fullChartData,
933
+ ...lineData.map((_data) => ({
934
+ name: _data.name,
935
+ history: _data.history,
936
+ risk: _data.risk,
937
+ toolTipLabel: _data.toolTipLabel,
938
+ })),
939
+ ].sort((a, b) => a.name - b.name);
940
+ };
941
+ const refineDataWithDot = (fullChartData, riskLevel, toolTipLabel, x, y) => {
942
+ return [
943
+ ...fullChartData,
944
+ {
945
+ name: x,
946
+ history: y,
947
+ risk: riskLevel,
948
+ toolTipLabel: toolTipLabel,
949
+ },
950
+ ].sort((a, b) => a.name - b.name);
951
+ };
952
+ const transformDataToChart = (data, min = 0) => {
953
+ const result = [];
954
+ for (const key in data) {
955
+ const row = data[key];
956
+ row.forEach((item, index) => {
957
+ if (result[index]) {
958
+ result[index][key] = item;
959
+ }
960
+ else {
961
+ result[index] = {
962
+ name: index + min,
963
+ [key]: item,
964
+ };
965
+ }
966
+ });
967
+ }
968
+ return result;
969
+ };
970
+ const generateXAxisTicks = (max, min = 0) => {
971
+ return Array.from({ length: max - min + 1 }, (_, i) => i + min);
972
+ };
973
+ const paintAxis = () => {
974
+ var _a;
975
+ /**
976
+ * Add <rect stroke="#91caff" fill="#91caff" x=[x] y="16" width=[w] height="334"></rect>
977
+ * between each odd pair of <line> E.g: 1-2, 3-4, 5-6,....
978
+ * Things should be calculate: x position = Previous[x1], width = Next[x1] - Previous[x1]
979
+ */
980
+ const cartesianGridVertical = (_a = document.getElementsByClassName('recharts-cartesian-grid-vertical')) === null || _a === void 0 ? void 0 : _a[0];
981
+ console.log(cartesianGridVertical);
982
+ if (!cartesianGridVertical)
983
+ return;
984
+ const lines = cartesianGridVertical.getElementsByTagName('line');
985
+ for (let index = 0; index < lines.length; index++) {
986
+ if (index % 2 !== 0) {
987
+ const oddLine = lines[index];
988
+ const nextLine = lines[index + 1];
989
+ const xPosition = oddLine.getAttribute('x1');
990
+ const yPosition = oddLine.getAttribute('y');
991
+ const height = oddLine.getAttribute('height');
992
+ const previousWidth = oddLine.getAttribute('x1');
993
+ const nextWidth = nextLine.getAttribute('x1');
994
+ console.log({ oddLine, nextLine });
995
+ const rect = document.createElementNS('http://www.w3.org/1999/xhtml', 'rect');
996
+ rect.setAttribute('stroke', theme.colors.primary50);
997
+ rect.setAttribute('fill', theme.colors.primary50);
998
+ rect.setAttribute('x', xPosition);
999
+ rect.setAttribute('y', yPosition);
1000
+ rect.setAttribute('height', height);
1001
+ rect.setAttribute('width', String(Number(nextWidth) - Number(previousWidth)));
1002
+ cartesianGridVertical.appendChild(oddLine);
1003
+ cartesianGridVertical.appendChild(rect);
1004
+ }
1005
+ else {
1006
+ cartesianGridVertical.appendChild(lines[index]);
1007
+ }
1008
+ console.log(cartesianGridVertical);
1009
+ }
1010
+ /**
1011
+ * SAMPLE DATA
1012
+ <g class="recharts-cartesian-grid-vertical">
1013
+ <line stroke="#91caff" fill="none" x="45" y="16" width="674" height="334" offset="[object Object]" x1="45" y1="16" x2="45" y2="350"></line>
1014
+ <rect stroke="#91caff" fill="#91caff" x="45" y="16" width="22.4666666667" height="334"></rect>
1015
+ <line stroke="#91caff" fill="none" x="45" y="16" width="674" height="334" offset="[object Object]" x1="67.46666666666667" y1="16" x2="67.46666666666667" y2="350"></line>
1016
+ <line stroke="#91caff" fill="none" x="45" y="16" width="674" height="334" offset="[object Object]" x1="89.93333333333334" y1="16" x2="89.93333333333334" y2="350"></line>
1017
+ <rect stroke="#91caff" fill="#91caff" x="89.93333333333334" y="16" width="22.4666666667" height="334"></rect>
1018
+ <line stroke="#91caff" fill="none" x="45" y="16" width="674" height="334" offset="[object Object]" x1="112.4" y1="16" x2="112.4" y2="350"></line>
1019
+ <line stroke="#91caff" fill="none" x="45" y="16" width="674" height="334" offset="[object Object]" x1="134.86666666666667" y1="16" x2="134.86666666666667" y2="350"></line>
1020
+ <line stroke="#91caff" fill="none" x="45" y="16" width="674" height="334" offset="[object Object]" x1="157.33333333333331" y1="16" x2="157.33333333333331" y2="350"></line>
1021
+ <line stroke="#91caff" fill="none" x="45" y="16" width="674" height="334" offset="[object Object]" x1="179.8" y1="16" x2="179.8" y2="350"></line>
1022
+ <line stroke="#91caff" fill="none" x="45" y="16" width="674" height="334" offset="[object Object]" x1="202.26666666666668" y1="16" x2="202.26666666666668" y2="350"></line>
1023
+ <line stroke="#91caff" fill="none" x="45" y="16" width="674" height="334" offset="[object Object]" x1="224.73333333333332" y1="16" x2="224.73333333333332" y2="350"></line>
1024
+ <line stroke="#91caff" fill="none" x="45" y="16" width="674" height="334" offset="[object Object]" x1="247.2" y1="16" x2="247.2" y2="350"></line>
1025
+ <line stroke="#91caff" fill="none" x="45" y="16" width="674" height="334" offset="[object Object]" x1="269.6666666666667" y1="16" x2="269.6666666666667" y2="350"></line>
1026
+ <line stroke="#91caff" fill="none" x="45" y="16" width="674" height="334" offset="[object Object]" x1="292.1333333333333" y1="16" x2="292.1333333333333" y2="350"></line>
1027
+ <line stroke="#91caff" fill="none" x="45" y="16" width="674" height="334" offset="[object Object]" x1="314.6" y1="16" x2="314.6" y2="350"></line>
1028
+ <line stroke="#91caff" fill="none" x="45" y="16" width="674" height="334" offset="[object Object]" x1="337.06666666666666" y1="16" x2="337.06666666666666" y2="350"></line>
1029
+ <line stroke="#91caff" fill="none" x="45" y="16" width="674" height="334" offset="[object Object]" x1="359.53333333333336" y1="16" x2="359.53333333333336" y2="350"></line>
1030
+ <line stroke="#91caff" fill="none" x="45" y="16" width="674" height="334" offset="[object Object]" x1="382" y1="16" x2="382" y2="350"></line>
1031
+ <line stroke="#91caff" fill="none" x="45" y="16" width="674" height="334" offset="[object Object]" x1="404.46666666666664" y1="16" x2="404.46666666666664" y2="350"></line>
1032
+ <line stroke="#91caff" fill="none" x="45" y="16" width="674" height="334" offset="[object Object]" x1="426.93333333333334" y1="16" x2="426.93333333333334" y2="350"></line>
1033
+ <line stroke="#91caff" fill="none" x="45" y="16" width="674" height="334" offset="[object Object]" x1="449.4" y1="16" x2="449.4" y2="350"></line>
1034
+ <line stroke="#91caff" fill="none" x="45" y="16" width="674" height="334" offset="[object Object]" x1="471.8666666666666" y1="16" x2="471.8666666666666" y2="350"></line>
1035
+ <line stroke="#91caff" fill="none" x="45" y="16" width="674" height="334" offset="[object Object]" x1="494.3333333333333" y1="16" x2="494.3333333333333" y2="350"></line>
1036
+ <line stroke="#91caff" fill="none" x="45" y="16" width="674" height="334" offset="[object Object]" x1="516.8" y1="16" x2="516.8" y2="350"></line>
1037
+ <line stroke="#91caff" fill="none" x="45" y="16" width="674" height="334" offset="[object Object]" x1="539.2666666666667" y1="16" x2="539.2666666666667" y2="350"></line>
1038
+ <line stroke="#91caff" fill="none" x="45" y="16" width="674" height="334" offset="[object Object]" x1="561.7333333333333" y1="16" x2="561.7333333333333" y2="350"></line>
1039
+ <line stroke="#91caff" fill="none" x="45" y="16" width="674" height="334" offset="[object Object]" x1="584.2" y1="16" x2="584.2" y2="350"></line>
1040
+ <line stroke="#91caff" fill="none" x="45" y="16" width="674" height="334" offset="[object Object]" x1="606.6666666666667" y1="16" x2="606.6666666666667" y2="350"></line>
1041
+ <line stroke="#91caff" fill="none" x="45" y="16" width="674" height="334" offset="[object Object]" x1="629.1333333333333" y1="16" x2="629.1333333333333" y2="350"></line>
1042
+ <line stroke="#91caff" fill="none" x="45" y="16" width="674" height="334" offset="[object Object]" x1="651.6" y1="16" x2="651.6" y2="350"></line>
1043
+ <line stroke="#91caff" fill="none" x="45" y="16" width="674" height="334" offset="[object Object]" x1="674.0666666666667" y1="16" x2="674.0666666666667" y2="350"></line>
1044
+ <line stroke="#91caff" fill="none" x="45" y="16" width="674" height="334" offset="[object Object]" x1="696.5333333333333" y1="16" x2="696.5333333333333" y2="350"></line>
1045
+ <line stroke="#91caff" fill="none" x="45" y="16" width="674" height="334" offset="[object Object]" x1="719" y1="16" x2="719" y2="350"></line>
1046
+ */
1047
+ };
1048
+
1049
+ const StyledBabyGrowthChart = styled.div `
401
1050
  position: relative;
402
1051
  .custom-chart-label {
403
1052
  display: flex;
@@ -406,4 +1055,191 @@ import{D as e,M as t}from"./index-f9514788.js";export{B as BabyGrowthGender}from
406
1055
  align-items: center;
407
1056
  margin-top: 8px;
408
1057
  }
409
- `,_e=[{name:"-3SD",label:"-3",color:m.colors.red600},{name:"-2SD",label:"-2",color:m.colors.yellow600},{name:"0Median",label:"0",color:m.colors.green600},{name:"2SD",label:"2",color:m.colors.yellow600},{name:"3SD",label:"3",color:m.colors.red600},{name:"history",color:m.colors.primaryBase}],Ne=[{name:"3rd",color:m.colors.red600},{name:"15th",color:m.colors.yellow600},{name:"50th",color:m.colors.green600},{name:"85th",color:m.colors.yellow600},{name:"97th",color:m.colors.red600},{name:"history",color:m.colors.primaryBase}],Ve=e=>{const{x:t,y:o,last:l,index:a,name:i}=e;return l===a?r.createElement("text",{x:t,y:o,dx:16,fill:m.colors.gray500,fontSize:12,textAnchor:"middle"},i):null},Te=({gender:e,type:t,duration:c,xLabel:p,x:h,y:y,toolTipLabel:f=[],isDivide:u=!0,onIsPrevious:g,locale:b,riskLevel:E,withLine:x=!1,lineData:v=[]})=>{const[w,L]=a([]),k=l([]),{t:M}=j();i((()=>{G(void 0,void 0,void 0,(function*(){const r=(yield Ie(e,t,c,b)).default,o=c===d.Weekly?0:1,l=Re(r,o);if(Array.isArray(l)&&0===l.length)return void(null==g||g());let a={data:l.map(((e,t)=>Object.assign(Object.assign({},e),{name:t}))),status:"full"};try{a=u?Be(h||o,l):{data:l,status:"full"}}catch(e){}if(u)switch(a.status){case"first-half":k.current=ze(a.data.length-1+o,o);break;case"second-half":k.current=ze(r.length,a.data.length);break;default:k.current=ze(l.length-1+o,o)}else k.current=ze(l.length-1+o,o);L(a.data)}))}),[e,t,c,b,g]);const[H,I]=a(!1),B=o((()=>x&&Array.isArray(w)&&w.length>0?je(w,v):Se(w,E,f,h,y)),[x,v,w]),S=l(null);N(S,(()=>I(!1)));return r.createElement(Ze,null,r.createElement("div",{className:"custom-chart-label"},r.createElement(C,{size:"n1",color:m.colors.gray500},(()=>{switch(t){case s.Weight:return M("babyGrowth.weight");case s.Height:return M("babyGrowth.height");case s.Head:return M("babyGrowth.headCircumference");case s.BMI:return"BMI";default:return""}})()),r.createElement(C,{size:"n1",color:m.colors.gray500},b===n.Indonesia?"Z-Score":M("babyGrowth.percentiles"))),Array.isArray(B)&&B.length>0&&r.createElement(T,{height:388,className:"chart"},r.createElement(A,{data:B,margin:{top:16,right:28,bottom:8,left:0}},r.createElement(W,{stroke:m.colors.neutral100}),r.createElement(Y,{trigger:"click",content:e=>r.createElement(oe,Object.assign({active:!x&&H&&void 0!==h&&void 0!==y,locale:b},e))}),r.createElement(D,{type:"number",scale:"linear",ticks:k.current,dataKey:"name",tickLine:!1,tickMargin:12,tick:{fontFamily:"Inter",fontWeight:400,fontSize:12,color:m.colors.gray800},domain:["dataMin","dataMax"],interval:"preserveStartEnd",tickCount:1,tickFormatter:e=>String(Math.round(100*(e+Number.EPSILON))/100),allowDecimals:!0}),r.createElement(O,{domain:[e=>Math.min(e,y||e),e=>Math.max(e,y||e)],tickLine:!1,tickMargin:7,width:45,tickCount:10,allowDecimals:!0,tickFormatter:e=>String(Math.round(100*(e+Number.EPSILON))/100),tick:{fontFamily:"Inter",fontWeight:400,fontSize:12,color:m.colors.gray800}}),(b===n.Indonesia?_e:Ne).map(((e,t)=>r.createElement(r.Fragment,null,"history"===e.name?r.createElement($,{key:t,connectNulls:!0,type:"linear",dataKey:"history",stroke:e.color,strokeWidth:2,dot:{stroke:e.color,fill:e.color,strokeWidth:1,r:4,strokeDasharray:""},activeDot:!0,color:e.color}):r.createElement($,{key:e.name,type:"linear",dataKey:e.name,stroke:e.color,dot:!1,activeDot:!1,connectNulls:!0,label:r.createElement(Ve,{last:(null==B?void 0:B.length)?B.length-1:0,name:(null==e?void 0:e.label)||e.name}),tooltipType:"none"})))),void 0!==h&&void 0!==y&&r.createElement(F,{onClick:()=>I(!0),x:0===h?1:h,y:y,r:4,shape:r.createElement(_,{ref:S,r:4}),fill:m.colors.primaryBase,stroke:m.colors.primaryBase}))),r.createElement("div",{className:"custom-chart-label"},r.createElement("i",null),r.createElement(C,{size:"n1",color:m.colors.gray500},p)))};export{Te as BabyGrowthChart,ke as BabyGrowthChartPercentile,Me as BabyGrowthChartZScore,Le as BabyGrowthChooseProfileDrawer,q as BabyGrowthLegend,ie as BabyGrowthProfileRadio,ge as BabyGrowthRecord,X as BabyGrowthSwitch,Q as BabyGrowthSwitchChart,oe as BabyGrowthTooltip,fe as ChildCard,Ne as LABELS_PERCENTILE,_e as LABELS_Z_SCORE,Be as divideChartData,Ie as generateGrowthChart,ze as generateXAxisTicks,He as getAxisYDomain,Ge as paintAxis,Se as refineDataWithDot,je as refineDataWithLine,Re as transformDataToChart};
1058
+ `;
1059
+
1060
+ const LABELS_Z_SCORE = [
1061
+ {
1062
+ name: '-3SD',
1063
+ label: '-3',
1064
+ color: theme.colors.red600,
1065
+ },
1066
+ {
1067
+ name: '-2SD',
1068
+ label: '-2',
1069
+ color: theme.colors.yellow600,
1070
+ },
1071
+ {
1072
+ name: '0Median',
1073
+ label: '0',
1074
+ color: theme.colors.green600,
1075
+ },
1076
+ {
1077
+ name: '2SD',
1078
+ label: '2',
1079
+ color: theme.colors.yellow600,
1080
+ },
1081
+ {
1082
+ name: '3SD',
1083
+ label: '3',
1084
+ color: theme.colors.red600,
1085
+ },
1086
+ {
1087
+ name: 'history',
1088
+ color: theme.colors.primaryBase,
1089
+ },
1090
+ ];
1091
+ const LABELS_PERCENTILE = [
1092
+ {
1093
+ name: '3rd',
1094
+ color: theme.colors.red600,
1095
+ },
1096
+ {
1097
+ name: '15th',
1098
+ color: theme.colors.yellow600,
1099
+ },
1100
+ {
1101
+ name: '50th',
1102
+ color: theme.colors.green600,
1103
+ },
1104
+ {
1105
+ name: '85th',
1106
+ color: theme.colors.yellow600,
1107
+ },
1108
+ {
1109
+ name: '97th',
1110
+ color: theme.colors.red600,
1111
+ },
1112
+ {
1113
+ name: 'history',
1114
+ color: theme.colors.primaryBase,
1115
+ },
1116
+ ];
1117
+ const CustomLineLabel = (props) => {
1118
+ const { x, y, last, index, name } = props;
1119
+ if (last === index) {
1120
+ return (React__default.createElement("text", { x: x, y: y, dx: 16, fill: theme.colors.gray500, fontSize: 12, textAnchor: "middle" }, name));
1121
+ }
1122
+ return null;
1123
+ };
1124
+ const BabyGrowthChart = ({ gender, type, duration, xLabel, x, y, toolTipLabel = [], isDivide = true, onIsPrevious, locale, riskLevel, withLine = false, lineData = [], }) => {
1125
+ const [data, setData] = useState([]);
1126
+ const xAxisTicks = useRef([]);
1127
+ const { t } = useTranslations();
1128
+ useEffect(() => {
1129
+ (() => __awaiter(void 0, void 0, void 0, function* () {
1130
+ const fullChartData = (yield generateGrowthChart(gender, type, duration, locale)).default;
1131
+ const min = duration === BabyGrowthChartDuration.Weekly ? 0 : 1;
1132
+ const refinedData = transformDataToChart(fullChartData, min);
1133
+ if (Array.isArray(refinedData) && refinedData.length === 0) {
1134
+ onIsPrevious === null || onIsPrevious === void 0 ? void 0 : onIsPrevious();
1135
+ return;
1136
+ }
1137
+ let result = {
1138
+ data: refinedData.map((_chart, index) => (Object.assign(Object.assign({}, _chart), { name: index }))),
1139
+ status: 'full',
1140
+ };
1141
+ try {
1142
+ result = isDivide
1143
+ ? divideChartData(x || min, refinedData)
1144
+ : {
1145
+ data: refinedData,
1146
+ status: 'full',
1147
+ };
1148
+ }
1149
+ catch (err) { }
1150
+ if (isDivide) {
1151
+ switch (result.status) {
1152
+ case 'first-half':
1153
+ xAxisTicks.current = generateXAxisTicks(result.data.length - 1 + min, min);
1154
+ break;
1155
+ case 'second-half':
1156
+ xAxisTicks.current = generateXAxisTicks(fullChartData.length, result.data.length);
1157
+ break;
1158
+ default:
1159
+ xAxisTicks.current = generateXAxisTicks(refinedData.length - 1 + min, min);
1160
+ break;
1161
+ }
1162
+ }
1163
+ else {
1164
+ xAxisTicks.current = generateXAxisTicks(refinedData.length - 1 + min, min);
1165
+ }
1166
+ setData(result.data);
1167
+ }))();
1168
+ }, [gender, type, duration, locale, onIsPrevious]);
1169
+ const [isTooltipActive, setIsTooltipActive] = useState(false);
1170
+ const refinedData = useMemo(() => {
1171
+ if (withLine && Array.isArray(data) && data.length > 0) {
1172
+ return refineDataWithLine(data, lineData);
1173
+ }
1174
+ else {
1175
+ return refineDataWithDot(data, riskLevel, toolTipLabel, x, y);
1176
+ }
1177
+ }, [withLine, lineData, data]);
1178
+ const ref = useRef(null);
1179
+ // State for our modal
1180
+ // Call hook passing in the ref and a function to call on outside click
1181
+ useOutsideClick(ref, () => setIsTooltipActive(false));
1182
+ const renderYAxisLabel = () => {
1183
+ switch (type) {
1184
+ case BabyGrowthChartType.Weight:
1185
+ return t('babyGrowth.weight');
1186
+ case BabyGrowthChartType.Height:
1187
+ return t('babyGrowth.height');
1188
+ case BabyGrowthChartType.Head:
1189
+ return t('babyGrowth.headCircumference');
1190
+ case BabyGrowthChartType.BMI:
1191
+ return 'BMI';
1192
+ default:
1193
+ return '';
1194
+ }
1195
+ };
1196
+ return (React__default.createElement(StyledBabyGrowthChart, null,
1197
+ React__default.createElement("div", { className: "custom-chart-label" },
1198
+ React__default.createElement(Text, { size: "n1", color: theme.colors.gray500 }, renderYAxisLabel()),
1199
+ React__default.createElement(Text, { size: "n1", color: theme.colors.gray500 }, locale === LOCALE.Indonesia
1200
+ ? 'Z-Score'
1201
+ : t('babyGrowth.percentiles'))),
1202
+ Array.isArray(refinedData) && refinedData.length > 0 && (React__default.createElement(ResponsiveContainer, { height: 388, className: "chart" },
1203
+ React__default.createElement(LineChart, { data: refinedData, margin: { top: 16, right: 28, bottom: 8, left: 0 } },
1204
+ React__default.createElement(CartesianGrid, { stroke: theme.colors.neutral100 }),
1205
+ React__default.createElement(Tooltip, { trigger: "click", content: (props) => (React__default.createElement(BabyGrowthTooltip, Object.assign({ active: !withLine &&
1206
+ isTooltipActive &&
1207
+ typeof x !== 'undefined' &&
1208
+ typeof y !== 'undefined', locale: locale }, props))) }),
1209
+ React__default.createElement(XAxis, { type: "number", scale: "linear", ticks: xAxisTicks.current, dataKey: "name", tickLine: false, tickMargin: 12, tick: {
1210
+ fontFamily: 'Inter',
1211
+ fontWeight: 400,
1212
+ fontSize: 12,
1213
+ color: theme.colors.gray800,
1214
+ }, domain: ['dataMin', 'dataMax'], interval: 'preserveStartEnd', tickCount: 1, tickFormatter: (value) => String(Math.round((value + Number.EPSILON) * 100) / 100), allowDecimals: true }),
1215
+ React__default.createElement(YAxis, { domain: [
1216
+ (dataMin) => Math.min(dataMin, y || dataMin),
1217
+ (dataMax) => {
1218
+ return Math.max(dataMax, y || dataMax);
1219
+ },
1220
+ ], tickLine: false, tickMargin: 7, width: 45, tickCount: 10, allowDecimals: true, tickFormatter: (value) => String(Math.round((value + Number.EPSILON) * 100) / 100), tick: {
1221
+ fontFamily: 'Inter',
1222
+ fontWeight: 400,
1223
+ fontSize: 12,
1224
+ color: theme.colors.gray800,
1225
+ } }),
1226
+ (locale === LOCALE.Indonesia
1227
+ ? LABELS_Z_SCORE
1228
+ : LABELS_PERCENTILE).map((label, index) => (React__default.createElement(React__default.Fragment, null, label.name === 'history' ? (React__default.createElement(Line, { key: index, connectNulls: true, type: "linear", dataKey: "history", stroke: label.color, strokeWidth: 2, dot: {
1229
+ stroke: label.color,
1230
+ fill: label.color,
1231
+ strokeWidth: 1,
1232
+ r: 4,
1233
+ strokeDasharray: '',
1234
+ }, activeDot: true, color: label.color })) : (React__default.createElement(Line, { key: label.name, type: "linear", dataKey: label.name, stroke: label.color, dot: false, activeDot: false, connectNulls: true,
1235
+ //@ts-ignore
1236
+ label: React__default.createElement(CustomLineLabel, { last: (refinedData === null || refinedData === void 0 ? void 0 : refinedData.length)
1237
+ ? refinedData.length - 1
1238
+ : 0, name: (label === null || label === void 0 ? void 0 : label.label) || label.name }), tooltipType: "none" }))))),
1239
+ typeof x !== 'undefined' && typeof y !== 'undefined' && (React__default.createElement(ReferenceDot, { onClick: () => setIsTooltipActive(true), x: x === 0 ? 1 : x, y: y, r: 4, shape: React__default.createElement(CustomReferenceDot, { ref: ref, r: 4 }), fill: theme.colors.primaryBase, stroke: theme.colors.primaryBase }))))),
1240
+ React__default.createElement("div", { className: "custom-chart-label" },
1241
+ React__default.createElement("i", null),
1242
+ React__default.createElement(Text, { size: "n1", color: theme.colors.gray500 }, xLabel))));
1243
+ };
1244
+
1245
+ export { BabyGrowthChart, BabyGrowthChartPercentile, BabyGrowthChartZScore, BabyGrowthChooseProfileDrawer, BabyGrowthLegend, BabyGrowthProfileRadio, BabyGrowthRecord, BabyGrowthSwitch, BabyGrowthSwitchChart, BabyGrowthTooltip, ChildCard, LABELS_PERCENTILE, LABELS_Z_SCORE, divideChartData, generateGrowthChart, generateXAxisTicks, getAxisYDomain, paintAxis, refineDataWithDot, refineDataWithLine, transformDataToChart };