@hhgtech/hhg-components 1.21.0-beta-17 → 1.21.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (177) hide show
  1. package/build/babyGrowth.js +1 -1
  2. package/build/care.js +1 -1
  3. package/build/components/atoms/icons/Check.d.ts +4 -0
  4. package/build/components/atoms/icons/UserCheck.d.ts +4 -0
  5. package/build/components/atoms/icons/index.d.ts +2 -0
  6. package/build/{assets/svg → components/atoms/rateStars}/StarEmptyIcon.d.ts +0 -0
  7. package/build/components/atoms/rateStars/StarFullIcon.d.ts +3 -0
  8. package/build/components/atoms/rateStars/StarHalfIcon.d.ts +3 -0
  9. package/build/components/molecules/embeddedHeathToolCards/index.styled.d.ts +1 -1
  10. package/build/components/molecules/embeddedHeathToolCards/pwg.d.ts +17 -0
  11. package/build/components/molecules/index.d.ts +2 -0
  12. package/build/components/molecules/weightGainForm/index.d.ts +11 -0
  13. package/build/components/molecules/weightGainForm/index.styled.d.ts +19 -0
  14. package/build/components/organisms/navigationLogoutPopup/index.d.ts +2 -2
  15. package/build/components.js +1 -1
  16. package/build/en-PH-bc11cfc2.js +1 -0
  17. package/build/esm/babyGrowth.js +1 -1
  18. package/build/esm/care.js +1 -1
  19. package/build/esm/components.js +1 -1
  20. package/build/esm/en-PH-71017453.js +1 -0
  21. package/build/esm/getSocialList-2f760404.js +1 -0
  22. package/build/esm/hooks.js +1 -1
  23. package/build/esm/i18n.js +1 -1
  24. package/build/esm/{index-d009b597.js → index-642d36c8.js} +1 -1
  25. package/build/esm/index-7a537be1.js +1 -0
  26. package/build/esm/{index-0d69362e.js → index-93d22d63.js} +1 -1
  27. package/build/esm/index-9bacff82.js +1 -0
  28. package/build/esm/index-c5875449.js +1 -0
  29. package/build/esm/index-f3a0141e.js +1 -0
  30. package/build/esm/index-f5450aa0.js +1 -0
  31. package/build/esm/index-f8e043bf.js +1 -0
  32. package/build/esm/index.js +1 -1
  33. package/build/esm/index.styled-d8a819ea.js +1 -0
  34. package/build/esm/{index.styled-b9f4b7d1.js → index.styled-faeac279.js} +1 -1
  35. package/build/esm/mantine.js +1 -1
  36. package/build/esm/misc.js +1 -1
  37. package/build/esm/navigation.js +1 -1
  38. package/build/esm/screenSizeContext-12f741e1.js +1 -0
  39. package/build/esm/together.js +1 -1
  40. package/build/esm/translationsProvider-cd9f6f24.js +1 -0
  41. package/build/esm/types-9f13ee08.js +1 -0
  42. package/build/esm/types-e5491c06.js +1 -0
  43. package/build/esm/{useTranslations-ad4d9d26.js → useTranslations-3e47eecc.js} +1 -1
  44. package/build/getSocialList-561c9bda.js +1 -0
  45. package/build/hooks.js +1 -1
  46. package/build/i18n.js +1 -1
  47. package/build/{index-79ca5c8f.js → index-06ae8f3a.js} +1 -1
  48. package/build/index-18fad696.js +1 -0
  49. package/build/index-2555a201.js +1 -0
  50. package/build/index-5d420cf1.js +1 -0
  51. package/build/index-89bb7100.js +1 -0
  52. package/build/index-a8a74936.js +1 -0
  53. package/build/{index-c2b118f9.js → index-eb84390c.js} +1 -1
  54. package/build/{index-b0b1dce7.js → index-ef8759f0.js} +1 -1
  55. package/build/index.js +1 -1
  56. package/build/{index.styled-6d954724.js → index.styled-03c4dedb.js} +1 -1
  57. package/build/index.styled-1e5dd97e.js +1 -0
  58. package/build/mantine.js +1 -1
  59. package/build/misc.js +1 -1
  60. package/build/navigation.js +1 -1
  61. package/build/{screenSizeContext-6726a3b5.js → screenSizeContext-60cc891b.js} +1 -1
  62. package/build/together/components/molecules/popupFrame/popupShare.d.ts +2 -2
  63. package/build/together/components/molecules/postImagePreview/imagePreviewPopup.d.ts +2 -2
  64. package/build/together/components/molecules/postImagePreview/postSingleImageViewPopup/index.d.ts +2 -2
  65. package/build/together.js +1 -1
  66. package/build/translationsProvider-25c99317.js +1 -0
  67. package/build/types-8591cb2a.js +1 -0
  68. package/build/types-aac7135c.js +1 -0
  69. package/build/useTranslations-60d001df.js +1 -0
  70. package/package.json +1 -7
  71. package/build/assets/svg/StarFullIcon.d.ts +0 -3
  72. package/build/assets/svg/StarHalfIcon.d.ts +0 -3
  73. package/build/assets/svg/index.d.ts +0 -21
  74. package/build/components/molecules/embeddedHeathToolCards/image.d.ts +0 -1
  75. package/build/components/organisms/navigationLayout_deprecated/CustomFooter.d.ts +0 -33
  76. package/build/components/organisms/navigationLayout_deprecated/ampSideBar/index.d.ts +0 -28
  77. package/build/components/organisms/navigationLayout_deprecated/ampSideBar/index.styled.d.ts +0 -2
  78. package/build/components/organisms/navigationLayout_deprecated/constants.d.ts +0 -99
  79. package/build/components/organisms/navigationLayout_deprecated/exportLegacy.d.ts +0 -6
  80. package/build/components/organisms/navigationLayout_deprecated/footer/index.d.ts +0 -13
  81. package/build/components/organisms/navigationLayout_deprecated/footer/index.styled.d.ts +0 -2
  82. package/build/components/organisms/navigationLayout_deprecated/index.d.ts +0 -121
  83. package/build/components/organisms/navigationLayout_deprecated/index.styled.d.ts +0 -7
  84. package/build/components/organisms/navigationLayout_deprecated/languageWrapper.d.ts +0 -4
  85. package/build/components/organisms/navigationLayout_deprecated/languages/default.d.ts +0 -4
  86. package/build/components/organisms/navigationLayout_deprecated/layout.d.ts +0 -52
  87. package/build/components/organisms/navigationLayout_deprecated/marryBabyText/index.d.ts +0 -17
  88. package/build/components/organisms/navigationLayout_deprecated/marryBabyText/index.styled.d.ts +0 -8
  89. package/build/components/organisms/navigationLayout_deprecated/maryBabyFooter/index.d.ts +0 -30
  90. package/build/components/organisms/navigationLayout_deprecated/maryBabyFooter/index.styled.d.ts +0 -8
  91. package/build/components/organisms/navigationLayout_deprecated/menuCareList/categorySkeleton.d.ts +0 -3
  92. package/build/components/organisms/navigationLayout_deprecated/menuCareList/index.d.ts +0 -17
  93. package/build/components/organisms/navigationLayout_deprecated/menuCareList/index.styled.d.ts +0 -12
  94. package/build/components/organisms/navigationLayout_deprecated/menuCategoriesList/categorySkeleton.d.ts +0 -3
  95. package/build/components/organisms/navigationLayout_deprecated/menuCategoriesList/helloSites.d.ts +0 -20
  96. package/build/components/organisms/navigationLayout_deprecated/menuCategoriesList/index.d.ts +0 -23
  97. package/build/components/organisms/navigationLayout_deprecated/menuCategoriesList/index.styled.d.ts +0 -16
  98. package/build/components/organisms/navigationLayout_deprecated/menuCategoriesList/marryBaby.d.ts +0 -17
  99. package/build/components/organisms/navigationLayout_deprecated/menuCategoriesList/marryBaby.styled.d.ts +0 -11
  100. package/build/components/organisms/navigationLayout_deprecated/menuCategoriesList/spotlightsList/index.d.ts +0 -15
  101. package/build/components/organisms/navigationLayout_deprecated/menuCategoriesList/spotlightsList/index.styled.d.ts +0 -10
  102. package/build/components/organisms/navigationLayout_deprecated/menuCategoriesList/spotlightsList/spotlightSkeleton.d.ts +0 -3
  103. package/build/components/organisms/navigationLayout_deprecated/menuCommunitiesList/categorySkeleton.d.ts +0 -3
  104. package/build/components/organisms/navigationLayout_deprecated/menuCommunitiesList/helloSites.d.ts +0 -23
  105. package/build/components/organisms/navigationLayout_deprecated/menuCommunitiesList/index.d.ts +0 -23
  106. package/build/components/organisms/navigationLayout_deprecated/menuCommunitiesList/index.styled.d.ts +0 -13
  107. package/build/components/organisms/navigationLayout_deprecated/menuCommunitiesList/marryBaby.d.ts +0 -22
  108. package/build/components/organisms/navigationLayout_deprecated/menuCommunitiesList/marryBaby.styled.d.ts +0 -8
  109. package/build/components/organisms/navigationLayout_deprecated/menuHealthToolsList/categorySkeleton.d.ts +0 -3
  110. package/build/components/organisms/navigationLayout_deprecated/menuHealthToolsList/helloSites.d.ts +0 -25
  111. package/build/components/organisms/navigationLayout_deprecated/menuHealthToolsList/index.d.ts +0 -23
  112. package/build/components/organisms/navigationLayout_deprecated/menuHealthToolsList/index.styled.d.ts +0 -15
  113. package/build/components/organisms/navigationLayout_deprecated/menuHealthToolsList/marryBaby.d.ts +0 -16
  114. package/build/components/organisms/navigationLayout_deprecated/menuHealthToolsList/marrybaby.styled.d.ts +0 -8
  115. package/build/components/organisms/navigationLayout_deprecated/menuSectionCard/cardSkeleton.d.ts +0 -3
  116. package/build/components/organisms/navigationLayout_deprecated/menuSectionCard/index.d.ts +0 -13
  117. package/build/components/organisms/navigationLayout_deprecated/menuSectionCard/index.styled.d.ts +0 -2
  118. package/build/components/organisms/navigationLayout_deprecated/menuServiceList/categoriesSubList.d.ts +0 -19
  119. package/build/components/organisms/navigationLayout_deprecated/menuServiceList/communitySubList.d.ts +0 -20
  120. package/build/components/organisms/navigationLayout_deprecated/menuServiceList/index.d.ts +0 -58
  121. package/build/components/organisms/navigationLayout_deprecated/menuServiceList/index.styled.d.ts +0 -28
  122. package/build/components/organisms/navigationLayout_deprecated/menuServiceList/marryBabyMobileMenuSection.d.ts +0 -9
  123. package/build/components/organisms/navigationLayout_deprecated/navigationBar/ArrowLeftPopupIcon.d.ts +0 -2
  124. package/build/components/organisms/navigationLayout_deprecated/navigationBar/ClosePopupIcon.d.ts +0 -2
  125. package/build/components/organisms/navigationLayout_deprecated/navigationBar/HamburgerIcon.d.ts +0 -9
  126. package/build/components/organisms/navigationLayout_deprecated/navigationBar/NavigationBar.types.d.ts +0 -87
  127. package/build/components/organisms/navigationLayout_deprecated/navigationBar/NavigationBarMobile.d.ts +0 -3
  128. package/build/components/organisms/navigationLayout_deprecated/navigationBar/SearchIcon.d.ts +0 -3
  129. package/build/components/organisms/navigationLayout_deprecated/navigationBar/index.d.ts +0 -15
  130. package/build/components/organisms/navigationLayout_deprecated/navigationBar/index.styled.d.ts +0 -26
  131. package/build/components/organisms/navigationLayout_deprecated/navigationLogoutPopup/index.d.ts +0 -11
  132. package/build/components/organisms/navigationLayout_deprecated/navigationLogoutPopup/index.styled.d.ts +0 -6
  133. package/build/components/organisms/navigationLayout_deprecated/profilePopup/index.d.ts +0 -22
  134. package/build/components/organisms/navigationLayout_deprecated/profilePopupWrapper/index.d.ts +0 -14
  135. package/build/components/organisms/navigationLayout_deprecated/profilePopupWrapper/index.styled.d.ts +0 -2
  136. package/build/components/organisms/navigationLayout_deprecated/siteWide/index.d.ts +0 -23
  137. package/build/components/organisms/navigationLayout_deprecated/siteWide/index.styled.d.ts +0 -3
  138. package/build/components/organisms/navigationLayout_deprecated/sponsoredBy/index.d.ts +0 -28
  139. package/build/components/organisms/navigationLayout_deprecated/sponsoredBy/index.styled.d.ts +0 -3
  140. package/build/components/organisms/navigationLayout_deprecated/tooltipSelection/index.d.ts +0 -17
  141. package/build/components/organisms/navigationLayout_deprecated/tooltipSelection/index.styled.d.ts +0 -5
  142. package/build/components/organisms/navigationLayout_deprecated/types.d.ts +0 -263
  143. package/build/components/organisms/navigationLayout_deprecated/utils.d.ts +0 -62
  144. package/build/core.js +0 -1
  145. package/build/core_deprecated.d.ts +0 -4
  146. package/build/en-PH-7307aee7.js +0 -1
  147. package/build/esm/core.js +0 -1
  148. package/build/esm/en-PH-ca0683d7.js +0 -1
  149. package/build/esm/getSocialList-ff22842b.js +0 -1
  150. package/build/esm/index-4dca7f50.js +0 -1
  151. package/build/esm/index-a1df367b.js +0 -1
  152. package/build/esm/index-a2f795a2.js +0 -1
  153. package/build/esm/index-a4d7d7b7.js +0 -1
  154. package/build/esm/index-c9da804a.js +0 -1
  155. package/build/esm/index-dc96c2db.js +0 -1
  156. package/build/esm/index-fe9820b2.js +0 -1
  157. package/build/esm/index.styled-a87311b3.js +0 -1
  158. package/build/esm/navigationLayout_deprecated.js +0 -1
  159. package/build/esm/screenSizeContext-d6e9a094.js +0 -1
  160. package/build/esm/translationsProvider-bc47fc67.js +0 -1
  161. package/build/esm/types-7076aa18.js +0 -1
  162. package/build/esm/types-9bdaa5f2.js +0 -1
  163. package/build/esm/utils-53a64f38.js +0 -1
  164. package/build/getSocialList-2a3b759f.js +0 -1
  165. package/build/index-7b6795d0.js +0 -1
  166. package/build/index-86fb3a3a.js +0 -1
  167. package/build/index-abee6655.js +0 -1
  168. package/build/index-bf74d101.js +0 -1
  169. package/build/index-c3d46326.js +0 -1
  170. package/build/index-f2654ea8.js +0 -1
  171. package/build/index.styled-26e09df8.js +0 -1
  172. package/build/navigationLayout_deprecated.js +0 -1
  173. package/build/translationsProvider-57deb2ca.js +0 -1
  174. package/build/types-c9e3bda5.js +0 -1
  175. package/build/types-d01e823f.js +0 -1
  176. package/build/useTranslations-a5b5c74c.js +0 -1
  177. package/build/utils-e2a4fdad.js +0 -1
@@ -1 +1 @@
1
- import e,{useMemo as n,useRef as t,useState as r,forwardRef as o,useEffect as i}from"react";import{u as l}from"./useTranslations-ad4d9d26.js";import{G as a,L as c,B as s,a as d}from"./Locale-69030fff.js";import{R as p,I as m,M as u,N as f}from"./index-dc96c2db.js";import{T as h,M as C}from"./index.styled-b9f4b7d1.js";import{e as g,b as y,_ as x,a as b,c as w,d as E}from"./tslib.es6-5532bd7b.js";import{M as v,h as k,n as M}from"./screenSizeContext-d6e9a094.js";import L from"styled-components";import{t as I}from"./theme-a50a1aa5.js";import{B as H}from"./index-0d69362e.js";import{format as j}from"date-fns";import{H as B}from"./index-c9da804a.js";import"react-range";import"react-dom";import"lodash/debounce";import"./index-58ae0705.js";import"./translationsContext-d658f58d.js";import"string-format";import{u as S}from"./useOutsideClick-6004483a.js";import{a as G,l as z}from"./localizeNumberFormat-77c129ef.js";import{D as _}from"./index.styled-a87311b3.js";import{ResponsiveContainer as N,LineChart as R,CartesianGrid as W,Tooltip as A,XAxis as D,YAxis as Y,Line as T,ReferenceDot as O}from"recharts";import{chunk as V}from"lodash";import"./en-PH-ca0683d7.js";import"./index-d009b597.js";import"./useScrollbarSize-99db33e1.js";import"vanilla-lazyload";var Z,P,U,F,K,q,J=L.div(Z||(Z=g(["\n & > :not(:last-child) {\n margin-bottom: 8px;\n }\n\n .gender-selector {\n & > :not(:last-child) {\n margin-right: 16px;\n }\n\n & > div {\n width: calc(50% - 8px);\n\n "," {\n max-width: 186px;\n justify-self: left;\n }\n }\n }\n"],["\n & > :not(:last-child) {\n margin-bottom: 8px;\n }\n\n .gender-selector {\n & > :not(:last-child) {\n margin-right: 16px;\n }\n\n & > div {\n width: calc(50% - 8px);\n\n "," {\n max-width: 186px;\n justify-self: left;\n }\n }\n }\n"])),v.mbUp),Q=L(p)(P||(P=g(["\n & > div > div {\n display: flex;\n flex-direction: row;\n justify-content: center;\n align-content: center;\n gap: 8px;\n padding-block: 5px;\n }\n .radio-group-item-heading {\n margin-top: 0;\n }\n"],["\n & > div > div {\n display: flex;\n flex-direction: row;\n justify-content: center;\n align-content: center;\n gap: 8px;\n padding-block: 5px;\n }\n .radio-group-item-heading {\n margin-top: 0;\n }\n"]))),X=function(n){var t=n.value,r=n.onChange,o=l().t;return e.createElement(J,null,e.createElement(h,{size:"label2",type:"bold",style:{marginBottom:"0.5rem"}},o("babyVaccineTool.selectGender")),e.createElement(Q,{options:[{value:a.Girl,label:o("gender.female"),content:e.createElement(m.GenderChooseGirl,null)},{value:a.Boy,label:o("gender.male"),content:e.createElement(m.GenderChooseBoy,null)}],value:t,onChange:r,className:"gender-selector"}))},$=L.div(U||(U=g(["\n display: flex;\n justify-content: center;\n gap: 16px;\n"],["\n display: flex;\n justify-content: center;\n gap: 16px;\n"]))),ee=L.div(F||(F=g(["\n display: flex;\n justify-content: center;\n align-items: center;\n gap: 6px;\n .dot {\n width: 8px;\n height: 8px;\n border-radius: 50%;\n }\n"],["\n display: flex;\n justify-content: center;\n align-items: center;\n gap: 6px;\n .dot {\n width: 8px;\n height: 8px;\n border-radius: 50%;\n }\n"]))),ne=function(n){var t=n.legends,r=n.locale;return e.createElement($,null,t.map((function(n,t){return e.createElement(ee,{key:t},e.createElement("span",{className:"dot",style:{backgroundColor:n.color}}),e.createElement(h,{size:"n1",color:I.colors.gray800},r===c.Indonesia?n["z-score"]:n.text))})))},te=L.div(K||(K=g(["\n display: flex;\n justify-content: center;\n .switch {\n border: 1px solid ",";\n padding: 6px 12px;\n font-weight: 600;\n font-size: 11px;\n &:nth-child(2n + 1) {\n border-radius: 6px 0px 0px 6px;\n border-right: none;\n }\n &:nth-child(2n) {\n border-radius: 0px 6px 6px 0px;\n border-left: none;\n }\n }\n"],["\n display: flex;\n justify-content: center;\n .switch {\n border: 1px solid ",";\n padding: 6px 12px;\n font-weight: 600;\n font-size: 11px;\n &:nth-child(2n + 1) {\n border-radius: 6px 0px 0px 6px;\n border-right: none;\n }\n &:nth-child(2n) {\n border-radius: 0px 6px 6px 0px;\n border-left: none;\n }\n }\n"])),I.colors.neutral200);!function(e){e[e.WHO=0]="WHO",e[e.CDC=1]="CDC"}(q||(q={}));var re,oe,ie,le,ae,ce,se,de,pe,me,ue,fe,he,Ce,ge,ye,xe,be,we,Ee,ve,ke,Me,Le,Ie,He,je,Be,Se,Ge,ze,_e=function(n){var t=n.switchType,r=n.onTypeChange;return e.createElement(te,null,e.createElement(H,{className:"switch",size:"sm",color:t===q.WHO?"primary":"ghost",onClick:function(){return r(q.WHO)}},"WHO"),e.createElement(H,{className:"switch",size:"sm",isDisabled:!0,color:t===q.CDC?"primary":"ghost",onClick:function(){return r(q.CDC)}},"CDC"))},Ne=L.div(re||(re=g(["\n /* position: absolute; */\n display: flex;\n align-items: stretch;\n justify-content: space-around;\n padding: 8px;\n gap: 14px;\n\n min-width: 145px;\n max-width: 220px;\n min-height: 50px;\n border-radius: 4px;\n background: rgba(255, 255, 255, 0.2);\n box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);\n backdrop-filter: blur(5px);\n -webkit-backdrop-filter: blur(5px);\n border: 1px solid rgba(255, 255, 255, 0.3);\n .risk {\n display: flex;\n align-items: center;\n padding: 4px 8px;\n background: ",";\n border-radius: 3px;\n }\n .tooltip {\n text-align: left;\n }\n"],["\n /* position: absolute; */\n display: flex;\n align-items: stretch;\n justify-content: space-around;\n padding: 8px;\n gap: 14px;\n\n min-width: 145px;\n max-width: 220px;\n min-height: 50px;\n border-radius: 4px;\n background: rgba(255, 255, 255, 0.2);\n box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);\n backdrop-filter: blur(5px);\n -webkit-backdrop-filter: blur(5px);\n border: 1px solid rgba(255, 255, 255, 0.3);\n .risk {\n display: flex;\n align-items: center;\n padding: 4px 8px;\n background: ",";\n border-radius: 3px;\n }\n .tooltip {\n text-align: left;\n }\n"])),I.colors.yellow600),Re=[{name:["3rd","-3SD","97th","3SD"],color:I.colors.red600},{name:["15rd","-2SD","85th","2SD"],color:I.colors.yellow600},{name:["50th","0Median"],color:I.colors.green600}],We={"3rd":"-3SD","15th":"-2SD","50th":"Median","85th":"2SD","97th":"3SD"},Ae=function(t){var r,o=t.payload,i=t.locale,l=t.active,a=null===(r=null==o?void 0:o[0])||void 0===r?void 0:r.payload;if(!(a&&a.history&&a.name&&a.risk&&a.toolTipLabel&&l))return null;var s=n((function(){var e;return null===(e=Re.find((function(e){return e.name.includes(a.risk||"")})))||void 0===e?void 0:e.color}),[a.risk]),d=n((function(){return i===c.Indonesia?a.risk?We[a.risk]:"":a.risk}),[i,a.risk]);return e.createElement(Ne,null,e.createElement("div",{className:"risk",style:{backgroundColor:s}},e.createElement(h,{size:"s3",color:I.colors.white,type:"semiBold"},d)),e.createElement("div",{className:"tooltip"},(a.toolTipLabel||[]).map((function(n,t){return e.createElement(h,{key:t,size:"n1",color:I.colors.gray600},n)}))))},De=L.div(oe||(oe=g(["\n background: ",";\n border-radius: 6px;\n padding: 16px 20px;\n display: flex;\n justify-content: space-between;\n align-items: center;\n .baby {\n display: flex;\n align-items: center;\n gap: 8px;\n svg {\n min-width: 24px;\n }\n }\n .radio {\n cursor: pointer;\n position: relative;\n min-width: 22px;\n width: 22px;\n height: 22px;\n background: #ffffff;\n border: 2px solid ",";\n border-radius: 50%;\n transition: all "," ease-in-out;\n &.active {\n border-color: ",";\n &::before {\n content: '';\n position: absolute;\n inset: 0;\n width: 100%;\n height: 100%;\n background-color: ",";\n background-clip: content-box;\n padding: 5px;\n border-radius: 50%;\n animation: "," "," ease-in-out forwards;\n }\n }\n }\n"],["\n background: ",";\n border-radius: 6px;\n padding: 16px 20px;\n display: flex;\n justify-content: space-between;\n align-items: center;\n .baby {\n display: flex;\n align-items: center;\n gap: 8px;\n svg {\n min-width: 24px;\n }\n }\n .radio {\n cursor: pointer;\n position: relative;\n min-width: 22px;\n width: 22px;\n height: 22px;\n background: #ffffff;\n border: 2px solid ",";\n border-radius: 50%;\n transition: all "," ease-in-out;\n &.active {\n border-color: ",";\n &::before {\n content: '';\n position: absolute;\n inset: 0;\n width: 100%;\n height: 100%;\n background-color: ",";\n background-clip: content-box;\n padding: 5px;\n border-radius: 50%;\n animation: "," "," ease-in-out forwards;\n }\n }\n }\n"])),I.colors.gray50,I.colors.gray600,"300ms",I.colors.primaryBase,I.colors.primaryBase,k,"300ms"),Ye=function(n){var t=n.profile,r=n.onChange,o=n.isActive;return e.createElement(De,{onClick:function(){return r(t.id)}},e.createElement("div",{className:"baby"},"male"===t.gender?e.createElement(m.Boy,{size:24}):e.createElement(m.Girl,{size:24}),e.createElement(h,{size:"p2",color:I.colors.gray800},t.name)),e.createElement("div",{className:o?"radio active":"radio"}))},Te=L.div(ie||(ie=g(["\n /* Auto layout */\n position: relative;\n display: flex;\n align-items: flex-start;\n padding: 16px;\n gap: 16px;\n background: ",";\n border: 1px solid ",";\n border-radius: 6px;\n .information {\n display: flex;\n flex-direction: column;\n gap: 8px;\n h5:first-letter {\n text-transform: uppercase;\n }\n .detail {\n display: flex;\n gap: 16px;\n div {\n display: flex;\n align-items: center;\n gap: 6px;\n }\n }\n }\n"],["\n /* Auto layout */\n position: relative;\n display: flex;\n align-items: flex-start;\n padding: 16px;\n gap: 16px;\n background: ",";\n border: 1px solid ",";\n border-radius: 6px;\n .information {\n display: flex;\n flex-direction: column;\n gap: 8px;\n h5:first-letter {\n text-transform: uppercase;\n }\n .detail {\n display: flex;\n gap: 16px;\n div {\n display: flex;\n align-items: center;\n gap: 6px;\n }\n }\n }\n"])),I.colors.white,I.colors.gray100),Oe=L.div(le||(le=g(["\n position: absolute;\n top: 18px;\n right: 16px;\n cursor: pointer;\n"],["\n position: absolute;\n top: 18px;\n right: 16px;\n cursor: pointer;\n"]))),Ve=L(C)(ae||(ae=g(["\n position: absolute;\n right: 0;\n z-index: 1;\n"],["\n position: absolute;\n right: 0;\n z-index: 1;\n"]))),Ze=function(n){var r=n.name,o=n.onClose,i=n.onEdit,a=n.onSwitch,c=n.onAdd,s=n.onRemove,d=l().t,p=t();return S(p,o),e.createElement("div",{ref:p},e.createElement(Ve,{width:250},e.createElement(C.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:I.colors.gray800},d("childCard.menu.edit",{name:r}))),e.createElement(C.Item,{onClick:a,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:I.colors.gray800},d("childCard.menu.switch"))),e.createElement(C.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",{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:I.colors.gray800},d("childCard.menu.add"))),e.createElement(C.Item,{onClick:s,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:I.colors.red600},d("childCard.menu.remove",{name:r})))))},Pe=function(e,n){if(e)if(e.year<1){if(0===e.month)switch(e.week){case 0:case 1:return n("childCard.age.oneWeek");default:return n("childCard.age.week",{weeks:e.week})}if(1===e.month)return n("childCard.age.oneMonth");if(e.month>1)return n("childCard.age.months",{month:e.month})}else{if(1===e.year)return n("childCard.age.oneYear");if(0===e.month)return n("childCard.age.yearNoMonth",{year:e.year});if(e.month>0)return n("childCard.age.yearMonth",{year:e.year,month:e.month})}},Ue=function(n){var t=n.name,o=n.gender,i=n.age,c=n.isLoggedIn,s=void 0!==c&&c,d=n.showMenu,p=void 0!==d&&d,u=n.onEdit,f=n.onSwitch,C=n.onAdd,g=n.onRemove,y=n.className,x=l().t,b=r(!1),w=b[0],E=b[1];return e.createElement(Te,{className:y},e.createElement("div",{"data-testid":"gender"},o===a.Boy?e.createElement(m.Boy,{"data-testid":"boy",id:"boy"}):e.createElement(m.Girl,{"data-testid":"girl",id:"girl"})),e.createElement("div",{className:"information"},e.createElement(B,{tag:"h5",fontWeight:"bold",color:I.colors.gray800},M(t)||x("childCard.noName")),e.createElement("div",{className:"detail"},e.createElement("div",null,o===a.Boy?e.createElement(m.GenderBoy,null):e.createElement(m.GenderGirl,null),e.createElement(h,{size:"p3",color:I.colors.gray800,style:{textTransform:"capitalize"}},o)),e.createElement("div",null,e.createElement(m.Calendar,{size:16}),i&&e.createElement(h,{size:"p3",color:I.colors.gray800},Pe(i,x))))),p&&s&&e.createElement(Oe,null,e.createElement(m.Kebab,{onClick:function(){return E((function(e){return!e}))}}),w&&e.createElement(Ze,{name:t,onClose:function(){return E(!1)},onEdit:function(){E(!1),u()},onSwitch:function(){E(!1),f()},onAdd:function(){E(!1),C()},onRemove:function(){E(!1),g()}})))},Fe=L.div(ce||(ce=g(["\n cursor: pointer;\n position: relative;\n padding: 20px 2px;\n border-bottom: 1px solid ",";\n .time {\n display: flex;\n align-items: center;\n gap: 8px;\n margin-bottom: 16px;\n }\n .edit-button {\n margin-left: auto;\n justify-self: end;\n }\n .record {\n display: grid;\n grid-template-columns: repeat(3, 1fr);\n grid-template-rows: 1fr;\n grid-column-gap: 30px;\n grid-row-gap: 0px;\n }\n .record-item {\n display: flex;\n align-items: center;\n gap: 8px;\n }\n"],["\n cursor: pointer;\n position: relative;\n padding: 20px 2px;\n border-bottom: 1px solid ",";\n .time {\n display: flex;\n align-items: center;\n gap: 8px;\n margin-bottom: 16px;\n }\n .edit-button {\n margin-left: auto;\n justify-self: end;\n }\n .record {\n display: grid;\n grid-template-columns: repeat(3, 1fr);\n grid-template-rows: 1fr;\n grid-column-gap: 30px;\n grid-row-gap: 0px;\n }\n .record-item {\n display: flex;\n align-items: center;\n gap: 8px;\n }\n"])),I.colors.gray100),Ke=function(e,n){return e&&"NaN"!==e?e+" "+(n||""):"--"},qe=function(n){var t=n.measurementDate,r=void 0===t?new Date:t,o=n.weight,i=n.height,a=n.head,s=n.onEdit,d=n.birthday,p=n.dateFormat,m=void 0===p?"dd/MM/yyyy":p,u=n.locale;void 0===u&&c.PhilippinesEnglish;var f=l().t;return e.createElement(Fe,{onClick:s},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:I.colors.gray600},"".concat(j(r,m)," (").concat(Pe(G(d,r),f),")")),e.createElement("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"edit-button"},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:I.colors.gray800,type:"semiBold"},Ke(z(o),"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:I.colors.gray800,type:"semiBold"},Ke(z(i),"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:I.colors.gray800,type:"semiBold"},Ke(z(a),"cm")))))},Je=L(_)(se||(se=g(["\n .add-profile-container {\n display: flex;\n flex-direction: column;\n gap: 24px;\n }\n .profile-container {\n display: flex;\n flex-direction: column;\n gap: 8px;\n }\n .button-group {\n display: flex;\n flex-direction: column;\n gap: 8px;\n button {\n width: 100%;\n }\n }\n"],["\n .add-profile-container {\n display: flex;\n flex-direction: column;\n gap: 24px;\n }\n .profile-container {\n display: flex;\n flex-direction: column;\n gap: 8px;\n }\n .button-group {\n display: flex;\n flex-direction: column;\n gap: 8px;\n button {\n width: 100%;\n }\n }\n"]))),Qe=L(u)(de||(de=g(["\n .hhg-modal {\n min-width: 570px;\n }\n\n .title {\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding-bottom: 16px;\n border-bottom: 1px solid ",";\n }\n\n .close-button {\n margin-left: auto;\n }\n\n .profile-container {\n padding-block: 16px;\n display: flex;\n flex-direction: column;\n gap: 8px;\n border-bottom: 1px solid ",";\n max-height: 300px;\n overflow-y: auto;\n }\n\n .button-group {\n display: flex;\n justify-content: flex-end;\n gap: 16px;\n margin-block: 16px;\n }\n"],["\n .hhg-modal {\n min-width: 570px;\n }\n\n .title {\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding-bottom: 16px;\n border-bottom: 1px solid ",";\n }\n\n .close-button {\n margin-left: auto;\n }\n\n .profile-container {\n padding-block: 16px;\n display: flex;\n flex-direction: column;\n gap: 8px;\n border-bottom: 1px solid ",";\n max-height: 300px;\n overflow-y: auto;\n }\n\n .button-group {\n display: flex;\n justify-content: flex-end;\n gap: 16px;\n margin-block: 16px;\n }\n"])),I.colors.neutral100,I.colors.neutral100),Xe=function(n){var t,o,i=n.babyProfiles,a=n.currentProfileId,c=n.onClose,s=n.onCreate,d=n.onAddMeasurement,p=n.onSwitchProfile,m=n.open,u=n.isMobile,C=n.isMyProfile,g=void 0!==C&&C,b=n.buttonGroup,w=n.newBabyValue,E=n.onNewBabyValueChange,v=y(n,["babyProfiles","currentProfileId","onClose","onCreate","onAddMeasurement","onSwitchProfile","open","isMobile","isMyProfile","buttonGroup","newBabyValue","onNewBabyValueChange"]),k=function(n){return g?e.createElement(e.Fragment,null,e.createElement(H,{onClick:function(){null==s||s(),c()},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"}))},j("babyGrowth.drawer.createBaby")),e.createElement(H,{size:"lg",color:"primary",onClick:function(){null==n||n(),g?null==p||p(L):null==d||d(L),c()}},j(g?"babyGrowth.drawer.switchProfile":"babyGrowth.drawer.addMeasurement"))):e.createElement(H,{size:"lg",color:"primary",onClick:function(){null==d||d(L),null==n||n(),c()}},j("chooseBaby.button"))},M=r(a||(null===(t=i[0])||void 0===t?void 0:t.id)),L=M[0],I=M[1],j=l().t;return u?e.createElement(Je,x({title:"Baby profiles",onClose:c,open:m,placement:"bottom"},v),(function(n){var t,r=n.internalClose;return e.createElement("div",{className:"add-profile-container"},e.createElement("div",{className:"profile-container"},null===(t=i||[])||void 0===t?void 0:t.map((function(n){return e.createElement(Ye,{key:n.id,profile:n,isActive:L===n.id,onChange:I})})),!g&&e.createElement(f,{value:w,onInputChange:E,isActive:"new"===L,onChange:I})),e.createElement("div",{className:"button-group"},b||k(r)))})):e.createElement(Qe,{type:"confirm",isOpen:m,onClose:c},e.createElement("div",{className:"header"},e.createElement("div",{className:"title"},e.createElement(h,{size:"s2",type:"semiBold"},j("chooseBaby.title")),e.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"close-button",onClick:c},e.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"})))),e.createElement("div",{className:"profile-container"},null===(o=i||[])||void 0===o?void 0:o.map((function(n){return e.createElement(Ye,{key:n.id,profile:n,isActive:L===n.id,onChange:I})})),!g&&e.createElement(f,{value:w,onInputChange:E,isActive:"new"===L,onChange:I})),e.createElement("div",{className:"button-group"},b||k()))},$e=((pe={})[a.Boy]=((me={})[s.Weight]=((ue={})[d.Weekly]=function(){return import("./WEIGHT_BOYS.percentile.weekly-a43c4530.js")},ue[d.Monthly]=function(){return import("./WEIGHT_BOYS.percentile.monthly-9e94fae6.js")},ue[d.Yearly]=function(){return import("./WEIGHT_BOYS.percentile.yearly-23512fa8.js")},ue),me[s.Height]=((fe={})[d.Weekly]=function(){return import("./HEIGHT_BOYS.percentile.weekly-452b6591.js")},fe[d.Monthly]=function(){return import("./HEIGHT_BOYS.percentile.monthly-46c82cfc.js")},fe[d.Yearly]=function(){return import("./HEIGHT_BOYS.percentile.yearly-b69ee2b1.js")},fe),me[s.Head]=((he={})[d.Weekly]=function(){return import("./HEAD CIRCUM_BOYS.percentile.weekly-92a20a1c.js")},he[d.Monthly]=function(){return import("./HEAD CIRCUM_BOYS.percentile.monthly-dbb676b7.js")},he[d.Yearly]=function(){return import("./HEAD CIRCUM_BOYS.percentile.yearly-284ffe85.js")},he),me[s.BMI]=((Ce={})[d.Weekly]=function(){return import("./BMI_BOYS.percentile.weekly-3e59e311.js")},Ce[d.Monthly]=function(){return import("./BMI_BOYS.percentile.monthly-f524741d.js")},Ce[d.Yearly]=function(){return import("./BMI_BOYS.percentile.yearly-6d8de73b.js")},Ce),me),pe[a.Girl]=((ge={})[s.Weight]=((ye={})[d.Weekly]=function(){return import("./WEIGHT_GIRLS.percentile.weekly-3942d908.js")},ye[d.Monthly]=function(){return import("./WEIGHT_GIRLS.percentile.monthly-e5e8908b.js")},ye[d.Yearly]=function(){return import("./WEIGHT_GIRLS.percentile.yearly-18fa4dc9.js")},ye),ge[s.Height]=((xe={})[d.Weekly]=function(){return import("./HEIGHT_GIRLS.percentile.weekly-575d53c8.js")},xe[d.Monthly]=function(){return import("./HEIGHT_GIRLS.percentile.monthly-2954319e.js")},xe[d.Yearly]=function(){return import("./HEIGHT_GIRLS.percentile.yearly-37b9afa9.js")},xe),ge[s.Head]=((be={})[d.Weekly]=function(){return import("./HEAD CIRCUM_GIRLS.percentile.weekly-0a80b339.js")},be[d.Monthly]=function(){return import("./HEAD CIRCUM_GIRLS.percentile.monthly-47ca419d.js")},be[d.Yearly]=function(){return import("./HEAD CIRCUM_GIRLS.percentile.yearly-2a9af33c.js")},be),ge[s.BMI]=((we={})[d.Weekly]=function(){return import("./BMI_GIRLS.percentile.weekly-e48d680c.js")},we[d.Monthly]=function(){return import("./BMI_GIRLS.percentile.monthly-001ea609.js")},we[d.Yearly]=function(){return import("./BMI_GIRLS.percentile.yearly-7df5fcbe.js")},we),ge),pe),en=((Ee={})[a.Boy]=((ve={})[s.Weight]=((ke={})[d.Weekly]=function(){return import("./WEIGHT_BOYS.zscore.weekly-7419ed62.js")},ke[d.Monthly]=function(){return import("./WEIGHT_BOYS.zscore.monthly-c1471d63.js")},ke[d.Yearly]=function(){return import("./WEIGHT_BOYS.zscore.yearly-c9e3c050.js")},ke),ve[s.Height]=((Me={})[d.Weekly]=function(){return import("./HEIGHT_BOYS.zscore.weekly-935edd5c.js")},Me[d.Monthly]=function(){return import("./HEIGHT_BOYS.zscore.monthly-9fd9d0b9.js")},Me[d.Yearly]=function(){return import("./HEIGHT_BOYS.zscore.yearly-1feaa056.js")},Me),ve[s.Head]=((Le={})[d.Weekly]=function(){return import("./HEAD CIRCUM_BOYS.zscore.weekly-58c98bc3.js")},Le[d.Monthly]=function(){return import("./HEAD CIRCUM_BOYS.zscore.monthly-0518141a.js")},Le[d.Yearly]=function(){return import("./HEAD CIRCUM_BOYS.zscore.yearly-0ab91f53.js")},Le),ve[s.BMI]=((Ie={})[d.Weekly]=function(){return import("./BMI_BOYS.zscore.weekly-71fe0115.js")},Ie[d.Monthly]=function(){return import("./BMI_BOYS.zscore.monthly-a1e3c494.js")},Ie[d.Yearly]=function(){return import("./BMI_BOYS.zscore.yearly-09f20a36.js")},Ie),ve),Ee[a.Girl]=((He={})[s.Weight]=((je={})[d.Weekly]=function(){return import("./WEIGHT_GIRLS.zscore.weekly-c824c3a7.js")},je[d.Monthly]=function(){return import("./WEIGHT_GIRLS.zscore.monthly-9d865314.js")},je[d.Yearly]=function(){return import("./WEIGHT_GIRLS.zscore.yearly-0409e36d.js")},je),He[s.Height]=((Be={})[d.Weekly]=function(){return import("./HEIGHT_GIRLS.zscore.weekly-7292924a.js")},Be[d.Monthly]=function(){return import("./HEIGHT_GIRLS.zscore.monthly-eb51992f.js")},Be[d.Yearly]=function(){return import("./HEIGHT_GIRLS.zscore.yearly-60c98917.js")},Be),He[s.Head]=((Se={})[d.Weekly]=function(){return import("./HEAD CIRCUM_GIRLS.zscore.weekly-81f96658.js")},Se[d.Monthly]=function(){return import("./HEAD CIRCUM_GIRLS.zscore.monthly-502454c8.js")},Se[d.Yearly]=function(){return import("./HEAD CIRCUM_GIRLS.zscore.yearly-d96c5d22.js")},Se),He[s.BMI]=((Ge={})[d.Weekly]=function(){return import("./BMI_GIRLS.zscore.weekly-82f7aa14.js")},Ge[d.Monthly]=function(){return import("./BMI_GIRLS.zscore.monthly-5802a837.js")},Ge[d.Yearly]=function(){return import("./BMI_GIRLS.zscore.yearly-347ac14e.js")},Ge),He),Ee),nn=function(e,n,t,r,o){var i=e.slice(n-1,t),l=[i[0][r],i[0][r]],a=l[0],c=l[1];return i.forEach((function(e){e[r]>c&&(c=e[r]),e[r]<a&&(a=e[r])})),[(0|a)-o,(0|c)+o]},tn=function(e,n,t,r){return r===c.Indonesia?en[e][n][t]():$e[e][n][t]()},rn=function(e,n){var t=V(n,Math.ceil(n.length/2)),r=t[0],o=t[1],i=r.map((function(e){return e.name})),l=o.map((function(e){return e.name}));return i.includes(e)?{data:r,status:"first-half"}:l.includes(e)?{data:o,status:"second-half"}:{data:n,status:"full"}},on=function(e,n){return b(b([],e,!0),n.map((function(e){return{name:e.name,history:e.history,risk:e.risk,toolTipLabel:e.toolTipLabel}})),!0).sort((function(e,n){return e.name-n.name}))},ln=function(e,n,t,r,o){return b(b([],e,!0),[{name:r,history:o,risk:n,toolTipLabel:t}],!1).sort((function(e,n){return e.name-n.name}))},an=function(e,n){void 0===n&&(n=0);var t=[],r=function(r){e[r].forEach((function(e,o){var i;t[o]?t[o][r]=e:t[o]=((i={name:o+n})[r]=e,i)}))};for(var o in e)r(o);return t},cn=function(e,n){return void 0===n&&(n=0),Array.from({length:e-n+1},(function(e,t){return t+n}))},sn=function(){var e,n=null===(e=document.getElementsByClassName("recharts-cartesian-grid-vertical"))||void 0===e?void 0:e[0];if(console.log(n),n)for(var t=n.getElementsByTagName("line"),r=0;r<t.length;r++){if(r%2!=0){var o=t[r],i=t[r+1],l=o.getAttribute("x1"),a=o.getAttribute("y"),c=o.getAttribute("height"),s=o.getAttribute("x1"),d=i.getAttribute("x1");console.log({oddLine:o,nextLine:i});var p=document.createElementNS("http://www.w3.org/1999/xhtml","rect");p.setAttribute("stroke",I.colors.blue50),p.setAttribute("fill",I.colors.blue50),p.setAttribute("x",l),p.setAttribute("y",a),p.setAttribute("height",c),p.setAttribute("width",String(Number(d)-Number(s))),n.appendChild(o),n.appendChild(p)}else n.appendChild(t[r]);console.log(n)}},dn=L.div(ze||(ze=g(["\n position: relative;\n .custom-chart-label {\n display: flex;\n width: 100%;\n justify-content: space-between;\n align-items: center;\n margin-top: 8px;\n }\n"],["\n position: relative;\n .custom-chart-label {\n display: flex;\n width: 100%;\n justify-content: space-between;\n align-items: center;\n margin-top: 8px;\n }\n"]))),pn=[{name:"-3SD",label:"-3",color:I.colors.red600},{name:"-2SD",label:"-2",color:I.colors.yellow600},{name:"0Median",label:"0",color:I.colors.green600},{name:"2SD",label:"2",color:I.colors.yellow600},{name:"3SD",label:"3",color:I.colors.red600},{name:"history",color:I.colors.primaryBase}],mn=[{name:"3rd",color:I.colors.red600},{name:"15th",color:I.colors.yellow600},{name:"50th",color:I.colors.green600},{name:"85th",color:I.colors.yellow600},{name:"97th",color:I.colors.red600},{name:"history",color:I.colors.primaryBase}],un=o((function(n,t){return e.createElement("circle",x({},n,{ref:t}),e.createElement("animate",{attributeName:"r",values:"4;8;4",dur:"2s",begin:"0s",repeatCount:"indefinite"}))})),fn=function(n){var t=n.x,r=n.y,o=n.last,i=n.index,l=n.name;return o===i?e.createElement("text",{x:t,y:r,dx:16,fill:I.colors.gray500,fontSize:12,textAnchor:"middle"},l):null},hn=function(o){var a=o.gender,p=o.type,m=o.duration,u=o.xLabel,f=o.x,C=o.y,g=o.toolTipLabel,y=void 0===g?[]:g,b=o.isDivide,v=void 0===b||b,k=o.onIsPrevious,M=o.locale,L=o.riskLevel,H=o.withLine,j=void 0!==H&&H,B=o.lineData,G=void 0===B?[]:B,z=r([]),_=z[0],V=z[1],Z=t([]),P=l().t;i((function(){w(void 0,void 0,void 0,(function(){var e,n,t,r;return E(this,(function(o){switch(o.label){case 0:return[4,tn(a,p,m,M)];case 1:if(e=o.sent().default,n=m===d.Weekly?0:1,t=an(e,n),Array.isArray(t)&&0===t.length)return null==k||k(),[2];r={data:t.map((function(e,n){return x(x({},e),{name:n})})),status:"full"};try{r=v?rn(f||n,t):{data:t,status:"full"}}catch(e){}if(v)switch(r.status){case"first-half":Z.current=cn(r.data.length-1+n,n);break;case"second-half":Z.current=cn(e.length,r.data.length);break;default:Z.current=cn(t.length-1+n,n)}else Z.current=cn(t.length-1+n,n);return V(r.data),[2]}}))}))}),[a,p,m,M,k]);var U=r(!1),F=U[0],K=U[1],q=n((function(){return j&&Array.isArray(_)&&_.length>0?on(_,G):ln(_,L,y,f,C)}),[j,G,_]),J=t(null);S(J,(function(){return K(!1)}));return e.createElement(dn,null,e.createElement("div",{className:"custom-chart-label"},e.createElement(h,{size:"n1",color:I.colors.gray500},function(){switch(p){case s.Weight:return P("babyGrowth.weight");case s.Height:return P("babyGrowth.height");case s.Head:return P("babyGrowth.headCircumference");case s.BMI:return"BMI";default:return""}}()),e.createElement(h,{size:"n1",color:I.colors.gray500},M===c.Indonesia?"Z-Score":P("babyGrowth.percentiles"))),Array.isArray(q)&&q.length>0&&e.createElement(N,{height:388,className:"chart"},e.createElement(R,{data:q,margin:{top:16,right:28,bottom:8,left:0}},e.createElement(W,{stroke:I.colors.blue200}),e.createElement(A,{trigger:"click",content:function(n){return e.createElement(Ae,x({active:!j&&F&&void 0!==f&&void 0!==C,locale:M},n))}}),e.createElement(D,{type:"number",scale:"linear",ticks:Z.current,dataKey:"name",tickLine:!1,tickMargin:12,tick:{fontFamily:"Inter",fontWeight:400,fontSize:12,color:I.colors.gray800},domain:["dataMin","dataMax"],interval:"preserveStartEnd",tickCount:1,tickFormatter:function(e){return String(Math.round(100*(e+Number.EPSILON))/100)},allowDecimals:!0}),e.createElement(Y,{domain:[function(e){return Math.min(e,C||e)},function(e){return Math.max(e,C||e)}],tickLine:!1,tickMargin:7,width:45,tickCount:10,allowDecimals:!0,tickFormatter:function(e){return String(Math.round(100*(e+Number.EPSILON))/100)},tick:{fontFamily:"Inter",fontWeight:400,fontSize:12,color:I.colors.gray800}}),(M===c.Indonesia?pn:mn).map((function(n,t){return e.createElement(e.Fragment,null,"history"===n.name?e.createElement(T,{key:t,connectNulls:!0,type:"linear",dataKey:"history",stroke:n.color,dot:{stroke:n.color,fill:n.color,strokeWidth:1,r:4,strokeDasharray:""},activeDot:!0,color:n.color}):e.createElement(T,{key:n.name,type:"linear",dataKey:n.name,stroke:n.color,dot:!1,activeDot:!1,connectNulls:!0,label:e.createElement(fn,{last:(null==q?void 0:q.length)?q.length-1:0,name:(null==n?void 0:n.label)||n.name}),tooltipType:"none"}))})),void 0!==f&&void 0!==C&&e.createElement(O,{onClick:function(){return K(!0)},x:0===f?1:f,y:C,r:4,shape:e.createElement(un,{ref:J,r:4}),fill:I.colors.primaryBase,stroke:I.colors.primaryBase}))),e.createElement("div",{className:"custom-chart-label"},e.createElement("i",null),e.createElement(h,{size:"n1",color:I.colors.gray500},u)))};export{hn as BabyGrowthChart,$e as BabyGrowthChartPercentile,en as BabyGrowthChartZScore,Xe as BabyGrowthChooseProfileDrawer,X as BabyGrowthGender,ne as BabyGrowthLegend,Ye as BabyGrowthProfileRadio,qe as BabyGrowthRecord,_e as BabyGrowthSwitch,q as BabyGrowthSwitchChart,Ae as BabyGrowthTooltip,Ue as ChildCard,mn as LABELS_PERCENTILE,pn as LABELS_Z_SCORE,rn as divideChartData,tn as generateGrowthChart,cn as generateXAxisTicks,nn as getAxisYDomain,sn as paintAxis,ln as refineDataWithDot,on as refineDataWithLine,an as transformDataToChart};
1
+ import e,{useMemo as n,useRef as t,useState as r,forwardRef as o,useEffect as i}from"react";import{u as l}from"./useTranslations-3e47eecc.js";import{G as a,L as c,B as s,a as d}from"./Locale-69030fff.js";import{R as m,I as p,M as u,N as f}from"./index-f3a0141e.js";import{T as h,M as C}from"./index.styled-faeac279.js";import{e as g,b as y,_ as x,a as b,c as w,d as E}from"./tslib.es6-5532bd7b.js";import{M as v,h as k,n as M}from"./screenSizeContext-12f741e1.js";import L from"styled-components";import{t as I}from"./theme-a50a1aa5.js";import{B as H}from"./index-93d22d63.js";import{format as j}from"date-fns";import"./gAssets.js";import{H as B}from"./index-7a537be1.js";import"react-range";import"@mantine/core";import"lodash/debounce";import"./index-58ae0705.js";import"./translationsContext-d658f58d.js";import"string-format";import{u as S}from"./useOutsideClick-6004483a.js";import{a as G,l as z}from"./localizeNumberFormat-77c129ef.js";import{D as _}from"./index.styled-d8a819ea.js";import{ResponsiveContainer as N,LineChart as A,CartesianGrid as R,Tooltip as W,XAxis as D,YAxis as Y,Line as T,ReferenceDot as O}from"recharts";import{chunk as V}from"lodash";import"./en-PH-71017453.js";import"./index-642d36c8.js";import"./useScrollbarSize-99db33e1.js";import"react-dom";import"vanilla-lazyload";var Z,P,U,F,K,q,J=L.div(Z||(Z=g(["\n & > :not(:last-child) {\n margin-bottom: 8px;\n }\n\n .gender-selector {\n & > :not(:last-child) {\n margin-right: 16px;\n }\n\n & > div {\n width: calc(50% - 8px);\n\n "," {\n max-width: 186px;\n justify-self: left;\n }\n }\n }\n"],["\n & > :not(:last-child) {\n margin-bottom: 8px;\n }\n\n .gender-selector {\n & > :not(:last-child) {\n margin-right: 16px;\n }\n\n & > div {\n width: calc(50% - 8px);\n\n "," {\n max-width: 186px;\n justify-self: left;\n }\n }\n }\n"])),v.mbUp),Q=L(m)(P||(P=g(["\n & > div > div {\n display: flex;\n flex-direction: row;\n justify-content: center;\n align-content: center;\n gap: 8px;\n padding-block: 5px;\n }\n .radio-group-item-heading {\n margin-top: 0;\n }\n"],["\n & > div > div {\n display: flex;\n flex-direction: row;\n justify-content: center;\n align-content: center;\n gap: 8px;\n padding-block: 5px;\n }\n .radio-group-item-heading {\n margin-top: 0;\n }\n"]))),X=function(n){var t=n.value,r=n.onChange,o=l().t;return e.createElement(J,null,e.createElement(h,{size:"label2",type:"bold",style:{marginBottom:"0.5rem"}},o("babyVaccineTool.selectGender")),e.createElement(Q,{options:[{value:a.Girl,label:o("gender.female"),content:e.createElement(p.GenderChooseGirl,null)},{value:a.Boy,label:o("gender.male"),content:e.createElement(p.GenderChooseBoy,null)}],value:t,onChange:r,className:"gender-selector"}))},$=L.div(U||(U=g(["\n display: flex;\n justify-content: center;\n gap: 16px;\n"],["\n display: flex;\n justify-content: center;\n gap: 16px;\n"]))),ee=L.div(F||(F=g(["\n display: flex;\n justify-content: center;\n align-items: center;\n gap: 6px;\n .dot {\n width: 8px;\n height: 8px;\n border-radius: 50%;\n }\n"],["\n display: flex;\n justify-content: center;\n align-items: center;\n gap: 6px;\n .dot {\n width: 8px;\n height: 8px;\n border-radius: 50%;\n }\n"]))),ne=function(n){var t=n.legends,r=n.locale;return e.createElement($,null,t.map((function(n,t){return e.createElement(ee,{key:t},e.createElement("span",{className:"dot",style:{backgroundColor:n.color}}),e.createElement(h,{size:"n1",color:I.colors.gray800},r===c.Indonesia?n["z-score"]:n.text))})))},te=L.div(K||(K=g(["\n display: flex;\n justify-content: center;\n .switch {\n border: 1px solid ",";\n padding: 6px 12px;\n font-weight: 600;\n font-size: 11px;\n &:nth-child(2n + 1) {\n border-radius: 6px 0px 0px 6px;\n border-right: none;\n }\n &:nth-child(2n) {\n border-radius: 0px 6px 6px 0px;\n border-left: none;\n }\n }\n"],["\n display: flex;\n justify-content: center;\n .switch {\n border: 1px solid ",";\n padding: 6px 12px;\n font-weight: 600;\n font-size: 11px;\n &:nth-child(2n + 1) {\n border-radius: 6px 0px 0px 6px;\n border-right: none;\n }\n &:nth-child(2n) {\n border-radius: 0px 6px 6px 0px;\n border-left: none;\n }\n }\n"])),I.colors.neutral200);!function(e){e[e.WHO=0]="WHO",e[e.CDC=1]="CDC"}(q||(q={}));var re,oe,ie,le,ae,ce,se,de,me,pe,ue,fe,he,Ce,ge,ye,xe,be,we,Ee,ve,ke,Me,Le,Ie,He,je,Be,Se,Ge,ze,_e=function(n){var t=n.switchType,r=n.onTypeChange;return e.createElement(te,null,e.createElement(H,{className:"switch",size:"sm",color:t===q.WHO?"primary":"ghost",onClick:function(){return r(q.WHO)}},"WHO"),e.createElement(H,{className:"switch",size:"sm",isDisabled:!0,color:t===q.CDC?"primary":"ghost",onClick:function(){return r(q.CDC)}},"CDC"))},Ne=L.div(re||(re=g(["\n /* position: absolute; */\n display: flex;\n align-items: stretch;\n justify-content: space-around;\n padding: 8px;\n gap: 14px;\n\n min-width: 145px;\n max-width: 220px;\n min-height: 50px;\n border-radius: 4px;\n background: rgba(255, 255, 255, 0.2);\n box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);\n backdrop-filter: blur(5px);\n -webkit-backdrop-filter: blur(5px);\n border: 1px solid rgba(255, 255, 255, 0.3);\n .risk {\n display: flex;\n align-items: center;\n padding: 4px 8px;\n background: ",";\n border-radius: 3px;\n }\n .tooltip {\n text-align: left;\n }\n"],["\n /* position: absolute; */\n display: flex;\n align-items: stretch;\n justify-content: space-around;\n padding: 8px;\n gap: 14px;\n\n min-width: 145px;\n max-width: 220px;\n min-height: 50px;\n border-radius: 4px;\n background: rgba(255, 255, 255, 0.2);\n box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);\n backdrop-filter: blur(5px);\n -webkit-backdrop-filter: blur(5px);\n border: 1px solid rgba(255, 255, 255, 0.3);\n .risk {\n display: flex;\n align-items: center;\n padding: 4px 8px;\n background: ",";\n border-radius: 3px;\n }\n .tooltip {\n text-align: left;\n }\n"])),I.colors.yellow600),Ae=[{name:["3rd","-3SD","97th","3SD"],color:I.colors.red600},{name:["15rd","-2SD","85th","2SD"],color:I.colors.yellow600},{name:["50th","0Median"],color:I.colors.green600}],Re={"3rd":"-3SD","15th":"-2SD","50th":"Median","85th":"2SD","97th":"3SD"},We=function(t){var r,o=t.payload,i=t.locale,l=t.active,a=null===(r=null==o?void 0:o[0])||void 0===r?void 0:r.payload;if(!(a&&a.history&&a.name&&a.risk&&a.toolTipLabel&&l))return null;var s=n((function(){var e;return null===(e=Ae.find((function(e){return e.name.includes(a.risk||"")})))||void 0===e?void 0:e.color}),[a.risk]),d=n((function(){return i===c.Indonesia?a.risk?Re[a.risk]:"":a.risk}),[i,a.risk]);return e.createElement(Ne,null,e.createElement("div",{className:"risk",style:{backgroundColor:s}},e.createElement(h,{size:"s3",color:I.colors.white,type:"semiBold"},d)),e.createElement("div",{className:"tooltip"},(a.toolTipLabel||[]).map((function(n,t){return e.createElement(h,{key:t,size:"n1",color:I.colors.gray600},n)}))))},De=L.div(oe||(oe=g(["\n background: ",";\n border-radius: 6px;\n padding: 16px 20px;\n display: flex;\n justify-content: space-between;\n align-items: center;\n .baby {\n display: flex;\n align-items: center;\n gap: 8px;\n svg {\n min-width: 24px;\n }\n }\n .radio {\n cursor: pointer;\n position: relative;\n min-width: 22px;\n width: 22px;\n height: 22px;\n background: #ffffff;\n border: 2px solid ",";\n border-radius: 50%;\n transition: all "," ease-in-out;\n &.active {\n border-color: ",";\n &::before {\n content: '';\n position: absolute;\n inset: 0;\n width: 100%;\n height: 100%;\n background-color: ",";\n background-clip: content-box;\n padding: 5px;\n border-radius: 50%;\n animation: "," "," ease-in-out forwards;\n }\n }\n }\n"],["\n background: ",";\n border-radius: 6px;\n padding: 16px 20px;\n display: flex;\n justify-content: space-between;\n align-items: center;\n .baby {\n display: flex;\n align-items: center;\n gap: 8px;\n svg {\n min-width: 24px;\n }\n }\n .radio {\n cursor: pointer;\n position: relative;\n min-width: 22px;\n width: 22px;\n height: 22px;\n background: #ffffff;\n border: 2px solid ",";\n border-radius: 50%;\n transition: all "," ease-in-out;\n &.active {\n border-color: ",";\n &::before {\n content: '';\n position: absolute;\n inset: 0;\n width: 100%;\n height: 100%;\n background-color: ",";\n background-clip: content-box;\n padding: 5px;\n border-radius: 50%;\n animation: "," "," ease-in-out forwards;\n }\n }\n }\n"])),I.colors.gray50,I.colors.gray600,"300ms",I.colors.primaryBase,I.colors.primaryBase,k,"300ms"),Ye=function(n){var t=n.profile,r=n.onChange,o=n.isActive;return e.createElement(De,{onClick:function(){return r(t.id)}},e.createElement("div",{className:"baby"},"male"===t.gender?e.createElement(p.Boy,{size:24}):e.createElement(p.Girl,{size:24}),e.createElement(h,{size:"p2",color:I.colors.gray800},t.name)),e.createElement("div",{className:o?"radio active":"radio"}))},Te=L.div(ie||(ie=g(["\n /* Auto layout */\n position: relative;\n display: flex;\n align-items: flex-start;\n padding: 16px;\n gap: 16px;\n background: ",";\n border: 1px solid ",";\n border-radius: 6px;\n .information {\n display: flex;\n flex-direction: column;\n gap: 8px;\n h5:first-letter {\n text-transform: uppercase;\n }\n .detail {\n display: flex;\n gap: 16px;\n div {\n display: flex;\n align-items: center;\n gap: 6px;\n }\n }\n }\n"],["\n /* Auto layout */\n position: relative;\n display: flex;\n align-items: flex-start;\n padding: 16px;\n gap: 16px;\n background: ",";\n border: 1px solid ",";\n border-radius: 6px;\n .information {\n display: flex;\n flex-direction: column;\n gap: 8px;\n h5:first-letter {\n text-transform: uppercase;\n }\n .detail {\n display: flex;\n gap: 16px;\n div {\n display: flex;\n align-items: center;\n gap: 6px;\n }\n }\n }\n"])),I.colors.white,I.colors.gray100),Oe=L.div(le||(le=g(["\n position: absolute;\n top: 18px;\n right: 16px;\n cursor: pointer;\n"],["\n position: absolute;\n top: 18px;\n right: 16px;\n cursor: pointer;\n"]))),Ve=L(C)(ae||(ae=g(["\n position: absolute;\n right: 0;\n z-index: 1;\n"],["\n position: absolute;\n right: 0;\n z-index: 1;\n"]))),Ze=function(n){var r=n.name,o=n.onClose,i=n.onEdit,a=n.onSwitch,c=n.onAdd,s=n.onRemove,d=l().t,m=t();return S(m,o),e.createElement("div",{ref:m},e.createElement(Ve,{width:250},e.createElement(C.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:I.colors.gray800},d("childCard.menu.edit",{name:r}))),e.createElement(C.Item,{onClick:a,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:I.colors.gray800},d("childCard.menu.switch"))),e.createElement(C.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",{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:I.colors.gray800},d("childCard.menu.add"))),e.createElement(C.Item,{onClick:s,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:I.colors.red600},d("childCard.menu.remove",{name:r})))))},Pe=function(e,n){if(e)if(e.year<1){if(0===e.month)switch(e.week){case 0:case 1:return n("childCard.age.oneWeek");default:return n("childCard.age.week",{weeks:e.week})}if(1===e.month)return n("childCard.age.oneMonth");if(e.month>1)return n("childCard.age.months",{month:e.month})}else{if(1===e.year)return n("childCard.age.oneYear");if(0===e.month)return n("childCard.age.yearNoMonth",{year:e.year});if(e.month>0)return n("childCard.age.yearMonth",{year:e.year,month:e.month})}},Ue=function(n){var t=n.name,o=n.gender,i=n.age,c=n.isLoggedIn,s=void 0!==c&&c,d=n.showMenu,m=void 0!==d&&d,u=n.onEdit,f=n.onSwitch,C=n.onAdd,g=n.onRemove,y=n.className,x=l().t,b=r(!1),w=b[0],E=b[1];return e.createElement(Te,{className:y},e.createElement("div",{"data-testid":"gender"},o===a.Boy?e.createElement(p.Boy,{"data-testid":"boy",id:"boy"}):e.createElement(p.Girl,{"data-testid":"girl",id:"girl"})),e.createElement("div",{className:"information"},e.createElement(B,{tag:"h5",fontWeight:"bold",color:I.colors.gray800},M(t)||x("childCard.noName")),e.createElement("div",{className:"detail"},e.createElement("div",null,o===a.Boy?e.createElement(p.GenderBoy,null):e.createElement(p.GenderGirl,null),e.createElement(h,{size:"p3",color:I.colors.gray800,style:{textTransform:"capitalize"}},o)),e.createElement("div",null,e.createElement(p.Calendar,{size:16}),i&&e.createElement(h,{size:"p3",color:I.colors.gray800},Pe(i,x))))),m&&s&&e.createElement(Oe,null,e.createElement(p.Kebab,{onClick:function(){return E((function(e){return!e}))}}),w&&e.createElement(Ze,{name:t,onClose:function(){return E(!1)},onEdit:function(){E(!1),u()},onSwitch:function(){E(!1),f()},onAdd:function(){E(!1),C()},onRemove:function(){E(!1),g()}})))},Fe=L.div(ce||(ce=g(["\n cursor: pointer;\n position: relative;\n padding: 20px 2px;\n border-bottom: 1px solid ",";\n .time {\n display: flex;\n align-items: center;\n gap: 8px;\n margin-bottom: 16px;\n }\n .edit-button {\n margin-left: auto;\n justify-self: end;\n }\n .record {\n display: grid;\n grid-template-columns: repeat(3, 1fr);\n grid-template-rows: 1fr;\n grid-column-gap: 30px;\n grid-row-gap: 0px;\n }\n .record-item {\n display: flex;\n align-items: center;\n gap: 8px;\n }\n"],["\n cursor: pointer;\n position: relative;\n padding: 20px 2px;\n border-bottom: 1px solid ",";\n .time {\n display: flex;\n align-items: center;\n gap: 8px;\n margin-bottom: 16px;\n }\n .edit-button {\n margin-left: auto;\n justify-self: end;\n }\n .record {\n display: grid;\n grid-template-columns: repeat(3, 1fr);\n grid-template-rows: 1fr;\n grid-column-gap: 30px;\n grid-row-gap: 0px;\n }\n .record-item {\n display: flex;\n align-items: center;\n gap: 8px;\n }\n"])),I.colors.gray100),Ke=function(e,n){return e&&"NaN"!==e?e+" "+(n||""):"--"},qe=function(n){var t=n.measurementDate,r=void 0===t?new Date:t,o=n.weight,i=n.height,a=n.head,s=n.onEdit,d=n.birthday,m=n.dateFormat,p=void 0===m?"dd/MM/yyyy":m,u=n.locale;void 0===u&&c.PhilippinesEnglish;var f=l().t;return e.createElement(Fe,{onClick:s},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:I.colors.gray600},"".concat(j(r,p)," (").concat(Pe(G(d,r),f),")")),e.createElement("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"edit-button"},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:I.colors.gray800,type:"semiBold"},Ke(z(o),"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:I.colors.gray800,type:"semiBold"},Ke(z(i),"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:I.colors.gray800,type:"semiBold"},Ke(z(a),"cm")))))},Je=L(_)(se||(se=g(["\n .add-profile-container {\n display: flex;\n flex-direction: column;\n gap: 24px;\n }\n .profile-container {\n display: flex;\n flex-direction: column;\n gap: 8px;\n }\n .button-group {\n display: flex;\n flex-direction: column;\n gap: 8px;\n button {\n width: 100%;\n }\n }\n"],["\n .add-profile-container {\n display: flex;\n flex-direction: column;\n gap: 24px;\n }\n .profile-container {\n display: flex;\n flex-direction: column;\n gap: 8px;\n }\n .button-group {\n display: flex;\n flex-direction: column;\n gap: 8px;\n button {\n width: 100%;\n }\n }\n"]))),Qe=L(u)(de||(de=g(["\n .hhg-modal {\n min-width: 570px;\n }\n\n .title {\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding-bottom: 16px;\n border-bottom: 1px solid ",";\n }\n\n .close-button {\n margin-left: auto;\n }\n\n .profile-container {\n padding-block: 16px;\n display: flex;\n flex-direction: column;\n gap: 8px;\n border-bottom: 1px solid ",";\n max-height: 300px;\n overflow-y: auto;\n }\n\n .button-group {\n display: flex;\n justify-content: flex-end;\n gap: 16px;\n margin-block: 16px;\n }\n"],["\n .hhg-modal {\n min-width: 570px;\n }\n\n .title {\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding-bottom: 16px;\n border-bottom: 1px solid ",";\n }\n\n .close-button {\n margin-left: auto;\n }\n\n .profile-container {\n padding-block: 16px;\n display: flex;\n flex-direction: column;\n gap: 8px;\n border-bottom: 1px solid ",";\n max-height: 300px;\n overflow-y: auto;\n }\n\n .button-group {\n display: flex;\n justify-content: flex-end;\n gap: 16px;\n margin-block: 16px;\n }\n"])),I.colors.neutral100,I.colors.neutral100),Xe=function(n){var t,o,i=n.babyProfiles,a=n.currentProfileId,c=n.onClose,s=n.onCreate,d=n.onAddMeasurement,m=n.onSwitchProfile,p=n.open,u=n.isMobile,C=n.isMyProfile,g=void 0!==C&&C,b=n.buttonGroup,w=n.newBabyValue,E=n.onNewBabyValueChange,v=y(n,["babyProfiles","currentProfileId","onClose","onCreate","onAddMeasurement","onSwitchProfile","open","isMobile","isMyProfile","buttonGroup","newBabyValue","onNewBabyValueChange"]),k=function(n){return g?e.createElement(e.Fragment,null,e.createElement(H,{onClick:function(){null==s||s(),c()},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"}))},j("babyGrowth.drawer.createBaby")),e.createElement(H,{size:"lg",color:"primary",onClick:function(){null==n||n(),g?null==m||m(L):null==d||d(L),c()}},j(g?"babyGrowth.drawer.switchProfile":"babyGrowth.drawer.addMeasurement"))):e.createElement(H,{size:"lg",color:"primary",onClick:function(){null==d||d(L),null==n||n(),c()}},j("chooseBaby.button"))},M=r(a||(null===(t=i[0])||void 0===t?void 0:t.id)),L=M[0],I=M[1],j=l().t;return u?e.createElement(Je,x({title:"Baby profiles",onClose:c,open:p,placement:"bottom"},v),(function(n){var t,r=n.internalClose;return e.createElement("div",{className:"add-profile-container"},e.createElement("div",{className:"profile-container"},null===(t=i||[])||void 0===t?void 0:t.map((function(n){return e.createElement(Ye,{key:n.id,profile:n,isActive:L===n.id,onChange:I})})),!g&&e.createElement(f,{value:w,onInputChange:E,isActive:"new"===L,onChange:I})),e.createElement("div",{className:"button-group"},b||k(r)))})):e.createElement(Qe,{type:"confirm",isOpen:p,onClose:c},e.createElement("div",{className:"header"},e.createElement("div",{className:"title"},e.createElement(h,{size:"s2",type:"semiBold"},j("chooseBaby.title")),e.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"close-button",onClick:c},e.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"})))),e.createElement("div",{className:"profile-container"},null===(o=i||[])||void 0===o?void 0:o.map((function(n){return e.createElement(Ye,{key:n.id,profile:n,isActive:L===n.id,onChange:I})})),!g&&e.createElement(f,{value:w,onInputChange:E,isActive:"new"===L,onChange:I})),e.createElement("div",{className:"button-group"},b||k()))},$e=((me={})[a.Boy]=((pe={})[s.Weight]=((ue={})[d.Weekly]=function(){return import("./WEIGHT_BOYS.percentile.weekly-a43c4530.js")},ue[d.Monthly]=function(){return import("./WEIGHT_BOYS.percentile.monthly-9e94fae6.js")},ue[d.Yearly]=function(){return import("./WEIGHT_BOYS.percentile.yearly-23512fa8.js")},ue),pe[s.Height]=((fe={})[d.Weekly]=function(){return import("./HEIGHT_BOYS.percentile.weekly-452b6591.js")},fe[d.Monthly]=function(){return import("./HEIGHT_BOYS.percentile.monthly-46c82cfc.js")},fe[d.Yearly]=function(){return import("./HEIGHT_BOYS.percentile.yearly-b69ee2b1.js")},fe),pe[s.Head]=((he={})[d.Weekly]=function(){return import("./HEAD CIRCUM_BOYS.percentile.weekly-92a20a1c.js")},he[d.Monthly]=function(){return import("./HEAD CIRCUM_BOYS.percentile.monthly-dbb676b7.js")},he[d.Yearly]=function(){return import("./HEAD CIRCUM_BOYS.percentile.yearly-284ffe85.js")},he),pe[s.BMI]=((Ce={})[d.Weekly]=function(){return import("./BMI_BOYS.percentile.weekly-3e59e311.js")},Ce[d.Monthly]=function(){return import("./BMI_BOYS.percentile.monthly-f524741d.js")},Ce[d.Yearly]=function(){return import("./BMI_BOYS.percentile.yearly-6d8de73b.js")},Ce),pe),me[a.Girl]=((ge={})[s.Weight]=((ye={})[d.Weekly]=function(){return import("./WEIGHT_GIRLS.percentile.weekly-3942d908.js")},ye[d.Monthly]=function(){return import("./WEIGHT_GIRLS.percentile.monthly-e5e8908b.js")},ye[d.Yearly]=function(){return import("./WEIGHT_GIRLS.percentile.yearly-18fa4dc9.js")},ye),ge[s.Height]=((xe={})[d.Weekly]=function(){return import("./HEIGHT_GIRLS.percentile.weekly-575d53c8.js")},xe[d.Monthly]=function(){return import("./HEIGHT_GIRLS.percentile.monthly-2954319e.js")},xe[d.Yearly]=function(){return import("./HEIGHT_GIRLS.percentile.yearly-37b9afa9.js")},xe),ge[s.Head]=((be={})[d.Weekly]=function(){return import("./HEAD CIRCUM_GIRLS.percentile.weekly-0a80b339.js")},be[d.Monthly]=function(){return import("./HEAD CIRCUM_GIRLS.percentile.monthly-47ca419d.js")},be[d.Yearly]=function(){return import("./HEAD CIRCUM_GIRLS.percentile.yearly-2a9af33c.js")},be),ge[s.BMI]=((we={})[d.Weekly]=function(){return import("./BMI_GIRLS.percentile.weekly-e48d680c.js")},we[d.Monthly]=function(){return import("./BMI_GIRLS.percentile.monthly-001ea609.js")},we[d.Yearly]=function(){return import("./BMI_GIRLS.percentile.yearly-7df5fcbe.js")},we),ge),me),en=((Ee={})[a.Boy]=((ve={})[s.Weight]=((ke={})[d.Weekly]=function(){return import("./WEIGHT_BOYS.zscore.weekly-7419ed62.js")},ke[d.Monthly]=function(){return import("./WEIGHT_BOYS.zscore.monthly-c1471d63.js")},ke[d.Yearly]=function(){return import("./WEIGHT_BOYS.zscore.yearly-c9e3c050.js")},ke),ve[s.Height]=((Me={})[d.Weekly]=function(){return import("./HEIGHT_BOYS.zscore.weekly-935edd5c.js")},Me[d.Monthly]=function(){return import("./HEIGHT_BOYS.zscore.monthly-9fd9d0b9.js")},Me[d.Yearly]=function(){return import("./HEIGHT_BOYS.zscore.yearly-1feaa056.js")},Me),ve[s.Head]=((Le={})[d.Weekly]=function(){return import("./HEAD CIRCUM_BOYS.zscore.weekly-58c98bc3.js")},Le[d.Monthly]=function(){return import("./HEAD CIRCUM_BOYS.zscore.monthly-0518141a.js")},Le[d.Yearly]=function(){return import("./HEAD CIRCUM_BOYS.zscore.yearly-0ab91f53.js")},Le),ve[s.BMI]=((Ie={})[d.Weekly]=function(){return import("./BMI_BOYS.zscore.weekly-71fe0115.js")},Ie[d.Monthly]=function(){return import("./BMI_BOYS.zscore.monthly-a1e3c494.js")},Ie[d.Yearly]=function(){return import("./BMI_BOYS.zscore.yearly-09f20a36.js")},Ie),ve),Ee[a.Girl]=((He={})[s.Weight]=((je={})[d.Weekly]=function(){return import("./WEIGHT_GIRLS.zscore.weekly-c824c3a7.js")},je[d.Monthly]=function(){return import("./WEIGHT_GIRLS.zscore.monthly-9d865314.js")},je[d.Yearly]=function(){return import("./WEIGHT_GIRLS.zscore.yearly-0409e36d.js")},je),He[s.Height]=((Be={})[d.Weekly]=function(){return import("./HEIGHT_GIRLS.zscore.weekly-7292924a.js")},Be[d.Monthly]=function(){return import("./HEIGHT_GIRLS.zscore.monthly-eb51992f.js")},Be[d.Yearly]=function(){return import("./HEIGHT_GIRLS.zscore.yearly-60c98917.js")},Be),He[s.Head]=((Se={})[d.Weekly]=function(){return import("./HEAD CIRCUM_GIRLS.zscore.weekly-81f96658.js")},Se[d.Monthly]=function(){return import("./HEAD CIRCUM_GIRLS.zscore.monthly-502454c8.js")},Se[d.Yearly]=function(){return import("./HEAD CIRCUM_GIRLS.zscore.yearly-d96c5d22.js")},Se),He[s.BMI]=((Ge={})[d.Weekly]=function(){return import("./BMI_GIRLS.zscore.weekly-82f7aa14.js")},Ge[d.Monthly]=function(){return import("./BMI_GIRLS.zscore.monthly-5802a837.js")},Ge[d.Yearly]=function(){return import("./BMI_GIRLS.zscore.yearly-347ac14e.js")},Ge),He),Ee),nn=function(e,n,t,r,o){var i=e.slice(n-1,t),l=[i[0][r],i[0][r]],a=l[0],c=l[1];return i.forEach((function(e){e[r]>c&&(c=e[r]),e[r]<a&&(a=e[r])})),[(0|a)-o,(0|c)+o]},tn=function(e,n,t,r){return r===c.Indonesia?en[e][n][t]():$e[e][n][t]()},rn=function(e,n){var t=V(n,Math.ceil(n.length/2)),r=t[0],o=t[1],i=r.map((function(e){return e.name})),l=o.map((function(e){return e.name}));return i.includes(e)?{data:r,status:"first-half"}:l.includes(e)?{data:o,status:"second-half"}:{data:n,status:"full"}},on=function(e,n){return b(b([],e,!0),n.map((function(e){return{name:e.name,history:e.history,risk:e.risk,toolTipLabel:e.toolTipLabel}})),!0).sort((function(e,n){return e.name-n.name}))},ln=function(e,n,t,r,o){return b(b([],e,!0),[{name:r,history:o,risk:n,toolTipLabel:t}],!1).sort((function(e,n){return e.name-n.name}))},an=function(e,n){void 0===n&&(n=0);var t=[],r=function(r){e[r].forEach((function(e,o){var i;t[o]?t[o][r]=e:t[o]=((i={name:o+n})[r]=e,i)}))};for(var o in e)r(o);return t},cn=function(e,n){return void 0===n&&(n=0),Array.from({length:e-n+1},(function(e,t){return t+n}))},sn=function(){var e,n=null===(e=document.getElementsByClassName("recharts-cartesian-grid-vertical"))||void 0===e?void 0:e[0];if(console.log(n),n)for(var t=n.getElementsByTagName("line"),r=0;r<t.length;r++){if(r%2!=0){var o=t[r],i=t[r+1],l=o.getAttribute("x1"),a=o.getAttribute("y"),c=o.getAttribute("height"),s=o.getAttribute("x1"),d=i.getAttribute("x1");console.log({oddLine:o,nextLine:i});var m=document.createElementNS("http://www.w3.org/1999/xhtml","rect");m.setAttribute("stroke",I.colors.blue50),m.setAttribute("fill",I.colors.blue50),m.setAttribute("x",l),m.setAttribute("y",a),m.setAttribute("height",c),m.setAttribute("width",String(Number(d)-Number(s))),n.appendChild(o),n.appendChild(m)}else n.appendChild(t[r]);console.log(n)}},dn=L.div(ze||(ze=g(["\n position: relative;\n .custom-chart-label {\n display: flex;\n width: 100%;\n justify-content: space-between;\n align-items: center;\n margin-top: 8px;\n }\n"],["\n position: relative;\n .custom-chart-label {\n display: flex;\n width: 100%;\n justify-content: space-between;\n align-items: center;\n margin-top: 8px;\n }\n"]))),mn=[{name:"-3SD",label:"-3",color:I.colors.red600},{name:"-2SD",label:"-2",color:I.colors.yellow600},{name:"0Median",label:"0",color:I.colors.green600},{name:"2SD",label:"2",color:I.colors.yellow600},{name:"3SD",label:"3",color:I.colors.red600},{name:"history",color:I.colors.primaryBase}],pn=[{name:"3rd",color:I.colors.red600},{name:"15th",color:I.colors.yellow600},{name:"50th",color:I.colors.green600},{name:"85th",color:I.colors.yellow600},{name:"97th",color:I.colors.red600},{name:"history",color:I.colors.primaryBase}],un=o((function(n,t){return e.createElement("circle",x({},n,{ref:t}),e.createElement("animate",{attributeName:"r",values:"4;8;4",dur:"2s",begin:"0s",repeatCount:"indefinite"}))})),fn=function(n){var t=n.x,r=n.y,o=n.last,i=n.index,l=n.name;return o===i?e.createElement("text",{x:t,y:r,dx:16,fill:I.colors.gray500,fontSize:12,textAnchor:"middle"},l):null},hn=function(o){var a=o.gender,m=o.type,p=o.duration,u=o.xLabel,f=o.x,C=o.y,g=o.toolTipLabel,y=void 0===g?[]:g,b=o.isDivide,v=void 0===b||b,k=o.onIsPrevious,M=o.locale,L=o.riskLevel,H=o.withLine,j=void 0!==H&&H,B=o.lineData,G=void 0===B?[]:B,z=r([]),_=z[0],V=z[1],Z=t([]),P=l().t;i((function(){w(void 0,void 0,void 0,(function(){var e,n,t,r;return E(this,(function(o){switch(o.label){case 0:return[4,tn(a,m,p,M)];case 1:if(e=o.sent().default,n=p===d.Weekly?0:1,t=an(e,n),Array.isArray(t)&&0===t.length)return null==k||k(),[2];r={data:t.map((function(e,n){return x(x({},e),{name:n})})),status:"full"};try{r=v?rn(f||n,t):{data:t,status:"full"}}catch(e){}if(v)switch(r.status){case"first-half":Z.current=cn(r.data.length-1+n,n);break;case"second-half":Z.current=cn(e.length,r.data.length);break;default:Z.current=cn(t.length-1+n,n)}else Z.current=cn(t.length-1+n,n);return V(r.data),[2]}}))}))}),[a,m,p,M,k]);var U=r(!1),F=U[0],K=U[1],q=n((function(){return j&&Array.isArray(_)&&_.length>0?on(_,G):ln(_,L,y,f,C)}),[j,G,_]),J=t(null);S(J,(function(){return K(!1)}));return e.createElement(dn,null,e.createElement("div",{className:"custom-chart-label"},e.createElement(h,{size:"n1",color:I.colors.gray500},function(){switch(m){case s.Weight:return P("babyGrowth.weight");case s.Height:return P("babyGrowth.height");case s.Head:return P("babyGrowth.headCircumference");case s.BMI:return"BMI";default:return""}}()),e.createElement(h,{size:"n1",color:I.colors.gray500},M===c.Indonesia?"Z-Score":P("babyGrowth.percentiles"))),Array.isArray(q)&&q.length>0&&e.createElement(N,{height:388,className:"chart"},e.createElement(A,{data:q,margin:{top:16,right:28,bottom:8,left:0}},e.createElement(R,{stroke:I.colors.blue200}),e.createElement(W,{trigger:"click",content:function(n){return e.createElement(We,x({active:!j&&F&&void 0!==f&&void 0!==C,locale:M},n))}}),e.createElement(D,{type:"number",scale:"linear",ticks:Z.current,dataKey:"name",tickLine:!1,tickMargin:12,tick:{fontFamily:"Inter",fontWeight:400,fontSize:12,color:I.colors.gray800},domain:["dataMin","dataMax"],interval:"preserveStartEnd",tickCount:1,tickFormatter:function(e){return String(Math.round(100*(e+Number.EPSILON))/100)},allowDecimals:!0}),e.createElement(Y,{domain:[function(e){return Math.min(e,C||e)},function(e){return Math.max(e,C||e)}],tickLine:!1,tickMargin:7,width:45,tickCount:10,allowDecimals:!0,tickFormatter:function(e){return String(Math.round(100*(e+Number.EPSILON))/100)},tick:{fontFamily:"Inter",fontWeight:400,fontSize:12,color:I.colors.gray800}}),(M===c.Indonesia?mn:pn).map((function(n,t){return e.createElement(e.Fragment,null,"history"===n.name?e.createElement(T,{key:t,connectNulls:!0,type:"linear",dataKey:"history",stroke:n.color,dot:{stroke:n.color,fill:n.color,strokeWidth:1,r:4,strokeDasharray:""},activeDot:!0,color:n.color}):e.createElement(T,{key:n.name,type:"linear",dataKey:n.name,stroke:n.color,dot:!1,activeDot:!1,connectNulls:!0,label:e.createElement(fn,{last:(null==q?void 0:q.length)?q.length-1:0,name:(null==n?void 0:n.label)||n.name}),tooltipType:"none"}))})),void 0!==f&&void 0!==C&&e.createElement(O,{onClick:function(){return K(!0)},x:0===f?1:f,y:C,r:4,shape:e.createElement(un,{ref:J,r:4}),fill:I.colors.primaryBase,stroke:I.colors.primaryBase}))),e.createElement("div",{className:"custom-chart-label"},e.createElement("i",null),e.createElement(h,{size:"n1",color:I.colors.gray500},u)))};export{hn as BabyGrowthChart,$e as BabyGrowthChartPercentile,en as BabyGrowthChartZScore,Xe as BabyGrowthChooseProfileDrawer,X as BabyGrowthGender,ne as BabyGrowthLegend,Ye as BabyGrowthProfileRadio,qe as BabyGrowthRecord,_e as BabyGrowthSwitch,q as BabyGrowthSwitchChart,We as BabyGrowthTooltip,Ue as ChildCard,pn as LABELS_PERCENTILE,mn as LABELS_Z_SCORE,rn as divideChartData,tn as generateGrowthChart,cn as generateXAxisTicks,nn as getAxisYDomain,sn as paintAxis,ln as refineDataWithDot,on as refineDataWithLine,an as transformDataToChart};
package/build/esm/care.js CHANGED
@@ -1 +1 @@
1
- export{B as BookingSearchBar,t as CareTypes}from"./types-7076aa18.js";export{c as CareConstants}from"./constants-a0a981fa.js";import"./tslib.es6-5532bd7b.js";import"react";import"./index-58ae0705.js";import"./cookieHelper-0e8521c3.js";import"./useTranslations-ad4d9d26.js";import"./en-PH-ca0683d7.js";import"./translationsContext-d658f58d.js";import"string-format";import"lodash/debounce";import"./index.styled-b9f4b7d1.js";import"styled-components";import"./theme-a50a1aa5.js";import"./screenSizeContext-d6e9a094.js";import"vanilla-lazyload";import"lodash";import"./index-d009b597.js";import"react-range";import"react-dom";import"date-fns";import"./Locale-69030fff.js";import"react-loading-skeleton";import"react-id-generator";import"lodash/shuffle";import"./useOutsideClick-6004483a.js";
1
+ export{B as BookingSearchBar,t as CareTypes}from"./types-e5491c06.js";export{c as CareConstants}from"./constants-a0a981fa.js";import"./tslib.es6-5532bd7b.js";import"react";import"./index-58ae0705.js";import"./cookieHelper-0e8521c3.js";import"./useTranslations-3e47eecc.js";import"./en-PH-71017453.js";import"./translationsContext-d658f58d.js";import"string-format";import"lodash/debounce";import"./index.styled-faeac279.js";import"styled-components";import"./theme-a50a1aa5.js";import"./screenSizeContext-12f741e1.js";import"vanilla-lazyload";import"lodash";import"./gAssets.js";import"./index-642d36c8.js";import"react-range";import"date-fns";import"./Locale-69030fff.js";import"@mantine/core";import"react-loading-skeleton";import"react-id-generator";import"lodash/shuffle";import"./useOutsideClick-6004483a.js";
@@ -1 +1 @@
1
- export{A as Alert,s as AmpNextPage,e as ArticleCard,B as Badge,a as BorderHeading,f as Breadcrumbs,j as Carousel,C as Checkbox,g as CheckboxGroup,p as CookieAcceptConfirm,t as DateRangePicker,D as DueDateCardEmbed,F as FileDropdown,o as FloatButtonGroup,w as Footer,G as Grid,I as IconText,O as OvulationCardEmbed,P as Pagination,d as Progress,h as ProgressBar,R as RateStars,q as SeoHead,S as Shadow,u as ShareContainer,v as ShareDrawer,i as SideMenu,k as StatisticCard,n as SurveyThankyouCard,l as Table,m as Tabs,T as Tag,b as Toggle,r as ToolsBannerCard,U as UnderlinedLink,c as Uploader}from"./index-4dca7f50.js";export{A as Avatar,P as Popup}from"./utils-53a64f38.js";export{B as Button}from"./index-0d69362e.js";export{D as Divider}from"./index-fe9820b2.js";export{C as CategoryCard,D as DatePicker,c as DoctorInfo,F as Flag,L as LanguageSwitcher,M as MobileBottomNavigation,e as MobileBottomNavigationIcon,h as NavigationLogoutPopup,i as NavigationProfileButton,N as NavigationV2,P as ProfilePopup,R as Radio,a as RadioGroup,b as ScrollList,S as Slider,d as SurveyQuestionCard,g as getNavMenuContent,f as getNavMenuContentWithCache}from"./index-a4d7d7b7.js";export{H as Heading}from"./index-c9da804a.js";export{I as Input}from"./index-d009b597.js";export{C as Container,L as Label,a as Logo,M as Menu,P as PureInput,T as Text,b as TextArea,c as TextDivider}from"./index.styled-b9f4b7d1.js";export{I as Icon,M as Modal,N as NewBabyProfileRadio,R as RadioImageGroup}from"./index-dc96c2db.js";export{D as Drawer}from"./index.styled-a87311b3.js";export{D as Dropdown}from"./index-a1df367b.js";export{U as UserProfileNavigation,N as UserProfileNavigationHeader,a as UserProfileNavigationStats}from"./index-a2f795a2.js";import"react";import"./tslib.es6-5532bd7b.js";import"./screenSizeContext-d6e9a094.js";import"styled-components";import"vanilla-lazyload";import"lodash";import"./theme-a50a1aa5.js";import"react-id-generator";import"keen-slider/react";import"react-range";import"react-dom";import"./translationsContext-d658f58d.js";import"string-format";import"lodash/debounce";import"./index-58ae0705.js";import"date-fns";import"./Locale-69030fff.js";import"./useTranslations-ad4d9d26.js";import"./en-PH-ca0683d7.js";import"@mantine/core";import"./useOutsideClick-6004483a.js";import"date-fns/locale/en-US";import"date-fns/locale/id";import"date-fns/locale/vi";import"date-fns/locale/zh-TW";import"./getSocialList-ff22842b.js";import"./gAssets.js";import"./cookieHelper-0e8521c3.js";import"slugify";import"./core-d22826b4.js";import"react-day-picker/DayPickerInput";import"smoothscroll-polyfill";import"./getDynamicHealthTool-f43c2db2.js";import"./types-f57c9932.js";import"./useHealthToolCache-e4e2778a.js";import"./constants-a0a981fa.js";import"./useScrollbarSize-99db33e1.js";import"date-fns/locale/hi";import"date-fns/locale/ms";import"date-fns/locale/th";
1
+ export{A as Alert,t as AmpNextPage,e as ArticleCard,B as Badge,a as BorderHeading,f as Breadcrumbs,j as Carousel,C as Checkbox,g as CheckboxGroup,p as CookieAcceptConfirm,u as DateRangePicker,D as DueDateCardEmbed,F as FileDropdown,o as FloatButtonGroup,x as Footer,G as Grid,I as IconText,O as OvulationCardEmbed,s as PWGCardEmbed,P as Pagination,d as Progress,h as ProgressBar,R as RateStars,q as SeoHead,S as Shadow,v as ShareContainer,w as ShareDrawer,i as SideMenu,k as StatisticCard,n as SurveyThankyouCard,l as Table,m as Tabs,T as Tag,b as Toggle,r as ToolsBannerCard,U as UnderlinedLink,c as Uploader}from"./index-f5450aa0.js";export{A as Avatar,D as Dropdown,P as Popup}from"./index-9bacff82.js";export{B as Button}from"./index-93d22d63.js";export{D as Divider}from"./index-f8e043bf.js";export{C as CategoryCard,D as DatePicker,c as DoctorInfo,F as Flag,L as LanguageSwitcher,M as MobileBottomNavigation,e as MobileBottomNavigationIcon,j as NavigationLogoutPopup,k as NavigationProfileButton,N as NavigationV2,P as ProfilePopup,R as Radio,a as RadioGroup,b as ScrollList,S as Slider,d as SurveyQuestionCard,U as UserProfileNavigation,h as UserProfileNavigationHeader,i as UserProfileNavigationStats,g as getNavMenuContent,f as getNavMenuContentWithCache}from"./index-c5875449.js";export{H as Heading}from"./index-7a537be1.js";export{I as Input}from"./index-642d36c8.js";export{C as Container,L as Label,a as Logo,M as Menu,P as PureInput,T as Text,b as TextArea,c as TextDivider}from"./index.styled-faeac279.js";export{I as Icon,M as Modal,N as NewBabyProfileRadio,R as RadioImageGroup}from"./index-f3a0141e.js";export{D as Drawer}from"./index.styled-d8a819ea.js";import"react";import"./tslib.es6-5532bd7b.js";import"./screenSizeContext-12f741e1.js";import"styled-components";import"vanilla-lazyload";import"lodash";import"./theme-a50a1aa5.js";import"react-id-generator";import"keen-slider/react";import"./gAssets.js";import"./index-58ae0705.js";import"react-range";import"date-fns";import"./Locale-69030fff.js";import"@mantine/core";import"./translationsContext-d658f58d.js";import"string-format";import"lodash/debounce";import"./useTranslations-3e47eecc.js";import"./en-PH-71017453.js";import"./useHealthToolCache-e4e2778a.js";import"./getDynamicHealthTool-f43c2db2.js";import"./core-d22826b4.js";import"./useOutsideClick-6004483a.js";import"date-fns/locale/en-US";import"date-fns/locale/id";import"date-fns/locale/vi";import"date-fns/locale/zh-TW";import"./getSocialList-2f760404.js";import"date-fns/locale/hi";import"date-fns/locale/ms";import"date-fns/locale/th";import"./cookieHelper-0e8521c3.js";import"slugify";import"react-day-picker/DayPickerInput";import"react-dom";import"smoothscroll-polyfill";import"./types-f57c9932.js";import"./constants-a0a981fa.js";import"./useScrollbarSize-99db33e1.js";
@@ -0,0 +1 @@
1
+ var e={"actionPopover.delete":"Delete","actionPopover.deleteNotification":"Delete this notification","actionPopover.edit":"Edit","actionPopover.inviteShareCommunity":"Invite / Share community","actionPopover.joinCommunity":"Join Community","actionPopover.leaveCommunit":"Leave Community","actionPopover.leaveCommunity":"Leave Community","actionPopover.leaveCommunity.accept":"Leave","actionPopover.leaveCommunity.cancel":"Cancel","actionPopover.leaveCommunity.description":"Are you sure you want to leave this community?","actionPopover.leaveCommunity.title":"Leave Community","actionPopover.report":"Report","actionPopover.turnOffNotification":"Turn off notification","actionPopover.turnOffNotificationAbout":"Turn off notification about {label}","actionPopover.turnOnNotification":"Turn on notification","admin.comments":"Comments","admin.communities":"Communities","admin.community":"Community","article.shareOn":"Share on","articlePage.articleReviewerBy":"Medically reviewed by {name}","babyGrowth.alert.bmi":"There is no BMI measurements to display for {name} in WHO data range of 0 to 5 years. Use <a>BMI calculator tool</a> above 5 year old","babyGrowth.alert.head":"There is no head circumference measurements to display for {name} in WHO data range of 0 to 5 years","babyGrowth.alert.weight":"There is no Weight measurements to display for {name} in WHO data range of 0 to 10 years ","babyGrowth.drawer.addMeasurement":"Add a Measurement","babyGrowth.drawer.createBaby":"Create a baby profile","babyGrowth.drawer.switchProfile":"Switch profile","babyGrowth.head":"Head","babyGrowth.headCircumference":"Head Circumference","babyGrowth.height":"Height","babyGrowth.percentiles":"Percentiles","babyGrowth.weight":"Weight","babyVaccineTool.selectGender":"What is your child's gender?","bmi.heightInput.desc":"(cm)","booking.searchBar.currentLocation":"Current location","booking.searchBar.grantLocation":"Please grant location permission to search by current location","booking.searchBar.locationPlaceholder":"Enter city","booking.searchBar.noResults":"No Results","booking.searchBar.placeholder.doctor":"Search by doctor name","booking.searchBar.placeholder.hospital":"Search by hospital name","booking.searchBar.placeholder.service":"Search by service","booking.searchBar.placeholder.specialty":"Search by specialty","booking.searchBar.searchButton":"Search","booking.searchBar.searchInput.placeholder":"Search by Specialty or Clinic...","booking.searchBar.useCurrentLocation":"Use my current location","booking.searchPopup.doctors":"Doctors","booking.searchPopup.hospitals":"Hospitals & Clinics","booking.searchPopup.searchIn.doctors":'Search "{name}" in Doctors',"booking.searchPopup.searchIn.hospitals":'Search "{name}" in Hospitals',"booking.searchPopup.searchIn.services":'See "{name}" in Services',"booking.searchPopup.searchIn.specialties":'Search "{name}" in Specialties',"booking.searchPopup.seeAll":"See All","booking.searchPopup.seeLessSpecialties":"See less specialties","booking.searchPopup.seeMoreSpecialties":"See more specialties","booking.searchPopup.services":"Services","booking.searchPopup.specialties":"Specialties","bottomBar.share":"Share","cardAuthor.admin":"Admin","cardAuthor.ambassador":"Ambassador","cardAuthor.expert":"Expert","cardAuthor.guide":"Guide","cardAuthor.influencer":"Influencer","cardAuthor.localAdmin":"Local Admin","cardAuthor.moderator":"Moderator","cardAuthor.sponsor":"Sponsor","cardReactions.comment":"Comment","cardReactions.repliesCount":"{count} replies","cardReactions.reply":"Reply","careBooking.bookAnAppointment":"Book an appoinment",character:"Characters","childCard.age.months":"{month} months","childCard.age.oneMonth":"1 month","childCard.age.oneWeek":"1 week","childCard.age.oneYear":"1 year","childCard.age.oneYearMonth":"1 year {month} months","childCard.age.oneYearOneMonth":"1 year 1 month","childCard.age.week":"{weeks} weeks","childCard.age.yearMonth":"{year} years {month} months","childCard.age.yearNoMonth":"{year} years","childCard.age.yearOneMonth":"{year} years 1 month","childCard.boy":"Boy","childCard.girl":"Girl","childCard.menu.add":"Add a child profile","childCard.menu.edit":"Edit {name}’s profile","childCard.menu.remove":"Remove {name}’s profile","childCard.menu.switch":"Switch child's profile","childCard.noName":"Child's Name","choicePopover.ambassadorPosts":"Ambassador posts","choicePopover.expertPosts":"Expert posts","choicePopover.lastestPost":"Latest posts","choicePopover.latest":"Latest","choicePopover.newest":"Newest","choicePopover.oldest":"Oldest","choicePopover.popular":"Popular","choicePopover.popularPost":"Popular posts","choicePopover.sort":"Sort","chooseBaby.button":"View your Child Growth Chart","chooseBaby.new":"or Add new child profile","chooseBaby.placeholder":"Please give child's name","chooseBaby.title":"Choose Child's Profile","comment.count":"{count} comments","comment.seeMoreComments":"See {count} more comments","comment.seeMoreReplies":"See {count} more replies","commentPopup.warning.newPost":"Your question will be public","community.choose":"Choose a community","community.notification.joined":"You joined {name} community","community.notification.left":"You left {name} community",copied:"Copied",copy:"Copy","createPost.popup.description":"Description","createPost.popup.primary":"Tap to select/ unselect topics","createPost.popup.submit":"Post","createPost.popup.success":"New Post Created","createPost.popup.warning":"Select a community to see your following topics","createPost.popup.warningImage":"Maximum 20 images allow, please remove some item below","createPost.popup.wordCount":"{count}/{max} words","createPost.title":"Title","createPost.urlText":"Text","dueDatePage.calculationMethod":"Calculation Method","dueDatePage.conceptionDate":"Conception Date","dueDatePage.daysText":"{number} days","dueDatePage.ivf":"IVF","dueDatePage.ivf.transferDate":"IVF Transfer Date","dueDatePage.ivf.transferDateRadio":"{number}-Day Transfer","dueDatePage.lastPeriod":"Last Period","dueDatePage.lastPeriod.calculate":"Calculate","dueDatePage.lastPeriod.lastPeriodLabel":"The first day of your last period","dueDatePage.lastPeriod.periodLengthLabel":"Cycle Length","expert.content.description":"Expert's Profile","expert.content.experiences":"Experiences","footer.signUp":"Sign Up Now","gender.female":"Female","gender.male":"Male","healthTools.dueDateCalculator":"Due Date Calculator","healthTools.ovulationCalculator":"Ovulation Calculator","home.menu.category.view":"View {category}","home.navigator.menu.care.noDatas.cta":"Book a Doctor","home.navigator.menu.care.noDatas.description":"HelloCare helps patients to find the right medical doctors and service treatment for their needs, in their vicinity.","home.navigator.menu.care.noDatas.title":"Make an appointment with doctors easily","home.navigator.menu.category.noDatas.cta":"Discover now","home.navigator.menu.category.noDatas.description":"Hello Doctor wants to be your most trusted ally to make more informed decisions and to live healthier and happier lives.","home.navigator.menu.category.noDatas.title":"Welcome to Hello Doctor","home.navigator.menu.healthTools.noDatas.cta":"Discover more","home.navigator.menu.healthTools.noDatas.description":"These easy-to-use health assessment tools will help you gauge vital parts of your overall health and wellness.","home.navigator.menu.healthTools.noDatas.title":"Health Tools","home.navigator.menu.spotlightHospitals":"Popular Hospitals","home.navigator.menu.spotlightTools":"Favorite Tools","home.navigator.menu.spotlights":"All In Focus","home.navigator.menu.spotlights.seeAll":"See All In Focus","home.navigator.menu.together.noPosts.cta":"Join Our Communities","home.navigator.menu.together.noPosts.description":"Community is a safe space where you can connect with other members, comment on topics you care about, and receive trusted advice from medical experts on the health issues that matter most.","home.navigator.menu.together.noPosts.title":"Welcome to Community","home.navigator.menu.trendingPosts":"Highlight Posts","home.navigator.menu.trendingPosts.seeMore":"See more","home.navigator.menuItem.allCategories":"See All Categories","home.navigator.menuItem.allCommunities":"See all communities","home.navigator.menuItem.allCommunitiesheadingTitle":"Find your communities","home.navigator.menuItem.allHealthTools":"See All Health Tools","home.navigator.menuItem.allSpecialties":"All specialties","home.navigator.menuItem.allSpotlight":"See All In Focus","home.navigator.menuItem.discover":"Discover","home.navigator.menuItem.healthCategories":"Health Categories","home.navigator.menuItem.healthTools":"Health Tools","home.navigator.menuItem.healthToolsList":"Health Tools","home.navigator.menuItem.helloCare":"Book a Doctor","home.navigator.menuItem.helloEcom":"Pharmacy","home.navigator.menuItem.helloTogether":"Communities","home.navigator.menuItem.language":"Language","home.navigator.menuItem.specialties":"Specialties","home.navigator.menuItem.spotlights":"All In Focus","home.search":"Search {site}","home.seeAll":"See All","home.seeAllCategories":"See All Topics","home.seeExpert":"View Full Expert's Profile","home.seeHospital":"View Full Hospital's Profile","home.seeMore":"See More","home.seeMoreExperts":"See More Experts","hospital.content.description":"Hospital Details","inputComment.replyTo":"Reply to {name}",insert:"Insert","label.latestPost":"Latest Post","label.pinnedPost":"Pinned Post",loading:"loading","login.booking":"Booking with doctor","logout.popup.ask.mb":"Logout of Marry Baby","logout.popup.ask1":"Log Out of Hello Doctor?","logout.popup.ask2":"Are you sure you want to log out?","logout.popup.button.cancel":"Cancel","logout.popup.button.logout":"Log Out","menu.care.searchBySpecialties":"Search by specialty","morePopover.report":"Report","morePopover.report.description":"Help us understand what’s happening with this post. How would you describe it?","morePopover.report.falseNews":"False news","morePopover.report.offensive":"Offensive","morePopover.report.other":"Other","morePopover.report.prohibited":"Prohibited content","morePopover.report.scam":"Misleading or scam","morePopover.report.sex":"Sexually inappropriate","morePopover.report.spam":"Spam","morePopover.report.title":"Report this post","morePopover.report.violence":"Violence","morePopover.reportSubmit.description":"We won’t tell them who reported it. Please check these details:","morePopover.reportSubmit.title":"Submit report?","morePopover.savePost":"Save post","morePopover.share":"Share","morePopover.shareOn":"Share on","morePopover.turnOffNotifications":"Turn off notifications","morePopover.turnOnNotifications":"Turn on notifications","morePopover.unsavePost":"Remove Saved post","navigation.loginJoin":"Log in","navigation.search.input.placeholder":"Search","notification.comment.blocked.message":"This comment contains banned words or phrases and won’t be published","notification.comment.blocked.title":"Blocked comment","notification.comment.premod":"Your comment needs to be reviewed.","notification.comment.rejected":"Your comment contain words that are not allowed.","notification.comment.reportFailed":"Failed!","notification.comment.reportSuccess":"You have successfully reported a comment.","notification.comment.somethingWrong":"Something went wrong.","notification.comment.suspect.message":"This comment contains suspected words or phrases and won’t be published","notification.comment.suspect.title":"Pending comment","notification.comment.systemWithheld":"Your comment needs to be reviewed.","notification.failure":"Something wrong. Try again later!","notification.limitUrlDomain":"Cannot post link outside of Hello Health Group.","notification.post.blocked.message":"This post contains banned words or phrases and won’t be published","notification.post.blocked.title":"Blocked post","notification.post.delete":"Post Deleted","notification.post.suspect.message":"This post contains suspected words or phrases, and is placed for moderator review","notification.post.suspect.title":"Pending post","notification.success":"Success","notification.suspend.message":"Your account has been suspended for violating our terms of service","notification.urlWrongFormat":"Incorrect URL format",orCopyLink:"Or copy link","ovulationPage.avoidPregnancy":"Avoid pregnancy","ovulationPage.conceive":"Trying to conceive","ovulationPage.cycleLength":"Cycle Length","ovulationPage.dayUnit":"(days)","ovulationPage.objectives":"Objectives","ovulationPage.periodDuration":"Period Duration","ovulationPage.trackPeriod":"Track period cycle","placeholder.enterTitleHere":"Enter title here","placeholder.enterUrlHere":"Enter URL here","placeholder.enterUrlTextHere":"Enter URL Text here","placeholder.newCmt":"Write a comment","placeholder.newPost":"Start a new post","popup.allTopics":"All Topics","popup.createPost.confirmCloseDescription":"If you discard now, you’ll lose this post","popup.createPost.confirmCloseTitle":"Are you sure?","popup.deleteComment.description":"Delete your comment cannot be undone","popup.deleteComment.title":"Delete comment?","popup.deletePost.accept":"Delete","popup.deletePost.cancel":"Cancel","popup.deletePost.description":"Delete your post cannot be undone","popup.deletePost.title":"Delete post?","popup.discardPost":"Discard post","popup.discardPostEdit":"Discard changes","popup.editPost":"Edit post","popup.keepEditing":"Keep editing","popup.startANewPost":"Start a new post","post.commentCount":"{count} comments","post.likesCount":"{count} likes","post.seeMore":"See More","post.shareCount":"{count} shares","pregnancyWeightGain.havingTwins":"Are you having twins?","pregnancyWeightGain.heading":"Pregnancy Weight Gain","pregnancyWeightGain.heightInput":"What is your height?","pregnancyWeightGain.weekInput":"How many weeks pregnant are you?","pregnancyWeightGain.weightBeforeInput":"What was your weight before pregnancy?","pregnancyWeightGain.weightInput":"How much do you weigh now?","pregnancyWeightGain.weightInput.desc":" (kg)","previewPhotos.title":"{name}'s Post","sensitiveMask.blur":"Blur","sensitiveMask.contentWarningDescription":"Warning: The following picture may be disturbing to some viewers. Viewer discretion is advised","sensitiveMask.contentWarningMessage":"These images may be disturbing...","sensitiveMask.unblur":"Show","share.copyLink":"Or copy link","share.letsJoinCommunity":"Let's join {name} community!","share.letsJoinTopic":"Let's join {name} topic!","share.linkCopied":"Link Copied","share.linkShared":"Link Shared Successfully","share.title":"Share","shareContainer.title":"Share the results",submit:"Submit","switchBtn.no":"No","switchBtn.yes":"Yes","tab.about":"About","tab.discussion":"Discussions","tab.topic":"Topics","tool.askChecking":"I’m checking for other","tool.selectPerson":"Are you checking for?","tool.selectPerson.other":"Other","tool.selectPerson.yourSelf":"Your self","toolPage.toolReviewer":"Medically Reviewed by {expert_name} on {date}","tools.heading.on":"on","userProfile.nav.card.eCom":"E-commerce","userProfile.nav.card.myBooking":"My Booking","userProfile.nav.card.myCommunity":"My Community","userProfile.nav.card.myFamily":"Family Profiles","userProfile.nav.card.myHealth":"My Health","userProfile.nav.card.mySaved":"Saved","userProfile.nav.header.count.comments":"Comments","userProfile.nav.header.count.posts":"Posts","userProfile.nav.header.count.tools":"Tools","userProfile.nav.header.points":"Points","userProfile.nav.header.viewProfile":"View My Profile","userProfile.nav.menu.accountSettings":"Account Settings","userProfile.nav.menu.disableAccount":"Disable Account","userProfile.nav.menu.help":"Help","userProfile.nav.menu.logout":"Log out","userProfile.nav.menu.password":"Password","userProfile.userRank.ambassador":"Ambassador","userProfile.userRank.doctor":"Doctor","userProfile.userRank.expert":"Expert","userProfile.userRank.influencer":"Influencer","userProfile.userRank.member":"Member"};export{e as d};
@@ -0,0 +1 @@
1
+ import e from"react";import{L as t}from"./Locale-69030fff.js";import{CommonGAssets as C}from"./gAssets.js";var l=function(l){return[{icon:e.createElement("svg",{width:"33",height:"32",viewBox:"0 0 33 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{d:"M27.5 0H5.5C2.73858 0 0.5 2.23858 0.5 5V27C0.5 29.7614 2.73858 32 5.5 32H27.5C30.2614 32 32.5 29.7614 32.5 27V5C32.5 2.23858 30.2614 0 27.5 0Z",fill:"#1778F2"}),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.814 32V19.499H24.069L24.5 15.19H20.814L20.82 13.034C20.82 11.911 20.92 11.309 22.443 11.309H24.477V7H21.222C17.312 7 15.937 9.09 15.937 12.604V15.191H13.5V19.499H15.937V32H20.814Z",fill:"white"})),name:"Facebook",href:"https://www.facebook.com/sharer/sharer.php?u=".concat(l)},{icon:e.createElement("img",{src:C.getAssetPath("zalo-mini.png"),alt:"Zalo",width:"32",height:"32"}),name:"Zalo",href:"https://sp.zalo.me/share?href=".concat(l),allowedLocales:[t.Vietnam]},{icon:e.createElement("svg",{width:"33",height:"32",viewBox:"0 0 33 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("rect",{x:"0.5",width:"32",height:"32",rx:"4",fill:"#1FA1F3"}),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.2304 13.2349L16.2708 13.8692L15.5964 13.7916C13.1417 13.4938 10.9972 12.484 9.17631 10.788L8.2861 9.94646L8.05683 10.5679C7.57124 11.9532 7.88149 13.4161 8.89305 14.4001C9.43257 14.9438 9.31116 15.0215 8.38052 14.6978C8.05683 14.5943 7.77357 14.5166 7.74658 14.5554C7.65216 14.646 7.97591 15.8241 8.23218 16.2902C8.58286 16.9376 9.29766 17.5719 10.08 17.9474L10.7409 18.2452L9.9586 18.2581C9.20324 18.2581 9.17631 18.271 9.25723 18.5429C9.52699 19.3844 10.5925 20.2777 11.7794 20.6661L12.6157 20.938L11.8873 21.3523C10.8083 21.9478 9.54049 22.2844 8.2726 22.3103C7.66566 22.3232 7.16663 22.375 7.16663 22.4139C7.16663 22.5433 8.81213 23.2684 9.76976 23.5531C12.6427 24.3947 16.055 24.0322 18.6177 22.5951C20.4385 21.5724 22.2593 19.5398 23.1091 17.5719C23.5677 16.5232 24.0263 14.6072 24.0263 13.688C24.0263 13.0925 24.0667 13.0148 24.822 12.3027C25.2671 11.8885 25.6853 11.4353 25.7662 11.3059C25.901 11.0598 25.8875 11.0598 25.1997 11.28C24.0532 11.6683 23.8913 11.6166 24.4579 11.034C24.876 10.6197 25.375 9.86879 25.375 9.64873C25.375 9.60987 25.1727 9.67458 24.9434 9.79112C24.7006 9.92061 24.1611 10.1148 23.7565 10.2313L23.0281 10.4514L22.3673 10.0241C22.0031 9.79112 21.4905 9.53219 21.2208 9.45452C20.5329 9.27327 19.4809 9.29918 18.8605 9.50628C17.1745 10.0889 16.1089 11.5907 16.2304 13.2349Z",fill:"white"})),name:"Twitter",href:"https://twitter.com/intent/tweet?url=".concat(l)},{icon:e.createElement("svg",{width:"33",height:"32",viewBox:"0 0 33 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("g",{clipPath:"url(#clip0_687_88944)"},e.createElement("path",{d:"M29.5309 0H3.46909C1.82931 0 0.5 1.32931 0.5 2.96909V29.0309C0.5 30.6707 1.82931 32 3.46909 32H29.5309C31.1707 32 32.5 30.6707 32.5 29.0309V2.96909C32.5 1.32931 31.1707 0 29.5309 0Z",fill:"url(#paint0_linear_687_88944)"}),e.createElement("path",{d:"M23.5545 8.94548C21.8898 7.2642 19.6792 6.23313 17.3212 6.03825C14.9633 5.84336 12.6134 6.49749 10.6953 7.88265C8.77715 9.2678 7.41716 11.2928 6.86059 13.5924C6.30403 15.8919 6.58753 18.3147 7.65997 20.4237L6.60724 25.5346C6.59632 25.5854 6.59601 25.638 6.60633 25.689C6.61665 25.74 6.63739 25.7883 6.66724 25.8309C6.71097 25.8956 6.77338 25.9454 6.84616 25.9737C6.91893 26.0019 6.99859 26.0073 7.07451 25.9891L12.0836 24.8018C14.1866 25.8471 16.5923 26.1124 18.8725 25.5505C21.1528 24.9885 23.1597 23.6358 24.5362 21.7331C25.9128 19.8303 26.5696 17.5009 26.3898 15.1593C26.21 12.8177 25.2053 10.6158 23.5545 8.94548ZM21.9927 21.4109C20.8409 22.5595 19.3578 23.3176 17.7523 23.5786C16.1468 23.8395 14.4998 23.5901 13.0436 22.8655L12.3454 22.52L9.27451 23.2473L9.2836 23.2091L9.91997 20.1182L9.57815 19.4437C8.83408 17.9823 8.57159 16.323 8.82831 14.7034C9.08502 13.0837 9.84775 11.5869 11.0072 10.4273C12.4642 8.97083 14.4399 8.15263 16.5 8.15263C18.56 8.15263 20.5358 8.97083 21.9927 10.4273C22.0051 10.4415 22.0185 10.4549 22.0327 10.4673C23.4716 11.9275 24.2748 13.8974 24.2673 15.9474C24.2598 17.9974 23.4422 19.9613 21.9927 21.4109Z",fill:"white"}),e.createElement("path",{d:"M21.7199 19.1436C21.3436 19.7364 20.749 20.4618 20.0017 20.6418C18.6926 20.9582 16.6836 20.6527 14.1836 18.3218L14.1526 18.2946C11.9545 16.2564 11.3836 14.56 11.5217 13.2146C11.5981 12.4509 12.2345 11.76 12.7708 11.3091C12.8556 11.2367 12.9562 11.1852 13.0645 11.1586C13.1727 11.1321 13.2857 11.1312 13.3944 11.1561C13.503 11.181 13.6044 11.231 13.6903 11.3021C13.7761 11.3732 13.8442 11.4634 13.889 11.5655L14.6981 13.3836C14.7507 13.5015 14.7702 13.6315 14.7545 13.7596C14.7388 13.8878 14.6885 14.0092 14.609 14.1109L14.1999 14.6418C14.1121 14.7515 14.0592 14.8848 14.0478 15.0248C14.0365 15.1648 14.0673 15.305 14.1363 15.4273C14.3654 15.8291 14.9145 16.42 15.5236 16.9673C16.2072 17.5855 16.9654 18.1509 17.4454 18.3436C17.5738 18.3961 17.715 18.4089 17.8508 18.3804C17.9866 18.3519 18.1107 18.2834 18.2072 18.1836L18.6817 17.7055C18.7733 17.6152 18.8872 17.5508 19.0117 17.5188C19.1363 17.4869 19.2671 17.4886 19.3908 17.5236L21.3126 18.0691C21.4187 18.1016 21.5158 18.158 21.5967 18.2338C21.6776 18.3096 21.7401 18.4029 21.7794 18.5066C21.8187 18.6103 21.8338 18.7216 21.8235 18.832C21.8132 18.9424 21.7777 19.049 21.7199 19.1436Z",fill:"white"})),e.createElement("defs",null,e.createElement("linearGradient",{id:"paint0_linear_687_88944",x1:"16.5",y1:"0.130909",x2:"16.5",y2:"30.4509",gradientUnits:"userSpaceOnUse"},e.createElement("stop",{stopColor:"#36F46C"}),e.createElement("stop",{offset:"1",stopColor:"#03D749"})),e.createElement("clipPath",{id:"clip0_687_88944"},e.createElement("rect",{width:"32",height:"32",fill:"white",transform:"translate(0.5)"})))),name:"WhatsApp",href:"https://wa.me/?text=".concat(l)},{icon:e.createElement("svg",{width:"33",height:"32",viewBox:"0 0 33 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("rect",{x:"0.5",width:"32",height:"32",rx:"4",fill:"#0077B5"}),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.3571 9.07077C11.3349 7.97643 10.6126 7.14288 9.43969 7.14288C8.26679 7.14288 7.5 7.97643 7.5 9.07077C7.5 10.1425 8.24415 11 9.39516 11H9.4171C10.6126 11 11.3571 10.1425 11.3571 9.07077ZM11.3571 12.286H7.5V23.8574H11.3571V12.286ZM20.651 12.286C23.4224 12.286 25.5 13.9022 25.5 17.3748L25.4999 23.8571H21.2885V17.8086C21.2885 16.2894 20.6791 15.2526 19.1545 15.2526C17.991 15.2526 17.2979 15.9515 16.9935 16.6265C16.8822 16.8685 16.8548 17.2056 16.8548 17.5435V23.8574H12.6429C12.6429 23.8574 12.6984 13.6127 12.6429 12.5518H16.8548V14.1531C17.4138 13.3834 18.415 12.286 20.651 12.286Z",fill:"white"})),name:"LinkedIn",href:"https://www.linkedin.com/sharing/share-offsite/?url=".concat(l)},{icon:e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32px",height:"32px",viewBox:"0 0 32 32",version:"1.1"},e.createElement("g",{id:"surface1"},e.createElement("path",{fill:"#00cf2e",d:"M 26.398438 32 L 5.601562 32 C 2.507812 32 0 29.492188 0 26.398438 L 0 5.601562 C 0 2.507812 2.507812 0 5.601562 0 L 26.398438 0 C 29.492188 0 32 2.507812 32 5.601562 L 32 26.398438 C 32 29.492188 29.492188 32 26.398438 32 Z M 26.398438 32 "}),e.createElement("path",{fill:"#fff",d:"M 28.199219 14.199219 C 28.199219 9.800781 23 5 16.199219 5 C 9.574219 5 4.199219 8.898438 4.199219 14.199219 C 4.199219 19.089844 8.390625 23.128906 14.285156 23.726562 C 14.648438 23.753906 14.980469 23.949219 15.179688 24.253906 C 15.320312 24.476562 15.398438 24.734375 15.398438 25 C 15.386719 25.542969 15.324219 26.082031 15.21875 26.613281 C 15.1875 26.761719 15.238281 26.914062 15.355469 27.011719 C 15.472656 27.109375 15.632812 27.128906 15.769531 27.070312 C 18.59375 25.820312 28.199219 20.679688 28.199219 14.199219 Z M 28.199219 14.199219 "}),e.createElement("path",{fill:"#00cf2e",d:"M 11.800781 16.398438 L 10 16.398438 L 10 12.199219 C 10 11.867188 9.730469 11.601562 9.398438 11.601562 C 9.070312 11.601562 8.800781 11.867188 8.800781 12.199219 L 8.800781 17 C 8.800781 17.332031 9.070312 17.601562 9.398438 17.601562 L 11.800781 17.601562 C 12.132812 17.601562 12.398438 17.332031 12.398438 17 C 12.398438 16.667969 12.132812 16.398438 11.800781 16.398438 Z M 11.800781 16.398438 "}),e.createElement("path",{fill:"#00cf2e",d:"M 13.398438 11.601562 C 13.070312 11.601562 12.800781 11.867188 12.800781 12.199219 L 12.800781 17 C 12.800781 17.332031 13.070312 17.601562 13.398438 17.601562 C 13.730469 17.601562 14 17.332031 14 17 L 14 12.199219 C 14 11.867188 13.730469 11.601562 13.398438 11.601562 Z M 13.398438 11.601562 "}),e.createElement("path",{fill:"#00cf2e",d:"M 19 11.601562 C 18.667969 11.601562 18.398438 11.867188 18.398438 12.199219 L 18.398438 15.199219 L 15.898438 11.839844 C 15.746094 11.632812 15.476562 11.550781 15.230469 11.628906 C 14.984375 11.710938 14.820312 11.941406 14.820312 12.199219 L 14.820312 17 C 14.871094 17.285156 15.121094 17.492188 15.410156 17.492188 C 15.699219 17.492188 15.949219 17.285156 16 17 L 16 14 L 18.5 17.359375 C 18.617188 17.515625 18.804688 17.605469 19 17.601562 C 19.066406 17.601562 19.128906 17.589844 19.191406 17.570312 C 19.433594 17.488281 19.601562 17.257812 19.601562 17 L 19.601562 12.199219 C 19.601562 11.867188 19.332031 11.601562 19 11.601562 Z M 19 11.601562 "}),e.createElement("path",{fill:"#00cf2e",d:"M 23.398438 15.199219 C 23.730469 15.199219 24 14.929688 24 14.601562 C 24 14.269531 23.730469 14 23.398438 14 L 21.601562 14 L 21.601562 12.800781 L 23.398438 12.800781 C 23.730469 12.800781 24 12.53125 24 12.199219 C 24 11.867188 23.730469 11.601562 23.398438 11.601562 L 21 11.601562 C 20.667969 11.601562 20.398438 11.867188 20.398438 12.199219 L 20.398438 17 C 20.398438 17.332031 20.667969 17.601562 21 17.601562 L 23.398438 17.601562 C 23.730469 17.601562 24 17.332031 24 17 C 24 16.667969 23.730469 16.398438 23.398438 16.398438 L 21.601562 16.398438 L 21.601562 15.199219 Z M 23.398438 15.199219 "}))),name:"Line",href:"http://line.me/R/msg/text/?".concat(l),allowedLocales:[t.Taiwan]}]};export{l as g};
@@ -1 +1 @@
1
- export{u as useTranslations}from"./useTranslations-ad4d9d26.js";export{M as MEASURE_ELEMENT_CLASS,u as useScrollbarSize}from"./useScrollbarSize-99db33e1.js";export{u as useFbDataLayer}from"./useFbDataLayer-5016df43.js";export{u as useHealthToolsCache}from"./useHealthToolCache-e4e2778a.js";import"react";import"./en-PH-ca0683d7.js";import"./translationsContext-d658f58d.js";import"string-format";import"lodash/debounce";import"./tslib.es6-5532bd7b.js";import"./cookieHelper-0e8521c3.js";import"./getDynamicHealthTool-f43c2db2.js";import"./core-d22826b4.js";import"./index-58ae0705.js";
1
+ export{u as useTranslations}from"./useTranslations-3e47eecc.js";export{M as MEASURE_ELEMENT_CLASS,u as useScrollbarSize}from"./useScrollbarSize-99db33e1.js";export{u as useFbDataLayer}from"./useFbDataLayer-5016df43.js";export{u as useHealthToolsCache}from"./useHealthToolCache-e4e2778a.js";import"react";import"./en-PH-71017453.js";import"./translationsContext-d658f58d.js";import"string-format";import"lodash/debounce";import"./tslib.es6-5532bd7b.js";import"./cookieHelper-0e8521c3.js";import"./getDynamicHealthTool-f43c2db2.js";import"./core-d22826b4.js";import"./index-58ae0705.js";
package/build/esm/i18n.js CHANGED
@@ -1 +1 @@
1
- export{T as TranslationsProvider,t as translationsMap}from"./translationsProvider-bc47fc67.js";export{T as TranslationsContext}from"./translationsContext-d658f58d.js";export{d as defaultTranslations}from"./en-PH-ca0683d7.js";import"./tslib.es6-5532bd7b.js";import"react";
1
+ export{T as TranslationsProvider,t as translationsMap}from"./translationsProvider-cd9f6f24.js";export{T as TranslationsContext}from"./translationsContext-d658f58d.js";export{d as defaultTranslations}from"./en-PH-71017453.js";import"./tslib.es6-5532bd7b.js";import"react";
@@ -1 +1 @@
1
- import{b as e,_ as a}from"./tslib.es6-5532bd7b.js";import t,{useMemo as n}from"react";import{W as s,L as i,X as o,Y as l,Z as r}from"./index.styled-b9f4b7d1.js";var c=function(c){var m=c.name,d=c.value,u=c.errorMessage,p=c.isNumerousKeyboard,b=void 0!==p&&p,v=c.actionIcon,y=c.displayIcon,C=c.onActionClick,g=c.label,N=c.className,E=c.onChange,f=c.isDisabled,h=c.CustomInput,I=c.size,k=c.style,A=c.autoComplete,K=void 0===A?"off":A,z=c.type,L=void 0===z?"text":z,x=c.inputClassName,H=c.trackingAttributes,M=c.enterKeyHint,j=e(c,["name","value","errorMessage","isNumerousKeyboard","actionIcon","displayIcon","onActionClick","label","className","onChange","isDisabled","CustomInput","size","style","autoComplete","type","inputClassName","trackingAttributes","enterKeyHint"]),D=n((function(){return H?{"data-event-category":H.dataEventCategory,"data-event-action":H.dataEventAction,"data-event-label":H.dataEventLabel}:{}}),[H]);return t.createElement(s,{"data-size":I,className:N,"data-has-action-icon":!!v||void 0,"data-has-display-icon":!!y||void 0,"data-has-error":u&&u.length>0||void 0,style:k},g&&t.createElement(i,{size:"label2",htmlFor:m,className:"inputLabel"},g),t.createElement("div",{style:{position:"relative"}},h||t.createElement("input",a({id:m,name:m,onChange:function(e){return E&&E(e.target.value)},type:L,"aria-label":L,value:d,disabled:f,autoComplete:K,inputMode:b||"number"===L?"numeric":L,pattern:b?"[0-9]*":".*",className:x,enterKeyHint:M},D,j)),y&&t.createElement(o,{className:"displayIcon"},y),v&&t.createElement(l,{className:"actionIcon",onClick:C},v)),u&&u.length>0&&t.createElement(r,{className:"errorLabel"},u))};export{c as I};
1
+ import{b as e,_ as a}from"./tslib.es6-5532bd7b.js";import t,{useMemo as n}from"react";import{W as s,L as i,X as o,Y as l,Z as r}from"./index.styled-faeac279.js";var c=function(c){var m=c.name,d=c.value,u=c.errorMessage,p=c.isNumerousKeyboard,b=void 0!==p&&p,v=c.actionIcon,y=c.displayIcon,C=c.onActionClick,g=c.label,N=c.className,E=c.onChange,f=c.isDisabled,h=c.CustomInput,I=c.size,k=c.style,A=c.autoComplete,K=void 0===A?"off":A,z=c.type,L=void 0===z?"text":z,x=c.inputClassName,H=c.trackingAttributes,M=c.enterKeyHint,j=e(c,["name","value","errorMessage","isNumerousKeyboard","actionIcon","displayIcon","onActionClick","label","className","onChange","isDisabled","CustomInput","size","style","autoComplete","type","inputClassName","trackingAttributes","enterKeyHint"]),D=n((function(){return H?{"data-event-category":H.dataEventCategory,"data-event-action":H.dataEventAction,"data-event-label":H.dataEventLabel}:{}}),[H]);return t.createElement(s,{"data-size":I,className:N,"data-has-action-icon":!!v||void 0,"data-has-display-icon":!!y||void 0,"data-has-error":u&&u.length>0||void 0,style:k},g&&t.createElement(i,{size:"label2",htmlFor:m,className:"inputLabel"},g),t.createElement("div",{style:{position:"relative"}},h||t.createElement("input",a({id:m,name:m,onChange:function(e){return E&&E(e.target.value)},type:L,"aria-label":L,value:d,disabled:f,autoComplete:K,inputMode:b||"number"===L?"numeric":L,pattern:b?"[0-9]*":".*",className:x,enterKeyHint:M},D,j)),y&&t.createElement(o,{className:"displayIcon"},y),v&&t.createElement(l,{className:"actionIcon",onClick:C},v)),u&&u.length>0&&t.createElement(r,{className:"errorLabel"},u))};export{c as I};
@@ -0,0 +1 @@
1
+ import{b as t,_ as a}from"./tslib.es6-5532bd7b.js";import e from"react";import{V as o}from"./index.styled-faeac279.js";var n=function(n){var i,s=n.as,d=n.tag,l=n.className,r=n.children,c=n.title,g=n.color,v=n.style,m=n.fontWeight,h=n.dataEventCategory,f=n.dataEventAction,b=n.dataEventLabel,y=t(n,["as","tag","className","children","title","color","style","fontWeight","dataEventCategory","dataEventAction","dataEventLabel"]),E=s||d;return e.createElement(o,a({title:c,style:a(a({},g?(i={},i["--custom-heading-color"]=g,i):void 0),v),"data-tag":d,"data-font-weight":m||void 0,"data-event-category":h,"data-event-action":f,"data-event-label":b,as:E,className:l,headingFontWeight:m,headingTag:d},y),r)};export{n as H};
@@ -1 +1 @@
1
- import{b as t,_ as a}from"./tslib.es6-5532bd7b.js";import e from"react";import{F as r,G as d}from"./index.styled-b9f4b7d1.js";var o=function(o){var n=o.size,i=o.color,c=void 0===i?"primary":i,l=o.theme,s=void 0===l?"helloSites":l,m=o.isDisabled,u=o.isBlock,C=o.title,p=o.className,h=o.onClick,v=o.icon,g=o.children,k=o.isLoading,E=o.loadingText,b=o.dataEventCategory,w=o.dataEventAction,y=o.dataEventLabel,P=o.dataProductChannel,f=o.dataProductSku,x=o.dataProductBrand,B=o.dataProductName,A=o.dataProductPrice,L=o.dataProductCategory,F=o.dataProductPosition,z=o.isAmp,N=o.on,D=o.dataVarsTracking,T=o.type,I=t(o,["size","color","theme","isDisabled","isBlock","title","className","onClick","icon","children","isLoading","loadingText","dataEventCategory","dataEventAction","dataEventLabel","dataProductChannel","dataProductSku","dataProductBrand","dataProductName","dataProductPrice","dataProductCategory","dataProductPosition","isAmp","on","dataVarsTracking","type"]),M=z?{"data-vars-event-category":b,"data-vars-event-action":w,"data-vars-event-label":y,"data-vars-product-channel":P,"data-vars-product-sku":f,"data-vars-product-brand":x,"data-vars-product-name":B,"data-vars-product-price":A,"data-vars-product-category":L,"data-vars-product-position":F,"data-vars-tracking":D,on:N}:{"data-event-category":b,"data-event-action":w,"data-event-label":y,"data-product-channel":P,"data-product-sku":f,"data-product-brand":x,"data-product-name":B,"data-product-price":A,"data-product-category":L,"data-product-position":F};return e.createElement(r,a({},M,{className:p,"data-size":n,"data-color":c,"data-block":u,"data-has-icon":!!v||void 0,"data-theme":s,disabled:m,onClick:function(t){!k&&!m&&h&&h(t)},title:C,"data-is-loading":k||void 0,buttonHasIcon:!!v,buttonTheme:s,buttonSize:n,buttonColor:c,buttonIsLoading:k,buttonIsBlock:u,type:T},I),k?e.createElement("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",height:24}},("secondary"===c||"transparent"===c||"tertiary"===c||"ghost"===c||"danger"===c)&&e.createElement(e.Fragment,null,e.createElement("svg",{width:"24",height:"24",fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},e.createElement("circle",{cx:"12",cy:"12",r:"10",stroke:"#DBDFE5",strokeWidth:"4"})),e.createElement(d,{width:"24",height:"24",fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},e.createElement("mask",{id:"a",fill:"#fff"},e.createElement("path",{d:"M12 0A12 12 0 11.19 9.88l3.9.7A8.03 8.03 0 1012 3.98V0z"})),e.createElement("path",{d:"M12 0A12 12 0 11.19 9.88l3.9.7A8.03 8.03 0 1012 3.98V0z",stroke:"#2D87F3",strokeWidth:"8",mask:"url(#a)"}))),"primary"===c&&e.createElement(e.Fragment,null,e.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("circle",{cx:"12",cy:"12",r:"10",stroke:"white",strokeWidth:"4"})),e.createElement(d,{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},e.createElement("mask",{id:"path-1-inside-1",fill:"white"},e.createElement("path",{d:"M12 0C14.464 2.93833e-08 16.8683 0.758527 18.8863 2.17253C20.9042 3.58653 22.438 5.58746 23.2791 7.90347C24.1203 10.2195 24.2281 12.7383 23.5879 15.1177C22.9477 17.4971 21.5906 19.6218 19.7009 21.2031C17.8111 22.7843 15.4804 23.7456 13.0254 23.9561C10.5704 24.1667 8.11007 23.6164 5.97869 22.38C3.8473 21.1436 2.14819 19.281 1.1122 17.0454C0.0761991 14.8097 -0.246461 12.3093 0.188053 9.8839L4.09856 10.5845C3.8079 12.2069 4.02374 13.8795 4.71676 15.375C5.40977 16.8705 6.54637 18.1165 7.97213 18.9435C9.39789 19.7706 11.0437 20.1387 12.6859 19.9979C14.3282 19.857 15.8873 19.214 17.1514 18.1563C18.4155 17.0985 19.3233 15.6772 19.7516 14.0856C20.1798 12.4939 20.1077 10.8089 19.545 9.25969C18.9823 7.71042 17.9563 6.37193 16.6065 5.42605C15.2566 4.48017 13.6483 3.97277 12 3.97277L12 0Z"})),e.createElement("path",{d:"M12 0C14.464 2.93833e-08 16.8683 0.758527 18.8863 2.17253C20.9042 3.58653 22.438 5.58746 23.2791 7.90347C24.1203 10.2195 24.2281 12.7383 23.5879 15.1177C22.9477 17.4971 21.5906 19.6218 19.7009 21.2031C17.8111 22.7843 15.4804 23.7456 13.0254 23.9561C10.5704 24.1667 8.11007 23.6164 5.97869 22.38C3.8473 21.1436 2.14819 19.281 1.1122 17.0454C0.0761991 14.8097 -0.246461 12.3093 0.188053 9.8839L4.09856 10.5845C3.8079 12.2069 4.02374 13.8795 4.71676 15.375C5.40977 16.8705 6.54637 18.1165 7.97213 18.9435C9.39789 19.7706 11.0437 20.1387 12.6859 19.9979C14.3282 19.857 15.8873 19.214 17.1514 18.1563C18.4155 17.0985 19.3233 15.6772 19.7516 14.0856C20.1798 12.4939 20.1077 10.8089 19.545 9.25969C18.9823 7.71042 17.9563 6.37193 16.6065 5.42605C15.2566 4.48017 13.6483 3.97277 12 3.97277L12 0Z",stroke:"#91CAFF",strokeWidth:"8",mask:"url(#path-1-inside-1)"}))),e.createElement("span",null,E)):e.createElement("span",null,!k&&e.createElement("span",{className:"button-icon"},v)," ",g))};export{o as B};
1
+ import{b as t,_ as a}from"./tslib.es6-5532bd7b.js";import e from"react";import{F as r,G as d}from"./index.styled-faeac279.js";var o=function(o){var n=o.size,i=o.color,c=void 0===i?"primary":i,l=o.theme,s=void 0===l?"helloSites":l,m=o.isDisabled,u=o.isBlock,C=o.title,p=o.className,h=o.onClick,v=o.icon,g=o.children,k=o.isLoading,E=o.loadingText,w=o.dataEventCategory,b=o.dataEventAction,y=o.dataEventLabel,P=o.dataProductChannel,f=o.dataProductSku,x=o.dataProductBrand,B=o.dataProductName,A=o.dataProductPrice,L=o.dataProductCategory,F=o.dataProductPosition,z=o.isAmp,N=o.on,D=o.dataVarsTracking,T=o.type,I=t(o,["size","color","theme","isDisabled","isBlock","title","className","onClick","icon","children","isLoading","loadingText","dataEventCategory","dataEventAction","dataEventLabel","dataProductChannel","dataProductSku","dataProductBrand","dataProductName","dataProductPrice","dataProductCategory","dataProductPosition","isAmp","on","dataVarsTracking","type"]),M=z?{"data-vars-event-category":w,"data-vars-event-action":b,"data-vars-event-label":y,"data-vars-product-channel":P,"data-vars-product-sku":f,"data-vars-product-brand":x,"data-vars-product-name":B,"data-vars-product-price":A,"data-vars-product-category":L,"data-vars-product-position":F,"data-vars-tracking":D,on:N}:{"data-event-category":w,"data-event-action":b,"data-event-label":y,"data-product-channel":P,"data-product-sku":f,"data-product-brand":x,"data-product-name":B,"data-product-price":A,"data-product-category":L,"data-product-position":F};return e.createElement(r,a({},M,{className:p,"data-size":n,"data-color":c,"data-block":u,"data-has-icon":!!v||void 0,"data-theme":s,disabled:m,onClick:function(t){!k&&!m&&h&&h(t)},title:C,"data-is-loading":k||void 0,buttonHasIcon:!!v,buttonTheme:s,buttonSize:n,buttonColor:c,buttonIsLoading:k,buttonIsBlock:u,type:T},I),k?e.createElement("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",height:24}},("secondary"===c||"transparent"===c||"tertiary"===c||"ghost"===c||"danger"===c)&&e.createElement(e.Fragment,null,e.createElement("svg",{width:"24",height:"24",fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},e.createElement("circle",{cx:"12",cy:"12",r:"10",stroke:"#DBDFE5",strokeWidth:"4"})),e.createElement(d,{width:"24",height:"24",fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},e.createElement("mask",{id:"a",fill:"#fff"},e.createElement("path",{d:"M12 0A12 12 0 11.19 9.88l3.9.7A8.03 8.03 0 1012 3.98V0z"})),e.createElement("path",{d:"M12 0A12 12 0 11.19 9.88l3.9.7A8.03 8.03 0 1012 3.98V0z",stroke:"#2D87F3",strokeWidth:"8",mask:"url(#a)"}))),"primary"===c&&e.createElement(e.Fragment,null,e.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("circle",{cx:"12",cy:"12",r:"10",stroke:"white",strokeWidth:"4"})),e.createElement(d,{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},e.createElement("mask",{id:"path-1-inside-1",fill:"white"},e.createElement("path",{d:"M12 0C14.464 2.93833e-08 16.8683 0.758527 18.8863 2.17253C20.9042 3.58653 22.438 5.58746 23.2791 7.90347C24.1203 10.2195 24.2281 12.7383 23.5879 15.1177C22.9477 17.4971 21.5906 19.6218 19.7009 21.2031C17.8111 22.7843 15.4804 23.7456 13.0254 23.9561C10.5704 24.1667 8.11007 23.6164 5.97869 22.38C3.8473 21.1436 2.14819 19.281 1.1122 17.0454C0.0761991 14.8097 -0.246461 12.3093 0.188053 9.8839L4.09856 10.5845C3.8079 12.2069 4.02374 13.8795 4.71676 15.375C5.40977 16.8705 6.54637 18.1165 7.97213 18.9435C9.39789 19.7706 11.0437 20.1387 12.6859 19.9979C14.3282 19.857 15.8873 19.214 17.1514 18.1563C18.4155 17.0985 19.3233 15.6772 19.7516 14.0856C20.1798 12.4939 20.1077 10.8089 19.545 9.25969C18.9823 7.71042 17.9563 6.37193 16.6065 5.42605C15.2566 4.48017 13.6483 3.97277 12 3.97277L12 0Z"})),e.createElement("path",{d:"M12 0C14.464 2.93833e-08 16.8683 0.758527 18.8863 2.17253C20.9042 3.58653 22.438 5.58746 23.2791 7.90347C24.1203 10.2195 24.2281 12.7383 23.5879 15.1177C22.9477 17.4971 21.5906 19.6218 19.7009 21.2031C17.8111 22.7843 15.4804 23.7456 13.0254 23.9561C10.5704 24.1667 8.11007 23.6164 5.97869 22.38C3.8473 21.1436 2.14819 19.281 1.1122 17.0454C0.0761991 14.8097 -0.246461 12.3093 0.188053 9.8839L4.09856 10.5845C3.8079 12.2069 4.02374 13.8795 4.71676 15.375C5.40977 16.8705 6.54637 18.1165 7.97213 18.9435C9.39789 19.7706 11.0437 20.1387 12.6859 19.9979C14.3282 19.857 15.8873 19.214 17.1514 18.1563C18.4155 17.0985 19.3233 15.6772 19.7516 14.0856C20.1798 12.4939 20.1077 10.8089 19.545 9.25969C18.9823 7.71042 17.9563 6.37193 16.6065 5.42605C15.2566 4.48017 13.6483 3.97277 12 3.97277L12 0Z",stroke:"#91CAFF",strokeWidth:"8",mask:"url(#path-1-inside-1)"}))),e.createElement("span",null,E)):e.createElement("span",null,!k&&e.createElement("span",{className:"button-icon"},v)," ",g))};export{o as B};