@hhgtech/hhg-components 1.19.16 → 1.19.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (91) hide show
  1. package/build/{useFbDataLayer-49119223.js → ageGenerate-bcd37ccf.js} +1 -1
  2. package/build/babyGrowth.js +1 -1
  3. package/build/care.js +1 -1
  4. package/build/components/molecules/babyGrowthChooseProfileDrawer/index.d.ts +3 -1
  5. package/build/components/organisms/navigationV2/hooks/useHeaderHeight.d.ts +1 -0
  6. package/build/components.js +1 -1
  7. package/build/{theme-7830aadf.js → constants-d4ec4195.js} +1 -1
  8. package/build/core.js +1 -1
  9. package/build/ecom.js +1 -1
  10. package/build/esm/ageGenerate-61e2769b.js +1 -0
  11. package/build/esm/babyGrowth.js +1 -1
  12. package/build/esm/care.js +1 -1
  13. package/build/esm/components.js +1 -1
  14. package/build/esm/{theme-886d0d2f.js → constants-17d17987.js} +1 -1
  15. package/build/esm/core.js +1 -1
  16. package/build/esm/ecom.js +1 -1
  17. package/build/esm/i18n.js +1 -1
  18. package/build/esm/{index-913475f3.js → index-3a36f8a0.js} +1 -1
  19. package/build/esm/index-448bb306.js +1 -0
  20. package/build/esm/index-6e0cbc08.js +1 -0
  21. package/build/esm/index-84fac470.js +1 -0
  22. package/build/esm/{index-34fd4ca2.js → index-a74b53cb.js} +1 -1
  23. package/build/esm/{index-854bfede.js → index-e25a976f.js} +1 -1
  24. package/build/esm/{index-ca8a65c8.js → index-e3b386f9.js} +1 -1
  25. package/build/esm/index.js +1 -1
  26. package/build/esm/index.styled-6559ec11.js +1 -0
  27. package/build/esm/index.styled-c1edfd6f.js +1 -0
  28. package/build/esm/{index.styled-9275ccf5.js → index.styled-c5e035f3.js} +1 -1
  29. package/build/esm/navigation.js +1 -1
  30. package/build/esm/number-126ee62e.js +1 -0
  31. package/build/esm/routing-93ed4dbc.js +1 -0
  32. package/build/esm/theme-731042bc.js +1 -0
  33. package/build/esm/together.js +1 -1
  34. package/build/esm/translationsContext-221a5963.js +1 -0
  35. package/build/esm/translationsProvider-3b4b064d.js +1 -0
  36. package/build/esm/types-0402f8a4.js +1 -0
  37. package/build/esm/types-0b6d82bd.js +1 -0
  38. package/build/esm/types-4f1b39fd.js +1 -0
  39. package/build/esm/useTranslations-d76b98a9.js +1 -0
  40. package/build/i18n.js +1 -1
  41. package/build/{index-a0e1567e.js → index-12a7ec3c.js} +1 -1
  42. package/build/index-164221e6.js +1 -0
  43. package/build/{index-906c77a2.js → index-17aecf8d.js} +1 -1
  44. package/build/index-84b9f3e8.js +1 -0
  45. package/build/{index-0df9a517.js → index-aa538c1f.js} +1 -1
  46. package/build/index-c198e6e5.js +1 -0
  47. package/build/{index-a8e54837.js → index-ea33edba.js} +1 -1
  48. package/build/index.js +1 -1
  49. package/build/index.styled-4a3d1b58.js +1 -0
  50. package/build/index.styled-4b2a8c64.js +1 -0
  51. package/build/{index.styled-04f94566.js → index.styled-b187cc54.js} +1 -1
  52. package/build/misc/utils.d.ts +1 -0
  53. package/build/navigation.js +1 -1
  54. package/build/number-95704111.js +1 -0
  55. package/build/routing-3fb6d350.js +1 -0
  56. package/build/theme-6cd33b22.js +1 -0
  57. package/build/together.js +1 -1
  58. package/build/translationsContext-f8e45a1a.js +1 -0
  59. package/build/translationsProvider-91e90e10.js +1 -0
  60. package/build/types-2b869035.js +1 -0
  61. package/build/types-55844911.js +1 -0
  62. package/build/types-9555904f.js +1 -0
  63. package/build/useTranslations-a86f0d1c.js +1 -0
  64. package/package.json +1 -1
  65. package/build/esm/index-652b0a74.js +0 -1
  66. package/build/esm/index-9644b600.js +0 -1
  67. package/build/esm/index-ea077d6c.js +0 -1
  68. package/build/esm/index.styled-4e2d45c1.js +0 -1
  69. package/build/esm/index.styled-6ceb1ffe.js +0 -1
  70. package/build/esm/number-3cb24023.js +0 -1
  71. package/build/esm/routing-d6ceeffd.js +0 -1
  72. package/build/esm/translationsContext-e813aff9.js +0 -1
  73. package/build/esm/translationsProvider-5f0618c7.js +0 -1
  74. package/build/esm/types-209a2b6c.js +0 -1
  75. package/build/esm/types-35f3d422.js +0 -1
  76. package/build/esm/types-ebaf3833.js +0 -1
  77. package/build/esm/useFbDataLayer-e9860653.js +0 -1
  78. package/build/esm/useTranslations-443c50f3.js +0 -1
  79. package/build/index-a8d94311.js +0 -1
  80. package/build/index-d551cf10.js +0 -1
  81. package/build/index-e302ff07.js +0 -1
  82. package/build/index.styled-0b580017.js +0 -1
  83. package/build/index.styled-80cb4d3a.js +0 -1
  84. package/build/number-87b13133.js +0 -1
  85. package/build/routing-1865523f.js +0 -1
  86. package/build/translationsContext-d7c8e0a0.js +0 -1
  87. package/build/translationsProvider-cc84606e.js +0 -1
  88. package/build/types-18923efa.js +0 -1
  89. package/build/types-27402c2a.js +0 -1
  90. package/build/types-cc6f9312.js +0 -1
  91. package/build/useTranslations-3a6e3bef.js +0 -1
@@ -0,0 +1 @@
1
+ import e,{useRef as t,useState as a,useCallback as l}from"react";import{u as n,G as r,L as i}from"./useTranslations-d76b98a9.js";import{a0 as c,a1 as o,a2 as C,a3 as m,a4 as s,a5 as d,a6 as h,a7 as f,a8 as v,a9 as E,aa as w,ab as g,ac as p,ad as u,ae as z,af as M,ag as y,ah as L,T as H,ai as V,aj as x,ak as b,al as B,am as Z,M as k,B as A}from"./index.styled-c5e035f3.js";import{t as G}from"./theme-731042bc.js";import{format as F}from"date-fns";import{startCase as N}from"lodash";import{H as _}from"./index-e3b386f9.js";import"react-range";import"react-dom";import{S as P,a as R,b as D,c as S}from"./index.styled-c1edfd6f.js";import{u as j}from"./useOutsideClick-6004483a.js";import{b as I,_ as T}from"./tslib.es6-fd0a5c98.js";var K={Ask:c,BarChart:o,Booking:C,Bookmark:m,Boy:function(t){var a=t.size,l=void 0===a?40:a,n=I(t,["size"]);return e.createElement("svg",T({xmlns:"http://www.w3.org/2000/svg",width:l,height:l,fill:"none",viewBox:"0 0 40 40"},n),e.createElement("circle",{cx:"20",cy:"20",r:"20",fill:"#2D87F3"}),e.createElement("path",{fill:"#fff",d:"M20.002 30.973c-2.616 0-4.945-.607-6.734-1.755-1.82-1.166-3.058-2.884-3.604-4.992-.045 0-.09.003-.136.003-.758 0-1.486-.3-2.023-.834a2.843 2.843 0 010-4.029 2.868 2.868 0 012.194-.83c.577-2.321 1.83-4.42 3.567-5.952C15.16 10.918 17.552 10 20.002 10s4.84.918 6.733 2.587c1.737 1.53 2.99 3.628 3.567 5.952a2.868 2.868 0 012.194.83 2.843 2.843 0 010 4.028 2.868 2.868 0 01-2.16.831c-.546 2.106-1.782 3.826-3.602 4.992-1.79 1.146-4.118 1.753-6.732 1.753z"}),e.createElement("path",{fill:"#2D87F3",d:"M17.95 13.19h-.014a.525.525 0 00-.524.509c0 .015-.059 1.466-2.006 1.927a.525.525 0 00-.389.63.523.523 0 00.633.386c2.18-.516 2.793-2.134 2.812-2.917a.519.519 0 00-.313-.491.527.527 0 00-.2-.044zM20.591 12.874a.524.524 0 00-.326.663c.004.014.455 1.396-1.212 2.5a.521.521 0 00.19.936.526.526 0 00.39-.066c1.866-1.236 1.878-2.966 1.625-3.708a.521.521 0 00-.464-.352.529.529 0 00-.203.027zM23.292 13.4a.525.525 0 00-.735.749c.008.007.787.783.35 2.119a.523.523 0 00.898.508.523.523 0 00.098-.183c.641-1.946-.56-3.142-.611-3.192zM15.977 21.818a1.365 1.365 0 000-1.936 1.38 1.38 0 00-1.945 0 1.365 1.365 0 000 1.936 1.38 1.38 0 001.945 0zM25.445 22.172a1.368 1.368 0 10-.682-2.652 1.369 1.369 0 10.682 2.652zM22.837 22.755a.532.532 0 00-.66.338c-.005.012-.414 1.222-2.124 1.222-1.71 0-2.12-1.21-2.124-1.222a.523.523 0 00-.998.316c.026.08.656 1.947 3.123 1.947s3.097-1.867 3.122-1.947a.52.52 0 00-.339-.654z"}))},Calendar:function(t){var a=t.size,l=void 0===a?20:a,n=t.color,r=void 0===n?"#595959":n,i=I(t,["size","color"]);return e.createElement("svg",T({width:l,height:l,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.8337 2.50065H16.667C17.5837 2.50065 18.3337 3.25065 18.3337 4.16732V17.5006C18.3337 18.4173 17.5837 19.1673 16.667 19.1673H3.33366C2.41699 19.1673 1.66699 18.4173 1.66699 17.5006V4.16732C1.66699 3.25065 2.41699 2.50065 3.33366 2.50065H4.16699V1.66732C4.16699 1.20898 4.54199 0.833984 5.00033 0.833984C5.45866 0.833984 5.83366 1.20898 5.83366 1.66732V2.50065H14.167V1.66732C14.167 1.20898 14.542 0.833984 15.0003 0.833984C15.4587 0.833984 15.8337 1.20898 15.8337 1.66732V2.50065ZM4.16699 17.5007H15.8337C16.292 17.5007 16.667 17.1257 16.667 16.6673V6.66732H3.33366V16.6673C3.33366 17.1257 3.70866 17.5007 4.16699 17.5007Z",fill:r}))},Community:s,EditSpecial:d,Family:h,Font:f,GenderBoy:function(t){var a=t.size,l=void 0===a?16:a,n=I(t,["size"]);return e.createElement("svg",T({xmlns:"http://www.w3.org/2000/svg",width:l,height:l,fill:"none",viewBox:"0 0 16 16"},n),e.createElement("g",{fill:"#595959",clipPath:"url(#clip0_408_8625)"},e.createElement("path",{d:"M15.325 1.199a.602.602 0 00-.038-.151v-.005h-.001a.618.618 0 00-.107-.168.623.623 0 00-.117-.105l-.004-.002a.6.6 0 00-.175-.078.609.609 0 00-.161-.024h-4.278a.611.611 0 000 1.223h2.802L9.6 5.535a5.469 5.469 0 00-3.433-1.203 5.506 5.506 0 00-5.5 5.5c0 3.033 2.468 5.5 5.5 5.5 3.033 0 5.5-2.467 5.5-5.5 0-1.262-.425-2.46-1.203-3.433l3.648-3.647v2.802a.611.611 0 001.222 0V1.277c0-.012-.003-.025-.004-.037a.617.617 0 00-.004-.041zM6.166 14.11A4.282 4.282 0 011.89 9.833a4.282 4.282 0 017.303-3.028 4.282 4.282 0 01-3.026 7.305z"}),e.createElement("path",{fillRule:"evenodd",d:"M15.287 1.048a.602.602 0 01.042.192l.002.016a.156.156 0 01.002.021v4.278a.611.611 0 01-1.222 0V2.753L10.463 6.4a5.469 5.469 0 011.203 3.433c0 3.033-2.467 5.5-5.5 5.5a5.506 5.506 0 01-5.5-5.5c0-3.033 2.468-5.5 5.5-5.5 1.263 0 2.46.425 3.433 1.203l3.647-3.647h-2.802a.611.611 0 010-1.223h4.278a.609.609 0 01.197.036.6.6 0 01.14.067h.003a.623.623 0 01.14.135h.001a.618.618 0 01.083.138v.003l.001.003zm.064-.02c.021.053.033.107.04.162m-.04-.162a.695.695 0 00-.096-.165l-.001-.002c-.008-.009-.016-.02-.026-.03A.69.69 0 0015.1.715m-.2-.089A.675.675 0 0014.722.6h-4.278a.678.678 0 000 1.355h2.641L9.594 5.447a5.535 5.535 0 00-3.428-1.18A5.573 5.573 0 00.6 9.832 5.573 5.573 0 006.166 15.4a5.573 5.573 0 005.567-5.567c0-1.257-.417-2.45-1.18-3.427l3.491-3.492v2.641a.678.678 0 001.356 0V1.277a.202.202 0 00-.003-.027v-.004l-.001-.01a.743.743 0 00-.005-.046M1.955 9.833a4.216 4.216 0 004.211 4.211 4.216 4.216 0 002.979-7.191 4.216 4.216 0 00-7.19 2.98zm7.237-3.028a4.282 4.282 0 00-7.304 3.028 4.282 4.282 0 004.278 4.278 4.282 4.282 0 003.026-7.306z",clipRule:"evenodd"})),e.createElement("defs",null,e.createElement("clipPath",{id:"clip0_408_8625"},e.createElement("path",{fill:"#fff",d:"M0 0H16V16H0z"}))))},GenderChooseBoy:function(t){return e.createElement("svg",T({xmlns:"http://www.w3.org/2000/svg",width:"21",height:"20",fill:"none",viewBox:"0 0 21 20"},t),e.createElement("g",{clipPath:"url(#clip0_3_24176)"},e.createElement("path",{fill:"#45A4FF",d:"M11.203 7.633l1.914 1.914 6.397-6.397L17.6 1.235l-6.397 6.398z"}),e.createElement("path",{fill:"#45A4FF",d:"M8.083 5.334a7.333 7.333 0 100 14.667 7.333 7.333 0 000-14.667zm0 11.96a4.626 4.626 0 110-9.253 4.626 4.626 0 010 9.252z"}),e.createElement("path",{fill:"#2D87F3",d:"M7.508 8.077a4.626 4.626 0 100 9.181 4.627 4.627 0 010-9.181zM8.083 5.334a7.43 7.43 0 00-.575.022 7.334 7.334 0 010 14.622 7.333 7.333 0 10.575-14.644zM19.88 2.785v-.78L18.744.872h-.78l-2.707 2.707h1.55c.2 0 .364.163.364.365v1.55l2.707-2.708z"}),e.createElement("path",{fill:"#45A4FF",d:"M18.043 0h-4.585a.365.365 0 00-.364.365v1.978c0 .201.163.364.364.364h4.22c.201 0 .365.163.365.365v4.22c0 .2.163.364.364.364h1.978a.365.365 0 00.365-.364V.365A.365.365 0 0020.385 0h-2.342z"})),e.createElement("defs",null,e.createElement("clipPath",{id:"clip0_3_24176"},e.createElement("path",{fill:"#fff",d:"M0 0H20V20H0z",transform:"translate(.75)"}))))},GenderChooseGirl:function(t){return e.createElement("svg",T({xmlns:"http://www.w3.org/2000/svg",width:"21",height:"20",fill:"none",viewBox:"0 0 21 20"},t),e.createElement("path",{fill:"#FE9DC2",d:"M13.748 15.546h-1.503a.321.321 0 01-.321-.322v-3.7H9.577v3.7a.321.321 0 01-.322.322H7.753a.321.321 0 00-.321.321v1.704c0 .178.144.322.321.322h1.502c.178 0 .322.144.322.321v1.465c0 .178.144.321.321.321h1.704a.321.321 0 00.322-.321v-1.465c0-.177.144-.321.321-.321h1.503a.321.321 0 00.321-.322v-1.704a.322.322 0 00-.321-.321z"}),e.createElement("path",{fill:"#FC488D",d:"M9.576 11.523v2.151a7.466 7.466 0 002.347 0v-2.15H9.576z"}),e.createElement("path",{fill:"#FE9DC2",d:"M10.75 0a6.357 6.357 0 100 12.715A6.357 6.357 0 0010.75 0zm0 10.368a4.01 4.01 0 110-8.021 4.01 4.01 0 010 8.021z"}),e.createElement("path",{fill:"#FC488D",d:"M10.157 2.391a4.01 4.01 0 100 7.934 4.011 4.011 0 010-7.934zM10.75 0c-.2 0-.398.01-.593.028a6.358 6.358 0 010 12.66A6.357 6.357 0 1010.75 0z"}))},GenderGirl:function(t){var a=t.size,l=void 0===a?16:a,n=I(t,["size"]);return e.createElement("svg",T({xmlns:"http://www.w3.org/2000/svg",width:l,height:l,fill:"none",viewBox:"0 0 16 16"},n),e.createElement("path",{fill:"#595959",d:"M11.445 8.979a4.875 4.875 0 000-6.888 4.879 4.879 0 00-6.89 0 4.875 4.875 0 000 6.888 4.849 4.849 0 002.872 1.39V12H6.28a.573.573 0 100 1.147h1.147v1.614a.573.573 0 001.146 0v-1.614H9.72a.573.573 0 100-1.146H8.573v-1.63a4.849 4.849 0 002.872-1.391zm-6.08-.81a3.728 3.728 0 010-5.268 3.73 3.73 0 015.27 0 3.728 3.728 0 010 5.267 3.73 3.73 0 01-5.27 0z"}),e.createElement("path",{fill:"#595959",fillRule:"evenodd",d:"M5.366 8.168a3.73 3.73 0 005.268 0 3.728 3.728 0 000-5.267 3.73 3.73 0 00-5.268 0 3.728 3.728 0 000 5.267zm6.15-6.148a4.975 4.975 0 010 7.03 4.948 4.948 0 01-2.843 1.407V11.9H9.72a.673.673 0 110 1.346H8.673v1.514a.673.673 0 01-1.346 0v-1.514H6.28a.673.673 0 110-1.346h1.046v-1.443A4.948 4.948 0 014.484 9.05a4.975 4.975 0 010-7.029 4.979 4.979 0 017.032 0zm-4.09 8.35a4.849 4.849 0 01-2.871-1.391 4.875 4.875 0 010-6.888 4.879 4.879 0 016.89 0 4.875 4.875 0 010 6.888 4.849 4.849 0 01-2.872 1.39V12H9.72a.573.573 0 110 1.147H8.573v1.614a.573.573 0 01-1.146 0v-1.614H6.28a.573.573 0 110-1.146h1.147v-1.63zm-1.99-7.398a3.628 3.628 0 000 5.126 3.63 3.63 0 005.128 0 3.628 3.628 0 000-5.126 3.63 3.63 0 00-5.128 0z",clipRule:"evenodd"}))},Girl:function(t){var a=t.size,l=void 0===a?40:a,n=I(t,["size"]);return e.createElement("svg",T({xmlns:"http://www.w3.org/2000/svg",width:l,height:l,fill:"none",viewBox:"0 0 24 24"},n),e.createElement("circle",{cx:"12",cy:"12",r:"12",fill:"#FC5D9A"}),e.createElement("path",{fill:"#fff",d:"M18.283 11.759c-.034 0-.068 0-.102.003-.346-1.394-1.099-2.652-2.14-3.57a6.132 6.132 0 00-3.726-1.544v-.532a2.062 2.062 0 001.617-.634 1.178 1.178 0 000-1.638 1.13 1.13 0 00-1.626 0c-.116.119-.218.25-.305.392a2.212 2.212 0 00-.308-.393 1.13 1.13 0 00-1.625 0 1.179 1.179 0 000 1.638 2.06 2.06 0 001.5.639c.041 0 .08 0 .117-.004v.533a6.143 6.143 0 00-3.726 1.543c-1.042.918-1.793 2.177-2.14 3.572a1.72 1.72 0 00-1.317.498 1.706 1.706 0 000 2.417c.323.32.76.5 1.215.5.027 0 .054 0 .081-.002a4.968 4.968 0 002.162 2.996c1.073.69 2.47 1.053 4.04 1.053 1.57 0 2.967-.364 4.04-1.053a4.987 4.987 0 002.162-2.998 1.72 1.72 0 001.295-.499 1.705 1.705 0 000-2.417c-.322-.32-.759-.5-1.214-.5zm-5.527-7.477a.5.5 0 01.724 0 .55.55 0 010 .763 1.446 1.446 0 01-1.165.446 1.834 1.834 0 01-.004-.077v-.09c.01-.392.168-.764.445-1.042zm-2.238.762a.55.55 0 010-.763.501.501 0 01.724 0c.276.278.435.65.444 1.042v.09c0 .027-.002.053-.004.078a1.45 1.45 0 01-1.164-.447z"}),e.createElement("path",{fill:"#FC5D9A",d:"M9.586 13.68a.819.819 0 000-1.161.828.828 0 00-1.167 0 .819.819 0 000 1.162c.323.32.845.32 1.167 0zM15.267 13.894a.821.821 0 10-.41-1.592.821.821 0 10.41 1.592zM13.704 14.242a.32.32 0 00-.282.045.314.314 0 00-.114.159c-.002.007-.248.733-1.274.733-1.027 0-1.272-.726-1.275-.733a.314.314 0 10-.598.19c.016.046.394 1.168 1.873 1.168s1.858-1.12 1.873-1.168a.313.313 0 00-.203-.394zM12.402 7.713a.315.315 0 00-.53.24.313.313 0 00.1.218c.253.248.466.533.632.845.316.61.298 1.118-.056 1.551-.403.493-.865.449-1.104.378-.33-.096-.598-.351-.625-.595-.03-.263.058-.585.318-.71.165-.077.337-.039.486.11a.315.315 0 00.538-.22.313.313 0 00-.092-.222c-.336-.337-.797-.426-1.204-.232-.473.226-.737.752-.671 1.343.055.494.495.957 1.072 1.128.151.045.308.067.465.068.491 0 .958-.228 1.305-.652.514-.63.558-1.402.127-2.234a4.11 4.11 0 00-.761-1.016z"}))},Heart:v,Home:E,Kebab:function(t){var a=t.size,l=void 0===a?20:a,n=I(t,["size"]);return e.createElement("svg",T({xmlns:"http://www.w3.org/2000/svg",width:l,height:l,fill:"none",viewBox:"0 0 20 20"},n),e.createElement("path",{fill:"#000",fillOpacity:"0.54",fillRule:"evenodd",d:"M10 6.667c.916 0 1.666-.75 1.666-1.666 0-.917-.75-1.667-1.666-1.667-.917 0-1.667.75-1.667 1.667 0 .916.75 1.666 1.667 1.666zm0 1.667c-.917 0-1.667.75-1.667 1.667 0 .916.75 1.666 1.667 1.666.916 0 1.666-.75 1.666-1.666 0-.917-.75-1.667-1.666-1.667zm-1.667 6.667c0-.917.75-1.667 1.667-1.667.916 0 1.666.75 1.666 1.667 0 .916-.75 1.666-1.666 1.666-.917 0-1.667-.75-1.667-1.666z",clipRule:"evenodd"}))},Like:w,MyCommunity:g,PlusSpecial:p,Recalculate:u,Scale:z,Share:M,Stethoscope:y},O=function(t){var a=t.value,l=t.onChange,i=n().t;return e.createElement(L,null,e.createElement(H,{size:"label2",type:"bold",style:{marginBottom:"0.5rem"}},i("babyVaccineTool.selectGender")),e.createElement(V,{options:[{value:r.Girl,label:i("gender.female"),content:e.createElement(K.GenderChooseGirl,null)},{value:r.Boy,label:i("gender.male"),content:e.createElement(K.GenderChooseBoy,null)}],value:a,onChange:l,className:"gender-selector"}))},W=function(t){var a=t.legends,l=t.locale;return e.createElement(x,null,a.map((function(t,a){return e.createElement(b,{key:a},e.createElement("span",{className:"dot",style:{backgroundColor:t.color}}),e.createElement(H,{size:"n1",color:G.colors.gray800},l===i.Indonesia?t["z-score"]:t.text))})))},q=function(t){var a=t.profile,l=t.onChange,n=t.isActive;return e.createElement(B,{onClick:function(){return l(a.id)}},e.createElement("div",{className:"baby"},"male"===a.gender?e.createElement(K.Boy,{size:24}):e.createElement(K.Girl,{size:24}),e.createElement(H,{size:"p2",color:G.colors.gray800},a.name)),e.createElement("div",{className:n?"radio active":"radio"}))},J=function(e,t){return e?e+" "+(t||""):"--"},Q=function(t){var a=t.measurementDate,l=void 0===a?new Date:a,n=t.weight,r=t.height,i=t.head,c=t.onEdit;return e.createElement(Z,null,e.createElement("div",{className:"time"},e.createElement("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.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"})),e.createElement(H,{size:"p3",color:G.colors.gray600},F(l,"dd/mm/yyyy")),e.createElement("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"edit-button",onClick:c},e.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"}))),e.createElement("div",{className:"record"},e.createElement("div",{className:"record-item"},e.createElement("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.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"}),e.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"}),e.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"})),e.createElement(H,{size:"s3",color:G.colors.gray800,type:"semiBold"},J(n,"kg"))),e.createElement("div",{className:"record-item"},e.createElement("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("g",{clipPath:"url(#clip0_855_82991)"},e.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"})),e.createElement("defs",null,e.createElement("clipPath",{id:"clip0_855_82991"},e.createElement("rect",{width:"16",height:"16",fill:"white",transform:"translate(16.6055) rotate(90)"})))),e.createElement(H,{size:"s3",color:G.colors.gray800,type:"semiBold"},J(r,"cm"))),e.createElement("div",{className:"record-item"},e.createElement("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("g",{clipPath:"url(#clip0_855_82994)"},e.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"}),e.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"}),e.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"})),e.createElement("defs",null,e.createElement("clipPath",{id:"clip0_855_82994"},e.createElement("rect",{width:"16",height:"16",fill:"white",transform:"translate(0.234375)"})))),e.createElement(H,{size:"s3",color:G.colors.gray800,type:"semiBold"},J(i,"cm")))))},U=function(a){var l=a.name,r=a.onClose,i=a.onEdit,c=a.onSwitch,o=a.onAdd,C=a.onRemove,m=n().t,s=t();return j(s,r),e.createElement("div",{ref:s},e.createElement(P,{width:250},e.createElement(k.Item,{onClick:i,icon:e.createElement("svg",{width:"16",height:"17",viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.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"}))},e.createElement(H,{size:"p2",color:G.colors.gray800},m("childCard.menu.edit",{name:l}))),e.createElement(k.Item,{onClick:c,icon:e.createElement("svg",{width:"16",height:"17",viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.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"}))},e.createElement(H,{size:"p2",color:G.colors.gray800},m("childCard.menu.switch"))),e.createElement(k.Item,{onClick:o,icon:e.createElement("svg",{width:"16",height:"17",viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.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"}),e.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"}))},e.createElement(H,{size:"p2",color:G.colors.gray800},m("childCard.menu.add"))),e.createElement(k.Item,{onClick:C,icon:e.createElement("svg",{width:"16",height:"17",viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.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"}))},e.createElement(H,{size:"p2",color:G.colors.red600},m("childCard.menu.remove",{name:l})))))},X=function(t){var i=t.name,c=t.gender,o=t.age,C=t.isLoggedIn,m=void 0!==C&&C,s=t.showMenu,d=void 0!==s&&s,h=t.onEdit,f=t.onSwitch,v=t.onAdd,E=t.onRemove,w=t.className,g=n().t,p=a(!1),u=p[0],z=p[1],M=l((function(){if(o)if(o.year<1){if(0===o.month)switch(o.week){case 0:case 1:return g("childCard.age.oneWeek");default:return g("childCard.age.week",{weeks:o.week})}if(o.month>0)return g("childCard.age.months",{month:o.month})}else{if(0===o.month)return g("childCard.age.yearNoMonth",{year:o.year});if(o.month>0)return g("childCard.age.yearMonth",{year:o.year,month:o.month})}}),[o]);return e.createElement(R,{className:w},e.createElement("div",{"data-testid":"gender"},c===r.Boy?e.createElement(K.Boy,{"data-testid":"boy",id:"boy"}):e.createElement(K.Girl,{"data-testid":"girl",id:"girl"})),e.createElement("div",{className:"information"},e.createElement(_,{tag:"h5",fontWeight:"bold",color:G.colors.gray800},N(i)||g("childCard.noName")),e.createElement("div",{className:"detail"},e.createElement("div",null,c===r.Boy?e.createElement(K.GenderBoy,null):e.createElement(K.GenderGirl,null),e.createElement(H,{size:"p3",color:G.colors.gray800,style:{textTransform:"capitalize"}},c)),e.createElement("div",null,e.createElement(K.Calendar,{size:16}),o&&e.createElement(H,{size:"p3",color:G.colors.gray800},M())))),d&&m&&e.createElement(D,null,e.createElement(K.Kebab,{onClick:function(){return z((function(e){return!e}))}}),u&&e.createElement(U,{name:i,onClose:function(){return z(!1)},onEdit:function(){z(!1),h()},onSwitch:function(){z(!1),f()},onAdd:function(){z(!1),v()},onRemove:function(){z(!1),E()}})))},Y=function(t){var l=t.babyProfiles,r=t.onClose,i=t.onCreate,c=t.onAddMeasurement,o=t.onSwitchProfile,C=t.open,m=t.isMyProfile,s=void 0!==m&&m,d=I(t,["babyProfiles","onClose","onCreate","onAddMeasurement","onSwitchProfile","open","isMyProfile"]),h=a(l[0].id),f=h[0],v=h[1],E=n().t;return e.createElement(S,T({title:"Baby profiles",onClose:r,open:C,placement:"bottom"},d),(function(t){var a=t.internalClose;return e.createElement("div",{className:"add-profile-container"},e.createElement("div",{className:"profile-container"},l.map((function(t){return e.createElement(q,{key:t.id,profile:t,isActive:f===t.id,onChange:v})}))),e.createElement("div",{className:"button-group"},e.createElement(A,{onClick:function(){a(),null==i||i()},size:"lg",color:"secondary",icon:e.createElement("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.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"}))},E("babyGrowth.drawer.createBaby")),e.createElement(A,{size:"lg",color:"primary",onClick:function(){a(),s?null==o||o(f):null==c||c(f)}},E(s?"babyGrowth.drawer.switchProfile":"babyGrowth.drawer.addMeasurement"))))}))};export{O as B,X as C,K as I,W as a,q as b,Q as c,Y as d};