@hhgtech/hhg-components 1.20.41 → 1.20.43

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 (111) hide show
  1. package/build/Locale-11b51016.js +1 -0
  2. package/build/babyGrowth.js +1 -1
  3. package/build/care.js +1 -1
  4. package/build/components.js +1 -1
  5. package/build/constants-5675963f.js +1 -0
  6. package/build/constants.js +1 -0
  7. package/build/core.js +1 -1
  8. package/build/{core.d.ts → core_deprecate.d.ts} +0 -0
  9. package/build/ecom.js +1 -0
  10. package/build/esm/Locale-69030fff.js +1 -0
  11. package/build/esm/babyGrowth.js +1 -1
  12. package/build/esm/cache.js +1 -1
  13. package/build/esm/care.js +1 -1
  14. package/build/esm/components.js +1 -1
  15. package/build/esm/constants-3be6f6a9.js +1 -0
  16. package/build/esm/constants.js +1 -0
  17. package/build/esm/{core-a8118d2d.js → core-d22826b4.js} +1 -1
  18. package/build/esm/core.js +1 -1
  19. package/build/esm/ecom.js +1 -0
  20. package/build/esm/getDynamicHealthTool-ad018fba.js +1 -0
  21. package/build/esm/getSocialList-ff22842b.js +1 -0
  22. package/build/esm/hooks.js +1 -0
  23. package/build/esm/i18n.js +1 -1
  24. package/build/esm/imgHHG.js +1 -1
  25. package/build/esm/index-170ecf0b.js +1 -0
  26. package/build/esm/{index-5abf3144.js → index-2b194d05.js} +1 -1
  27. package/build/esm/index-62c22dbe.js +1 -0
  28. package/build/esm/index-79144a04.js +1 -0
  29. package/build/esm/index-79b4cb18.js +1 -0
  30. package/build/esm/index-903d16b5.js +1 -0
  31. package/build/esm/index-a5f7022a.js +1 -0
  32. package/build/esm/index-b62d9bf9.js +1 -0
  33. package/build/esm/index-e6fb8f13.js +1 -0
  34. package/build/esm/index-f712036c.js +1 -0
  35. package/build/esm/index.js +1 -1
  36. package/build/esm/index.styled-628f3a18.js +1 -0
  37. package/build/esm/{index.styled-69cca86d.js → index.styled-fad259b1.js} +1 -1
  38. package/build/esm/lazyLoad-f916d705.js +1 -0
  39. package/build/esm/misc.js +1 -0
  40. package/build/esm/navigation.js +1 -1
  41. package/build/esm/navigationLayout_deprecated.js +1 -1
  42. package/build/esm/routing-31d4caa0.js +1 -0
  43. package/build/esm/theme-a50a1aa5.js +1 -0
  44. package/build/esm/together.js +1 -1
  45. package/build/esm/{togetherComponentGlobalContext-104fdffa.js → togetherComponentGlobalContext-5be3f210.js} +1 -1
  46. package/build/esm/{translationsProvider-4c0f3ed8.js → translationsProvider-8d47131a.js} +1 -1
  47. package/build/esm/{tslib.es6-38c4ccef.js → tslib.es6-5532bd7b.js} +1 -1
  48. package/build/esm/types-86198528.js +1 -0
  49. package/build/esm/types-a7a69858.js +1 -0
  50. package/build/esm/types.js +1 -0
  51. package/build/esm/useHealthToolCache-3ed2f96b.js +1 -0
  52. package/build/esm/useTranslations-66de60e4.js +1 -0
  53. package/build/getDynamicHealthTool-87cf062a.js +1 -0
  54. package/build/getSocialList-2a3b759f.js +1 -0
  55. package/build/hooks.js +1 -0
  56. package/build/index-103c59b6.js +1 -0
  57. package/build/index-193522ec.js +1 -0
  58. package/build/index-249a996e.js +1 -0
  59. package/build/{index-23a0055b.js → index-4f5db552.js} +1 -1
  60. package/build/index-57503957.js +1 -0
  61. package/build/{index-47d10bf9.js → index-5dfd2bd9.js} +1 -1
  62. package/build/index-93b70710.js +1 -0
  63. package/build/{index-8ac646d5.js → index-c7bbd0f2.js} +1 -1
  64. package/build/index-cd9a6d72.js +1 -0
  65. package/build/index-e0fbee88.js +1 -0
  66. package/build/index.js +1 -1
  67. package/build/{index.styled-ed8a2b2a.js → index.styled-5695a100.js} +1 -1
  68. package/build/index.styled-747be23a.js +1 -0
  69. package/build/lazyLoad-a4ccbfcc.js +1 -0
  70. package/build/misc.js +1 -0
  71. package/build/navigation.js +1 -1
  72. package/build/navigationLayout_deprecated.js +1 -1
  73. package/build/routing-7d9b5fab.js +1 -0
  74. package/build/theme-696d81a9.js +1 -0
  75. package/build/together/components/molecules/popupFrame/index.d.ts +1 -1
  76. package/build/together.js +1 -1
  77. package/build/{togetherComponentGlobalContext-904cd42b.js → togetherComponentGlobalContext-7313ee94.js} +1 -1
  78. package/build/types-13342b7b.js +1 -0
  79. package/build/types-574c829c.js +1 -0
  80. package/build/types.js +1 -0
  81. package/build/useHealthToolCache-f0e420ac.js +1 -0
  82. package/build/useTranslations-589049a5.js +1 -0
  83. package/package.json +13 -1
  84. package/build/esm/getSocialList-cb857fba.js +0 -1
  85. package/build/esm/index-3bf7af06.js +0 -1
  86. package/build/esm/index-488778dc.js +0 -1
  87. package/build/esm/index-8a042dcf.js +0 -1
  88. package/build/esm/index-b0eba32e.js +0 -1
  89. package/build/esm/index-bdc8c779.js +0 -1
  90. package/build/esm/index-dfc3dc8f.js +0 -1
  91. package/build/esm/index-e6b4cdad.js +0 -1
  92. package/build/esm/index-ed39f7e0.js +0 -1
  93. package/build/esm/index.styled-f8bcaba1.js +0 -1
  94. package/build/esm/lazyLoad-9702fa7e.js +0 -1
  95. package/build/esm/routing-f1bdaa22.js +0 -1
  96. package/build/esm/types-085b551a.js +0 -1
  97. package/build/esm/types-fd89a516.js +0 -1
  98. package/build/esm/useHealthToolCache-52e24c31.js +0 -1
  99. package/build/getSocialList-6ea0d58d.js +0 -1
  100. package/build/index-267359a8.js +0 -1
  101. package/build/index-26eac243.js +0 -1
  102. package/build/index-7dad6750.js +0 -1
  103. package/build/index-910a1963.js +0 -1
  104. package/build/index-99b3a587.js +0 -1
  105. package/build/index-e0601dd6.js +0 -1
  106. package/build/index.styled-7f5e220d.js +0 -1
  107. package/build/lazyLoad-9057b459.js +0 -1
  108. package/build/routing-cb99a6a0.js +0 -1
  109. package/build/types-6f225c17.js +0 -1
  110. package/build/types-77d76fa7.js +0 -1
  111. package/build/useHealthToolCache-c3e430e3.js +0 -1
@@ -0,0 +1 @@
1
+ "use strict";var e,t,r,a,o;exports.Gender=void 0,(e=exports.Gender||(exports.Gender={})).Boy="boy",e.Girl="girl",exports.BabyGrowthChartType=void 0,(t=exports.BabyGrowthChartType||(exports.BabyGrowthChartType={}))[t.Weight=0]="Weight",t[t.Height=1]="Height",t[t.Head=2]="Head",t[t.BMI=3]="BMI",exports.BabyGrowthChartDuration=void 0,(r=exports.BabyGrowthChartDuration||(exports.BabyGrowthChartDuration={}))[r.Weekly=0]="Weekly",r[r.Monthly=1]="Monthly",r[r.Yearly=2]="Yearly",exports.BabyGrowthResultTab=void 0,(a=exports.BabyGrowthResultTab||(exports.BabyGrowthResultTab={}))[a.Weight=0]="Weight",a[a.Height=1]="Height",a[a.Head=2]="Head",a[a.BMI=3]="BMI",a[a.Record=4]="Record",exports.LOCALE=void 0,(o=exports.LOCALE||(exports.LOCALE={})).Vietnam="vi-VN",o.Indonesia="id-ID",o.Malaysia="ms-MY",o.Cambodia="km-KH",o.PhilippinesEnglish="en-PH",o.PhilippinesTagalog="tl-PH",o.Thailand="th-TH",o.Myanmar="my-MM",o.Taiwan="zh-TW",o.India="hi-IN";
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("./lazyLoad-9057b459.js"),n=require("./index-e0601dd6.js"),r=require("./index.styled-7f5e220d.js"),a=require("./tslib.es6-f7929e76.js"),o=require("styled-components"),l=require("./index-8ac646d5.js"),i=require("date-fns");require("react-range"),require("react-dom"),require("lodash/debounce"),require("./translationsContext-af789c7c.js"),require("string-format");var u=require("./useOutsideClick-528bfd6c.js"),c=require("./localizeNumberFormat-d34a738e.js"),s=require("./index.styled-ed8a2b2a.js"),d=require("recharts"),h=require("lodash");function f(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}require("vanilla-lazyload"),require("./index-47d10bf9.js"),require("./useScrollbarSize-586f6706.js");var m,p,C,y,b,g,x=f(e),w=f(o),v=w.default.div(m||(m=a.__makeTemplateObject(["\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"])),t.MediaQueries.mbUp),E=w.default(n.RadioImageGroup)(p||(p=a.__makeTemplateObject(["\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"]))),B=w.default.div(C||(C=a.__makeTemplateObject(["\n display: flex;\n justify-content: center;\n gap: 16px;\n"],["\n display: flex;\n justify-content: center;\n gap: 16px;\n"]))),G=w.default.div(y||(y=a.__makeTemplateObject(["\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"]))),k=w.default.div(b||(b=a.__makeTemplateObject(["\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"])),t.theme.colors.neutral200);exports.BabyGrowthSwitchChart=void 0,(g=exports.BabyGrowthSwitchChart||(exports.BabyGrowthSwitchChart={}))[g.WHO=0]="WHO",g[g.CDC=1]="CDC";var L,M,I,_,j,D,T,H,S,P,q,z,O,R,N,A,W,Y,Z,V,F,U,K,X,Q,J,$,ee,te,ne,re,ae=w.default.div(L||(L=a.__makeTemplateObject(["\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"])),t.theme.colors.yellow600),oe=[{name:["3rd","-3SD","97th","3SD"],color:t.theme.colors.red600},{name:["15rd","-2SD","85th","2SD"],color:t.theme.colors.yellow600},{name:["50th","0Median"],color:t.theme.colors.green600}],le={"3rd":"-3SD","15th":"-2SD","50th":"Median","85th":"2SD","97th":"3SD"},ie=function(n){var a=n.riskLevel,o=n.tooltips,l=n.locale,i=e.useMemo((function(){var e;return null===(e=oe.find((function(e){return e.name.includes(a||"")})))||void 0===e?void 0:e.color}),[a]),u=e.useMemo((function(){return l===t.LOCALE.Indonesia?a?le[a]:"":a}),[l,a]);return x.default.createElement(ae,null,x.default.createElement("div",{className:"risk",style:{backgroundColor:i}},x.default.createElement(r.Text,{size:"s3",color:t.theme.colors.white,type:"semiBold"},u)),x.default.createElement("div",{className:"tooltip"},o.map((function(e,n){return x.default.createElement(r.Text,{key:n,size:"n1",color:t.theme.colors.gray600},e)}))))},ue=w.default.div(M||(M=a.__makeTemplateObject(["\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 }\n .radio {\n cursor: pointer;\n position: relative;\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 }\n .radio {\n cursor: pointer;\n position: relative;\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"])),t.theme.colors.gray50,t.theme.colors.gray600,"300ms",t.theme.colors.primaryBase,t.theme.colors.primaryBase,t.fadeIn,"300ms"),ce=function(e){var a=e.profile,o=e.onChange,l=e.isActive;return x.default.createElement(ue,{onClick:function(){return o(a.id)}},x.default.createElement("div",{className:"baby"},"male"===a.gender?x.default.createElement(n.Icon.Boy,{size:24}):x.default.createElement(n.Icon.Girl,{size:24}),x.default.createElement(r.Text,{size:"p2",color:t.theme.colors.gray800},a.name)),x.default.createElement("div",{className:l?"radio active":"radio"}))},se=w.default.div(I||(I=a.__makeTemplateObject(["\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"])),t.theme.colors.white,t.theme.colors.gray100),de=w.default.div(_||(_=a.__makeTemplateObject(["\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"]))),he=w.default(r.Menu)(j||(j=a.__makeTemplateObject(["\n position: absolute;\n right: 0;\n z-index: 1;\n"],["\n position: absolute;\n right: 0;\n z-index: 1;\n"]))),fe=function(n){var a=n.name,o=n.onClose,l=n.onEdit,i=n.onSwitch,c=n.onAdd,s=n.onRemove,d=t.useTranslations().t,h=e.useRef();return u.useOutsideClick(h,o),x.default.createElement("div",{ref:h},x.default.createElement(he,{width:250},x.default.createElement(r.Menu.Item,{onClick:l,icon:x.default.createElement("svg",{width:"16",height:"17",viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},x.default.createElement("path",{d:"M12.7812 1.83301C12.2987 1.83301 11.8162 2.01676 11.4479 2.38509L10.6667 3.16634L13.3333 5.83301L14.1146 5.05176C14.8506 4.31576 14.8506 3.12176 14.1146 2.38509C13.7463 2.01676 13.2638 1.83301 12.7812 1.83301ZM9.66667 4.16634L2 11.833V14.4997H4.66667L12.3333 6.83301L9.66667 4.16634Z",fill:"#595959"}))},x.default.createElement(r.Text,{size:"p2",color:t.theme.colors.gray800},d("childCard.menu.edit",{name:a}))),x.default.createElement(r.Menu.Item,{onClick:i,icon:x.default.createElement("svg",{width:"16",height:"17",viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},x.default.createElement("path",{d:"M8 2.5C4.9478 2.5 2.4204 4.79359 2.05078 7.7513C2.03763 7.83928 2.04222 7.929 2.06428 8.01518C2.08634 8.10136 2.12542 8.18226 2.17922 8.2531C2.23303 8.32394 2.30046 8.3833 2.37756 8.42768C2.45465 8.47206 2.53985 8.50057 2.62813 8.51152C2.71642 8.52247 2.806 8.51564 2.8916 8.49143C2.9772 8.46723 3.05709 8.42614 3.12657 8.37059C3.19605 8.31503 3.2537 8.24613 3.29615 8.16795C3.33859 8.08978 3.36496 8.00389 3.3737 7.91536C3.66141 5.61307 5.61354 3.83333 8 3.83333C9.34288 3.83333 10.5434 4.39987 11.3919 5.30339L10.0977 6.59766C9.96766 6.72766 9.96766 6.93901 10.0977 7.06901C10.1623 7.13434 10.248 7.16667 10.3333 7.16667H13.3333C13.5101 7.16667 13.6797 7.09643 13.8047 6.9714C13.9298 6.84638 14 6.67681 14 6.5V3.5C14 3.41467 13.967 3.32966 13.9023 3.26432C13.7723 3.13432 13.561 3.13432 13.431 3.26432L12.3359 4.35938C11.2437 3.21415 9.7037 2.5 8 2.5ZM13.2943 8.49089C13.1292 8.48959 12.9695 8.54959 12.8461 8.65928C12.7227 8.76896 12.6444 8.92053 12.6263 9.08464C12.3386 11.3869 10.3865 13.1667 8 13.1667C6.65713 13.1667 5.45884 12.5994 4.60938 11.6953L5.90234 10.4023C6.03234 10.2723 6.03234 10.061 5.90234 9.93099C5.83768 9.86566 5.752 9.83333 5.66667 9.83333H2.66667C2.48986 9.83333 2.32029 9.90357 2.19526 10.0286C2.07024 10.1536 2 10.3232 2 10.5V13.5C2 13.5853 2.03299 13.6703 2.09766 13.7357C2.22766 13.8657 2.43901 13.8657 2.56901 13.7357L3.66536 12.6393C4.75711 13.7836 6.29696 14.5 8 14.5C11.0522 14.5 13.5796 12.2064 13.9492 9.2487C13.9622 9.1548 13.955 9.05922 13.928 8.96833C13.9011 8.87745 13.8552 8.79334 13.7932 8.72163C13.7312 8.64991 13.6546 8.59224 13.5686 8.55245C13.4826 8.51266 13.3891 8.49167 13.2943 8.49089Z",fill:"#595959"}))},x.default.createElement(r.Text,{size:"p2",color:t.theme.colors.gray800},d("childCard.menu.switch"))),x.default.createElement(r.Menu.Item,{onClick:c,icon:x.default.createElement("svg",{width:"16",height:"17",viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},x.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.9564 8.56545C15.7745 7.46727 14.9673 6.57273 13.9127 6.26C13.5273 5.44545 12.9818 4.73273 12.32 4.14364C11.1709 3.11818 9.65818 2.5 8 2.5C6.34182 2.5 4.82909 3.11818 3.68 4.14364C3.01091 4.73273 2.46545 5.45273 2.08727 6.26C1.03273 6.57273 0.225455 7.46 0.0436364 8.56545C0.0145455 8.71818 0 8.87818 0 9.04545C0 9.21273 0.0145455 9.37273 0.0436364 9.52545C0.225455 10.6236 1.03273 11.5182 2.08727 11.8309C2.46545 12.6382 3.01091 13.3509 3.66545 13.9327C4.81455 14.9655 6.33455 15.5909 8 15.5909C9.66545 15.5909 11.1855 14.9655 12.3418 13.9327C12.9964 13.3509 13.5418 12.6309 13.92 11.8309C14.9673 11.5182 15.7745 10.6309 15.9564 9.52545C15.9855 9.37273 16 9.21273 16 9.04545C16 8.87818 15.9855 8.71818 15.9564 8.56545ZM6.18182 7.04545C5.67974 7.04545 5.27273 7.45247 5.27273 7.95455C5.27273 8.45662 5.67974 8.86364 6.18182 8.86364C6.6839 8.86364 7.09091 8.45662 7.09091 7.95455C7.09091 7.45247 6.6839 7.04545 6.18182 7.04545ZM9.81818 7.04545C9.3161 7.04545 8.90909 7.45247 8.90909 7.95455C8.90909 8.45662 9.3161 8.86364 9.81818 8.86364C10.3203 8.86364 10.7273 8.45662 10.7273 7.95455C10.7273 7.45247 10.3203 7.04545 9.81818 7.04545ZM5.01821 10.5H10.9818C11.1128 10.5 11.2073 10.6455 11.1491 10.7691C10.5455 11.9109 9.36002 12.6818 8.00002 12.6818C6.64002 12.6818 5.45457 11.9109 4.85093 10.7691C4.78548 10.6455 4.88002 10.5 5.01821 10.5ZM12.9538 10.4875C12.9991 10.4938 13.0435 10.5 13.0909 10.5C13.8909 10.5 14.5455 9.84545 14.5455 9.04545C14.5455 8.24545 13.8909 7.59091 13.0909 7.59091C13.0435 7.59091 12.9991 7.5971 12.9538 7.60343C12.9297 7.60679 12.9053 7.6102 12.88 7.61273C12.7345 7.12545 12.5236 6.67455 12.2545 6.26C11.3455 4.87091 9.78182 3.95455 8 3.95455C6.21818 3.95455 4.65455 4.87091 3.74545 6.26C3.47636 6.67455 3.26545 7.12545 3.12 7.61273C3.09473 7.6102 3.07033 7.60679 3.0462 7.60343C3.0009 7.5971 2.95654 7.59091 2.90909 7.59091C2.10909 7.59091 1.45455 8.24545 1.45455 9.04545C1.45455 9.84545 2.10909 10.5 2.90909 10.5C2.95654 10.5 3.0009 10.4938 3.0462 10.4875C3.07033 10.4841 3.09473 10.4807 3.12 10.4782C3.26545 10.9655 3.47636 11.4164 3.74545 11.8309C4.65455 13.22 6.21818 14.1364 8 14.1364C9.78182 14.1364 11.3455 13.22 12.2545 11.8309C12.5236 11.4164 12.7345 10.9655 12.88 10.4782C12.9053 10.4807 12.9297 10.4841 12.9538 10.4875Z",fill:"#595959"}),x.default.createElement("path",{d:"M2.5 2V1C2.5 0.725 2.275 0.5 2 0.5C1.725 0.5 1.5 0.725 1.5 1V2H0.5C0.225 2 0 2.225 0 2.5C0 2.775 0.225 3 0.5 3H1.5V4C1.5 4.275 1.725 4.5 2 4.5C2.275 4.5 2.5 4.275 2.5 4V3H3.5C3.775 3 4 2.775 4 2.5C4 2.225 3.775 2 3.5 2H2.5Z",fill:"#595959"}))},x.default.createElement(r.Text,{size:"p2",color:t.theme.colors.gray800},d("childCard.menu.add"))),x.default.createElement(r.Menu.Item,{onClick:s,icon:x.default.createElement("svg",{width:"16",height:"17",viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},x.default.createElement("path",{d:"M6.66699 1.83301L6.00033 2.49967H3.33366C2.93366 2.49967 2.66699 2.76634 2.66699 3.16634C2.66699 3.56634 2.93366 3.83301 3.33366 3.83301H4.66699H11.3337H12.667C13.067 3.83301 13.3337 3.56634 13.3337 3.16634C13.3337 2.76634 13.067 2.49967 12.667 2.49967H10.0003L9.33366 1.83301H6.66699ZM3.33366 5.16634V13.833C3.33366 14.5663 3.93366 15.1663 4.66699 15.1663H11.3337C12.067 15.1663 12.667 14.5663 12.667 13.833V5.16634H3.33366ZM6.00033 6.49967C6.40033 6.49967 6.66699 6.76634 6.66699 7.16634V13.1663C6.66699 13.5663 6.40033 13.833 6.00033 13.833C5.60033 13.833 5.33366 13.5663 5.33366 13.1663V7.16634C5.33366 6.76634 5.60033 6.49967 6.00033 6.49967ZM10.0003 6.49967C10.4003 6.49967 10.667 6.76634 10.667 7.16634V13.1663C10.667 13.5663 10.4003 13.833 10.0003 13.833C9.60033 13.833 9.33366 13.5663 9.33366 13.1663V7.16634C9.33366 6.76634 9.60033 6.49967 10.0003 6.49967Z",fill:"#F44D2C"}))},x.default.createElement(r.Text,{size:"p2",color:t.theme.colors.red600},d("childCard.menu.remove",{name:a})))))},me=function(e,t){if(e)if(e.year<1){if(0===e.month)switch(e.week){case 0:case 1:return t("childCard.age.oneWeek");default:return t("childCard.age.week",{weeks:e.week})}if(e.month>0)return t("childCard.age.months",{month:e.month})}else{if(0===e.month)return t("childCard.age.yearNoMonth",{year:e.year});if(e.month>0)return t("childCard.age.yearMonth",{year:e.year,month:e.month})}},pe=w.default.div(D||(D=a.__makeTemplateObject(["\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"])),t.theme.colors.gray100),Ce=function(e,t){return e&&"NaN"!==e?e+" "+(t||""):"--"},ye=w.default(s.Drawer)(T||(T=a.__makeTemplateObject(["\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"]))),be=w.default(n.Modal)(H||(H=a.__makeTemplateObject(["\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"])),t.theme.colors.neutral100,t.theme.colors.neutral100),ge=((S={})[t.Gender.Boy]=((P={})[t.BabyGrowthChartType.Weight]=((q={})[t.BabyGrowthChartDuration.Weekly]=function(){return Promise.resolve().then((function(){return require("./WEIGHT_BOYS.percentile.weekly-8b301e27.js")}))},q[t.BabyGrowthChartDuration.Monthly]=function(){return Promise.resolve().then((function(){return require("./WEIGHT_BOYS.percentile.monthly-305649d8.js")}))},q[t.BabyGrowthChartDuration.Yearly]=function(){return Promise.resolve().then((function(){return require("./WEIGHT_BOYS.percentile.yearly-96f3249d.js")}))},q),P[t.BabyGrowthChartType.Height]=((z={})[t.BabyGrowthChartDuration.Weekly]=function(){return Promise.resolve().then((function(){return require("./HEIGHT_BOYS.percentile.weekly-71fb3532.js")}))},z[t.BabyGrowthChartDuration.Monthly]=function(){return Promise.resolve().then((function(){return require("./HEIGHT_BOYS.percentile.monthly-b6e07b4d.js")}))},z[t.BabyGrowthChartDuration.Yearly]=function(){return Promise.resolve().then((function(){return require("./HEIGHT_BOYS.percentile.yearly-18e5463a.js")}))},z),P[t.BabyGrowthChartType.Head]=((O={})[t.BabyGrowthChartDuration.Weekly]=function(){return Promise.resolve().then((function(){return require("./HEAD CIRCUM_BOYS.percentile.weekly-923d3626.js")}))},O[t.BabyGrowthChartDuration.Monthly]=function(){return Promise.resolve().then((function(){return require("./HEAD CIRCUM_BOYS.percentile.monthly-e79e5d3f.js")}))},O[t.BabyGrowthChartDuration.Yearly]=function(){return Promise.resolve().then((function(){return require("./HEAD CIRCUM_BOYS.percentile.yearly-4133a7da.js")}))},O),P[t.BabyGrowthChartType.BMI]=((R={})[t.BabyGrowthChartDuration.Weekly]=function(){return Promise.resolve().then((function(){return require("./BMI_BOYS.percentile.weekly-75bff607.js")}))},R[t.BabyGrowthChartDuration.Monthly]=function(){return Promise.resolve().then((function(){return require("./BMI_BOYS.percentile.monthly-1c8c4c98.js")}))},R[t.BabyGrowthChartDuration.Yearly]=function(){return Promise.resolve().then((function(){return require("./BMI_BOYS.percentile.yearly-b8d86c12.js")}))},R),P),S[t.Gender.Girl]=((N={})[t.BabyGrowthChartType.Weight]=((A={})[t.BabyGrowthChartDuration.Weekly]=function(){return Promise.resolve().then((function(){return require("./WEIGHT_GIRLS.percentile.weekly-63c6a2a3.js")}))},A[t.BabyGrowthChartDuration.Monthly]=function(){return Promise.resolve().then((function(){return require("./WEIGHT_GIRLS.percentile.monthly-b0905186.js")}))},A[t.BabyGrowthChartDuration.Yearly]=function(){return Promise.resolve().then((function(){return require("./WEIGHT_GIRLS.percentile.yearly-49663736.js")}))},A),N[t.BabyGrowthChartType.Height]=((W={})[t.BabyGrowthChartDuration.Weekly]=function(){return Promise.resolve().then((function(){return require("./HEIGHT_GIRLS.percentile.weekly-b2628828.js")}))},W[t.BabyGrowthChartDuration.Monthly]=function(){return Promise.resolve().then((function(){return require("./HEIGHT_GIRLS.percentile.monthly-1e34eb90.js")}))},W[t.BabyGrowthChartDuration.Yearly]=function(){return Promise.resolve().then((function(){return require("./HEIGHT_GIRLS.percentile.yearly-72339b71.js")}))},W),N[t.BabyGrowthChartType.Head]=((Y={})[t.BabyGrowthChartDuration.Weekly]=function(){return Promise.resolve().then((function(){return require("./HEAD CIRCUM_GIRLS.percentile.weekly-0020f6e2.js")}))},Y[t.BabyGrowthChartDuration.Monthly]=function(){return Promise.resolve().then((function(){return require("./HEAD CIRCUM_GIRLS.percentile.monthly-67f98b04.js")}))},Y[t.BabyGrowthChartDuration.Yearly]=function(){return Promise.resolve().then((function(){return require("./HEAD CIRCUM_GIRLS.percentile.yearly-6afd8bc6.js")}))},Y),N[t.BabyGrowthChartType.BMI]=((Z={})[t.BabyGrowthChartDuration.Weekly]=function(){return Promise.resolve().then((function(){return require("./BMI_GIRLS.percentile.weekly-aa3da5c1.js")}))},Z[t.BabyGrowthChartDuration.Monthly]=function(){return Promise.resolve().then((function(){return require("./BMI_GIRLS.percentile.monthly-f482508e.js")}))},Z[t.BabyGrowthChartDuration.Yearly]=function(){return Promise.resolve().then((function(){return require("./BMI_GIRLS.percentile.yearly-624db278.js")}))},Z),N),S),xe=((V={})[t.Gender.Boy]=((F={})[t.BabyGrowthChartType.Weight]=((U={})[t.BabyGrowthChartDuration.Weekly]=function(){return Promise.resolve().then((function(){return require("./WEIGHT_BOYS.zscore.weekly-0b1faf98.js")}))},U[t.BabyGrowthChartDuration.Monthly]=function(){return Promise.resolve().then((function(){return require("./WEIGHT_BOYS.zscore.monthly-22c8f908.js")}))},U[t.BabyGrowthChartDuration.Yearly]=function(){return Promise.resolve().then((function(){return require("./WEIGHT_BOYS.zscore.yearly-8090c58c.js")}))},U),F[t.BabyGrowthChartType.Height]=((K={})[t.BabyGrowthChartDuration.Weekly]=function(){return Promise.resolve().then((function(){return require("./HEIGHT_BOYS.zscore.weekly-70c18763.js")}))},K[t.BabyGrowthChartDuration.Monthly]=function(){return Promise.resolve().then((function(){return require("./HEIGHT_BOYS.zscore.monthly-7a8e43dd.js")}))},K[t.BabyGrowthChartDuration.Yearly]=function(){return Promise.resolve().then((function(){return require("./HEIGHT_BOYS.zscore.yearly-b9e6ea6b.js")}))},K),F[t.BabyGrowthChartType.Head]=((X={})[t.BabyGrowthChartDuration.Weekly]=function(){return Promise.resolve().then((function(){return require("./HEAD CIRCUM_BOYS.zscore.weekly-f472daa8.js")}))},X[t.BabyGrowthChartDuration.Monthly]=function(){return Promise.resolve().then((function(){return require("./HEAD CIRCUM_BOYS.zscore.monthly-4727bfe4.js")}))},X[t.BabyGrowthChartDuration.Yearly]=function(){return Promise.resolve().then((function(){return require("./HEAD CIRCUM_BOYS.zscore.yearly-13a09c3f.js")}))},X),F[t.BabyGrowthChartType.BMI]=((Q={})[t.BabyGrowthChartDuration.Weekly]=function(){return Promise.resolve().then((function(){return require("./BMI_BOYS.zscore.weekly-aba5d53b.js")}))},Q[t.BabyGrowthChartDuration.Monthly]=function(){return Promise.resolve().then((function(){return require("./BMI_BOYS.zscore.monthly-5efef594.js")}))},Q[t.BabyGrowthChartDuration.Yearly]=function(){return Promise.resolve().then((function(){return require("./BMI_BOYS.zscore.yearly-52cbcf95.js")}))},Q),F),V[t.Gender.Girl]=((J={})[t.BabyGrowthChartType.Weight]=(($={})[t.BabyGrowthChartDuration.Weekly]=function(){return Promise.resolve().then((function(){return require("./WEIGHT_GIRLS.zscore.weekly-29d8f232.js")}))},$[t.BabyGrowthChartDuration.Monthly]=function(){return Promise.resolve().then((function(){return require("./WEIGHT_GIRLS.zscore.monthly-0b14c285.js")}))},$[t.BabyGrowthChartDuration.Yearly]=function(){return Promise.resolve().then((function(){return require("./WEIGHT_GIRLS.zscore.yearly-95aa9ac3.js")}))},$),J[t.BabyGrowthChartType.Height]=((ee={})[t.BabyGrowthChartDuration.Weekly]=function(){return Promise.resolve().then((function(){return require("./HEIGHT_GIRLS.zscore.weekly-7ed52595.js")}))},ee[t.BabyGrowthChartDuration.Monthly]=function(){return Promise.resolve().then((function(){return require("./HEIGHT_GIRLS.zscore.monthly-e473a16c.js")}))},ee[t.BabyGrowthChartDuration.Yearly]=function(){return Promise.resolve().then((function(){return require("./HEIGHT_GIRLS.zscore.yearly-225f27c4.js")}))},ee),J[t.BabyGrowthChartType.Head]=((te={})[t.BabyGrowthChartDuration.Weekly]=function(){return Promise.resolve().then((function(){return require("./HEAD CIRCUM_GIRLS.zscore.weekly-a0fa670d.js")}))},te[t.BabyGrowthChartDuration.Monthly]=function(){return Promise.resolve().then((function(){return require("./HEAD CIRCUM_GIRLS.zscore.monthly-9c635d09.js")}))},te[t.BabyGrowthChartDuration.Yearly]=function(){return Promise.resolve().then((function(){return require("./HEAD CIRCUM_GIRLS.zscore.yearly-fcdb544a.js")}))},te),J[t.BabyGrowthChartType.BMI]=((ne={})[t.BabyGrowthChartDuration.Weekly]=function(){return Promise.resolve().then((function(){return require("./BMI_GIRLS.zscore.weekly-56e2c916.js")}))},ne[t.BabyGrowthChartDuration.Monthly]=function(){return Promise.resolve().then((function(){return require("./BMI_GIRLS.zscore.monthly-11ffe2ae.js")}))},ne[t.BabyGrowthChartDuration.Yearly]=function(){return Promise.resolve().then((function(){return require("./BMI_GIRLS.zscore.yearly-a3d00356.js")}))},ne),J),V),we=function(e,n,r,a){return a===t.LOCALE.Indonesia?xe[e][n][r]():ge[e][n][r]()},ve=function(e,t){var n=h.chunk(t,Math.ceil(t.length/2)),r=n[0],a=n[1],o=r.map((function(e){return e.name})),l=a.map((function(e){return e.name}));return o.includes(e)?{data:r,status:"first-half"}:l.includes(e)?{data:a,status:"second-half"}:{data:t,status:"full"}},Ee=function(e,t){return a.__spreadArray(a.__spreadArray([],e,!0),t.map((function(e){return{name:e.name,history:e.value}})),!0).sort((function(e,t){return e.name-t.name}))},Be=function(e){var t=[],n=function(n){e[n].forEach((function(e,r){var a;t[r]?t[r][n]=e:t[r]=((a={name:r})[n]=e,a)}))};for(var r in e)n(r);return t},Ge=function(e,t){return void 0===t&&(t=0),Array.from({length:e-t+1},(function(e,n){return n+t}))},ke=w.default.div(re||(re=a.__makeTemplateObject(["\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"]))),Le=[{name:"-3SD",label:"-3",color:t.theme.colors.red600},{name:"-2SD",label:"-2",color:t.theme.colors.yellow600},{name:"0Median",label:"0",color:t.theme.colors.green600},{name:"2SD",label:"2",color:t.theme.colors.yellow600},{name:"3SD",label:"3",color:t.theme.colors.red600},{name:"history",color:t.theme.colors.primaryBase}],Me=[{name:"3rd",color:t.theme.colors.red600},{name:"15th",color:t.theme.colors.yellow600},{name:"50th",color:t.theme.colors.green600},{name:"85th",color:t.theme.colors.yellow600},{name:"97th",color:t.theme.colors.red600},{name:"history",color:t.theme.colors.primaryBase}],Ie=e.forwardRef((function(e,t){return x.default.createElement("circle",a.__assign({},e,{ref:t}),x.default.createElement("animate",{attributeName:"r",values:"4;8;4",dur:"2s",begin:"0s",repeatCount:"indefinite"}))})),_e=function(e){var n=e.x,r=e.y,a=e.last,o=e.index,l=e.name;return a===o?x.default.createElement("text",{x:n,y:r,dx:16,fill:t.theme.colors.gray500,fontSize:12,textAnchor:"middle"},l):null};exports.BabyGrowthChart=function(n){var o=n.gender,l=n.type,i=n.duration,c=n.xLabel,s=n.x,h=n.y,f=n.toolTipLabel,m=void 0===f?[]:f,p=n.isDivide,C=void 0===p||p,y=n.onIsPrevious,b=n.locale,g=n.riskLevel,w=n.withLine,v=void 0!==w&&w,E=n.lineData,B=void 0===E?[]:E,G=e.useState([]),k=G[0],L=G[1],M=e.useRef([]),I=t.useTranslations().t;e.useEffect((function(){a.__awaiter(void 0,void 0,void 0,(function(){var e,t,n;return a.__generator(this,(function(r){switch(r.label){case 0:return[4,we(o,l,i,b)];case 1:if(e=r.sent().default,t=Be(e),Array.isArray(t)&&0===t.length)return null==y||y(),[2];n={data:t.map((function(e,t){return a.__assign(a.__assign({},e),{name:t})})),status:"full"};try{n=C?ve(s||0,t):{data:t,status:"full"}}catch(e){}if(C)switch(n.status){case"first-half":M.current=Ge(n.data.length-1);break;case"second-half":M.current=Ge(e.length,n.data.length);break;default:M.current=Ge(t.length-1)}else M.current=Ge(t.length-1);return L(n.data),[2]}}))}))}),[o,l,i,b,y]);var _=e.useState(!1),j=_[0],D=_[1],T=e.useMemo((function(){return v&&Array.isArray(k)&&k.length>0?Ee(k,B):k}),[v,B,k]),H=e.useRef(null);u.useOutsideClick(H,(function(){return D(!1)}));return x.default.createElement(ke,null,x.default.createElement("div",{className:"custom-chart-label"},x.default.createElement(r.Text,{size:"n1",color:t.theme.colors.gray500},function(){switch(l){case t.BabyGrowthChartType.Weight:return I("babyGrowth.weight");case t.BabyGrowthChartType.Height:return I("babyGrowth.height");case t.BabyGrowthChartType.Head:return I("babyGrowth.headCircumference");case t.BabyGrowthChartType.BMI:return"BMI";default:return""}}()),x.default.createElement(r.Text,{size:"n1",color:t.theme.colors.gray500},b===t.LOCALE.Indonesia?"Z-Score":I("babyGrowth.percentiles"))),Array.isArray(T)&&T.length>0&&x.default.createElement(d.ResponsiveContainer,{height:388,className:"chart"},x.default.createElement(d.LineChart,{data:T,margin:{top:16,right:28,bottom:8,left:0}},x.default.createElement(d.CartesianGrid,{stroke:t.theme.colors.blue200}),x.default.createElement(d.Tooltip,{trigger:"click",content:x.default.createElement(x.default.Fragment,null,j&&void 0!==s&&void 0!==h&&x.default.createElement(ie,{riskLevel:g,tooltips:m,locale:b}))}),x.default.createElement(d.XAxis,{type:"number",scale:"linear",ticks:M.current,dataKey:"name",tickLine:!1,tickMargin:12,tick:{fontFamily:"Inter",fontWeight:400,fontSize:12,color:t.theme.colors.gray800},domain:["dataMin","dataMax"],interval:"preserveStartEnd",tickCount:1,tickFormatter:function(e){return String(Math.round(100*(e+Number.EPSILON))/100)},allowDecimals:!0}),x.default.createElement(d.YAxis,{domain:[function(e){return Math.min(e,h||e)},function(e){return Math.max(e,h||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:t.theme.colors.gray800}}),(b===t.LOCALE.Indonesia?Le:Me).map((function(e){return x.default.createElement(x.default.Fragment,null,"history"===e.name?x.default.createElement(d.Line,{key:"history",connectNulls:!0,type:"linear",dataKey:"history",stroke:e.color,dot:{stroke:e.color,fill:e.color,strokeWidth:1,r:4,strokeDasharray:""},activeDot:!0,color:e.color}):x.default.createElement(d.Line,{key:e.name,type:"linear",dataKey:e.name,stroke:e.color,dot:!1,activeDot:!1,connectNulls:!0,label:x.default.createElement(_e,{last:(null==T?void 0:T.length)?T.length-1:0,name:(null==e?void 0:e.label)||e.name}),tooltipType:"none"}))})),void 0!==s&&void 0!==h&&x.default.createElement(d.ReferenceDot,{onClick:function(){return D(!0)},x:0===s?1:s,y:h,r:4,shape:x.default.createElement(Ie,{ref:H,r:4}),fill:t.theme.colors.primaryBase,stroke:t.theme.colors.primaryBase}))),x.default.createElement("div",{className:"custom-chart-label"},x.default.createElement("i",null),x.default.createElement(r.Text,{size:"n1",color:t.theme.colors.gray500},c)))},exports.BabyGrowthChartPercentile=ge,exports.BabyGrowthChartZScore=xe,exports.BabyGrowthChooseProfileDrawer=function(o){var i,u,c=o.babyProfiles,s=o.currentProfileId,d=o.onClose,h=o.onCreate,f=o.onAddMeasurement,m=o.onSwitchProfile,p=o.open,C=o.isMobile,y=o.isMyProfile,b=void 0!==y&&y,g=o.buttonGroup,w=o.newBabyValue,v=o.onNewBabyValueChange,E=a.__rest(o,["babyProfiles","currentProfileId","onClose","onCreate","onAddMeasurement","onSwitchProfile","open","isMobile","isMyProfile","buttonGroup","newBabyValue","onNewBabyValueChange"]),B=function(e){return b?x.default.createElement(x.default.Fragment,null,x.default.createElement(l.Button,{onClick:function(){null==h||h(),d()},size:"lg",color:"secondary",icon:x.default.createElement("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},x.default.createElement("path",{d:"M13.5 9.75H9.75V13.5C9.75 13.9125 9.4125 14.25 9 14.25C8.5875 14.25 8.25 13.9125 8.25 13.5V9.75H4.5C4.0875 9.75 3.75 9.4125 3.75 9C3.75 8.5875 4.0875 8.25 4.5 8.25H8.25V4.5C8.25 4.0875 8.5875 3.75 9 3.75C9.4125 3.75 9.75 4.0875 9.75 4.5V8.25H13.5C13.9125 8.25 14.25 8.5875 14.25 9C14.25 9.4125 13.9125 9.75 13.5 9.75Z",fill:"#2D87F3"}))},M("babyGrowth.drawer.createBaby")),x.default.createElement(l.Button,{size:"lg",color:"primary",onClick:function(){null==e||e(),b?null==m||m(k):null==f||f(k),d()}},M(b?"babyGrowth.drawer.switchProfile":"babyGrowth.drawer.addMeasurement"))):x.default.createElement(l.Button,{size:"lg",color:"primary",onClick:function(){null==f||f(k),null==e||e(),d()}},M("chooseBaby.button"))},G=e.useState(s||(null===(i=c[0])||void 0===i?void 0:i.id)),k=G[0],L=G[1],M=t.useTranslations().t;return C?x.default.createElement(ye,a.__assign({title:"Baby profiles",onClose:d,open:p,placement:"bottom"},E),(function(e){var t,r=e.internalClose;return x.default.createElement("div",{className:"add-profile-container"},x.default.createElement("div",{className:"profile-container"},null===(t=c||[])||void 0===t?void 0:t.map((function(e){return x.default.createElement(ce,{key:e.id,profile:e,isActive:k===e.id,onChange:L})})),!b&&x.default.createElement(n.NewBabyProfileRadio,{value:w,onInputChange:v,isActive:"new"===k,onChange:L})),x.default.createElement("div",{className:"button-group"},g||B(r)))})):x.default.createElement(be,{type:"confirm",isOpen:p,onClose:d},x.default.createElement("div",{className:"header"},x.default.createElement("div",{className:"title"},x.default.createElement(r.Text,{size:"s2",type:"semiBold"},M("chooseBaby.title")),x.default.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"close-button",onClick:d},x.default.createElement("path",{d:"M5.99007 4.99067C5.79114 4.99072 5.59674 5.0501 5.43173 5.16121C5.26672 5.27233 5.1386 5.43013 5.06374 5.61444C4.98889 5.79875 4.9707 6.0012 5.0115 6.1959C5.05231 6.39061 5.15025 6.56872 5.29281 6.70747L10.5858 12.0004L5.29281 17.2934C5.19684 17.3855 5.12021 17.4959 5.06743 17.618C5.01464 17.7402 4.98676 17.8716 4.9854 18.0046C4.98405 18.1377 5.00926 18.2697 5.05954 18.3928C5.10983 18.516 5.1842 18.6279 5.27827 18.722C5.37235 18.8161 5.48426 18.8904 5.60743 18.9407C5.73061 18.991 5.86259 19.0162 5.99563 19.0149C6.12867 19.0135 6.2601 18.9856 6.38223 18.9328C6.50436 18.8801 6.61473 18.8034 6.70687 18.7075L11.9998 13.4145L17.2928 18.7075C17.385 18.8034 17.4953 18.8801 17.6175 18.9328C17.7396 18.9856 17.871 19.0135 18.0041 19.0149C18.1371 19.0162 18.2691 18.991 18.3922 18.9407C18.5154 18.8904 18.6273 18.8161 18.7214 18.722C18.8155 18.6279 18.8899 18.516 18.9401 18.3928C18.9904 18.2697 19.0156 18.1377 19.0143 18.0047C19.0129 17.8716 18.985 17.7402 18.9323 17.618C18.8795 17.4959 18.8028 17.3855 18.7069 17.2934L13.4139 12.0004L18.7069 6.70747C18.8514 6.567 18.9501 6.38616 18.99 6.18864C19.03 5.99112 19.0093 5.78614 18.9308 5.60055C18.8523 5.41497 18.7195 5.25744 18.5499 5.14861C18.3803 5.03978 18.1817 4.98473 17.9803 4.99067C17.7205 4.99841 17.4739 5.10699 17.2928 5.2934L11.9998 10.5864L6.70687 5.2934C6.61368 5.19761 6.50224 5.12146 6.37912 5.06947C6.25601 5.01747 6.12372 4.99068 5.99007 4.99067Z",fill:"#595959"})))),x.default.createElement("div",{className:"profile-container"},null===(u=c||[])||void 0===u?void 0:u.map((function(e){return x.default.createElement(ce,{key:e.id,profile:e,isActive:k===e.id,onChange:L})})),!b&&x.default.createElement(n.NewBabyProfileRadio,{value:w,onInputChange:v,isActive:"new"===k,onChange:L})),x.default.createElement("div",{className:"button-group"},g||B()))},exports.BabyGrowthGender=function(e){var a=e.value,o=e.onChange,l=t.useTranslations().t;return x.default.createElement(v,null,x.default.createElement(r.Text,{size:"label2",type:"bold",style:{marginBottom:"0.5rem"}},l("babyVaccineTool.selectGender")),x.default.createElement(E,{options:[{value:t.Gender.Girl,label:l("gender.female"),content:x.default.createElement(n.Icon.GenderChooseGirl,null)},{value:t.Gender.Boy,label:l("gender.male"),content:x.default.createElement(n.Icon.GenderChooseBoy,null)}],value:a,onChange:o,className:"gender-selector"}))},exports.BabyGrowthLegend=function(e){var n=e.legends,a=e.locale;return x.default.createElement(B,null,n.map((function(e,n){return x.default.createElement(G,{key:n},x.default.createElement("span",{className:"dot",style:{backgroundColor:e.color}}),x.default.createElement(r.Text,{size:"n1",color:t.theme.colors.gray800},a===t.LOCALE.Indonesia?e["z-score"]:e.text))})))},exports.BabyGrowthProfileRadio=ce,exports.BabyGrowthRecord=function(e){var n=e.measurementDate,a=void 0===n?new Date:n,o=e.weight,l=e.height,u=e.head,s=e.onEdit,d=e.birthday,h=e.dateFormat,f=void 0===h?"dd/MM/yyyy":h,m=e.locale;void 0===m&&t.LOCALE.PhilippinesEnglish;var p=t.useTranslations().t;return x.default.createElement(pe,{onClick:s},x.default.createElement("div",{className:"time"},x.default.createElement("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},x.default.createElement("path",{d:"M5.64421 0.666016C5.27621 0.666016 4.97754 0.964682 4.97754 1.33268V1.99935H4.31087C3.57754 1.99935 2.97754 2.59935 2.97754 3.33268V12.666C2.97754 13.3993 3.57754 13.9993 4.31087 13.9993H13.6442C14.3775 13.9993 14.9775 13.3993 14.9775 12.666V3.33268C14.9775 2.59935 14.3775 1.99935 13.6442 1.99935H12.9775V1.33268C12.9775 0.964682 12.6789 0.666016 12.3109 0.666016C11.9429 0.666016 11.6442 0.964682 11.6442 1.33268V1.99935H6.31087V1.33268C6.31087 0.964682 6.01221 0.666016 5.64421 0.666016ZM4.31087 5.33268H13.6442V11.9993C13.6442 12.3673 13.3455 12.666 12.9775 12.666H4.97754C4.60954 12.666 4.31087 12.3673 4.31087 11.9993V5.33268Z",fill:"#8C8C8C"})),x.default.createElement(r.Text,{size:"p3",color:t.theme.colors.gray600},"".concat(i.format(a,f)," (").concat(me(c.ageGenerate(d,a),p),")")),x.default.createElement("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"edit-button"},x.default.createElement("path",{d:"M12.7721 1.33398C12.2911 1.33398 11.8102 1.51773 11.443 1.88607L10.6643 2.66732L13.3224 5.33398L14.1011 4.55273C14.8348 3.81673 14.8348 2.62273 14.1011 1.88607C13.734 1.51773 13.253 1.33398 12.7721 1.33398ZM9.66748 3.66732L2.02539 11.334V14.0007H4.68351L12.3256 6.33398L9.66748 3.66732Z",fill:"#8C8C8C"}))),x.default.createElement("div",{className:"record"},x.default.createElement("div",{className:"record-item"},x.default.createElement("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},x.default.createElement("path",{d:"M8.44401 9.86602C8.44401 9.57146 8.68279 9.33268 8.97734 9.33268C9.2719 9.33268 9.51068 9.57146 9.51068 9.86602V11.466C9.51068 11.7606 9.2719 11.9993 8.97734 11.9993C8.68279 11.9993 8.44401 11.7606 8.44401 11.466V9.86602Z",fill:"#8C8C8C"}),x.default.createElement("path",{d:"M8.17595 3.05319C7.96767 3.26147 7.96767 3.59916 8.17595 3.80744L8.83592 4.46741C9.0442 4.67569 9.38189 4.67569 9.59017 4.46741C9.79844 4.25913 9.79844 3.92144 9.59017 3.71316L8.9302 3.05319C8.72192 2.84491 8.38423 2.84492 8.17595 3.05319Z",fill:"#8C8C8C"}),x.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.2941 3.66435C12.1261 1.98071 10.7053 0.666016 8.97738 0.666016C7.2495 0.666016 5.82868 1.9807 5.66067 3.66434L3.67054 3.86336C2.92499 3.93791 2.38724 4.61197 2.48017 5.35545L3.498 13.4981C3.5814 14.1653 4.1486 14.666 4.82104 14.666H13.1336C13.806 14.666 14.3732 14.1653 14.4567 13.4981L15.4745 5.35545C15.5674 4.61197 15.0297 3.93791 14.2841 3.86336L12.2941 3.66435ZM12.1607 4.991C11.7386 6.34768 10.473 7.33268 8.97738 7.33268C7.48176 7.33268 6.2162 6.34767 5.79403 4.99099L3.80321 5.19007L4.82104 13.3327L13.1336 13.3327L14.1514 5.19007L12.1607 4.991ZM10.9774 3.99935C10.9774 5.10392 10.0819 5.99935 8.97738 5.99935C7.87281 5.99935 6.97738 5.10392 6.97738 3.99935C6.97738 2.89478 7.87281 1.99935 8.97738 1.99935C10.0819 1.99935 10.9774 2.89478 10.9774 3.99935Z",fill:"#8C8C8C"})),x.default.createElement(r.Text,{size:"s3",color:t.theme.colors.gray800,type:"semiBold"},Ce(c.localizeNumberFormat(o),"kg"))),x.default.createElement("div",{className:"record-item"},x.default.createElement("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},x.default.createElement("g",{clipPath:"url(#clip0_855_82991)"},x.default.createElement("path",{d:"M12.6055 13.9993L12.6055 1.99935C12.6055 1.26602 12.0055 0.666016 11.2721 0.666016L5.9388 0.666015C5.20547 0.666015 4.60547 1.26602 4.60547 1.99935L4.60547 13.9993C4.60547 14.7327 5.20547 15.3327 5.9388 15.3327L11.2721 15.3327C12.0055 15.3327 12.6055 14.7327 12.6055 13.9993ZM5.9388 13.9993L5.9388 1.99935L11.2721 1.99935L11.2721 3.33268L8.60547 3.33268L8.60547 4.66602L11.2721 4.66602L11.2721 5.99935L8.60547 5.99935L8.60547 7.33268L11.2721 7.33268L11.2721 8.66602L8.60547 8.66601L8.60547 9.99935L11.2721 9.99935L11.2721 11.3327L8.60547 11.3327L8.60547 12.666L11.2721 12.666L11.2721 13.9993L5.9388 13.9993Z",fill:"#8C8C8C"})),x.default.createElement("defs",null,x.default.createElement("clipPath",{id:"clip0_855_82991"},x.default.createElement("rect",{width:"16",height:"16",fill:"white",transform:"translate(16.6055) rotate(90)"})))),x.default.createElement(r.Text,{size:"s3",color:t.theme.colors.gray800,type:"semiBold"},Ce(c.localizeNumberFormat(l),"cm"))),x.default.createElement("div",{className:"record-item"},x.default.createElement("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},x.default.createElement("g",{clipPath:"url(#clip0_855_82994)"},x.default.createElement("path",{d:"M9.90072 7.83268C10.361 7.83268 10.734 7.45959 10.734 6.99935C10.734 6.53911 10.361 6.16602 9.90072 6.16602C9.44048 6.16602 9.06738 6.53911 9.06738 6.99935C9.06738 7.45959 9.44048 7.83268 9.90072 7.83268Z",fill:"#8C8C8C"}),x.default.createElement("path",{d:"M6.56771 7.83268C7.02795 7.83268 7.40104 7.45959 7.40104 6.99935C7.40104 6.53911 7.02795 6.16602 6.56771 6.16602C6.10747 6.16602 5.73438 6.53911 5.73438 6.99935C5.73438 7.45959 6.10747 7.83268 6.56771 7.83268Z",fill:"#8C8C8C"}),x.default.createElement("path",{d:"M15.528 7.56C15.3614 6.55333 14.6214 5.73333 13.6547 5.44667C13.3014 4.7 12.8014 4.04667 12.1947 3.50667C11.1414 2.56667 9.7547 2 8.2347 2C6.7147 2 5.32803 2.56667 4.2747 3.50667C3.66137 4.04667 3.16137 4.70667 2.8147 5.44667C1.84803 5.73333 1.10803 6.54667 0.941367 7.56C0.9147 7.7 0.901367 7.84667 0.901367 8C0.901367 8.15333 0.9147 8.3 0.941367 8.44C1.10803 9.44667 1.84803 10.2667 2.8147 10.5533C3.16137 11.2933 3.66137 11.9467 4.26137 12.48C5.3147 13.4267 6.70803 14 8.2347 14C9.76137 14 11.1547 13.4267 12.2147 12.48C12.8147 11.9467 13.3147 11.2867 13.6614 10.5533C14.6214 10.2667 15.3614 9.45333 15.528 8.44C15.5547 8.3 15.568 8.15333 15.568 8C15.568 7.84667 15.5547 7.7 15.528 7.56ZM12.9014 9.33333C12.8347 9.33333 12.7747 9.32 12.708 9.31333C12.5747 9.76 12.3814 10.1733 12.1347 10.5533C11.3014 11.8267 9.86803 12.6667 8.2347 12.6667C6.60137 12.6667 5.16803 11.8267 4.3347 10.5533C4.08803 10.1733 3.8947 9.76 3.76137 9.31333C3.6947 9.32 3.6347 9.33333 3.56803 9.33333C2.8347 9.33333 2.2347 8.73333 2.2347 8C2.2347 7.26667 2.8347 6.66667 3.56803 6.66667C3.6347 6.66667 3.6947 6.68 3.76137 6.68667C3.8947 6.24 4.08803 5.82667 4.3347 5.44667C5.16803 4.17333 6.60137 3.33333 8.2347 3.33333C9.86803 3.33333 11.3014 4.17333 12.1347 5.44667C12.3814 5.82667 12.5747 6.24 12.708 6.68667C12.7747 6.68 12.8347 6.66667 12.9014 6.66667C13.6347 6.66667 14.2347 7.26667 14.2347 8C14.2347 8.73333 13.6347 9.33333 12.9014 9.33333ZM8.2347 11.3333C9.5747 11.3333 10.728 10.5133 11.2347 9.33333H5.2347C5.74137 10.5133 6.8947 11.3333 8.2347 11.3333Z",fill:"#8C8C8C"})),x.default.createElement("defs",null,x.default.createElement("clipPath",{id:"clip0_855_82994"},x.default.createElement("rect",{width:"16",height:"16",fill:"white",transform:"translate(0.234375)"})))),x.default.createElement(r.Text,{size:"s3",color:t.theme.colors.gray800,type:"semiBold"},Ce(c.localizeNumberFormat(u),"cm")))))},exports.BabyGrowthSwitch=function(e){var t=e.switchType,n=e.onTypeChange;return x.default.createElement(k,null,x.default.createElement(l.Button,{className:"switch",size:"sm",color:t===exports.BabyGrowthSwitchChart.WHO?"primary":"ghost",onClick:function(){return n(exports.BabyGrowthSwitchChart.WHO)}},"WHO"),x.default.createElement(l.Button,{className:"switch",size:"sm",isDisabled:!0,color:t===exports.BabyGrowthSwitchChart.CDC?"primary":"ghost",onClick:function(){return n(exports.BabyGrowthSwitchChart.CDC)}},"CDC"))},exports.BabyGrowthTooltip=ie,exports.ChildCard=function(a){var o=a.name,i=a.gender,u=a.age,c=a.isLoggedIn,s=void 0!==c&&c,d=a.showMenu,h=void 0!==d&&d,f=a.onEdit,m=a.onSwitch,p=a.onAdd,C=a.onRemove,y=a.className,b=t.useTranslations().t,g=e.useState(!1),w=g[0],v=g[1];return x.default.createElement(se,{className:y},x.default.createElement("div",{"data-testid":"gender"},i===t.Gender.Boy?x.default.createElement(n.Icon.Boy,{"data-testid":"boy",id:"boy"}):x.default.createElement(n.Icon.Girl,{"data-testid":"girl",id:"girl"})),x.default.createElement("div",{className:"information"},x.default.createElement(l.Heading,{tag:"h5",fontWeight:"bold",color:t.theme.colors.gray800},t.startCase(o)||b("childCard.noName")),x.default.createElement("div",{className:"detail"},x.default.createElement("div",null,i===t.Gender.Boy?x.default.createElement(n.Icon.GenderBoy,null):x.default.createElement(n.Icon.GenderGirl,null),x.default.createElement(r.Text,{size:"p3",color:t.theme.colors.gray800,style:{textTransform:"capitalize"}},i)),x.default.createElement("div",null,x.default.createElement(n.Icon.Calendar,{size:16}),u&&x.default.createElement(r.Text,{size:"p3",color:t.theme.colors.gray800},me(u,b))))),h&&s&&x.default.createElement(de,null,x.default.createElement(n.Icon.Kebab,{onClick:function(){return v((function(e){return!e}))}}),w&&x.default.createElement(fe,{name:o,onClose:function(){return v(!1)},onEdit:function(){v(!1),f()},onSwitch:function(){v(!1),m()},onAdd:function(){v(!1),p()},onRemove:function(){v(!1),C()}})))},exports.LABELS_PERCENTILE=Me,exports.LABELS_Z_SCORE=Le,exports.divideChartData=ve,exports.generateGrowthChart=we,exports.generateXAxisTicks=Ge,exports.getAxisYDomain=function(e,t,n,r,a){var o=e.slice(t-1,n),l=[o[0][r],o[0][r]],i=l[0],u=l[1];return o.forEach((function(e){e[r]>u&&(u=e[r]),e[r]<i&&(i=e[r])})),[(0|i)-a,(0|u)+a]},exports.refineDataWithLine=Ee,exports.transformDataToChart=Be;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("./useTranslations-589049a5.js"),n=require("./Locale-11b51016.js"),r=require("./index-cd9a6d72.js"),a=require("./index.styled-747be23a.js"),o=require("./tslib.es6-f7929e76.js"),l=require("./lazyLoad-a4ccbfcc.js"),i=require("styled-components"),u=require("./theme-696d81a9.js"),c=require("./index-c7bbd0f2.js"),s=require("date-fns");require("react-range"),require("react-dom"),require("lodash/debounce"),require("./constants-5675963f.js"),require("./translationsContext-af789c7c.js"),require("string-format");var d=require("./useOutsideClick-528bfd6c.js"),h=require("./localizeNumberFormat-d34a738e.js"),f=require("./index.styled-5695a100.js"),m=require("recharts"),p=require("lodash");function C(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}require("./index-5dfd2bd9.js"),require("./useScrollbarSize-586f6706.js"),require("vanilla-lazyload");var y,b,g,x,w,v,E=C(e),B=C(i),G=B.default.div(y||(y=o.__makeTemplateObject(["\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"])),l.MediaQueries.mbUp),k=B.default(r.RadioImageGroup)(b||(b=o.__makeTemplateObject(["\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"]))),L=B.default.div(g||(g=o.__makeTemplateObject(["\n display: flex;\n justify-content: center;\n gap: 16px;\n"],["\n display: flex;\n justify-content: center;\n gap: 16px;\n"]))),M=B.default.div(x||(x=o.__makeTemplateObject(["\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"]))),I=B.default.div(w||(w=o.__makeTemplateObject(["\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"])),u.theme.colors.neutral200);exports.BabyGrowthSwitchChart=void 0,(v=exports.BabyGrowthSwitchChart||(exports.BabyGrowthSwitchChart={}))[v.WHO=0]="WHO",v[v.CDC=1]="CDC";var _,j,D,T,H,S,q,P,z,O,R,N,A,W,Y,Z,V,F,U,K,X,Q,J,$,ee,te,ne,re,ae,oe,le,ie=B.default.div(_||(_=o.__makeTemplateObject(["\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"])),u.theme.colors.yellow600),ue=[{name:["3rd","-3SD","97th","3SD"],color:u.theme.colors.red600},{name:["15rd","-2SD","85th","2SD"],color:u.theme.colors.yellow600},{name:["50th","0Median"],color:u.theme.colors.green600}],ce={"3rd":"-3SD","15th":"-2SD","50th":"Median","85th":"2SD","97th":"3SD"},se=function(t){var r=t.riskLevel,o=t.tooltips,l=t.locale,i=e.useMemo((function(){var e;return null===(e=ue.find((function(e){return e.name.includes(r||"")})))||void 0===e?void 0:e.color}),[r]),c=e.useMemo((function(){return l===n.LOCALE.Indonesia?r?ce[r]:"":r}),[l,r]);return E.default.createElement(ie,null,E.default.createElement("div",{className:"risk",style:{backgroundColor:i}},E.default.createElement(a.Text,{size:"s3",color:u.theme.colors.white,type:"semiBold"},c)),E.default.createElement("div",{className:"tooltip"},o.map((function(e,t){return E.default.createElement(a.Text,{key:t,size:"n1",color:u.theme.colors.gray600},e)}))))},de=B.default.div(j||(j=o.__makeTemplateObject(["\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 }\n .radio {\n cursor: pointer;\n position: relative;\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 }\n .radio {\n cursor: pointer;\n position: relative;\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"])),u.theme.colors.gray50,u.theme.colors.gray600,"300ms",u.theme.colors.primaryBase,u.theme.colors.primaryBase,l.fadeIn,"300ms"),he=function(e){var t=e.profile,n=e.onChange,o=e.isActive;return E.default.createElement(de,{onClick:function(){return n(t.id)}},E.default.createElement("div",{className:"baby"},"male"===t.gender?E.default.createElement(r.Icon.Boy,{size:24}):E.default.createElement(r.Icon.Girl,{size:24}),E.default.createElement(a.Text,{size:"p2",color:u.theme.colors.gray800},t.name)),E.default.createElement("div",{className:o?"radio active":"radio"}))},fe=B.default.div(D||(D=o.__makeTemplateObject(["\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"])),u.theme.colors.white,u.theme.colors.gray100),me=B.default.div(T||(T=o.__makeTemplateObject(["\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"]))),pe=B.default(a.Menu)(H||(H=o.__makeTemplateObject(["\n position: absolute;\n right: 0;\n z-index: 1;\n"],["\n position: absolute;\n right: 0;\n z-index: 1;\n"]))),Ce=function(n){var r=n.name,o=n.onClose,l=n.onEdit,i=n.onSwitch,c=n.onAdd,s=n.onRemove,h=t.useTranslations().t,f=e.useRef();return d.useOutsideClick(f,o),E.default.createElement("div",{ref:f},E.default.createElement(pe,{width:250},E.default.createElement(a.Menu.Item,{onClick:l,icon:E.default.createElement("svg",{width:"16",height:"17",viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},E.default.createElement("path",{d:"M12.7812 1.83301C12.2987 1.83301 11.8162 2.01676 11.4479 2.38509L10.6667 3.16634L13.3333 5.83301L14.1146 5.05176C14.8506 4.31576 14.8506 3.12176 14.1146 2.38509C13.7463 2.01676 13.2638 1.83301 12.7812 1.83301ZM9.66667 4.16634L2 11.833V14.4997H4.66667L12.3333 6.83301L9.66667 4.16634Z",fill:"#595959"}))},E.default.createElement(a.Text,{size:"p2",color:u.theme.colors.gray800},h("childCard.menu.edit",{name:r}))),E.default.createElement(a.Menu.Item,{onClick:i,icon:E.default.createElement("svg",{width:"16",height:"17",viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},E.default.createElement("path",{d:"M8 2.5C4.9478 2.5 2.4204 4.79359 2.05078 7.7513C2.03763 7.83928 2.04222 7.929 2.06428 8.01518C2.08634 8.10136 2.12542 8.18226 2.17922 8.2531C2.23303 8.32394 2.30046 8.3833 2.37756 8.42768C2.45465 8.47206 2.53985 8.50057 2.62813 8.51152C2.71642 8.52247 2.806 8.51564 2.8916 8.49143C2.9772 8.46723 3.05709 8.42614 3.12657 8.37059C3.19605 8.31503 3.2537 8.24613 3.29615 8.16795C3.33859 8.08978 3.36496 8.00389 3.3737 7.91536C3.66141 5.61307 5.61354 3.83333 8 3.83333C9.34288 3.83333 10.5434 4.39987 11.3919 5.30339L10.0977 6.59766C9.96766 6.72766 9.96766 6.93901 10.0977 7.06901C10.1623 7.13434 10.248 7.16667 10.3333 7.16667H13.3333C13.5101 7.16667 13.6797 7.09643 13.8047 6.9714C13.9298 6.84638 14 6.67681 14 6.5V3.5C14 3.41467 13.967 3.32966 13.9023 3.26432C13.7723 3.13432 13.561 3.13432 13.431 3.26432L12.3359 4.35938C11.2437 3.21415 9.7037 2.5 8 2.5ZM13.2943 8.49089C13.1292 8.48959 12.9695 8.54959 12.8461 8.65928C12.7227 8.76896 12.6444 8.92053 12.6263 9.08464C12.3386 11.3869 10.3865 13.1667 8 13.1667C6.65713 13.1667 5.45884 12.5994 4.60938 11.6953L5.90234 10.4023C6.03234 10.2723 6.03234 10.061 5.90234 9.93099C5.83768 9.86566 5.752 9.83333 5.66667 9.83333H2.66667C2.48986 9.83333 2.32029 9.90357 2.19526 10.0286C2.07024 10.1536 2 10.3232 2 10.5V13.5C2 13.5853 2.03299 13.6703 2.09766 13.7357C2.22766 13.8657 2.43901 13.8657 2.56901 13.7357L3.66536 12.6393C4.75711 13.7836 6.29696 14.5 8 14.5C11.0522 14.5 13.5796 12.2064 13.9492 9.2487C13.9622 9.1548 13.955 9.05922 13.928 8.96833C13.9011 8.87745 13.8552 8.79334 13.7932 8.72163C13.7312 8.64991 13.6546 8.59224 13.5686 8.55245C13.4826 8.51266 13.3891 8.49167 13.2943 8.49089Z",fill:"#595959"}))},E.default.createElement(a.Text,{size:"p2",color:u.theme.colors.gray800},h("childCard.menu.switch"))),E.default.createElement(a.Menu.Item,{onClick:c,icon:E.default.createElement("svg",{width:"16",height:"17",viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},E.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.9564 8.56545C15.7745 7.46727 14.9673 6.57273 13.9127 6.26C13.5273 5.44545 12.9818 4.73273 12.32 4.14364C11.1709 3.11818 9.65818 2.5 8 2.5C6.34182 2.5 4.82909 3.11818 3.68 4.14364C3.01091 4.73273 2.46545 5.45273 2.08727 6.26C1.03273 6.57273 0.225455 7.46 0.0436364 8.56545C0.0145455 8.71818 0 8.87818 0 9.04545C0 9.21273 0.0145455 9.37273 0.0436364 9.52545C0.225455 10.6236 1.03273 11.5182 2.08727 11.8309C2.46545 12.6382 3.01091 13.3509 3.66545 13.9327C4.81455 14.9655 6.33455 15.5909 8 15.5909C9.66545 15.5909 11.1855 14.9655 12.3418 13.9327C12.9964 13.3509 13.5418 12.6309 13.92 11.8309C14.9673 11.5182 15.7745 10.6309 15.9564 9.52545C15.9855 9.37273 16 9.21273 16 9.04545C16 8.87818 15.9855 8.71818 15.9564 8.56545ZM6.18182 7.04545C5.67974 7.04545 5.27273 7.45247 5.27273 7.95455C5.27273 8.45662 5.67974 8.86364 6.18182 8.86364C6.6839 8.86364 7.09091 8.45662 7.09091 7.95455C7.09091 7.45247 6.6839 7.04545 6.18182 7.04545ZM9.81818 7.04545C9.3161 7.04545 8.90909 7.45247 8.90909 7.95455C8.90909 8.45662 9.3161 8.86364 9.81818 8.86364C10.3203 8.86364 10.7273 8.45662 10.7273 7.95455C10.7273 7.45247 10.3203 7.04545 9.81818 7.04545ZM5.01821 10.5H10.9818C11.1128 10.5 11.2073 10.6455 11.1491 10.7691C10.5455 11.9109 9.36002 12.6818 8.00002 12.6818C6.64002 12.6818 5.45457 11.9109 4.85093 10.7691C4.78548 10.6455 4.88002 10.5 5.01821 10.5ZM12.9538 10.4875C12.9991 10.4938 13.0435 10.5 13.0909 10.5C13.8909 10.5 14.5455 9.84545 14.5455 9.04545C14.5455 8.24545 13.8909 7.59091 13.0909 7.59091C13.0435 7.59091 12.9991 7.5971 12.9538 7.60343C12.9297 7.60679 12.9053 7.6102 12.88 7.61273C12.7345 7.12545 12.5236 6.67455 12.2545 6.26C11.3455 4.87091 9.78182 3.95455 8 3.95455C6.21818 3.95455 4.65455 4.87091 3.74545 6.26C3.47636 6.67455 3.26545 7.12545 3.12 7.61273C3.09473 7.6102 3.07033 7.60679 3.0462 7.60343C3.0009 7.5971 2.95654 7.59091 2.90909 7.59091C2.10909 7.59091 1.45455 8.24545 1.45455 9.04545C1.45455 9.84545 2.10909 10.5 2.90909 10.5C2.95654 10.5 3.0009 10.4938 3.0462 10.4875C3.07033 10.4841 3.09473 10.4807 3.12 10.4782C3.26545 10.9655 3.47636 11.4164 3.74545 11.8309C4.65455 13.22 6.21818 14.1364 8 14.1364C9.78182 14.1364 11.3455 13.22 12.2545 11.8309C12.5236 11.4164 12.7345 10.9655 12.88 10.4782C12.9053 10.4807 12.9297 10.4841 12.9538 10.4875Z",fill:"#595959"}),E.default.createElement("path",{d:"M2.5 2V1C2.5 0.725 2.275 0.5 2 0.5C1.725 0.5 1.5 0.725 1.5 1V2H0.5C0.225 2 0 2.225 0 2.5C0 2.775 0.225 3 0.5 3H1.5V4C1.5 4.275 1.725 4.5 2 4.5C2.275 4.5 2.5 4.275 2.5 4V3H3.5C3.775 3 4 2.775 4 2.5C4 2.225 3.775 2 3.5 2H2.5Z",fill:"#595959"}))},E.default.createElement(a.Text,{size:"p2",color:u.theme.colors.gray800},h("childCard.menu.add"))),E.default.createElement(a.Menu.Item,{onClick:s,icon:E.default.createElement("svg",{width:"16",height:"17",viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},E.default.createElement("path",{d:"M6.66699 1.83301L6.00033 2.49967H3.33366C2.93366 2.49967 2.66699 2.76634 2.66699 3.16634C2.66699 3.56634 2.93366 3.83301 3.33366 3.83301H4.66699H11.3337H12.667C13.067 3.83301 13.3337 3.56634 13.3337 3.16634C13.3337 2.76634 13.067 2.49967 12.667 2.49967H10.0003L9.33366 1.83301H6.66699ZM3.33366 5.16634V13.833C3.33366 14.5663 3.93366 15.1663 4.66699 15.1663H11.3337C12.067 15.1663 12.667 14.5663 12.667 13.833V5.16634H3.33366ZM6.00033 6.49967C6.40033 6.49967 6.66699 6.76634 6.66699 7.16634V13.1663C6.66699 13.5663 6.40033 13.833 6.00033 13.833C5.60033 13.833 5.33366 13.5663 5.33366 13.1663V7.16634C5.33366 6.76634 5.60033 6.49967 6.00033 6.49967ZM10.0003 6.49967C10.4003 6.49967 10.667 6.76634 10.667 7.16634V13.1663C10.667 13.5663 10.4003 13.833 10.0003 13.833C9.60033 13.833 9.33366 13.5663 9.33366 13.1663V7.16634C9.33366 6.76634 9.60033 6.49967 10.0003 6.49967Z",fill:"#F44D2C"}))},E.default.createElement(a.Text,{size:"p2",color:u.theme.colors.red600},h("childCard.menu.remove",{name:r})))))},ye=function(e,t){if(e)if(e.year<1){if(0===e.month)switch(e.week){case 0:case 1:return t("childCard.age.oneWeek");default:return t("childCard.age.week",{weeks:e.week})}if(e.month>0)return t("childCard.age.months",{month:e.month})}else{if(0===e.month)return t("childCard.age.yearNoMonth",{year:e.year});if(e.month>0)return t("childCard.age.yearMonth",{year:e.year,month:e.month})}},be=B.default.div(S||(S=o.__makeTemplateObject(["\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"])),u.theme.colors.gray100),ge=function(e,t){return e&&"NaN"!==e?e+" "+(t||""):"--"},xe=B.default(f.Drawer)(q||(q=o.__makeTemplateObject(["\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"]))),we=B.default(r.Modal)(P||(P=o.__makeTemplateObject(["\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"])),u.theme.colors.neutral100,u.theme.colors.neutral100),ve=((z={})[n.Gender.Boy]=((O={})[n.BabyGrowthChartType.Weight]=((R={})[n.BabyGrowthChartDuration.Weekly]=function(){return Promise.resolve().then((function(){return require("./WEIGHT_BOYS.percentile.weekly-8b301e27.js")}))},R[n.BabyGrowthChartDuration.Monthly]=function(){return Promise.resolve().then((function(){return require("./WEIGHT_BOYS.percentile.monthly-305649d8.js")}))},R[n.BabyGrowthChartDuration.Yearly]=function(){return Promise.resolve().then((function(){return require("./WEIGHT_BOYS.percentile.yearly-96f3249d.js")}))},R),O[n.BabyGrowthChartType.Height]=((N={})[n.BabyGrowthChartDuration.Weekly]=function(){return Promise.resolve().then((function(){return require("./HEIGHT_BOYS.percentile.weekly-71fb3532.js")}))},N[n.BabyGrowthChartDuration.Monthly]=function(){return Promise.resolve().then((function(){return require("./HEIGHT_BOYS.percentile.monthly-b6e07b4d.js")}))},N[n.BabyGrowthChartDuration.Yearly]=function(){return Promise.resolve().then((function(){return require("./HEIGHT_BOYS.percentile.yearly-18e5463a.js")}))},N),O[n.BabyGrowthChartType.Head]=((A={})[n.BabyGrowthChartDuration.Weekly]=function(){return Promise.resolve().then((function(){return require("./HEAD CIRCUM_BOYS.percentile.weekly-923d3626.js")}))},A[n.BabyGrowthChartDuration.Monthly]=function(){return Promise.resolve().then((function(){return require("./HEAD CIRCUM_BOYS.percentile.monthly-e79e5d3f.js")}))},A[n.BabyGrowthChartDuration.Yearly]=function(){return Promise.resolve().then((function(){return require("./HEAD CIRCUM_BOYS.percentile.yearly-4133a7da.js")}))},A),O[n.BabyGrowthChartType.BMI]=((W={})[n.BabyGrowthChartDuration.Weekly]=function(){return Promise.resolve().then((function(){return require("./BMI_BOYS.percentile.weekly-75bff607.js")}))},W[n.BabyGrowthChartDuration.Monthly]=function(){return Promise.resolve().then((function(){return require("./BMI_BOYS.percentile.monthly-1c8c4c98.js")}))},W[n.BabyGrowthChartDuration.Yearly]=function(){return Promise.resolve().then((function(){return require("./BMI_BOYS.percentile.yearly-b8d86c12.js")}))},W),O),z[n.Gender.Girl]=((Y={})[n.BabyGrowthChartType.Weight]=((Z={})[n.BabyGrowthChartDuration.Weekly]=function(){return Promise.resolve().then((function(){return require("./WEIGHT_GIRLS.percentile.weekly-63c6a2a3.js")}))},Z[n.BabyGrowthChartDuration.Monthly]=function(){return Promise.resolve().then((function(){return require("./WEIGHT_GIRLS.percentile.monthly-b0905186.js")}))},Z[n.BabyGrowthChartDuration.Yearly]=function(){return Promise.resolve().then((function(){return require("./WEIGHT_GIRLS.percentile.yearly-49663736.js")}))},Z),Y[n.BabyGrowthChartType.Height]=((V={})[n.BabyGrowthChartDuration.Weekly]=function(){return Promise.resolve().then((function(){return require("./HEIGHT_GIRLS.percentile.weekly-b2628828.js")}))},V[n.BabyGrowthChartDuration.Monthly]=function(){return Promise.resolve().then((function(){return require("./HEIGHT_GIRLS.percentile.monthly-1e34eb90.js")}))},V[n.BabyGrowthChartDuration.Yearly]=function(){return Promise.resolve().then((function(){return require("./HEIGHT_GIRLS.percentile.yearly-72339b71.js")}))},V),Y[n.BabyGrowthChartType.Head]=((F={})[n.BabyGrowthChartDuration.Weekly]=function(){return Promise.resolve().then((function(){return require("./HEAD CIRCUM_GIRLS.percentile.weekly-0020f6e2.js")}))},F[n.BabyGrowthChartDuration.Monthly]=function(){return Promise.resolve().then((function(){return require("./HEAD CIRCUM_GIRLS.percentile.monthly-67f98b04.js")}))},F[n.BabyGrowthChartDuration.Yearly]=function(){return Promise.resolve().then((function(){return require("./HEAD CIRCUM_GIRLS.percentile.yearly-6afd8bc6.js")}))},F),Y[n.BabyGrowthChartType.BMI]=((U={})[n.BabyGrowthChartDuration.Weekly]=function(){return Promise.resolve().then((function(){return require("./BMI_GIRLS.percentile.weekly-aa3da5c1.js")}))},U[n.BabyGrowthChartDuration.Monthly]=function(){return Promise.resolve().then((function(){return require("./BMI_GIRLS.percentile.monthly-f482508e.js")}))},U[n.BabyGrowthChartDuration.Yearly]=function(){return Promise.resolve().then((function(){return require("./BMI_GIRLS.percentile.yearly-624db278.js")}))},U),Y),z),Ee=((K={})[n.Gender.Boy]=((X={})[n.BabyGrowthChartType.Weight]=((Q={})[n.BabyGrowthChartDuration.Weekly]=function(){return Promise.resolve().then((function(){return require("./WEIGHT_BOYS.zscore.weekly-0b1faf98.js")}))},Q[n.BabyGrowthChartDuration.Monthly]=function(){return Promise.resolve().then((function(){return require("./WEIGHT_BOYS.zscore.monthly-22c8f908.js")}))},Q[n.BabyGrowthChartDuration.Yearly]=function(){return Promise.resolve().then((function(){return require("./WEIGHT_BOYS.zscore.yearly-8090c58c.js")}))},Q),X[n.BabyGrowthChartType.Height]=((J={})[n.BabyGrowthChartDuration.Weekly]=function(){return Promise.resolve().then((function(){return require("./HEIGHT_BOYS.zscore.weekly-70c18763.js")}))},J[n.BabyGrowthChartDuration.Monthly]=function(){return Promise.resolve().then((function(){return require("./HEIGHT_BOYS.zscore.monthly-7a8e43dd.js")}))},J[n.BabyGrowthChartDuration.Yearly]=function(){return Promise.resolve().then((function(){return require("./HEIGHT_BOYS.zscore.yearly-b9e6ea6b.js")}))},J),X[n.BabyGrowthChartType.Head]=(($={})[n.BabyGrowthChartDuration.Weekly]=function(){return Promise.resolve().then((function(){return require("./HEAD CIRCUM_BOYS.zscore.weekly-f472daa8.js")}))},$[n.BabyGrowthChartDuration.Monthly]=function(){return Promise.resolve().then((function(){return require("./HEAD CIRCUM_BOYS.zscore.monthly-4727bfe4.js")}))},$[n.BabyGrowthChartDuration.Yearly]=function(){return Promise.resolve().then((function(){return require("./HEAD CIRCUM_BOYS.zscore.yearly-13a09c3f.js")}))},$),X[n.BabyGrowthChartType.BMI]=((ee={})[n.BabyGrowthChartDuration.Weekly]=function(){return Promise.resolve().then((function(){return require("./BMI_BOYS.zscore.weekly-aba5d53b.js")}))},ee[n.BabyGrowthChartDuration.Monthly]=function(){return Promise.resolve().then((function(){return require("./BMI_BOYS.zscore.monthly-5efef594.js")}))},ee[n.BabyGrowthChartDuration.Yearly]=function(){return Promise.resolve().then((function(){return require("./BMI_BOYS.zscore.yearly-52cbcf95.js")}))},ee),X),K[n.Gender.Girl]=((te={})[n.BabyGrowthChartType.Weight]=((ne={})[n.BabyGrowthChartDuration.Weekly]=function(){return Promise.resolve().then((function(){return require("./WEIGHT_GIRLS.zscore.weekly-29d8f232.js")}))},ne[n.BabyGrowthChartDuration.Monthly]=function(){return Promise.resolve().then((function(){return require("./WEIGHT_GIRLS.zscore.monthly-0b14c285.js")}))},ne[n.BabyGrowthChartDuration.Yearly]=function(){return Promise.resolve().then((function(){return require("./WEIGHT_GIRLS.zscore.yearly-95aa9ac3.js")}))},ne),te[n.BabyGrowthChartType.Height]=((re={})[n.BabyGrowthChartDuration.Weekly]=function(){return Promise.resolve().then((function(){return require("./HEIGHT_GIRLS.zscore.weekly-7ed52595.js")}))},re[n.BabyGrowthChartDuration.Monthly]=function(){return Promise.resolve().then((function(){return require("./HEIGHT_GIRLS.zscore.monthly-e473a16c.js")}))},re[n.BabyGrowthChartDuration.Yearly]=function(){return Promise.resolve().then((function(){return require("./HEIGHT_GIRLS.zscore.yearly-225f27c4.js")}))},re),te[n.BabyGrowthChartType.Head]=((ae={})[n.BabyGrowthChartDuration.Weekly]=function(){return Promise.resolve().then((function(){return require("./HEAD CIRCUM_GIRLS.zscore.weekly-a0fa670d.js")}))},ae[n.BabyGrowthChartDuration.Monthly]=function(){return Promise.resolve().then((function(){return require("./HEAD CIRCUM_GIRLS.zscore.monthly-9c635d09.js")}))},ae[n.BabyGrowthChartDuration.Yearly]=function(){return Promise.resolve().then((function(){return require("./HEAD CIRCUM_GIRLS.zscore.yearly-fcdb544a.js")}))},ae),te[n.BabyGrowthChartType.BMI]=((oe={})[n.BabyGrowthChartDuration.Weekly]=function(){return Promise.resolve().then((function(){return require("./BMI_GIRLS.zscore.weekly-56e2c916.js")}))},oe[n.BabyGrowthChartDuration.Monthly]=function(){return Promise.resolve().then((function(){return require("./BMI_GIRLS.zscore.monthly-11ffe2ae.js")}))},oe[n.BabyGrowthChartDuration.Yearly]=function(){return Promise.resolve().then((function(){return require("./BMI_GIRLS.zscore.yearly-a3d00356.js")}))},oe),te),K),Be=function(e,t,r,a){return a===n.LOCALE.Indonesia?Ee[e][t][r]():ve[e][t][r]()},Ge=function(e,t){var n=p.chunk(t,Math.ceil(t.length/2)),r=n[0],a=n[1],o=r.map((function(e){return e.name})),l=a.map((function(e){return e.name}));return o.includes(e)?{data:r,status:"first-half"}:l.includes(e)?{data:a,status:"second-half"}:{data:t,status:"full"}},ke=function(e,t){return o.__spreadArray(o.__spreadArray([],e,!0),t.map((function(e){return{name:e.name,history:e.value}})),!0).sort((function(e,t){return e.name-t.name}))},Le=function(e){var t=[],n=function(n){e[n].forEach((function(e,r){var a;t[r]?t[r][n]=e:t[r]=((a={name:r})[n]=e,a)}))};for(var r in e)n(r);return t},Me=function(e,t){return void 0===t&&(t=0),Array.from({length:e-t+1},(function(e,n){return n+t}))},Ie=B.default.div(le||(le=o.__makeTemplateObject(["\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"]))),_e=[{name:"-3SD",label:"-3",color:u.theme.colors.red600},{name:"-2SD",label:"-2",color:u.theme.colors.yellow600},{name:"0Median",label:"0",color:u.theme.colors.green600},{name:"2SD",label:"2",color:u.theme.colors.yellow600},{name:"3SD",label:"3",color:u.theme.colors.red600},{name:"history",color:u.theme.colors.primaryBase}],je=[{name:"3rd",color:u.theme.colors.red600},{name:"15th",color:u.theme.colors.yellow600},{name:"50th",color:u.theme.colors.green600},{name:"85th",color:u.theme.colors.yellow600},{name:"97th",color:u.theme.colors.red600},{name:"history",color:u.theme.colors.primaryBase}],De=e.forwardRef((function(e,t){return E.default.createElement("circle",o.__assign({},e,{ref:t}),E.default.createElement("animate",{attributeName:"r",values:"4;8;4",dur:"2s",begin:"0s",repeatCount:"indefinite"}))})),Te=function(e){var t=e.x,n=e.y,r=e.last,a=e.index,o=e.name;return r===a?E.default.createElement("text",{x:t,y:n,dx:16,fill:u.theme.colors.gray500,fontSize:12,textAnchor:"middle"},o):null};exports.BabyGrowthChart=function(r){var l=r.gender,i=r.type,c=r.duration,s=r.xLabel,h=r.x,f=r.y,p=r.toolTipLabel,C=void 0===p?[]:p,y=r.isDivide,b=void 0===y||y,g=r.onIsPrevious,x=r.locale,w=r.riskLevel,v=r.withLine,B=void 0!==v&&v,G=r.lineData,k=void 0===G?[]:G,L=e.useState([]),M=L[0],I=L[1],_=e.useRef([]),j=t.useTranslations().t;e.useEffect((function(){o.__awaiter(void 0,void 0,void 0,(function(){var e,t,n;return o.__generator(this,(function(r){switch(r.label){case 0:return[4,Be(l,i,c,x)];case 1:if(e=r.sent().default,t=Le(e),Array.isArray(t)&&0===t.length)return null==g||g(),[2];n={data:t.map((function(e,t){return o.__assign(o.__assign({},e),{name:t})})),status:"full"};try{n=b?Ge(h||0,t):{data:t,status:"full"}}catch(e){}if(b)switch(n.status){case"first-half":_.current=Me(n.data.length-1);break;case"second-half":_.current=Me(e.length,n.data.length);break;default:_.current=Me(t.length-1)}else _.current=Me(t.length-1);return I(n.data),[2]}}))}))}),[l,i,c,x,g]);var D=e.useState(!1),T=D[0],H=D[1],S=e.useMemo((function(){return B&&Array.isArray(M)&&M.length>0?ke(M,k):M}),[B,k,M]),q=e.useRef(null);d.useOutsideClick(q,(function(){return H(!1)}));return E.default.createElement(Ie,null,E.default.createElement("div",{className:"custom-chart-label"},E.default.createElement(a.Text,{size:"n1",color:u.theme.colors.gray500},function(){switch(i){case n.BabyGrowthChartType.Weight:return j("babyGrowth.weight");case n.BabyGrowthChartType.Height:return j("babyGrowth.height");case n.BabyGrowthChartType.Head:return j("babyGrowth.headCircumference");case n.BabyGrowthChartType.BMI:return"BMI";default:return""}}()),E.default.createElement(a.Text,{size:"n1",color:u.theme.colors.gray500},x===n.LOCALE.Indonesia?"Z-Score":j("babyGrowth.percentiles"))),Array.isArray(S)&&S.length>0&&E.default.createElement(m.ResponsiveContainer,{height:388,className:"chart"},E.default.createElement(m.LineChart,{data:S,margin:{top:16,right:28,bottom:8,left:0}},E.default.createElement(m.CartesianGrid,{stroke:u.theme.colors.blue200}),E.default.createElement(m.Tooltip,{trigger:"click",content:E.default.createElement(E.default.Fragment,null,T&&void 0!==h&&void 0!==f&&E.default.createElement(se,{riskLevel:w,tooltips:C,locale:x}))}),E.default.createElement(m.XAxis,{type:"number",scale:"linear",ticks:_.current,dataKey:"name",tickLine:!1,tickMargin:12,tick:{fontFamily:"Inter",fontWeight:400,fontSize:12,color:u.theme.colors.gray800},domain:["dataMin","dataMax"],interval:"preserveStartEnd",tickCount:1,tickFormatter:function(e){return String(Math.round(100*(e+Number.EPSILON))/100)},allowDecimals:!0}),E.default.createElement(m.YAxis,{domain:[function(e){return Math.min(e,f||e)},function(e){return Math.max(e,f||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:u.theme.colors.gray800}}),(x===n.LOCALE.Indonesia?_e:je).map((function(e){return E.default.createElement(E.default.Fragment,null,"history"===e.name?E.default.createElement(m.Line,{key:"history",connectNulls:!0,type:"linear",dataKey:"history",stroke:e.color,dot:{stroke:e.color,fill:e.color,strokeWidth:1,r:4,strokeDasharray:""},activeDot:!0,color:e.color}):E.default.createElement(m.Line,{key:e.name,type:"linear",dataKey:e.name,stroke:e.color,dot:!1,activeDot:!1,connectNulls:!0,label:E.default.createElement(Te,{last:(null==S?void 0:S.length)?S.length-1:0,name:(null==e?void 0:e.label)||e.name}),tooltipType:"none"}))})),void 0!==h&&void 0!==f&&E.default.createElement(m.ReferenceDot,{onClick:function(){return H(!0)},x:0===h?1:h,y:f,r:4,shape:E.default.createElement(De,{ref:q,r:4}),fill:u.theme.colors.primaryBase,stroke:u.theme.colors.primaryBase}))),E.default.createElement("div",{className:"custom-chart-label"},E.default.createElement("i",null),E.default.createElement(a.Text,{size:"n1",color:u.theme.colors.gray500},s)))},exports.BabyGrowthChartPercentile=ve,exports.BabyGrowthChartZScore=Ee,exports.BabyGrowthChooseProfileDrawer=function(n){var l,i,u=n.babyProfiles,s=n.currentProfileId,d=n.onClose,h=n.onCreate,f=n.onAddMeasurement,m=n.onSwitchProfile,p=n.open,C=n.isMobile,y=n.isMyProfile,b=void 0!==y&&y,g=n.buttonGroup,x=n.newBabyValue,w=n.onNewBabyValueChange,v=o.__rest(n,["babyProfiles","currentProfileId","onClose","onCreate","onAddMeasurement","onSwitchProfile","open","isMobile","isMyProfile","buttonGroup","newBabyValue","onNewBabyValueChange"]),B=function(e){return b?E.default.createElement(E.default.Fragment,null,E.default.createElement(c.Button,{onClick:function(){null==h||h(),d()},size:"lg",color:"secondary",icon:E.default.createElement("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},E.default.createElement("path",{d:"M13.5 9.75H9.75V13.5C9.75 13.9125 9.4125 14.25 9 14.25C8.5875 14.25 8.25 13.9125 8.25 13.5V9.75H4.5C4.0875 9.75 3.75 9.4125 3.75 9C3.75 8.5875 4.0875 8.25 4.5 8.25H8.25V4.5C8.25 4.0875 8.5875 3.75 9 3.75C9.4125 3.75 9.75 4.0875 9.75 4.5V8.25H13.5C13.9125 8.25 14.25 8.5875 14.25 9C14.25 9.4125 13.9125 9.75 13.5 9.75Z",fill:"#2D87F3"}))},M("babyGrowth.drawer.createBaby")),E.default.createElement(c.Button,{size:"lg",color:"primary",onClick:function(){null==e||e(),b?null==m||m(k):null==f||f(k),d()}},M(b?"babyGrowth.drawer.switchProfile":"babyGrowth.drawer.addMeasurement"))):E.default.createElement(c.Button,{size:"lg",color:"primary",onClick:function(){null==f||f(k),null==e||e(),d()}},M("chooseBaby.button"))},G=e.useState(s||(null===(l=u[0])||void 0===l?void 0:l.id)),k=G[0],L=G[1],M=t.useTranslations().t;return C?E.default.createElement(xe,o.__assign({title:"Baby profiles",onClose:d,open:p,placement:"bottom"},v),(function(e){var t,n=e.internalClose;return E.default.createElement("div",{className:"add-profile-container"},E.default.createElement("div",{className:"profile-container"},null===(t=u||[])||void 0===t?void 0:t.map((function(e){return E.default.createElement(he,{key:e.id,profile:e,isActive:k===e.id,onChange:L})})),!b&&E.default.createElement(r.NewBabyProfileRadio,{value:x,onInputChange:w,isActive:"new"===k,onChange:L})),E.default.createElement("div",{className:"button-group"},g||B(n)))})):E.default.createElement(we,{type:"confirm",isOpen:p,onClose:d},E.default.createElement("div",{className:"header"},E.default.createElement("div",{className:"title"},E.default.createElement(a.Text,{size:"s2",type:"semiBold"},M("chooseBaby.title")),E.default.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"close-button",onClick:d},E.default.createElement("path",{d:"M5.99007 4.99067C5.79114 4.99072 5.59674 5.0501 5.43173 5.16121C5.26672 5.27233 5.1386 5.43013 5.06374 5.61444C4.98889 5.79875 4.9707 6.0012 5.0115 6.1959C5.05231 6.39061 5.15025 6.56872 5.29281 6.70747L10.5858 12.0004L5.29281 17.2934C5.19684 17.3855 5.12021 17.4959 5.06743 17.618C5.01464 17.7402 4.98676 17.8716 4.9854 18.0046C4.98405 18.1377 5.00926 18.2697 5.05954 18.3928C5.10983 18.516 5.1842 18.6279 5.27827 18.722C5.37235 18.8161 5.48426 18.8904 5.60743 18.9407C5.73061 18.991 5.86259 19.0162 5.99563 19.0149C6.12867 19.0135 6.2601 18.9856 6.38223 18.9328C6.50436 18.8801 6.61473 18.8034 6.70687 18.7075L11.9998 13.4145L17.2928 18.7075C17.385 18.8034 17.4953 18.8801 17.6175 18.9328C17.7396 18.9856 17.871 19.0135 18.0041 19.0149C18.1371 19.0162 18.2691 18.991 18.3922 18.9407C18.5154 18.8904 18.6273 18.8161 18.7214 18.722C18.8155 18.6279 18.8899 18.516 18.9401 18.3928C18.9904 18.2697 19.0156 18.1377 19.0143 18.0047C19.0129 17.8716 18.985 17.7402 18.9323 17.618C18.8795 17.4959 18.8028 17.3855 18.7069 17.2934L13.4139 12.0004L18.7069 6.70747C18.8514 6.567 18.9501 6.38616 18.99 6.18864C19.03 5.99112 19.0093 5.78614 18.9308 5.60055C18.8523 5.41497 18.7195 5.25744 18.5499 5.14861C18.3803 5.03978 18.1817 4.98473 17.9803 4.99067C17.7205 4.99841 17.4739 5.10699 17.2928 5.2934L11.9998 10.5864L6.70687 5.2934C6.61368 5.19761 6.50224 5.12146 6.37912 5.06947C6.25601 5.01747 6.12372 4.99068 5.99007 4.99067Z",fill:"#595959"})))),E.default.createElement("div",{className:"profile-container"},null===(i=u||[])||void 0===i?void 0:i.map((function(e){return E.default.createElement(he,{key:e.id,profile:e,isActive:k===e.id,onChange:L})})),!b&&E.default.createElement(r.NewBabyProfileRadio,{value:x,onInputChange:w,isActive:"new"===k,onChange:L})),E.default.createElement("div",{className:"button-group"},g||B()))},exports.BabyGrowthGender=function(e){var o=e.value,l=e.onChange,i=t.useTranslations().t;return E.default.createElement(G,null,E.default.createElement(a.Text,{size:"label2",type:"bold",style:{marginBottom:"0.5rem"}},i("babyVaccineTool.selectGender")),E.default.createElement(k,{options:[{value:n.Gender.Girl,label:i("gender.female"),content:E.default.createElement(r.Icon.GenderChooseGirl,null)},{value:n.Gender.Boy,label:i("gender.male"),content:E.default.createElement(r.Icon.GenderChooseBoy,null)}],value:o,onChange:l,className:"gender-selector"}))},exports.BabyGrowthLegend=function(e){var t=e.legends,r=e.locale;return E.default.createElement(L,null,t.map((function(e,t){return E.default.createElement(M,{key:t},E.default.createElement("span",{className:"dot",style:{backgroundColor:e.color}}),E.default.createElement(a.Text,{size:"n1",color:u.theme.colors.gray800},r===n.LOCALE.Indonesia?e["z-score"]:e.text))})))},exports.BabyGrowthProfileRadio=he,exports.BabyGrowthRecord=function(e){var r=e.measurementDate,o=void 0===r?new Date:r,l=e.weight,i=e.height,c=e.head,d=e.onEdit,f=e.birthday,m=e.dateFormat,p=void 0===m?"dd/MM/yyyy":m,C=e.locale;void 0===C&&n.LOCALE.PhilippinesEnglish;var y=t.useTranslations().t;return E.default.createElement(be,{onClick:d},E.default.createElement("div",{className:"time"},E.default.createElement("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},E.default.createElement("path",{d:"M5.64421 0.666016C5.27621 0.666016 4.97754 0.964682 4.97754 1.33268V1.99935H4.31087C3.57754 1.99935 2.97754 2.59935 2.97754 3.33268V12.666C2.97754 13.3993 3.57754 13.9993 4.31087 13.9993H13.6442C14.3775 13.9993 14.9775 13.3993 14.9775 12.666V3.33268C14.9775 2.59935 14.3775 1.99935 13.6442 1.99935H12.9775V1.33268C12.9775 0.964682 12.6789 0.666016 12.3109 0.666016C11.9429 0.666016 11.6442 0.964682 11.6442 1.33268V1.99935H6.31087V1.33268C6.31087 0.964682 6.01221 0.666016 5.64421 0.666016ZM4.31087 5.33268H13.6442V11.9993C13.6442 12.3673 13.3455 12.666 12.9775 12.666H4.97754C4.60954 12.666 4.31087 12.3673 4.31087 11.9993V5.33268Z",fill:"#8C8C8C"})),E.default.createElement(a.Text,{size:"p3",color:u.theme.colors.gray600},"".concat(s.format(o,p)," (").concat(ye(h.ageGenerate(f,o),y),")")),E.default.createElement("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"edit-button"},E.default.createElement("path",{d:"M12.7721 1.33398C12.2911 1.33398 11.8102 1.51773 11.443 1.88607L10.6643 2.66732L13.3224 5.33398L14.1011 4.55273C14.8348 3.81673 14.8348 2.62273 14.1011 1.88607C13.734 1.51773 13.253 1.33398 12.7721 1.33398ZM9.66748 3.66732L2.02539 11.334V14.0007H4.68351L12.3256 6.33398L9.66748 3.66732Z",fill:"#8C8C8C"}))),E.default.createElement("div",{className:"record"},E.default.createElement("div",{className:"record-item"},E.default.createElement("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},E.default.createElement("path",{d:"M8.44401 9.86602C8.44401 9.57146 8.68279 9.33268 8.97734 9.33268C9.2719 9.33268 9.51068 9.57146 9.51068 9.86602V11.466C9.51068 11.7606 9.2719 11.9993 8.97734 11.9993C8.68279 11.9993 8.44401 11.7606 8.44401 11.466V9.86602Z",fill:"#8C8C8C"}),E.default.createElement("path",{d:"M8.17595 3.05319C7.96767 3.26147 7.96767 3.59916 8.17595 3.80744L8.83592 4.46741C9.0442 4.67569 9.38189 4.67569 9.59017 4.46741C9.79844 4.25913 9.79844 3.92144 9.59017 3.71316L8.9302 3.05319C8.72192 2.84491 8.38423 2.84492 8.17595 3.05319Z",fill:"#8C8C8C"}),E.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.2941 3.66435C12.1261 1.98071 10.7053 0.666016 8.97738 0.666016C7.2495 0.666016 5.82868 1.9807 5.66067 3.66434L3.67054 3.86336C2.92499 3.93791 2.38724 4.61197 2.48017 5.35545L3.498 13.4981C3.5814 14.1653 4.1486 14.666 4.82104 14.666H13.1336C13.806 14.666 14.3732 14.1653 14.4567 13.4981L15.4745 5.35545C15.5674 4.61197 15.0297 3.93791 14.2841 3.86336L12.2941 3.66435ZM12.1607 4.991C11.7386 6.34768 10.473 7.33268 8.97738 7.33268C7.48176 7.33268 6.2162 6.34767 5.79403 4.99099L3.80321 5.19007L4.82104 13.3327L13.1336 13.3327L14.1514 5.19007L12.1607 4.991ZM10.9774 3.99935C10.9774 5.10392 10.0819 5.99935 8.97738 5.99935C7.87281 5.99935 6.97738 5.10392 6.97738 3.99935C6.97738 2.89478 7.87281 1.99935 8.97738 1.99935C10.0819 1.99935 10.9774 2.89478 10.9774 3.99935Z",fill:"#8C8C8C"})),E.default.createElement(a.Text,{size:"s3",color:u.theme.colors.gray800,type:"semiBold"},ge(h.localizeNumberFormat(l),"kg"))),E.default.createElement("div",{className:"record-item"},E.default.createElement("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},E.default.createElement("g",{clipPath:"url(#clip0_855_82991)"},E.default.createElement("path",{d:"M12.6055 13.9993L12.6055 1.99935C12.6055 1.26602 12.0055 0.666016 11.2721 0.666016L5.9388 0.666015C5.20547 0.666015 4.60547 1.26602 4.60547 1.99935L4.60547 13.9993C4.60547 14.7327 5.20547 15.3327 5.9388 15.3327L11.2721 15.3327C12.0055 15.3327 12.6055 14.7327 12.6055 13.9993ZM5.9388 13.9993L5.9388 1.99935L11.2721 1.99935L11.2721 3.33268L8.60547 3.33268L8.60547 4.66602L11.2721 4.66602L11.2721 5.99935L8.60547 5.99935L8.60547 7.33268L11.2721 7.33268L11.2721 8.66602L8.60547 8.66601L8.60547 9.99935L11.2721 9.99935L11.2721 11.3327L8.60547 11.3327L8.60547 12.666L11.2721 12.666L11.2721 13.9993L5.9388 13.9993Z",fill:"#8C8C8C"})),E.default.createElement("defs",null,E.default.createElement("clipPath",{id:"clip0_855_82991"},E.default.createElement("rect",{width:"16",height:"16",fill:"white",transform:"translate(16.6055) rotate(90)"})))),E.default.createElement(a.Text,{size:"s3",color:u.theme.colors.gray800,type:"semiBold"},ge(h.localizeNumberFormat(i),"cm"))),E.default.createElement("div",{className:"record-item"},E.default.createElement("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},E.default.createElement("g",{clipPath:"url(#clip0_855_82994)"},E.default.createElement("path",{d:"M9.90072 7.83268C10.361 7.83268 10.734 7.45959 10.734 6.99935C10.734 6.53911 10.361 6.16602 9.90072 6.16602C9.44048 6.16602 9.06738 6.53911 9.06738 6.99935C9.06738 7.45959 9.44048 7.83268 9.90072 7.83268Z",fill:"#8C8C8C"}),E.default.createElement("path",{d:"M6.56771 7.83268C7.02795 7.83268 7.40104 7.45959 7.40104 6.99935C7.40104 6.53911 7.02795 6.16602 6.56771 6.16602C6.10747 6.16602 5.73438 6.53911 5.73438 6.99935C5.73438 7.45959 6.10747 7.83268 6.56771 7.83268Z",fill:"#8C8C8C"}),E.default.createElement("path",{d:"M15.528 7.56C15.3614 6.55333 14.6214 5.73333 13.6547 5.44667C13.3014 4.7 12.8014 4.04667 12.1947 3.50667C11.1414 2.56667 9.7547 2 8.2347 2C6.7147 2 5.32803 2.56667 4.2747 3.50667C3.66137 4.04667 3.16137 4.70667 2.8147 5.44667C1.84803 5.73333 1.10803 6.54667 0.941367 7.56C0.9147 7.7 0.901367 7.84667 0.901367 8C0.901367 8.15333 0.9147 8.3 0.941367 8.44C1.10803 9.44667 1.84803 10.2667 2.8147 10.5533C3.16137 11.2933 3.66137 11.9467 4.26137 12.48C5.3147 13.4267 6.70803 14 8.2347 14C9.76137 14 11.1547 13.4267 12.2147 12.48C12.8147 11.9467 13.3147 11.2867 13.6614 10.5533C14.6214 10.2667 15.3614 9.45333 15.528 8.44C15.5547 8.3 15.568 8.15333 15.568 8C15.568 7.84667 15.5547 7.7 15.528 7.56ZM12.9014 9.33333C12.8347 9.33333 12.7747 9.32 12.708 9.31333C12.5747 9.76 12.3814 10.1733 12.1347 10.5533C11.3014 11.8267 9.86803 12.6667 8.2347 12.6667C6.60137 12.6667 5.16803 11.8267 4.3347 10.5533C4.08803 10.1733 3.8947 9.76 3.76137 9.31333C3.6947 9.32 3.6347 9.33333 3.56803 9.33333C2.8347 9.33333 2.2347 8.73333 2.2347 8C2.2347 7.26667 2.8347 6.66667 3.56803 6.66667C3.6347 6.66667 3.6947 6.68 3.76137 6.68667C3.8947 6.24 4.08803 5.82667 4.3347 5.44667C5.16803 4.17333 6.60137 3.33333 8.2347 3.33333C9.86803 3.33333 11.3014 4.17333 12.1347 5.44667C12.3814 5.82667 12.5747 6.24 12.708 6.68667C12.7747 6.68 12.8347 6.66667 12.9014 6.66667C13.6347 6.66667 14.2347 7.26667 14.2347 8C14.2347 8.73333 13.6347 9.33333 12.9014 9.33333ZM8.2347 11.3333C9.5747 11.3333 10.728 10.5133 11.2347 9.33333H5.2347C5.74137 10.5133 6.8947 11.3333 8.2347 11.3333Z",fill:"#8C8C8C"})),E.default.createElement("defs",null,E.default.createElement("clipPath",{id:"clip0_855_82994"},E.default.createElement("rect",{width:"16",height:"16",fill:"white",transform:"translate(0.234375)"})))),E.default.createElement(a.Text,{size:"s3",color:u.theme.colors.gray800,type:"semiBold"},ge(h.localizeNumberFormat(c),"cm")))))},exports.BabyGrowthSwitch=function(e){var t=e.switchType,n=e.onTypeChange;return E.default.createElement(I,null,E.default.createElement(c.Button,{className:"switch",size:"sm",color:t===exports.BabyGrowthSwitchChart.WHO?"primary":"ghost",onClick:function(){return n(exports.BabyGrowthSwitchChart.WHO)}},"WHO"),E.default.createElement(c.Button,{className:"switch",size:"sm",isDisabled:!0,color:t===exports.BabyGrowthSwitchChart.CDC?"primary":"ghost",onClick:function(){return n(exports.BabyGrowthSwitchChart.CDC)}},"CDC"))},exports.BabyGrowthTooltip=se,exports.ChildCard=function(o){var i=o.name,s=o.gender,d=o.age,h=o.isLoggedIn,f=void 0!==h&&h,m=o.showMenu,p=void 0!==m&&m,C=o.onEdit,y=o.onSwitch,b=o.onAdd,g=o.onRemove,x=o.className,w=t.useTranslations().t,v=e.useState(!1),B=v[0],G=v[1];return E.default.createElement(fe,{className:x},E.default.createElement("div",{"data-testid":"gender"},s===n.Gender.Boy?E.default.createElement(r.Icon.Boy,{"data-testid":"boy",id:"boy"}):E.default.createElement(r.Icon.Girl,{"data-testid":"girl",id:"girl"})),E.default.createElement("div",{className:"information"},E.default.createElement(c.Heading,{tag:"h5",fontWeight:"bold",color:u.theme.colors.gray800},l.startCase(i)||w("childCard.noName")),E.default.createElement("div",{className:"detail"},E.default.createElement("div",null,s===n.Gender.Boy?E.default.createElement(r.Icon.GenderBoy,null):E.default.createElement(r.Icon.GenderGirl,null),E.default.createElement(a.Text,{size:"p3",color:u.theme.colors.gray800,style:{textTransform:"capitalize"}},s)),E.default.createElement("div",null,E.default.createElement(r.Icon.Calendar,{size:16}),d&&E.default.createElement(a.Text,{size:"p3",color:u.theme.colors.gray800},ye(d,w))))),p&&f&&E.default.createElement(me,null,E.default.createElement(r.Icon.Kebab,{onClick:function(){return G((function(e){return!e}))}}),B&&E.default.createElement(Ce,{name:i,onClose:function(){return G(!1)},onEdit:function(){G(!1),C()},onSwitch:function(){G(!1),y()},onAdd:function(){G(!1),b()},onRemove:function(){G(!1),g()}})))},exports.LABELS_PERCENTILE=je,exports.LABELS_Z_SCORE=_e,exports.divideChartData=Ge,exports.generateGrowthChart=Be,exports.generateXAxisTicks=Me,exports.getAxisYDomain=function(e,t,n,r,a){var o=e.slice(t-1,n),l=[o[0][r],o[0][r]],i=l[0],u=l[1];return o.forEach((function(e){e[r]>u&&(u=e[r]),e[r]<i&&(i=e[r])})),[(0|i)-a,(0|u)+a]},exports.refineDataWithLine=ke,exports.transformDataToChart=Le;
package/build/care.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./types-77d76fa7.js"),r=require("./constants-ca5ea110.js");require("./tslib.es6-f7929e76.js"),require("react"),require("./lazyLoad-9057b459.js"),require("styled-components"),require("./translationsContext-af789c7c.js"),require("string-format"),require("vanilla-lazyload"),require("./cookieHelper-612b90fa.js"),require("lodash/debounce"),require("./index.styled-7f5e220d.js"),require("./index-47d10bf9.js"),require("react-range"),require("react-dom"),require("date-fns"),require("react-loading-skeleton"),require("react-id-generator"),require("lodash/shuffle"),require("./useOutsideClick-528bfd6c.js"),exports.BookingSearchBar=e.BookingSearchBar,exports.CareTypes=e.types,exports.CareConstants=r.constants;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./types-574c829c.js"),r=require("./constants-ca5ea110.js");require("./tslib.es6-f7929e76.js"),require("react"),require("./constants-5675963f.js"),require("./cookieHelper-612b90fa.js"),require("./useTranslations-589049a5.js"),require("./translationsContext-af789c7c.js"),require("string-format"),require("lodash/debounce"),require("./index.styled-747be23a.js"),require("styled-components"),require("./theme-696d81a9.js"),require("./lazyLoad-a4ccbfcc.js"),require("vanilla-lazyload"),require("./index-5dfd2bd9.js"),require("react-range"),require("react-dom"),require("date-fns"),require("./Locale-11b51016.js"),require("react-loading-skeleton"),require("react-id-generator"),require("lodash/shuffle"),require("./useOutsideClick-528bfd6c.js"),exports.BookingSearchBar=e.BookingSearchBar,exports.CareTypes=e.types,exports.CareConstants=r.constants;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./index-7dad6750.js"),r=require("./togetherComponentGlobalContext-904cd42b.js"),o=require("./index-8ac646d5.js"),t=require("./index-99b3a587.js"),a=require("./index-910a1963.js"),i=require("./index-47d10bf9.js"),s=require("./index.styled-7f5e220d.js"),n=require("./index-e0601dd6.js"),p=require("./index.styled-ed8a2b2a.js"),d=require("./index-23a0055b.js"),x=require("./index-267359a8.js");require("react"),require("./tslib.es6-f7929e76.js"),require("./lazyLoad-9057b459.js"),require("styled-components"),require("./translationsContext-af789c7c.js"),require("string-format"),require("vanilla-lazyload"),require("react-range"),require("react-id-generator"),require("date-fns"),require("react-day-picker/DayPickerInput"),require("lodash"),require("keen-slider/react"),require("react-dom"),require("lodash/debounce"),require("./useOutsideClick-528bfd6c.js"),require("date-fns/locale/en-US"),require("date-fns/locale/id"),require("date-fns/locale/vi"),require("date-fns/locale/zh-TW"),require("./getSocialList-6ea0d58d.js"),require("./zalo-e7b9d144.js"),require("./cookieHelper-612b90fa.js"),require("slugify"),require("./core-8fcc56eb.js"),require("./index-26eac243.js"),require("date-fns/locale/hi"),require("date-fns/locale/ms"),require("date-fns/locale/th"),require("smoothscroll-polyfill"),require("./routing-cb99a6a0.js"),require("./constants-ca5ea110.js"),require("./useScrollbarSize-586f6706.js"),exports.Alert=e.Alert,exports.AmpNextPage=e.AmpNextPage,exports.ArticleCard=e.ArticleCard,exports.Badge=e.Badge,exports.BorderHeading=e.BorderHeading,exports.Breadcrumbs=e.Breadcrumbs,exports.Carousel=e.Carousel,exports.CategoryCard=e.CategoryCard,exports.Checkbox=e.Checkbox,exports.CheckboxGroup=e.CheckboxGroup,exports.CookieAcceptConfirm=e.CookieAcceptConfirm,exports.DatePicker=e.DatePicker,exports.DateRangePicker=e.DateRangePicker,exports.FileDropdown=e.FileDropdown,exports.FloatButtonGroup=e.FloatButtonGroup,exports.Footer=e.Footer,exports.Grid=e.Grid,exports.IconText=e.IconText,exports.Pagination=e.Pagination,exports.Progress=e.Progress,exports.ProgressBar=e.ProgressBar,exports.RateStars=e.RateStars,exports.SeoHead=e.SeoHead,exports.Shadow=e.Shadow,exports.ShareContainer=e.ShareContainer,exports.ShareDrawer=e.ShareDrawer,exports.SideMenu=e.index,exports.Slider=e.Slider,exports.StatisticCard=e.StatisticCard,exports.SurveyThankyouCard=e.SurveyThankyouCard,exports.Table=e.index$1,exports.Tabs=e.Tabs,exports.Tag=e.Tag,exports.Toggle=e.Toggle,exports.UnderlinedLink=e.UnderlinedLink,exports.Uploader=e.Uploader,exports.Avatar=r.Avatar,exports.Popup=r.Popup,exports.Button=o.Button,exports.Heading=o.Heading,exports.Divider=t.Divider,exports.DoctorInfo=a.DoctorInfo,exports.Flag=a.Flag,exports.LanguageSwitcher=a.LanguageSwitcher,exports.MobileBottomNavigation=a.MobileBottomNavigation,exports.MobileBottomNavigationIcon=a.MobileBottomNavigationIcon,exports.NavigationLogoutPopup=a.NavigationLogoutPopup,exports.NavigationProfileButton=a.NavigationProfileButton,exports.NavigationV2=a.NavigationV2,exports.ProfilePopup=a.ProfilePopup,exports.Radio=a.Radio,exports.RadioGroup=a.RadioGroup,exports.ScrollList=a.ScrollList,exports.SurveyQuestionCard=a.SurveyQuestionCard,exports.getNavMenuContent=a.getNavMenuContent,exports.getNavMenuContentWithCache=a.getNavMenuContentWithCache,exports.Input=i.Input,exports.Container=s.Container,exports.Label=s.Label,exports.Logo=s.Logo,exports.Menu=s.Menu,exports.PureInput=s.PureInput,exports.Text=s.Text,exports.TextArea=s.TextArea,exports.TextDivider=s.TextDivider,exports.Icon=n.Icon,exports.Modal=n.Modal,exports.NewBabyProfileRadio=n.NewBabyProfileRadio,exports.RadioImageGroup=n.RadioImageGroup,exports.Drawer=p.Drawer,exports.Dropdown=d.Dropdown,exports.UserProfileNavigation=x.UserProfileNavigation,exports.UserProfileNavigationHeader=x.NavHeader,exports.UserProfileNavigationStats=x.UserStats;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./index-e0fbee88.js"),r=require("./togetherComponentGlobalContext-7313ee94.js"),o=require("./index-c7bbd0f2.js"),t=require("./index-93b70710.js"),a=require("./index-103c59b6.js"),i=require("./index-5dfd2bd9.js"),s=require("./index.styled-747be23a.js"),n=require("./index-cd9a6d72.js"),p=require("./index.styled-5695a100.js"),u=require("./index-4f5db552.js"),x=require("./index-193522ec.js");require("react"),require("./tslib.es6-f7929e76.js"),require("./lazyLoad-a4ccbfcc.js"),require("styled-components"),require("vanilla-lazyload"),require("react-range"),require("./theme-696d81a9.js"),require("react-id-generator"),require("date-fns"),require("react-day-picker/DayPickerInput"),require("lodash"),require("keen-slider/react"),require("react-dom"),require("./translationsContext-af789c7c.js"),require("string-format"),require("lodash/debounce"),require("./constants-5675963f.js"),require("./Locale-11b51016.js"),require("./useOutsideClick-528bfd6c.js"),require("date-fns/locale/en-US"),require("date-fns/locale/id"),require("date-fns/locale/vi"),require("date-fns/locale/zh-TW"),require("./useTranslations-589049a5.js"),require("./getSocialList-2a3b759f.js"),require("./zalo-e7b9d144.js"),require("./cookieHelper-612b90fa.js"),require("slugify"),require("./core-8fcc56eb.js"),require("./index-249a996e.js"),require("date-fns/locale/hi"),require("date-fns/locale/ms"),require("date-fns/locale/th"),require("smoothscroll-polyfill"),require("./routing-7d9b5fab.js"),require("./constants-ca5ea110.js"),require("./useScrollbarSize-586f6706.js"),exports.Alert=e.Alert,exports.AmpNextPage=e.AmpNextPage,exports.ArticleCard=e.ArticleCard,exports.Badge=e.Badge,exports.BorderHeading=e.BorderHeading,exports.Breadcrumbs=e.Breadcrumbs,exports.Carousel=e.Carousel,exports.CategoryCard=e.CategoryCard,exports.Checkbox=e.Checkbox,exports.CheckboxGroup=e.CheckboxGroup,exports.CookieAcceptConfirm=e.CookieAcceptConfirm,exports.DatePicker=e.DatePicker,exports.DateRangePicker=e.DateRangePicker,exports.FileDropdown=e.FileDropdown,exports.FloatButtonGroup=e.FloatButtonGroup,exports.Footer=e.Footer,exports.Grid=e.Grid,exports.IconText=e.IconText,exports.Pagination=e.Pagination,exports.Progress=e.Progress,exports.ProgressBar=e.ProgressBar,exports.RateStars=e.RateStars,exports.SeoHead=e.SeoHead,exports.Shadow=e.Shadow,exports.ShareContainer=e.ShareContainer,exports.ShareDrawer=e.ShareDrawer,exports.SideMenu=e.index,exports.Slider=e.Slider,exports.StatisticCard=e.StatisticCard,exports.SurveyThankyouCard=e.SurveyThankyouCard,exports.Table=e.index$1,exports.Tabs=e.Tabs,exports.Tag=e.Tag,exports.Toggle=e.Toggle,exports.UnderlinedLink=e.UnderlinedLink,exports.Uploader=e.Uploader,exports.Avatar=r.Avatar,exports.Popup=r.Popup,exports.Button=o.Button,exports.Heading=o.Heading,exports.Divider=t.Divider,exports.DoctorInfo=a.DoctorInfo,exports.Flag=a.Flag,exports.LanguageSwitcher=a.LanguageSwitcher,exports.MobileBottomNavigation=a.MobileBottomNavigation,exports.MobileBottomNavigationIcon=a.MobileBottomNavigationIcon,exports.NavigationLogoutPopup=a.NavigationLogoutPopup,exports.NavigationProfileButton=a.NavigationProfileButton,exports.NavigationV2=a.NavigationV2,exports.ProfilePopup=a.ProfilePopup,exports.Radio=a.Radio,exports.RadioGroup=a.RadioGroup,exports.ScrollList=a.ScrollList,exports.SurveyQuestionCard=a.SurveyQuestionCard,exports.getNavMenuContent=a.getNavMenuContent,exports.getNavMenuContentWithCache=a.getNavMenuContentWithCache,exports.Input=i.Input,exports.Container=s.Container,exports.Label=s.Label,exports.Logo=s.Logo,exports.Menu=s.Menu,exports.PureInput=s.PureInput,exports.Text=s.Text,exports.TextArea=s.TextArea,exports.TextDivider=s.TextDivider,exports.Icon=n.Icon,exports.Modal=n.Modal,exports.NewBabyProfileRadio=n.NewBabyProfileRadio,exports.RadioImageGroup=n.RadioImageGroup,exports.Drawer=p.Drawer,exports.Dropdown=u.Dropdown,exports.UserProfileNavigation=x.UserProfileNavigation,exports.UserProfileNavigationHeader=x.NavHeader,exports.UserProfileNavigationStats=x.UserStats;
@@ -0,0 +1 @@
1
+ "use strict";var o,e={"vi-VN":"hellobacsi.com","id-ID":"hellosehat.com","ms-MY":"hellodoktor.com","km-KH":"hellokrupet.com","en-PH":"hellodoctor.com.ph","th-TH":"hellokhunmor.com","my-MM":"hellosayarwon.com","zh-TW":"helloyishi.com.tw","hi-IN":"helloswasthya.com","tl-PH":"hellodoctor.com.ph","vi-VN_MB":"marrybaby.vn"},l={"vi-VN":{LOGO_TYPE:"hellobacsi",SITE_NAME:"HelloBacsi",SITE_NAME_FORMATTED:"Hello Bacsi",HOMEPAGE_IMAGE:"https://hellobacsi.com/images/country-thumbnails/VN.png",SITE_ID:"1",INSIDER_TAG:"//hellobacsivn.api.useinsider.com/ins.js?id=10003798",TOOLTIP_IMAGE:"/images/tooltips-vn.png",PREGNANCY_WEIGHT_GAIN:"cong-cu-tinh-can-nang-khi-mang-thai",BABY_POOP:"phan-tre-so-sinh-nhu-the-nao-la-tot",VACCINATION_TOOL:"lich-tiem-chung"},"en-PH":{LOGO_TYPE:"hellodoctor",SITE_NAME:"HelloDoctor",HOMEPAGE_IMAGE:"https://hellodoctor.com.ph/images/country-thumbnails/PH.png",SITE_NAME_FORMATTED:"Hello Doctor",SITE_ID:"9",CATEGORIES_TYPE:"short",INSIDER_TAG:"//hellodoctorph.api.useinsider.com/ins.js?id=10004527",TOOLTIP_IMAGE:"/images/tooltips-ph.png",PREGNANCY_WEIGHT_GAIN:"pregnancy-weight-gain-calculator",BABY_POOP:"a-visual-guide-on-baby-poop",VACCINATION_TOOL:"vaccination-tool"},"th-TH":{LOGO_TYPE:"hellokhunmor",SITE_NAME:"HelloKhunmor",HOMEPAGE_IMAGE:"https://hellokhunmor.com/images/country-thumbnails/TH.png",SITE_NAME_FORMATTED:"Hello Khunmor",SITE_ID:"3",CATEGORIES_TYPE:"long",INSIDER_TAG:"//hellokhunmor.api.useinsider.com/ins.js?id=10004524",TOOLTIP_IMAGE:"/images/tooltips-th.png",PREGNANCY_WEIGHT_GAIN:"เครื่องคำนวณน้ำหนักตัว",BABY_POOP:"สีอุจจาระของลูก-บอกถึงส",VACCINATION_TOOL:"vaccination-tool"},"km-KH":{LOGO_TYPE:"hellokrupet",SITE_NAME:"HelloKrupet",HOMEPAGE_IMAGE:"https://hellokrupet.com/images/country-thumbnails/KH.JPG",SITE_NAME_FORMATTED:"Hello Krupet",SITE_ID:"4",CATEGORIES_TYPE:"long",INSIDER_TAG:"//hellokrupet.api.useinsider.com/ins.js?id=10004523",TOOLTIP_IMAGE:"/images/tooltips-kh.png",PREGNANCY_WEIGHT_GAIN:"រង្វាស់សុខភាព/គណនាទម្ងន់ស្ត្រីពពោះ",BABY_POOP:"រង្វាស់សុខភាព/អត្ថន័យពណ៌-និងរូបរាងលាម",VACCINATION_TOOL:"រង្វាស់សុខភាព/កាលវិភាគចាក់ថ្នាំបង្កា"},"my-MM":{LOGO_TYPE:"hellosayarwon",SITE_NAME:"HelloSayarwon",HOMEPAGE_IMAGE:"https://hellosayarwon.com/images/country-thumbnails/PH.png",SITE_NAME_FORMATTED:"Hello Sayarwon",SITE_ID:"7",INSIDER_TAG:"//hellosayarwon.api.useinsider.com/ins.js?id=10004522"},"zh-TW":{LOGO_TYPE:"helloyishi",SITE_NAME:"HelloYishi",HOMEPAGE_IMAGE:"https://helloyishi.com.tw/images/country-thumbnails/TW.png",SITE_NAME_FORMATTED:"Hello Yishi",SITE_ID:"6",INSIDER_TAG:"//helloyishi.api.useinsider.com/ins.js?id=10004526",TOOLTIP_IMAGE:"/images/tooltips-tw.png",PREGNANCY_WEIGHT_GAIN:"pregnancy-weight-gain-calculator",BABY_POOP:"how-does-babies-poop-look-like",VACCINATION_TOOL:"vaccination-tool"},"id-ID":{LOGO_TYPE:"hellosehat",SITE_NAME:"HelloSehat",HOMEPAGE_IMAGE:"https://hellosehat.com/images/country-thumbnails/ID.png",SITE_NAME_FORMATTED:"Hello Sehat",SITE_ID:"2",INSIDER_TAG:"//hellosehat.api.useinsider.com/ins.js?id=10003799",TOOLTIP_IMAGE:"/images/tooltips-id.png",PREGNANCY_WEIGHT_GAIN:"kalkulator-kenaikan-berat-badan-ibu-hamil",BABY_POOP:"warna-feses-bayi-normal",VACCINATION_TOOL:"jadwal-imunisasi"},"hi-IN":{LOGO_TYPE:"helloswasthya",SITE_NAME:"HelloSwasthya",HOMEPAGE_IMAGE:"https://helloswasthya.com/images/country-thumbnails/IN.png",SITE_NAME_FORMATTED:"हैलो स्वास्थ्य",SITE_ID:"8",CATEGORIES_TYPE:"long",INSIDER_TAG:"//helloswasthya.api.useinsider.com/ins.js?id=10004498",TOOLTIP_IMAGE:"/images/tooltips-in.png",PREGNANCY_WEIGHT_GAIN:"garbhavastha-weight-calculator",BABY_POOP:"visual-guide-on-baby-poop",VACCINATION_TOOL:"vaccination-tool"},"ms-MY":{LOGO_TYPE:"hellodoktor",SITE_NAME:"HelloDoktor",HOMEPAGE_IMAGE:"https://hellodoktor.com/images/country-thumbnails/MY.png",SITE_NAME_FORMATTED:"Hello Doktor",SITE_ID:"5",INSIDER_TAG:"//hellodoktor.api.useinsider.com/ins.js?id=10004525",TOOLTIP_IMAGE:"/images/tooltips-my.png",PREGNANCY_WEIGHT_GAIN:"kalkulator-tambah-berat-badan-hamil",BABY_POOP:"kenali-najis-bayi-anda",VACCINATION_TOOL:"alat-kesihatan-vaksin"},"tl-PH":{LOGO_TYPE:"hellodoctor",SITE_NAME:"HelloDoctor",HOMEPAGE_IMAGE:"https://hellodoctor.com.ph/images/country-thumbnails/PH.png",SITE_NAME_FORMATTED:"Hello Doctor",SITE_ID:"9",CATEGORIES_TYPE:"short",INSIDER_TAG:"//hellodoctorph.api.useinsider.com/ins.js?id=10004527",TOOLTIP_IMAGE:"/fil/images/tooltips-ph.png",PREGNANCY_WEIGHT_GAIN:"pregnancy-weight-gain-calculator",BABY_POOP:"a-visual-guide-on-baby-poop",VACCINATION_TOOL:"vaccination-tool",ABOUT_US_IMAGE:"/fil/images/aboutus/PH.png"}},i={"vi-VN":{PRIVACY:"/privacy",TERM_OF_USE:"/dieu-khoan-su-dung",PRIVACY_POLICY:"/chinh-sach-quyen-rieng-tu",EDITORIAL_CORRECTIONS_POLICY:"/chinh-sach-bien-tap-chinh-sua",ADVERTISING_SPONSOR_POLICY:"/chinh-sach-quang-cao-tai-tro",POLICIES:"/chinh-sach",FAQS:"/thong-tin-quan-trong",SITEMAP:"/sitemap",ABOUT_US:"/about-us",ADVERTISEMENT:"/quang-cao-voi-chung-toi",CONTACT_US:"/lien-he",ABOUT_GO_CARE:"/about-go-care",HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/hello-bacsi/",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:"/tieu-chuan-cong-dong",TOGETHER:"/community"},"km-KH":{POLICIES:"/policies",TERM_OF_USE:"/ខនិងលក្ខខណ្ឌ",PRIVACY_POLICY:"/គោលការណ៍ឯកជនភាព",EDITORIAL_CORRECTIONS_POLICY:"/គោលការណ៍ខ្លឹមសារមាតិកា",ADVERTISING_SPONSOR_POLICY:"/គោលការណ៍ផ្សាយពាណិជ្ជកម",FAQS:"/faqs",SITEMAP:"/sitemap",ABOUT_US:"/about-us",ADVERTISEMENT:"/advertisement",CONTACT_US:"/contact-us",ABOUT_GO_CARE:"/about-go-care",HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"/#",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:"/គោលការណ៍ណែនាំសហគមន៍",TOGETHER:"/community"},"en-PH":{POLICIES:"/policies",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-and-corrections-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-and-sponsor-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:null,CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:"/community-guidelines",TOGETHER:"/community"},"my-MM":{POLICIES:"/polisi-terma-syarat",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:"/pengiklanan",CONTACT_US:"/hubungi-kami",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:" https://hellohealthgroup.com/hello-doktor/",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:"/panduan-komuniti",TOGETHER:"/community"},"zh-TW":{POLICIES:"/policies",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-and-corrections-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-and-sponsor-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:"/advertising",CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,FACILITY:"/facility",HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:null,TOGETHER:"/community"},"id-ID":{POLICIES_EN:"/policies",TERM_OF_USE:"/kebijakan-pengguna",PRIVACY_POLICY:"/kebijakan-privasi",EDITORIAL_CORRECTIONS_POLICY:"/kebijakan-editorial",ADVERTISING_SPONSOR_POLICY:"/kebijakan-iklan",POLICIES:"/kebijakan",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:null,CONTACT_US:"/kontak-kami",CONTACT_EN:"/contact",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/hello-sehat/",RECRUITMENT:"https://hellohealthgroup.com/careers/",EDITORIAL_POLICY:"/edit-id",EDITORIAL_POLICY_EN:"/edit-en",COMMUNITY_GUIDELINE:"/panduan-komunitas",TOGETHER:"/community"},"hi-IN":{POLICIES:"/policies",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-and-corrections-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-and-sponsor-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:null,CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:null,TOGETHER:"/community"},"ms-MY":{POLICIES:"/polisi-terma-syarat",TERM_OF_USE:"/terma-dan-syarat",PRIVACY_POLICY:"/polisi-privasi",EDITORIAL_CORRECTIONS_POLICY:"/polisi-editorial",ADVERTISING_SPONSOR_POLICY:"/polisi-pengiklanan",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:"/pengiklanan",CONTACT_US:"/hubungi-kami",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:" https://hellohealthgroup.com/hello-doktor/",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:"/panduan-komuniti",TOGETHER:"/community"},"th-TH":{POLICIES_EN:"/policies",TERM_OF_USE:"/เงื่อนใขการใช้งาน",PRIVACY_POLICY:"/นโยบายความเป็นส่วนตัว",EDITORIAL_CORRECTIONS_POLICY:"/นโยบายบรรณธิการ",ADVERTISING_SPONSOR_POLICY:"/นโยบายการโฆษณาและผู้สนับสนุน",POLICIES:"/นโยบาย",FAQS:"/คำถามที่พบบ่อย",SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:"/ลงโฆษณากับเรา",CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:null,TOGETHER:"/community"},"tl-PH":{POLICIES:"/policies",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-and-corrections-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-and-sponsor-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:null,CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:"/community-guidelines",TOGETHER:"/community"}},n=["vi-VN","id-ID","en-PH","tl-PH","th-TH","ms-MY","my-MM"],t=["vi-VN","id-ID","en-PH","tl-PH","zh-TW"],a=["vi-VN","id-ID"],s=("undefined"!=typeof window?function(o){var e,l;return null!==(l=null===(e=null==o?void 0:o.match(/^https?:\/\/([^/?#]+)(?:[/?#]|$)/i))||void 0===e?void 0:e[1])&&void 0!==l?l:""}(null===(o=null===window||void 0===window?void 0:window.location)||void 0===o?void 0:o.href):"").split("."),E=process.env.NEXT_PUBLIC_DEPLOY_ENV?"production"===process.env.NEXT_PUBLIC_DEPLOY_ENV:s&&!("dev"===s[0]||"dev"===s[1]||"staging"===s[0]||"staging-id"===s[0]||"staging-id-hotfix"===s[0]||"localhost"===s[0].split(":")[0]||"staging"===s[1]||"fe"===s[0]||"fe-hotfix"===s[0]||"discover"===s[0]||"discover-hotfix"===s[0]),c={"vi-VN":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"km-KH":[{type:"link",rel:"icon",href:"/by-locales/km-KH/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/km-KH/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/km-KH/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/km-KH/icon-270x270.png"}],"en-PH":[{type:"link",rel:"icon",href:"/by-locales/en-PH/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/en-PH/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon",href:"/by-locales/en-PH/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/en-PH/icon-270x270.png"}],"id-ID":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"ms-MY":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"th-TH":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"my-MM":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"zh-TW":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"hi-IN":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],marryBaby:[{type:"link",rel:"shortcut icon",href:"/favicons/favicon.ico"},{type:"link",rel:"icon",href:"/favicons/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/favicons/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/favicons/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/favicons/icon-180x180.png"}]},I=Object.freeze({__proto__:null,USER_GEOLOCATION_COORDINATES_COOKIE:"userGeoLocationCoordinates",domainLocales:e,LOCALE_SPECS:l,STATIC_PAGES:i,UP_BASEPATH:"user",TOGETHER_LOCALES:n,CARE_LOCALES:t,CARE_BOOKING_LOCALES:a,isProduction:E,FAVICONS:c});exports.CARE_BOOKING_LOCALES=a,exports.CARE_LOCALES=t,exports.FAVICONS=c,exports.LOCALE_SPECS=l,exports.STATIC_PAGES=i,exports.TOGETHER_LOCALES=n,exports.UP_BASEPATH="user",exports.USER_GEOLOCATION_COORDINATES_COOKIE="userGeoLocationCoordinates",exports.constants=I,exports.domainLocales=e,exports.isProduction=E;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var O=require("./constants-5675963f.js");exports.CARE_BOOKING_LOCALES=O.CARE_BOOKING_LOCALES,exports.CARE_LOCALES=O.CARE_LOCALES,exports.FAVICONS=O.FAVICONS,exports.LOCALE_SPECS=O.LOCALE_SPECS,exports.STATIC_PAGES=O.STATIC_PAGES,exports.TOGETHER_LOCALES=O.TOGETHER_LOCALES,exports.UP_BASEPATH=O.UP_BASEPATH,exports.USER_GEOLOCATION_COORDINATES_COOKIE=O.USER_GEOLOCATION_COORDINATES_COOKIE,exports.domainLocales=O.domainLocales,exports.isProduction=O.isProduction;
package/build/core.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./useHealthToolCache-c3e430e3.js"),r=require("./lazyLoad-9057b459.js"),t=require("./useScrollbarSize-586f6706.js"),o=require("./localizeNumberFormat-d34a738e.js"),s=require("./cookieHelper-612b90fa.js");require("react"),require("styled-components");var a=require("./number-87b13133.js"),i=require("./routing-cb99a6a0.js"),l=require("./getSocialList-6ea0d58d.js");require("./tslib.es6-f7929e76.js"),require("./core-8fcc56eb.js"),require("./translationsContext-af789c7c.js"),require("string-format"),require("vanilla-lazyload"),require("lodash/debounce"),require("date-fns"),exports.Types=e.index,exports.formatHealthTool=e.formatHealthTool,exports.getDynamicHealthTool=e.getDynamicHealthTool,exports.getDynamicHealthToolWithCache=e.getDynamicHealthToolWithCache,exports.useFbDataLayer=e.useFbDataLayer,exports.useHealthToolsCache=e.useHealthToolsCache,exports.Breakpoints=r.Breakpoints,exports.Constants=r.constants,exports.MediaQueries=r.MediaQueries,exports.fadeIn=r.fadeIn,exports.formatUrlWithPageParam=r.formatUrlWithPageParam,exports.getBoundariesFromMediaQueryKey=r.getBoundariesFromMediaQueryKey,exports.getPopupWrapperDom=r.getPopupWrapperDom,Object.defineProperty(exports,"lazyLoadInstance",{enumerable:!0,get:function(){return r.lazyLoadInstance}}),exports.makeParams=r.makeParams,exports.slideInDown=r.slideInDown,exports.slideInLeft=r.slideInLeft,exports.slideInRight=r.slideInRight,exports.slideInUp=r.slideInUp,exports.slideOutDown=r.slideOutDown,exports.slideOutLeft=r.slideOutLeft,exports.slideOutRight=r.slideOutRight,exports.slideOutUp=r.slideOutUp,exports.startCase=r.startCase,exports.theme=r.theme,exports.toggleNoScroll=r.toggleNoScroll,exports.useTranslations=r.useTranslations,exports.MEASURE_ELEMENT_CLASS=t.MEASURE_ELEMENT_CLASS,exports.useScrollbarSize=t.useScrollbarSize,exports.ageGenerate=o.ageGenerate,exports.convertLocalizedStringToNumber=o.convertLocalizedStringToNumber,exports.localizeNumberFormat=o.localizeNumberFormat,exports.deleteCookie=s.deleteCookie,exports.getCookie=s.getCookie,exports.setCookie=s.setCookie,exports.abbreviateNumber=a.abbreviateNumber,exports.getCareApiDomain=i.getCareApiDomain,exports.getCurrentBaseUrl=i.getCurrentBaseUrl,exports.getCurrentSsoUrl=i.getCurrentSsoUrl,exports.getDiscoverApiDomain=i.getDiscoverApiDomain,exports.getTogetherApiDomain=i.getTogetherApiDomain,exports.getSocialList=l.getSocialList;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./index-57503957.js"),r=require("./constants-5675963f.js"),t=require("./useTranslations-589049a5.js"),o=require("./useScrollbarSize-586f6706.js"),s=require("./useHealthToolCache-f0e420ac.js"),a=require("./localizeNumberFormat-d34a738e.js"),i=require("./lazyLoad-a4ccbfcc.js"),l=require("./cookieHelper-612b90fa.js");require("react"),require("styled-components");var n=require("./theme-696d81a9.js"),u=require("./number-87b13133.js"),p=require("./routing-7d9b5fab.js"),c=require("./getDynamicHealthTool-87cf062a.js"),x=require("./getSocialList-2a3b759f.js");require("./Locale-11b51016.js"),require("./translationsContext-af789c7c.js"),require("string-format"),require("lodash/debounce"),require("./tslib.es6-f7929e76.js"),require("date-fns"),require("vanilla-lazyload"),require("./core-8fcc56eb.js"),exports.Types=e.index,exports.Constants=r.constants,exports.useTranslations=t.useTranslations,exports.MEASURE_ELEMENT_CLASS=o.MEASURE_ELEMENT_CLASS,exports.useScrollbarSize=o.useScrollbarSize,exports.useFbDataLayer=s.useFbDataLayer,exports.useHealthToolsCache=s.useHealthToolsCache,exports.ageGenerate=a.ageGenerate,exports.convertLocalizedStringToNumber=a.convertLocalizedStringToNumber,exports.localizeNumberFormat=a.localizeNumberFormat,exports.Breakpoints=i.Breakpoints,exports.MediaQueries=i.MediaQueries,exports.fadeIn=i.fadeIn,exports.formatUrlWithPageParam=i.formatUrlWithPageParam,exports.getBoundariesFromMediaQueryKey=i.getBoundariesFromMediaQueryKey,exports.getPopupWrapperDom=i.getPopupWrapperDom,Object.defineProperty(exports,"lazyLoadInstance",{enumerable:!0,get:function(){return i.lazyLoadInstance}}),exports.makeParams=i.makeParams,exports.slideInDown=i.slideInDown,exports.slideInLeft=i.slideInLeft,exports.slideInRight=i.slideInRight,exports.slideInUp=i.slideInUp,exports.slideOutDown=i.slideOutDown,exports.slideOutLeft=i.slideOutLeft,exports.slideOutRight=i.slideOutRight,exports.slideOutUp=i.slideOutUp,exports.startCase=i.startCase,exports.toggleNoScroll=i.toggleNoScroll,exports.deleteCookie=l.deleteCookie,exports.getCookie=l.getCookie,exports.setCookie=l.setCookie,exports.theme=n.theme,exports.abbreviateNumber=u.abbreviateNumber,exports.getCareApiDomain=p.getCareApiDomain,exports.getCurrentBaseUrl=p.getCurrentBaseUrl,exports.getCurrentSsoUrl=p.getCurrentSsoUrl,exports.getDiscoverApiDomain=p.getDiscoverApiDomain,exports.getTogetherApiDomain=p.getTogetherApiDomain,exports.formatHealthTool=c.formatHealthTool,exports.getDynamicHealthTool=c.getDynamicHealthTool,exports.getDynamicHealthToolWithCache=c.getDynamicHealthToolWithCache,exports.getSocialList=x.getSocialList;
File without changes
package/build/ecom.js ADDED
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e,o=require("./tslib.es6-f7929e76.js"),t=require("./theme-696d81a9.js"),i=require("./constants-5675963f.js"),l=Object.freeze({__proto__:null}),n=Object.freeze({__proto__:null}),a="development"===process.env.NEXT_PUBLIC_DEPLOY_ENV,r="undefined"==typeof window,s=process.env.NEXT_PUBLIC_DEPLOY_LOCALE?process.env.NEXT_PUBLIC_DEPLOY_LOCALE:"vi-VN",u=process.env.NEXT_PUBLIC_GOOGLE_MAP_KEY||"",c=process.env.NEXT_PUBLIC_ADMIN_GOOGLE_LOCATION_KEY,d=process.env.NEXT_PUBLIC_GOOGLE_CLIENT_ID||"289442006438-cihobuq1h3r4426pur7u0e43fqdnep59.apps.googleusercontent.com",m={"vi-VN":"hellobacsi.com","id-ID":"hellosehat.com","ms-MY":"hellodoktor.com","km-KH":"hellokrupet.com","en-PH":"hellodoctor.com.ph","th-TH":"hellokhunmor.com","my-MM":"hellosayarwon.com","zh-TW":"helloyishi.com.tw","hi-IN":"helloswasthya.com"},p=a?"http://localhost:3001":i.isProduction?"https://".concat(m[s]):"https://discover.".concat(m[s]),_=i.isProduction?"https://wp.".concat(m[s],"/"):"https://staging.".concat(m[s],"/"),h=process.env.NEXT_PUBLIC_TOGETHER_API_URL&&""!==process.env.NEXT_PUBLIC_TOGETHER_API_URL?process.env.NEXT_PUBLIC_TOGETHER_API_URL:"https://together.".concat(m[s],"/"),E="".concat(p,"/community"),v=process.env.NEXT_PUBLIC_SSO_URL||"http://staging-id.hellobacsi.com/";!function(e){e[e.FEMALE=0]="FEMALE",e[e.MALE=1]="MALE",e[e.ANY=2]="ANY"}(e||(e={}));var I={"vi-VN":{HOME:function(){return JSON.stringify({"@context":"https://schema.org","@graph":[{"@id":"https://hellobacsi.com/shop/#website","@type":"WebSite",description:"Hello Bacsi - Health Information",inLanguage:"vi-VN",name:"Hello Bacsi",potentialAction:[{"@type":"SearchAction","query-input":"required name=search_term_string",target:"https://hellobacsi.com/shop/tim-kiem/?keyword={search_term_string}"}],url:"https://hellobacsi.com/shop/"}]})},CATEGORY:function(e,o,t){return void 0===e&&(e=""),void 0===o&&(o=0),void 0===t&&(t=[]),JSON.stringify({"@context":"https://schema.org","@graph":[{"@id":"https://hellobacsi.com/shop/#breadcrumb","@type":"BreadcrumbList",itemListElement:[{"@type":"ListItem",item:{"@id":"https://hellobacsi.com/shop/","@type":"WebPage",name:"Hello Bacsi",url:"https://hellobacsi.com/shop/"}},{"@type":"ListItem",item:{"@id":"https://hellobacsi.com/shop/danh-muc","@type":"WebPage",name:"Hello Bacsi - Danh Muc",url:"https://hellobacsi.com/shop/danh-muc"}}]},{"@type":"ItemList",url:e,numberOfItems:o,itemListElement:t}]})},BRAND:function(e,o,t){return void 0===e&&(e=""),void 0===o&&(o=0),void 0===t&&(t=[]),JSON.stringify({"@context":"https://schema.org","@graph":[{"@id":"https://hellobacsi.com/shop/#breadcrumb","@type":"BreadcrumbList",itemListElement:[{"@type":"ListItem",item:{"@id":"https://hellobacsi.com/shop/","@type":"WebPage",name:"Hello Bacsi",url:"https://hellobacsi.com/shop/"}},{"@type":"ListItem",item:{"@id":"https://hellobacsi.com/shop/thuong-hieu","@type":"WebPage",name:"Hello Bacsi - Thuong Hieu",url:"https://hellobacsi.com/shop/thuong-hieu"}}]},{"@type":"ItemList",url:e,numberOfItems:o,itemListElement:t}]})},BRAND_DETAIL:function(e,o,t){return void 0===e&&(e=""),void 0===o&&(o=0),JSON.stringify({"@context":"https://schema.org","@graph":[{"@id":"https://hellobacsi.com/shop/thuong-hieu/#brand","@type":"BrandDetail",itemListElement:[{"@type":"Item",item:{"@id":"https://hellobacsi.com/shop".concat(e),"@type":"WebPage",name:"Hello Bacsi - Thuong Hieu",url:"https://hellobacsi.com/shop".concat(e)}}]},{"@type":"BrandDetail",url:"https://hellobacsi.com/shop".concat(e),numberOfItems:o,itemListElement:null!=t?t:{}}]})},PRODUCT_DETAIL:function(e,o,t){return void 0===e&&(e=""),void 0===o&&(o=0),JSON.stringify({"@context":"https://schema.org","@graph":[{"@id":"https://hellobacsi.com/shop/san-pham/#product","@type":"ProductDetail",itemListElement:[{"@type":"Item",item:{"@id":"https://hellobacsi.com/shop/san-pham/".concat(e),"@type":"WebPage",name:"Hello Bacsi - Thuong Hieu",url:"https://hellobacsi.com/shop/san-pham/".concat(e)}}]},{"@type":"BrandDetail",url:e,numberOfItems:o,itemListElement:null!=t?t:{}}]})}}},T=Object.freeze({__proto__:null,isDevelopment:a,IS_SSR:r,locale:s,BEARER_TOKEN_COOKIE:"hhg_user_token",BEARER_ADMIN_TOKEN_COOKIE:"hhg_admin_token",GUEST_CART_ID_COOKIE:"hhg_guest_cart_id",GOOGLE_MAP_KEY:u,GOOGLE_ADMIN_LOCATION_KEY:c,GOOGLE_CLIENT_ID:d,GOOGLE_CALENDAR_API_KEY:"",basePath:"shop",SSO_USER_BASE_PATH:"user",CARE_BASE_PATH:"care",COMMUNITY_BASE_PATH:"community",HEALTH_TOOLs_BASE_PATH:"health-tools",NOTIFICATION_TIME_OUT:3e3,DOMAIN_LOCALES:m,DISCOVER_URL_FE:p,DISCOVER_URL_BE:_,TOGETHER_URL_BE:h,TOGETHER_URL_FE:E,SSO_URL:v,DISCOVERY_FOOTER_URL:"#",HEALTH_CARE_FOOTER_URL:"#",HEALTH_TOOLS_FOOTER_URL:"#",HEALTH_TOGETHER_FOOTER_URL:"#",POLICIES_FOOTER_URL:"#",FAQ_FOOTER_URL:"#",SITEMAP_FOOTER_URL:"#",ABOUT_US_FOOTER_URL:"#",EXECUTIVE_BIOS_FOOTER_URL:"#",ADVERTISING_FOOTER_URL:"#",CONTACT_US_FOOTER_URL:"#",ABOUT_GO_CARE_FOOTER_URL:"#",get Gender(){return e},EMAIL_REGEX:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,COUNTRY_SITENAME:{ID:"Hello Sehat",TH:"Hello Khunmor",MY:"Hello Doktor",KH:"Hello Krupet",TW:"Hello Yishi",MM:"Hello Sayarwon",IN:"Hello Swasthya",VN:"Hello Bacsi",PH:"Hello Doctor"},LOCALE_SPECS:{"vi-VN":{LOGO_TYPE:"hellobacsi",SITE_NAME:"HelloBacsi",SITE_NAME_FORMATTED:"Hello Bacsi",HOMEPAGE_IMAGE:"https://hellobacsi.com/images/country-thumbnails/VN.png",SITE_ID:"1",INSIDER_TAG:"//hellobacsivn.api.useinsider.com/ins.js?id=10003798",TOOLTIP_IMAGE:"/images/tooltips-vn.png"},"en-PH":{LOGO_TYPE:"hellodoctor",SITE_NAME:"HelloDoctor",HOMEPAGE_IMAGE:"https://hellodoctor.com.ph/images/country-thumbnails/PH.png",SITE_NAME_FORMATTED:"Hello Doctor",SITE_ID:"9",CATEGORIES_TYPE:"short",INSIDER_TAG:"//hellodoctorph.api.useinsider.com/ins.js?id=10004527",TOOLTIP_IMAGE:"/images/tooltips-ph.png"},"th-TH":{LOGO_TYPE:"hellokhunmor",SITE_NAME:"HelloKhunmor",HOMEPAGE_IMAGE:"https://hellokhunmor.com/images/country-thumbnails/TH.png",SITE_NAME_FORMATTED:"Hello Khunmor",SITE_ID:"3",CATEGORIES_TYPE:"long",INSIDER_TAG:"//hellokhunmor.api.useinsider.com/ins.js?id=10004524",TOOLTIP_IMAGE:"/images/tooltips-th.png"},"km-KH":{LOGO_TYPE:"hellokrupet",SITE_NAME:"HelloKrupet",HOMEPAGE_IMAGE:"https://hellokrupet.com/images/country-thumbnails/KH.JPG",SITE_NAME_FORMATTED:"Hello Krupet",SITE_ID:"4",CATEGORIES_TYPE:"long",INSIDER_TAG:"//hellokrupet.api.useinsider.com/ins.js?id=10004523",TOOLTIP_IMAGE:"/images/tooltips-kh.png"},"my-MM":{LOGO_TYPE:"hellosayarwon",SITE_NAME:"HelloSayarwon",HOMEPAGE_IMAGE:"https://hellosayarwon.com/images/country-thumbnails/PH.png",SITE_NAME_FORMATTED:"Hello Sayarwon",SITE_ID:"7",INSIDER_TAG:"//hellosayarwon.api.useinsider.com/ins.js?id=10004522"},"zh-TW":{LOGO_TYPE:"helloyishi",SITE_NAME:"HelloYishi",HOMEPAGE_IMAGE:"https://helloyishi.com.tw/images/country-thumbnails/TW.png",SITE_NAME_FORMATTED:"Hello Yishi",SITE_ID:"6",INSIDER_TAG:"//helloyishi.api.useinsider.com/ins.js?id=10004526",TOOLTIP_IMAGE:"/images/tooltips-tw.png"},"id-ID":{LOGO_TYPE:"hellosehat",SITE_NAME:"HelloSehat",HOMEPAGE_IMAGE:"https://hellosehat.com/images/country-thumbnails/ID.png",SITE_NAME_FORMATTED:"Hello Sehat",SITE_ID:"2",INSIDER_TAG:"//hellosehat.api.useinsider.com/ins.js?id=10003799",TOOLTIP_IMAGE:"/images/tooltips-id.png"},"hi-IN":{LOGO_TYPE:"helloswasthya",SITE_NAME:"HelloSwasthya",HOMEPAGE_IMAGE:"https://helloswasthya.com/images/country-thumbnails/IN.png",SITE_NAME_FORMATTED:"हैलो स्वास्थ्य",SITE_ID:"8",CATEGORIES_TYPE:"long",INSIDER_TAG:"//helloswasthya.api.useinsider.com/ins.js?id=10004498",TOOLTIP_IMAGE:"/images/tooltips-in.png"},"ms-MY":{LOGO_TYPE:"hellodoktor",SITE_NAME:"HelloDoktor",HOMEPAGE_IMAGE:"https://hellodoktor.com/images/country-thumbnails/MY.png",SITE_NAME_FORMATTED:"Hello Doktor",SITE_ID:"5",INSIDER_TAG:"//hellodoktor.api.useinsider.com/ins.js?id=10004525",TOOLTIP_IMAGE:"/images/tooltips-my.png"}},SOCIAL_MEDIA:{"vi-VN":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/hellobacsi/",INSTAGRAM:"https://www.instagram.com/hellobacsi/",TWITTER:null,YOUTUBE:"https://www.youtube.com/channel/UCYHzHDXngnB7jkmcQgXwE0w"},"en-PH":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/HelloDoctorPH/",INSTAGRAM:"https://www.instagram.com/hellodoctor_ph/",TWITTER:null},"km-KH":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/hellokrupet/",INSTAGRAM:"https://www.instagram.com/hellokrupetofficial/",TWITTER:null,YOUTUBE:"https://www.youtube.com/channel/UCVK4p9YPIMkmoerk3X-y-TQ"},"ms-MY":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/HelloDoktorMY/",INSTAGRAM:"https://www.instagram.com/_hellodoktor_/",TWITTER:null},"id-ID":{LINKEDIN:"https://www.linkedin.com/company/hello-sehat/",FACEBOOK:"https://www.facebook.com/hellosehat",INSTAGRAM:"https://www.instagram.com/hellosehat/",TWITTER:"https://twitter.com/HelloSehat"},"my-MM":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/hellosayarwon/",INSTAGRAM:"https://www.facebook.com/hellosayarwon/",TWITTER:null},"zh-TW":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/helloyishi/",INSTAGRAM:"https://www.instagram.com/helloyishi/",TWITTER:null},"hi-IN":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/HelloSwasthya/",INSTAGRAM:"https://www.instagram.com/hello_swasthya/",TWITTER:null},"th-TH":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/hellokhunmor/",INSTAGRAM:"https://www.instagram.com/hellokhunmor/",TWITTER:null,YOUTUBE:"https://www.youtube.com/channel/UCbdbow4UhKfa7rqIhclNPIQ/"}},FLAG_LINKS:{ID:"https://hellosehat.com/",TH:"https://hellokhunmor.com/",MY:"https://hellodoktor.com/",KH:"https://hellokrupet.com/",TW:"https://helloyishi.com.tw/",MM:"https://hellosayarwon.com/",IN:"https://helloswasthya.com/",VN:"https://hellobacsi.com/",PH:"https://hellodoctor.com.ph/"},STATIC_PAGES:{"vi-VN":{PRIVACY:"/privacy",TERM_OF_USE:"/dieu-khoan-su-dung",PRIVACY_POLICY:"/chinh-sach-quyen-rieng-tu",EDITORIAL_CORRECTIONS_POLICY:"/chinh-sach-bien-tap-chinh-sua",ADVERTISING_SPONSOR_POLICY:"/chinh-sach-quang-cao-tai-tro",POLICIES:"/chinh-sach",FAQS:"/thong-tin-quan-trong",SITEMAP:"/sitemap",ABOUT_US:"/about-us",ADVERTISEMENT:"/quang-cao-voi-chung-toi",CONTACT_US:"/lien-he",ABOUT_GO_CARE:"/about-go-care",HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/hello-bacsi/",RECRUITMENT:"https://hellohealthgroup.com/careers/"},"km-KH":{POLICIES:"/policies",TERM_OF_USE:"/ខនិងលក្ខខណ្ឌ",PRIVACY_POLICY:"/គោលការណ៍ឯកជនភាព",EDITORIAL_CORRECTIONS_POLICY:"/គោលការណ៍ខ្លឹមសារមាតិកា",ADVERTISING_SPONSOR_POLICY:"/គោលការណ៍ផ្សាយពាណិជ្ជកម",FAQS:"/faqs",SITEMAP:"/sitemap",ABOUT_US:"/about-us",ADVERTISEMENT:"/advertisement",CONTACT_US:"/contact-us",ABOUT_GO_CARE:"/about-go-care",HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"/#",RECRUITMENT:"https://hellohealthgroup.com/careers/"},"en-PH":{POLICIES:"/policies",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-and-corrections-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-and-sponsor-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:null,CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/"},"my-MM":{POLICIES:"/polisi-terma-syarat",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:"/pengiklanan",CONTACT_US:"/hubungi-kami",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:" https://hellohealthgroup.com/hello-doktor/",RECRUITMENT:"https://hellohealthgroup.com/careers/"},"zh-TW":{POLICIES:"/policies",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-and-corrections-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-and-sponsor-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:"/advertising",CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,FACILITY:"/facility",HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/"},"id-ID":{POLICIES_EN:"/policies",TERM_OF_USE:"/kebijakan-pengguna",PRIVACY_POLICY:"/kebijakan-privasi",EDITORIAL_CORRECTIONS_POLICY:"/kebijakan-editorial",ADVERTISING_SPONSOR_POLICY:"/kebijakan-iklan",POLICIES:"/kebijakan",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:null,CONTACT_US:"/kontak-kami",CONTACT_EN:"/contact",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/hello-sehat/",RECRUITMENT:"https://hellohealthgroup.com/careers/",EDITORIAL_POLICY:"/edit-id",EDITORIAL_POLICY_EN:"/edit-en"},"hi-IN":{POLICIES:"/policies",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-and-corrections-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-and-sponsor-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:null,CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/"},"ms-MY":{POLICIES:"/polisi-terma-syarat",TERM_OF_USE:"/terma-dan-syarat",PRIVACY_POLICY:"/polisi-privasi",EDITORIAL_CORRECTIONS_POLICY:"/polisi-editorial",ADVERTISING_SPONSOR_POLICY:"/polisi-pengiklanan",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:"/pengiklanan",CONTACT_US:"/hubungi-kami",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:" https://hellohealthgroup.com/hello-doktor/",RECRUITMENT:"https://hellohealthgroup.com/careers/"},"th-TH":{POLICIES_EN:"/policies",TERM_OF_USE:"/เงื่อนใขการใช้งาน",PRIVACY_POLICY:"/นโยบายความเป็นส่วนตัว",EDITORIAL_CORRECTIONS_POLICY:"/นโยบายบรรณธิการ",ADVERTISING_SPONSOR_POLICY:"/นโยบายการโฆษณาและผู้สนับสนุน",POLICIES:"/นโยบาย",FAQS:"/คำถามที่พบบ่อย",SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:"/ลงโฆษณากับเรา",CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/"}},FAVICONS:{"vi-VN":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"km-KH":[{type:"link",rel:"icon",href:"/by-locales/km-KH/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/km-KH/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/km-KH/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/km-KH/icon-270x270.png"}],"en-PH":[{type:"link",rel:"icon",href:"/by-locales/en-PH/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/en-PH/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon",href:"/by-locales/en-PH/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/en-PH/icon-270x270.png"}],"id-ID":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"ms-MY":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"th-TH":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"my-MM":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"zh-TW":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"hi-IN":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}]},LOCALE_COUNTRY:{"vi-VN":{id:1,name:"Vietnam"},"id-ID":{id:2,name:"Indonesia"},"ms-MY":{id:3,name:"Malaysia"},"km-KH":{id:4,name:"Cambodia"},"en-PH":{id:5,name:"Philippines"},"th-TH":{id:6,name:"Thai Lan"},"my-MM":{id:7,name:"Myanmar"},"zh-TW":{id:8,name:"Taiwan"},"hi-IN":{id:9,name:"India"}},MAX_ALLOWED_IMG_SIZE:20971520,COUNTRY_CODE_BY_LOCALE:{"vi-VN":"vn","id-ID":"id","ms-MY":"my","km-KH":"kh","en-PH":"ph","th-TH":"th","my-MM":"mm","zh-TW":"tw","hi-IN":"in"},COUNTRY_CURRENCY_SYMBOL:{"vi-VN":"₫","id-ID":"Rp","ms-MY":"RM","km-KH":"៛","en-PH":"₱","th-TH":"฿","my-MM":"K","zh-TW":"$","hi-IN":"₹"},CURRENCY_PREFIX:{IDR:"Dimulai dari"},LOCALISED_SLUGS:{"en-PH":{PRODUCT:"product",CATEGORY:"category",BRAND:"brand",SEARCH:"search",PROFILE:"profile",PROFILE_MANAGE_ORDERS:"profile/manage-orders",PROFILE_MANAGE_ADDRESS:"profile/deliver-address",PROFILE_VOUCHER:"profile/voucher",PROFILE_MEMBER_CARD:"profile/member-card",CART:"cart",CART_CHECKOUT:"cart/checkout",ORDER_CONFIRMATION:"order-confirmation",PROMOTION:"promotion"},"vi-VN":{PRODUCT:"san-pham",CATEGORY:"danh-muc",BRAND:"thuong-hieu",SEARCH:"tim-kiem",PROFILE:"ho-so",PROFILE_MANAGE_ORDERS:"ho-so/quan-li-don-hang",PROFILE_MANAGE_ADDRESS:"ho-so/dia-chi-giao-hang",PROFILE_VOUCHER:"ho-so/khuyen-mai",PROFILE_MEMBER_CARD:"ho-so/the-thanh-vien",CART:"gio-hang",CART_CHECKOUT:"gio-hang/thanh-toan",ORDER_CONFIRMATION:"kiem-tra-don-hang",PROMOTION:"khuyen-mai"}},HEADER_LOGO_ALIGNMENT:"188px",globalFontFamily:"Inter",ENABLE_COMMUNITY_LOCALES:["vi-VN","id-ID","ms-MY","en-PH","th-TH"],ENABLE_CARE_LOCALES:["vi-VN","id-ID","en-PH"],ENABLE_HEALTH_PARENTING_LOCALES:["vi-VN","en-PH","id-ID","ms-MY","km-KH","th-TH","my-MM","zh-TW"],SEO_SCHEMA:I});function g(e){return null!=e}var O,A={formatAutoCompleteAddress:function(e){return e&&e.place_id?{placeId:e.place_id,description:e.description||""}:null},formatPrice:function(e,o){var t="string"==typeof e?parseInt(e):e;return new Intl.NumberFormat(o||"vi-VN").format(t)},formatHotSearchKeyword:function(e){return{text:(null==e?void 0:e.name)||""}},formatHelpfulUrl:function(e){return{name:(null==e?void 0:e.name)||"",featuredImage:(null==e?void 0:e.featured_image)||"",url:(null==e?void 0:e.url)||""}},formatCategory:function(e,o,i){var l,n,a,r=i?i+"/"+e.slug:e.slug,s=(null===(n=null===(l=null==e?void 0:e.children)||void 0===l?void 0:l.map)||void 0===n?void 0:n.call(l,(function(o){return A.formatCategory(o,e.id,r)})))||[];return{id:null==e?void 0:e.id,name:(null==e?void 0:e.name)||"",logo:(null==e?void 0:e.logo)||"",slug:(null==e?void 0:e.slug)||"",fullSlug:r||"",children:s,backgroundColor:e.color||t.theme.colors.teal50,parentId:o||0,products:(null===(a=e.products)||void 0===a?void 0:a.map(A.formatProduct))||[]}},formatFooterInfo:function(e){var o,t,i,l,n,a,r,s,u,c,d,m,p,_,h,E,v,I,T,g=(null===(i=null===(t=null===(o=null==e?void 0:e.branch)||void 0===o?void 0:o.branch)||void 0===t?void 0:t.map)||void 0===i?void 0:i.call(t,(function(e){return{flag:e.flag||"",name:e.name||"",url:e.url||""}})))||[],O=(null===(a=null===(n=null===(l=null==e?void 0:e.general)||void 0===l?void 0:l.verified)||void 0===n?void 0:n.map)||void 0===a?void 0:a.call(n,(function(e){return{image:e.image||"",url:e.url||""}})))||[],A=(null===(s=null===(r=null==e?void 0:e.menu)||void 0===r?void 0:r.map)||void 0===s?void 0:s.call(r,(function(e){var o,t;return{menu_title:e.menu_title,items:null===(t=null===(o=e.items)||void 0===o?void 0:o.map)||void 0===t?void 0:t.call(o,(function(e){return{title:e.title,url:e.url}}))}})))||[],f=(null===(d=null===(c=null===(u=null==e?void 0:e.social)||void 0===u?void 0:u.socials)||void 0===c?void 0:c.map)||void 0===d?void 0:d.call(c,(function(e){return{icon:e.icon||"",name:e.name||"",url:e.url||""}})))||[];return{branch:{title:(null===(m=null==e?void 0:e.branch)||void 0===m?void 0:m.title)||"",branch:g},general:{logo:null!==(_=null===(p=null==e?void 0:e.general)||void 0===p?void 0:p.logo)&&void 0!==_?_:"",content:null!==(E=null===(h=null==e?void 0:e.general)||void 0===h?void 0:h.content)&&void 0!==E?E:"",copyright:null!==(I=null===(v=null==e?void 0:e.general)||void 0===v?void 0:v.copyright)&&void 0!==I?I:"",verified:O},menu:A,social:{title:(null===(T=null==e?void 0:e.social)||void 0===T?void 0:T.title)||"",socials:f}}},formatNavigation:function(e){var o,t,i,l,n,a;return{hotSearchKeywords:(null===(t=null===(o=null==e?void 0:e.hot_search_keywords)||void 0===o?void 0:o.map)||void 0===t?void 0:t.call(o,A.formatHotSearchKeyword))||[],helpfulUrls:(null===(l=null===(i=null==e?void 0:e.helpful_urls)||void 0===i?void 0:i.map)||void 0===l?void 0:l.call(i,A.formatHelpfulUrl))||[],categories:(null===(a=null===(n=null==e?void 0:e.categories)||void 0===n?void 0:n.map)||void 0===a?void 0:a.call(n,(function(e){return A.formatCategory(e)})))||[],footer:A.formatFooterInfo(null==e?void 0:e.footer),storeId:(null==e?void 0:e.store_id)||0,customerId:(null==e?void 0:e.customer_id)||0,cartItemsQty:"number"==typeof(null==e?void 0:e.cart_items_qty)?e.cart_items_qty:null}},formatPriceInfo:function(e){return e?{final:e.final||0,regular:e.regular||0,discountPercent:e.discount_percent||0}:null},formatProduct:function(e){var o,t,i,l;if(!e)return null;var n={final:0,regular:0,discountPercent:0};return{id:e.id||0,price:e.price&&A.formatPriceInfo(e.price)||n,thumbnail:e.thumbnail||"",name:e.name||"",averageRating:Number((e.average_rating||0).toFixed(2)),reviewsCount:e.reviews_count||0,tag:e.tag||null,sku:e.sku||"",slug:e.slug||"",images:e.images||[],tags:e.tags||[],unit:e.unit||"",brand:e.brand?{name:e.brand.name||"",image:e.brand.image||"",slug:e.brand.slug||"",productsCount:e.brand.products_count||0}:null,description:e.description||"",productPromotions:(null===(t=null===(o=e.product_promotions)||void 0===o?void 0:o.map)||void 0===t?void 0:t.call(o,A.formatProductPromotion).filter(g))||[],categories:(null===(l=null===(i=e.categories)||void 0===i?void 0:i.map)||void 0===l?void 0:l.call(i,(function(e){return A.formatCategory(e)})).filter(g))||[],isInStock:(null==e?void 0:e.is_in_stock)||!1}},formatBanner:function(e){return e?{name:e.name||"",url:e.url||"",featuredImage:e.featured_image||"",alt:e.image_alt}:null},formatBlogPost:function(e){var o,t;return e?{title:e.title||"",image:e.image||"",link:e.link||"",postData:e.post_data?{reviewed:e.post_data.reviewed?{author:A.formatBlogPostDataReviewedUser(e.post_data.reviewed.author||void 0),editor:A.formatBlogPostDataReviewedUser(e.post_data.reviewed.editor||void 0),expert:A.formatBlogPostDataReviewedUser(e.post_data.reviewed.expert||void 0),factCheck:A.formatBlogPostDataReviewedUser(e.post_data.reviewed.fact_check||void 0),isAuthor:Boolean(e.post_data.reviewed.is_author)}:null,categories:e.post_data.categories?null===(t=(o=e.post_data.categories).map)||void 0===t?void 0:t.call(o,(function(e){return{termId:e.term_id||0,name:e.name||"",permalink:e.permalink||"",textColor:e.text_color||""}})):[],postDate:e.post_data.post_date||"",postModified:e.post_data.post_modified||"",modifiedTime:e.post_data.modified_time||""}:null}:null},formatBlogPostDataReviewedUser:function(e){return e?{id:e.ID||0,userId:e.user_id||0,formerRole:e.former_role||"",role:e.role||"",slug:e.slug||"",displayName:e.display_name||"",description:e.description||"",profileUrl:e.profile_url||"",avatar:e.avatar||"",avatarThumbnail:e.avatar_thumbnail||"",turnOffProfile:Boolean(e.turn_off_profile)}:null},formatBrand:function(e){var o,t,i,l;return e?{id:e.id||0,image:e.image||"",position:e.position||"",isPopular:e.is_popular||!1,summary:e.summary||"",name:e.name||"",slug:e.slug||"",description:e.description||null,banners:(null===(t=null===(o=e.banners)||void 0===o?void 0:o.map)||void 0===t?void 0:t.call(o,A.formatBanner).filter(g))||[],bestsellerProducts:(null===(l=null===(i=e.bestseller_products)||void 0===i?void 0:i.map)||void 0===l?void 0:l.call(i,A.formatProduct).filter(g))||[]}:null},formatHomePage:function(e){var o,t,i,l,n,a,r,s,u,c,d,m,p,_,h,E,v,I,T,O;return e?{brands:e.brands?null===(t=(o=e.brands).map)||void 0===t?void 0:t.call(o,A.formatBrand).filter(g):[],hotDeals:e.hot_deals?null===(l=(i=e.hot_deals).map)||void 0===l?void 0:l.call(i,A.formatProduct).filter(g):[],newProducts:e.new_products?null===(a=(n=e.new_products).map)||void 0===a?void 0:a.call(n,A.formatProduct).filter(g):[],slideBanners:e.slide_banners?null===(s=(r=e.slide_banners).map)||void 0===s?void 0:s.call(r,A.formatBanner).filter(g):[],subBanners:e.sub_banners?null===(c=(u=e.sub_banners).map)||void 0===c?void 0:c.call(u,A.formatBanner).filter(g):[],footerBanners:e.footer_banners?null===(m=(d=e.footer_banners).map)||void 0===m?void 0:m.call(d,A.formatBanner).filter(g):[],blogPosts:e.blog_posts?null===(_=(p=e.blog_posts).map)||void 0===_?void 0:_.call(p,A.formatBlogPost).filter(g):[],popularCategories:e.popular_categories?null===(E=(h=e.popular_categories).map)||void 0===E?void 0:E.call(h,(function(e){return A.formatCategory(e)})).filter(g):[],suggestProducts:e.suggest_products?null===(I=(v=e.suggest_products).map)||void 0===I?void 0:I.call(v,(function(e){return A.formatCategory(e)})).filter(g):[],promotions:e.promotions?null===(O=(T=e.promotions).map)||void 0===O?void 0:O.call(T,(function(e){return A.formatPromotion(e)})).filter(g):[]}:null},formatCategoryPage:function(e){var o,t,i,l;return e?{id:e.id||0,name:e.name||"",slug:e.slug||"",description:e.description||null,banners:(null===(t=null===(o=e.banners)||void 0===o?void 0:o.map)||void 0===t?void 0:t.call(o,A.formatBanner).filter(g))||[],bestsellerProducts:(null===(l=null===(i=e.bestseller_products)||void 0===i?void 0:i.map)||void 0===l?void 0:l.call(i,A.formatProduct).filter(g))||[]}:null},formatBrandPage:function(e){return e?A.formatBrand(e):null},formatPagination:function(e){return e?{current:e.current||0,first:e.first||0,itemsPerPage:e.items_per_page||0,last:e.last||0,next:e.next||0,prev:e.prev||0,totalItems:e.total_items||0}:null},formatProductDetailPage:function(e){var t,i,l,n,a,r,s,u;return e?o.__assign(o.__assign({},A.formatProduct(e)),{relatedProducts:(null===(i=null===(t=e.related_products)||void 0===t?void 0:t.map)||void 0===i?void 0:i.call(t,A.formatProduct).filter(g))||[],bestsellerProducts:(null===(n=null===(l=e.bestseller_products)||void 0===l?void 0:l.map)||void 0===n?void 0:n.call(l,A.formatProduct).filter(g))||[],viewedProducts:(null===(r=null===(a=e.viewed_products)||void 0===a?void 0:a.map)||void 0===r?void 0:r.call(a,A.formatProduct).filter(g))||[],promotions:(null===(u=null===(s=e.promotions)||void 0===s?void 0:s.map)||void 0===u?void 0:u.call(s,A.formatPromotion).filter(g))||[]}):null},formatProductReview:function(e){var o,t;return e?{reviewId:e.review_id||"",createdAt:e.created_at||"",title:e.title||"",detail:e.detail||"",nickname:e.nick_name||"",avatar:e.avatar||"",ratingVotes:(null===(t=null===(o=e.rating_votes)||void 0===o?void 0:o.map)||void 0===t?void 0:t.call(o,(function(e){return{ratingCode:e.rating_code||"",value:Number(e.value)||0,percent:Number(e.percent)||0}})))||[],images:e.images||[]}:null},formatProductPromotion:function(e){return e?{id:e.id||0,name:e.name||"",thumbnail:e.thumbnail||"",expirationDate:e.expiration_date||""}:null},formatPromotion:function(e){return e?{id:e.id||0,name:e.name||"",slug:e.slug||"",thumbnail:e.thumbnail||"",expiredDate:e.expired_date||"",banners:e.banners||[],points:0,description:e.description||"",metaTitle:e.meta_title||"",metaKeywords:e.meta_keywords||"",metaDescription:e.meta_description||""}:null},formatCustomAttributes:function(e,o){var t;return(null==e?void 0:e.length)&&(null===(t=null==e?void 0:e.find((function(e){return e.attribute_code===o})))||void 0===t?void 0:t.value)||""},formatAddress:function(e){var o,t,i,l;return e?{id:e.id||0,fullName:e.firstname||"",telephone:e.telephone||"",province:{value:null===(o=e.region)||void 0===o?void 0:o.region_id,label:null===(t=e.region)||void 0===t?void 0:t.region}||null,district:{value:A.formatCustomAttributes(e.custom_attributes,"district_id"),label:A.formatCustomAttributes(e.custom_attributes,"district")},commune:{value:A.formatCustomAttributes(e.custom_attributes,"ward_id"),label:A.formatCustomAttributes(e.custom_attributes,"ward")},street:(null===(i=null==e?void 0:e.street)||void 0===i?void 0:i.length)?null==e?void 0:e.street[0]:"",isDefault:e.default_billing&&e.default_shipping||!1,fullAddress:(null===(l=null==e?void 0:e.extension_attributes)||void 0===l?void 0:l.full_address)||""}:null},formatProvince:function(e){return(null==e?void 0:e.available_regions)?e.available_regions.map((function(e){return{value:e.id||"",label:e.name||""}})):[]},formatDistrict:function(e){return(null==e?void 0:e.districts)?e.districts.map((function(e){return{value:e.id||"",label:e.name||""}})):[]},formatCommune:function(e){return(null==e?void 0:e.communes)?e.communes.map((function(e){return{value:e.id||"",label:e.name||""}})):[]},formatOrder:function(e){var o,t;return e?{orderNumber:(null==e?void 0:e.order_number)||"",shippingData:(null==e?void 0:e.shipping_data)?{shippingMethod:e.shipping_data.shipping_method||"",shippingDescription:e.shipping_data.shipping_description||"",shippingAddress:e.shipping_data.shipping_address?{fullName:e.shipping_data.shipping_address.firstname||"",fullAddress:e.shipping_data.shipping_address.full_address||"",telephone:e.shipping_data.shipping_address.telephone||""}:null,storeAddress:null}:null,orderedDate:(null==e?void 0:e.ordered_date)||"",status:(null==e?void 0:e.status)||null,totals:(null==e?void 0:e.totals)?{subtotal:e.totals.subtotal||0,shippingAmount:e.totals.shipping_amount||0,discountAmount:e.totals.discount_amount||0,grandTotal:e.totals.grand_total||0}:null,products:(null===(t=null===(o=null==e?void 0:e.products)||void 0===o?void 0:o.map)||void 0===t?void 0:t.call(o,(function(e){return{sku:e.sku||"",name:e.name||"",price:e.price||0,rowTotal:e.row_total||0,image:e.image||"",qty:e.qty||0}})))||[],paymentMethod:(null==e?void 0:e.payment_method)||""}:null},formatStatistic:function(e){var o,t,i,l,n;return e?{pending:Number(null===(o=null==e?void 0:e.find((function(e){return"pending"===e.status})))||void 0===o?void 0:o.amount)||0,processing:Number(null===(t=null==e?void 0:e.find((function(e){return"processing"===e.status})))||void 0===t?void 0:t.amount)||0,delivering:Number(null===(i=null==e?void 0:e.find((function(e){return"delivering"===e.status})))||void 0===i?void 0:i.amount)||0,complete:Number(null===(l=null==e?void 0:e.find((function(e){return"complete"===e.status})))||void 0===l?void 0:l.amount)||0,canceled:Number(null===(n=null==e?void 0:e.find((function(e){return"canceled"===e.status})))||void 0===n?void 0:n.amount)||0}:{}},formatCartItem:function(e){var o,t,i,l,n,a,r,s;return e?{itemId:e.item_id||0,sku:e.sku||"",qty:e.qty||0,name:e.name||"",price:e.price||0,basePrice:(null===(o=e.extension_attributes)||void 0===o?void 0:o.base_price)||0,productType:e.product_type||"",quoteId:e.quote_id||"",thumbnail:(null===(t=e.extension_attributes)||void 0===t?void 0:t.thumbnail)||"",rowTotal:(null===(i=e.extension_attributes)||void 0===i?void 0:i.row_total)||0,promotions:(null===(a=null===(n=null===(l=e.extension_attributes)||void 0===l?void 0:l.promotions)||void 0===n?void 0:n.map)||void 0===a?void 0:a.call(n,A.formatProductPromotion))||[],isInStock:(null===(r=e.extension_attributes)||void 0===r?void 0:r.is_in_stock)||!1,urlProduct:(null===(s=e.extension_attributes)||void 0===s?void 0:s.url_key)||""}:null},formatCartAddress:function(e){var o;return e?{customerAddressId:(null==e?void 0:e.customer_address_id)||0,id:e.id||0,region:e.region||"",regionId:e.region_id||0,regionCode:e.region_code||"",countryId:e.country_id||"",street:e.street||[],postcode:e.postcode||"",city:e.city||"",firstname:e.firstname||"",lastname:e.lastname||"",customerId:e.customer_id||0,email:e.email||"",telephone:e.telephone||"",sameAsBilling:e.same_as_billing||0,saveInAddressBook:e.save_in_address_book||0,fullAddress:(null===(o=e.extension_attributes)||void 0===o?void 0:o.full_address)||""}:null},formatEstimatedShipping:function(e){return e?{carrierCode:e.carrier_code||"",methodCode:e.method_code||"",carrierTitle:e.carrier_title||"",methodTitle:e.method_title||"",amount:e.amount||0,baseAmount:e.base_amount||0,available:e.available||!1,errorMessage:e.error_message||"",priceExclTax:e.price_excl_tax||0,priceInclTax:e.price_incl_tax||0}:null},formatCartLoggedInCustomer:function(e){var o,t,i;return e?{email:e.email||"",firstname:e.firstname||"",lastname:e.lastname||"",id:e.id||0,groupId:e.group_id||0,createdAt:e.created_at||"",updatedAt:e.updated_at||"",createdIn:e.created_in||"",storeId:e.store_id||0,websiteId:e.website_id||0,addresses:(null===(t=null===(o=e.addresses)||void 0===o?void 0:o.map)||void 0===t?void 0:t.call(o,A.formatCartAddress))||[],disableAutoGroupChange:e.disable_auto_group_change||0,isSubscribed:(null===(i=e.extension_attributes)||void 0===i?void 0:i.is_subscribed)||!1}:null},formatCart:function(e){var o,t,i,l,n,a,r,s,u,c,d,m,p,_;return e?{id:e.id||0,createdAt:e.created_at||"",updatedAt:e.updated_at||"",isActive:e.is_active||!1,isVirtual:e.is_virtual||!1,items:(null===(i=null===(t=null===(o=e.items)||void 0===o?void 0:o.map)||void 0===t?void 0:t.call(o,A.formatCartItem))||void 0===i?void 0:i.sort((function(e,o){return Number(null==o?void 0:o.isInStock)-Number(null==e?void 0:e.isInStock)})))||[],itemsCount:e.items_count||0,itemsQty:e.items_qty||0,customer:e.customer?A.formatCartLoggedInCustomer(e.customer):null,billingAddress:e.billing_address?A.formatCartAddress(e.billing_address):null,origOrderId:e.orig_order_id||0,currency:{globalCurrencyCode:(null===(l=e.currency)||void 0===l?void 0:l.global_currency_code)||"",baseCurrencyCode:(null===(n=e.currency)||void 0===n?void 0:n.base_currency_code)||"",storeCurrencyCode:(null===(a=e.currency)||void 0===a?void 0:a.store_currency_code)||"",quoteCurrencyCode:(null===(r=e.currency)||void 0===r?void 0:r.quote_currency_code)||"",storeToBaseRate:(null===(s=e.currency)||void 0===s?void 0:s.store_to_base_rate)||0,storeToQuoteRate:(null===(u=e.currency)||void 0===u?void 0:u.store_to_quote_rate)||0,baseToGlobalRate:(null===(c=e.currency)||void 0===c?void 0:c.base_to_global_rate)||0,baseToQuoteRate:(null===(d=e.currency)||void 0===d?void 0:d.base_to_quote_rate)||0},customerIsGuest:e.customer_is_guest||!1,customerNoteNotify:e.customer_note_notify||!1,customerTaxClassId:e.customer_tax_class_id||0,storeId:e.store_id||0,shippingAssignments:null===(_=null===(p=null===(m=e.extension_attributes)||void 0===m?void 0:m.shipping_assignments)||void 0===p?void 0:p.map)||void 0===_?void 0:_.call(p,(function(e){var o,t,i;return{shipping:{address:e.shipping.address?A.formatCartAddress(e.shipping.address):null,method:(null===(o=e.shipping)||void 0===o?void 0:o.method)||""},items:(null===(i=(t=e.items).map)||void 0===i?void 0:i.call(t,A.formatCartItem))||[]}}))}:null},formatCartTotal:function(e){var o,t,i;return e?{grandTotal:e.grand_total||0,baseGrandTotal:e.base_grand_total||0,subtotal:e.subtotal||0,baseSubtotal:e.base_subtotal||0,discountAmount:e.discount_amount||0,baseDiscountAmount:e.base_discount_amount||0,subtotalWithDiscount:e.subtotal_with_discount||0,baseSubtotalWithDiscount:e.base_subtotal_with_discount||0,shippingAmount:e.shipping_amount||0,baseShippingAmount:e.base_shipping_amount||0,shippingDiscountAmount:e.shipping_discount_amount||0,baseShippingDiscountAmount:e.base_shipping_discount_amount||0,taxAmount:e.tax_amount||0,baseTaxAmount:e.base_tax_amount||0,weeeTaxAppliedAmount:e.weee_tax_applied_amount||0,shippingTaxAmount:e.shipping_tax_amount||0,baseShippingTaxAmount:e.base_shipping_tax_amount||0,subtotalInclTax:e.subtotal_incl_tax||0,shippingInclTax:e.shipping_incl_tax||0,baseShippingInclTax:e.base_shipping_incl_tax||0,baseCurrencyCode:e.base_currency_code||"",quoteCurrencyCode:e.quote_currency_code||"",itemsQty:e.items_qty||0,coupon:{couponCode:e.coupon_code||"",couponDescription:(null===(o=null==e?void 0:e.extension_attributes)||void 0===o?void 0:o.coupon_description_text)||""},items:(null===(i=null===(t=e.items)||void 0===t?void 0:t.map)||void 0===i?void 0:i.call(t,(function(e){return{itemId:e.item_id||0,price:e.price||0,basePrice:e.base_price||0,qty:e.qty||0,rowTotal:e.row_total||0,baseRowTotal:e.base_row_total||0,rowTotalWithDiscount:e.row_total_with_discount||0,taxAmount:e.tax_amount||0,baseTaxAmount:e.base_tax_amount||0,taxPercent:e.tax_percent||0,discountAmount:e.discount_amount||0,baseDiscountAmount:e.base_discount_amount||0,discountPercent:e.discount_percent||0,priceInclTax:e.price_incl_tax||0,basePriceInclTax:e.base_price_incl_tax||0,rowTotalInclTax:e.row_total_incl_tax||0,baseRowTotalInclTax:e.base_row_total_incl_tax||0,options:e.options||"",weeeTaxAppliedAmount:e.weee_tax_applied_amount||0,weeeTaxApplied:e.weee_tax_applied||0,name:e.name||""}})))||[],totalSegments:e.total_segments||[]}:null},formatPaymentMethod:function(e){return e?null==e?void 0:e.map((function(e){return{code:(null==e?void 0:e.payment_code)||"",title:(null==e?void 0:e.payment_title)||"",thumbnail:(null==e?void 0:e.payment_thumbnail)||""}})):null},formatPaymentInformation:function(e){var o;return e?{paymentMethods:A.formatPaymentMethod(null===(o=null==e?void 0:e.extension_attributes)||void 0===o?void 0:o.payment_detail_info)||[],totals:A.formatCartTotal(e.totals)}:null},formatOrderConfirmation:function(e){return e?{isSuccess:e.is_success||!1,orderInfo:A.formatOrder(e.order_info)}:null},formatCoupons:function(e){var o;return(null===(o=null==e?void 0:e.items)||void 0===o?void 0:o.length)?e.items.map((function(e){return{code:(null==e?void 0:e.code)||"",name:(null==e?void 0:e.name)||"",thumbnail:(null==e?void 0:e.thumbnail)||"",description:(null==e?void 0:e.expired_date)||""}})):null},formatShippings:function(e){return e?e.map((function(e){var o;return{carrierCode:e.carrier_code||"",methodCode:e.method_code||"",title:e.carrier_title||"",description:e.method_title||"",price:(null==e?void 0:e.base_amount)||0,thumbnail:(null===(o=null==e?void 0:e.extension_attributes)||void 0===o?void 0:o.thumbnail)||""}})):[]}},f=Object.freeze({__proto__:null,dataFormatter:A});!function(e){e.MALE="gender.male",e.FEMALE="gender.female",e.OTHER="gender.other"}(O||(O={}));var b=Object.freeze({__proto__:null,get GenderLabel(){return O},DATE_FORMAT_API:"yyyy-MM-dd",DATE_FORMAT:"dd-MM-yyyy"});exports.EcomApiTypes=l,exports.EcomConstants=T,exports.EcomDataFormatter=f,exports.EcomDataTypes=n,exports.EcomTypes=b;
@@ -0,0 +1 @@
1
+ var i,a,e,n,t;!function(i){i.Boy="boy",i.Girl="girl"}(i||(i={})),function(i){i[i.Weight=0]="Weight",i[i.Height=1]="Height",i[i.Head=2]="Head",i[i.BMI=3]="BMI"}(a||(a={})),function(i){i[i.Weekly=0]="Weekly",i[i.Monthly=1]="Monthly",i[i.Yearly=2]="Yearly"}(e||(e={})),function(i){i[i.Weight=0]="Weight",i[i.Height=1]="Height",i[i.Head=2]="Head",i[i.BMI=3]="BMI",i[i.Record=4]="Record"}(n||(n={})),function(i){i.Vietnam="vi-VN",i.Indonesia="id-ID",i.Malaysia="ms-MY",i.Cambodia="km-KH",i.PhilippinesEnglish="en-PH",i.PhilippinesTagalog="tl-PH",i.Thailand="th-TH",i.Myanmar="my-MM",i.Taiwan="zh-TW",i.India="hi-IN"}(t||(t={}));export{a as B,i as G,t as L,e as a,n as b};