@hhgtech/hhg-components 1.20.0 → 1.21.0-beta-1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/babyGrowth.js +1 -1
- package/build/care.js +1 -1
- package/build/components/atoms/button/index.d.ts +2 -2
- package/build/components/atoms/flag/index.d.ts +1 -1
- package/build/components/atoms/pureInput/index.d.ts +2 -2
- package/build/components/atoms/shadow/index.d.ts +1 -1
- package/build/components/molecules/doctorInfo/index.d.ts +1 -1
- package/build/components/molecules/dropdownSearch/index.styled.d.ts +1 -1
- package/build/components/molecules/shareDrawer/index.d.ts +2 -0
- package/build/components/organisms/navigationV2/components/molecules/menuCommunitiesList/Item/index.d.ts +1 -1
- package/build/components.js +1 -1
- package/build/{constants-3cd37eba.js → constants-fd158475.js} +1 -1
- package/build/core.js +1 -1
- package/build/ecom.js +1 -1
- package/build/esm/babyGrowth.js +1 -1
- package/build/esm/care.js +1 -1
- package/build/esm/components.js +1 -1
- package/build/esm/{constants-4e52a6b1.js → constants-0bc70bde.js} +1 -1
- package/build/esm/core.js +1 -1
- package/build/esm/ecom.js +1 -1
- package/build/esm/{index-061044d6.js → index-0a159885.js} +1 -1
- package/build/esm/index-0a573b5b.js +1 -0
- package/build/esm/index-2edf568c.js +1 -0
- package/build/esm/index.js +1 -1
- package/build/esm/index.styled-66c6417d.js +1 -0
- package/build/esm/{index.styled-4154e676.js → index.styled-739f52d5.js} +1 -1
- package/build/esm/index.styled-8c1ef45a.js +1 -0
- package/build/esm/index.styled-ad56b733.js +1 -0
- package/build/esm/navigation.js +1 -1
- package/build/esm/number-3cb24023.js +1 -0
- package/build/esm/routing-48755861.js +1 -0
- package/build/esm/{theme-0e20eeec.js → theme-9d553a45.js} +1 -1
- package/build/esm/together.js +1 -1
- package/build/esm/{types-c221e8e7.js → types-28ac2b32.js} +1 -1
- package/build/esm/types-6e1e209f.js +1 -0
- package/build/esm/{types-445b4089.js → types-72f44d32.js} +1 -1
- package/build/{index-c6e4d6c7.js → index-6341cc08.js} +1 -1
- package/build/index-9b547b3d.js +1 -0
- package/build/index-d9a6a588.js +1 -0
- package/build/index.js +1 -1
- package/build/index.styled-00abaf39.js +1 -0
- package/build/{index.styled-3898ef06.js → index.styled-74b743ee.js} +1 -1
- package/build/index.styled-c9e10b13.js +1 -0
- package/build/index.styled-d893d5f6.js +1 -0
- package/build/misc/getSocialList.d.ts +2 -0
- package/build/misc/theme.d.ts +1 -0
- package/build/navigation.js +1 -1
- package/build/number-87b13133.js +1 -0
- package/build/routing-d8704e87.js +1 -0
- package/build/{theme-81c0c062.js → theme-19de09d7.js} +1 -1
- package/build/together.js +1 -1
- package/build/{types-50344fd4.js → types-643e02d5.js} +1 -1
- package/build/{types-3c75f97d.js → types-789b9d62.js} +1 -1
- package/build/types-dce7e27d.js +1 -0
- package/package.json +1 -1
- package/build/esm/index-4643d5f0.js +0 -1
- package/build/esm/index-7a791de2.js +0 -1
- package/build/esm/index-be3ea0d9.js +0 -1
- package/build/esm/index.styled-25acea1f.js +0 -1
- package/build/esm/index.styled-fe478117.js +0 -1
- package/build/esm/routing-914e53ff.js +0 -1
- package/build/esm/types-002306a2.js +0 -1
- package/build/index-1e5f3bb9.js +0 -1
- package/build/index-c0a2d14a.js +0 -1
- package/build/index-f129906d.js +0 -1
- package/build/index.styled-aeec8a9f.js +0 -1
- package/build/index.styled-d41606bf.js +0 -1
- package/build/routing-d42175b7.js +0 -1
- package/build/types-454784c8.js +0 -1
package/build/babyGrowth.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("./useTranslations-e724fe88.js"),n=require("./lazyLoad-0454885d.js"),r=require("./index-c6e4d6c7.js"),o=require("./index.styled-3898ef06.js"),a=require("./tslib.es6-f7929e76.js"),l=require("styled-components"),i=require("./theme-81c0c062.js"),c=require("./index.styled-d41606bf.js"),u=require("date-fns");require("react-range"),require("react-dom");var s=require("./useOutsideClick-528bfd6c.js"),d=require("recharts");require("lodash/debounce");var f=require("lodash");function h(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}require("./translationsContext-1968f8ef.js"),require("string-format"),require("vanilla-lazyload"),require("./useScrollbarSize-586f6706.js");var m,p,C,y,b,g,x=h(e),w=h(l),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(r.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"])),i.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,H,D,T,S,q,P,z,O,R,W,Y,A,N,Z,V,U,F,K,Q,X,J,$,ee,te,ne,re,oe=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"])),i.theme.colors.yellow600),ae=[{name:["3rd","-3SD","97th","3SD"],color:i.theme.colors.red600},{name:["15rd","-2SD","85th","2SD"],color:i.theme.colors.yellow600},{name:["50th","0Median"],color:i.theme.colors.green600}],le={"3rd":"-3SD","15th":"-2SD","50th":"Median","85th":"2SD","97th":"3SD"},ie=function(t){var r=t.riskLevel,a=t.tooltips,l=t.locale,c=e.useMemo((function(){var e;return null===(e=ae.find((function(e){return e.name.includes(r||"")})))||void 0===e?void 0:e.color}),[r]),u=e.useMemo((function(){return l===n.LOCALE.Indonesia?r?le[r]:"":r}),[l,r]);return x.default.createElement(oe,null,x.default.createElement("div",{className:"risk",style:{backgroundColor:c}},x.default.createElement(o.Text,{size:"s3",color:i.theme.colors.white,type:"semiBold"},u)),x.default.createElement("div",{className:"tooltip"},a.map((function(e,t){return x.default.createElement(o.Text,{key:t,size:"n1",color:i.theme.colors.gray600},e)}))))},ce=w.default.div(M||(M=a.__makeTemplateObject(["\n background: #ffffff;\n border: 1px solid ",";\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: #ffffff;\n border: 1px solid ",";\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"])),i.theme.colors.neutral100,i.theme.colors.gray600,"300ms",i.theme.colors.primaryBase,i.theme.colors.primaryBase,t.fadeIn,"300ms"),ue=function(e){var t=e.profile,n=e.onChange,a=e.isActive;return x.default.createElement(ce,{onClick:function(){return n(t.id)}},x.default.createElement("div",{className:"baby"},"male"===t.gender?x.default.createElement(r.Icon.Boy,{size:24}):x.default.createElement(r.Icon.Girl,{size:24}),x.default.createElement(o.Text,{size:"p2",color:i.theme.colors.gray800},t.name)),x.default.createElement("div",{className:a?"radio active":"radio"}))},se=w.default.div(_||(_=a.__makeTemplateObject(["\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: flex;\n align-items: center;\n justify-content: space-between;\n padding-right: 14px;\n }\n .record-item {\n display: flex;\n align-items: center;\n gap: 8px;\n }\n"],["\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: flex;\n align-items: center;\n justify-content: space-between;\n padding-right: 14px;\n }\n .record-item {\n display: flex;\n align-items: center;\n gap: 8px;\n }\n"])),i.theme.colors.gray100),de=function(e,t){return e?e+" "+(t||""):"--"},fe=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"])),i.theme.colors.white,i.theme.colors.gray100),he=w.default.div(j||(j=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"]))),me=w.default(o.Menu)(H||(H=a.__makeTemplateObject(["\n position: absolute;\n right: 0;\n z-index: 1;\n"],["\n position: absolute;\n right: 0;\n z-index: 1;\n"]))),pe=function(n){var r=n.name,a=n.onClose,l=n.onEdit,c=n.onSwitch,u=n.onAdd,d=n.onRemove,f=t.useTranslations().t,h=e.useRef();return s.useOutsideClick(h,a),x.default.createElement("div",{ref:h},x.default.createElement(me,{width:250},x.default.createElement(o.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(o.Text,{size:"p2",color:i.theme.colors.gray800},f("childCard.menu.edit",{name:r}))),x.default.createElement(o.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",{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(o.Text,{size:"p2",color:i.theme.colors.gray800},f("childCard.menu.switch"))),x.default.createElement(o.Menu.Item,{onClick:u,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(o.Text,{size:"p2",color:i.theme.colors.gray800},f("childCard.menu.add"))),x.default.createElement(o.Menu.Item,{onClick:d,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(o.Text,{size:"p2",color:i.theme.colors.red600},f("childCard.menu.remove",{name:r})))))},Ce=w.default(c.Drawer)(D||(D=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"]))),ye=w.default(r.Modal)(T||(T=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 }\n\n .button-group {\n display: flex;\n justify-content: flex-end;\n gap: 30px;\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 }\n\n .button-group {\n display: flex;\n justify-content: flex-end;\n gap: 30px;\n margin-block: 16px;\n }\n"])),i.theme.colors.neutral100,i.theme.colors.neutral100),be=((S={})[n.Gender.Boy]=((q={})[n.BabyGrowthChartType.Weight]=((P={})[n.BabyGrowthChartDuration.Weekly]=function(){return Promise.resolve().then((function(){return require("./WEIGHT_BOYS.percentile.weekly-8b301e27.js")}))},P[n.BabyGrowthChartDuration.Monthly]=function(){return Promise.resolve().then((function(){return require("./WEIGHT_BOYS.percentile.monthly-305649d8.js")}))},P[n.BabyGrowthChartDuration.Yearly]=function(){return Promise.resolve().then((function(){return require("./WEIGHT_BOYS.percentile.yearly-96f3249d.js")}))},P),q[n.BabyGrowthChartType.Height]=((z={})[n.BabyGrowthChartDuration.Weekly]=function(){return Promise.resolve().then((function(){return require("./HEIGHT_BOYS.percentile.weekly-71fb3532.js")}))},z[n.BabyGrowthChartDuration.Monthly]=function(){return Promise.resolve().then((function(){return require("./HEIGHT_BOYS.percentile.monthly-b6e07b4d.js")}))},z[n.BabyGrowthChartDuration.Yearly]=function(){return Promise.resolve().then((function(){return require("./HEIGHT_BOYS.percentile.yearly-18e5463a.js")}))},z),q[n.BabyGrowthChartType.Head]=((O={})[n.BabyGrowthChartDuration.Weekly]=function(){return Promise.resolve().then((function(){return require("./HEAD CIRCUM_BOYS.percentile.weekly-923d3626.js")}))},O[n.BabyGrowthChartDuration.Monthly]=function(){return Promise.resolve().then((function(){return require("./HEAD CIRCUM_BOYS.percentile.monthly-e79e5d3f.js")}))},O[n.BabyGrowthChartDuration.Yearly]=function(){return Promise.resolve().then((function(){return require("./HEAD CIRCUM_BOYS.percentile.yearly-4133a7da.js")}))},O),q[n.BabyGrowthChartType.BMI]=((R={})[n.BabyGrowthChartDuration.Weekly]=function(){return Promise.resolve().then((function(){return require("./BMI_BOYS.percentile.weekly-75bff607.js")}))},R[n.BabyGrowthChartDuration.Monthly]=function(){return Promise.resolve().then((function(){return require("./BMI_BOYS.percentile.monthly-1c8c4c98.js")}))},R[n.BabyGrowthChartDuration.Yearly]=function(){return Promise.resolve().then((function(){return require("./BMI_BOYS.percentile.yearly-b8d86c12.js")}))},R),q),S[n.Gender.Girl]=((W={})[n.BabyGrowthChartType.Weight]=((Y={})[n.BabyGrowthChartDuration.Weekly]=function(){return Promise.resolve().then((function(){return require("./WEIGHT_GIRLS.percentile.weekly-63c6a2a3.js")}))},Y[n.BabyGrowthChartDuration.Monthly]=function(){return Promise.resolve().then((function(){return require("./WEIGHT_GIRLS.percentile.monthly-b0905186.js")}))},Y[n.BabyGrowthChartDuration.Yearly]=function(){return Promise.resolve().then((function(){return require("./WEIGHT_GIRLS.percentile.yearly-49663736.js")}))},Y),W[n.BabyGrowthChartType.Height]=((A={})[n.BabyGrowthChartDuration.Weekly]=function(){return Promise.resolve().then((function(){return require("./HEIGHT_GIRLS.percentile.weekly-b2628828.js")}))},A[n.BabyGrowthChartDuration.Monthly]=function(){return Promise.resolve().then((function(){return require("./HEIGHT_GIRLS.percentile.monthly-1e34eb90.js")}))},A[n.BabyGrowthChartDuration.Yearly]=function(){return Promise.resolve().then((function(){return require("./HEIGHT_GIRLS.percentile.yearly-72339b71.js")}))},A),W[n.BabyGrowthChartType.Head]=((N={})[n.BabyGrowthChartDuration.Weekly]=function(){return Promise.resolve().then((function(){return require("./HEAD CIRCUM_GIRLS.percentile.weekly-0020f6e2.js")}))},N[n.BabyGrowthChartDuration.Monthly]=function(){return Promise.resolve().then((function(){return require("./HEAD CIRCUM_GIRLS.percentile.monthly-67f98b04.js")}))},N[n.BabyGrowthChartDuration.Yearly]=function(){return Promise.resolve().then((function(){return require("./HEAD CIRCUM_GIRLS.percentile.yearly-6afd8bc6.js")}))},N),W[n.BabyGrowthChartType.BMI]=((Z={})[n.BabyGrowthChartDuration.Weekly]=function(){return Promise.resolve().then((function(){return require("./BMI_GIRLS.percentile.weekly-aa3da5c1.js")}))},Z[n.BabyGrowthChartDuration.Monthly]=function(){return Promise.resolve().then((function(){return require("./BMI_GIRLS.percentile.monthly-f482508e.js")}))},Z[n.BabyGrowthChartDuration.Yearly]=function(){return Promise.resolve().then((function(){return require("./BMI_GIRLS.percentile.yearly-624db278.js")}))},Z),W),S),ge=((V={})[n.Gender.Boy]=((U={})[n.BabyGrowthChartType.Weight]=((F={})[n.BabyGrowthChartDuration.Weekly]=function(){return Promise.resolve().then((function(){return require("./WEIGHT_BOYS.zscore.weekly-0b1faf98.js")}))},F[n.BabyGrowthChartDuration.Monthly]=function(){return Promise.resolve().then((function(){return require("./WEIGHT_BOYS.zscore.monthly-22c8f908.js")}))},F[n.BabyGrowthChartDuration.Yearly]=function(){return Promise.resolve().then((function(){return require("./WEIGHT_BOYS.zscore.yearly-8090c58c.js")}))},F),U[n.BabyGrowthChartType.Height]=((K={})[n.BabyGrowthChartDuration.Weekly]=function(){return Promise.resolve().then((function(){return require("./HEIGHT_BOYS.zscore.weekly-70c18763.js")}))},K[n.BabyGrowthChartDuration.Monthly]=function(){return Promise.resolve().then((function(){return require("./HEIGHT_BOYS.zscore.monthly-7a8e43dd.js")}))},K[n.BabyGrowthChartDuration.Yearly]=function(){return Promise.resolve().then((function(){return require("./HEIGHT_BOYS.zscore.yearly-b9e6ea6b.js")}))},K),U[n.BabyGrowthChartType.Head]=((Q={})[n.BabyGrowthChartDuration.Weekly]=function(){return Promise.resolve().then((function(){return require("./HEAD CIRCUM_BOYS.zscore.weekly-f472daa8.js")}))},Q[n.BabyGrowthChartDuration.Monthly]=function(){return Promise.resolve().then((function(){return require("./HEAD CIRCUM_BOYS.zscore.monthly-4727bfe4.js")}))},Q[n.BabyGrowthChartDuration.Yearly]=function(){return Promise.resolve().then((function(){return require("./HEAD CIRCUM_BOYS.zscore.yearly-13a09c3f.js")}))},Q),U[n.BabyGrowthChartType.BMI]=((X={})[n.BabyGrowthChartDuration.Weekly]=function(){return Promise.resolve().then((function(){return require("./BMI_BOYS.zscore.weekly-aba5d53b.js")}))},X[n.BabyGrowthChartDuration.Monthly]=function(){return Promise.resolve().then((function(){return require("./BMI_BOYS.zscore.monthly-5efef594.js")}))},X[n.BabyGrowthChartDuration.Yearly]=function(){return Promise.resolve().then((function(){return require("./BMI_BOYS.zscore.yearly-52cbcf95.js")}))},X),U),V[n.Gender.Girl]=((J={})[n.BabyGrowthChartType.Weight]=(($={})[n.BabyGrowthChartDuration.Weekly]=function(){return Promise.resolve().then((function(){return require("./WEIGHT_GIRLS.zscore.weekly-29d8f232.js")}))},$[n.BabyGrowthChartDuration.Monthly]=function(){return Promise.resolve().then((function(){return require("./WEIGHT_GIRLS.zscore.monthly-0b14c285.js")}))},$[n.BabyGrowthChartDuration.Yearly]=function(){return Promise.resolve().then((function(){return require("./WEIGHT_GIRLS.zscore.yearly-95aa9ac3.js")}))},$),J[n.BabyGrowthChartType.Height]=((ee={})[n.BabyGrowthChartDuration.Weekly]=function(){return Promise.resolve().then((function(){return require("./HEIGHT_GIRLS.zscore.weekly-7ed52595.js")}))},ee[n.BabyGrowthChartDuration.Monthly]=function(){return Promise.resolve().then((function(){return require("./HEIGHT_GIRLS.zscore.monthly-e473a16c.js")}))},ee[n.BabyGrowthChartDuration.Yearly]=function(){return Promise.resolve().then((function(){return require("./HEIGHT_GIRLS.zscore.yearly-225f27c4.js")}))},ee),J[n.BabyGrowthChartType.Head]=((te={})[n.BabyGrowthChartDuration.Weekly]=function(){return Promise.resolve().then((function(){return require("./HEAD CIRCUM_GIRLS.zscore.weekly-a0fa670d.js")}))},te[n.BabyGrowthChartDuration.Monthly]=function(){return Promise.resolve().then((function(){return require("./HEAD CIRCUM_GIRLS.zscore.monthly-9c635d09.js")}))},te[n.BabyGrowthChartDuration.Yearly]=function(){return Promise.resolve().then((function(){return require("./HEAD CIRCUM_GIRLS.zscore.yearly-fcdb544a.js")}))},te),J[n.BabyGrowthChartType.BMI]=((ne={})[n.BabyGrowthChartDuration.Weekly]=function(){return Promise.resolve().then((function(){return require("./BMI_GIRLS.zscore.weekly-56e2c916.js")}))},ne[n.BabyGrowthChartDuration.Monthly]=function(){return Promise.resolve().then((function(){return require("./BMI_GIRLS.zscore.monthly-11ffe2ae.js")}))},ne[n.BabyGrowthChartDuration.Yearly]=function(){return Promise.resolve().then((function(){return require("./BMI_GIRLS.zscore.yearly-a3d00356.js")}))},ne),J),V),xe=function(e,t,r,o){return o===n.LOCALE.Indonesia?ge[e][t][r]():be[e][t][r]()},we=function(e,t){var n=f.chunk(t,Math.ceil(t.length/2)),r=n[0],o=n[1],a=r.map((function(e){return e.name})),l=o.map((function(e){return e.name}));return a.includes(e)?r:l.includes(e)?o:t},ve=function(e,t){return e.map((function(e){var n=t.find((function(t){return t.name===e.name}));return n?a.__assign(a.__assign({},e),{history:n.value}):a.__assign({},e)}))},Ee=function(e){var t=[],n=function(n){e[n].forEach((function(e,r){var o;t[r]?t[r][n]=e:t[r]=((o={name:r})[n]=e,o)}))};for(var r in e)n(r);return t},Be=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"]))),Ge=[{name:"-3SD",label:"-3",color:i.theme.colors.red600},{name:"-2SD",label:"-2",color:i.theme.colors.yellow600},{name:"0Median",label:"0",color:i.theme.colors.green600},{name:"2SD",label:"2",color:i.theme.colors.yellow600},{name:"3SD",label:"3",color:i.theme.colors.red600},{name:"history",color:i.theme.colors.primaryBase}],ke=[{name:"3rd",color:i.theme.colors.red600},{name:"15th",color:i.theme.colors.yellow600},{name:"50th",color:i.theme.colors.green600},{name:"85th",color:i.theme.colors.yellow600},{name:"97th",color:i.theme.colors.red600},{name:"history",color:i.theme.colors.primaryBase}],Le=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"}))})),Me=function(e){var t=e.x,n=e.y,r=e.last,o=e.index,a=e.name;return r===o?x.default.createElement("text",{x:t,y:n,dx:16,fill:i.theme.colors.gray500,fontSize:12,textAnchor:"middle"},a):null};exports.BabyGrowthChart=function(r){var l=r.gender,c=r.type,u=r.duration,f=r.xLabel,h=r.x,m=r.y,p=r.toolTipLabel,C=void 0===p?[]:p,y=r.isDivide,b=void 0===y||y,g=r.onIsPrevious,w=r.locale,v=r.riskLevel,E=r.withLine,B=void 0!==E&&E,G=r.lineData,k=void 0===G?[]:G,L=e.useState([]),M=L[0],_=L[1],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,xe(l,c,u,w)];case 1:if(e=r.sent().default,t=Ee(e),Array.isArray(t)&&0===t.length)return null==g||g(),[2];n=t.map((function(e,t){return a.__assign(a.__assign({},e),{name:t})}));try{n=b?we(h||0,t):t}catch(e){}return _(n),[2]}}))}))}),[l,c,u,w,g]);var j=e.useState(!1),H=j[0],D=j[1],T=e.useMemo((function(){return B&&Array.isArray(M)&&M.length>0?ve(M,k):M}),[B,k,M]),S=e.useRef(null);s.useOutsideClick(S,(function(){return D(!1)}));return x.default.createElement(Be,null,x.default.createElement("div",{className:"custom-chart-label"},x.default.createElement(o.Text,{size:"n1",color:i.theme.colors.gray500},function(){switch(c){case n.BabyGrowthChartType.Weight:return I("babyGrowth.weight");case n.BabyGrowthChartType.Height:return I("babyGrowth.height");case n.BabyGrowthChartType.Head:return I("babyGrowth.headCircumference");case n.BabyGrowthChartType.BMI:return"BMI";default:return""}}()),x.default.createElement(o.Text,{size:"n1",color:i.theme.colors.gray500},w===n.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:i.theme.colors.blue200}),x.default.createElement(d.Tooltip,{trigger:"click",content:x.default.createElement(x.default.Fragment,null,H&&void 0!==h&&void 0!==m&&x.default.createElement(ie,{riskLevel:v,tooltips:C,locale:w}))}),x.default.createElement(d.XAxis,{dataKey:"name",tickLine:!1,tickMargin:12,tick:{fontFamily:"Inter",fontWeight:400,fontSize:12,color:i.theme.colors.gray800},domain:["dataMin","dataMax"]}),x.default.createElement(d.YAxis,{domain:[function(e){return Math.min(e,m||e)},function(e){return Math.max(e,m||e)}],tickLine:!1,tickMargin:7,width:45,tickCount:10,allowDecimals:!1,tickFormatter:function(e){return String(Math.round(100*(e+Number.EPSILON))/100)},tick:{fontFamily:"Inter",fontWeight:400,fontSize:12,color:i.theme.colors.gray800}}),(w===n.LOCALE.Indonesia?Ge:ke).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,label:x.default.createElement(Me,{last:(null==T?void 0:T.length)?T.length-1:0,name:(null==e?void 0:e.label)||e.name}),tooltipType:"none"}))})),void 0!==h&&void 0!==m&&x.default.createElement(d.ReferenceDot,{onClick:function(){return D(!0)},x:0===h?1:h,y:m,r:4,shape:x.default.createElement(Le,{ref:S,r:4}),fill:i.theme.colors.primaryBase,stroke:i.theme.colors.primaryBase}))),x.default.createElement("div",{className:"custom-chart-label"},x.default.createElement("i",null),x.default.createElement(o.Text,{size:"n1",color:i.theme.colors.gray500},f)))},exports.BabyGrowthChartPercentile=be,exports.BabyGrowthChartZScore=ge,exports.BabyGrowthChooseProfileDrawer=function(n){var r,l,i=n.babyProfiles,u=n.onClose,s=n.onCreate,d=n.onAddMeasurement,f=n.onSwitchProfile,h=n.open,m=n.isMobile,p=n.isMyProfile,C=void 0!==p&&p,y=a.__rest(n,["babyProfiles","onClose","onCreate","onAddMeasurement","onSwitchProfile","open","isMobile","isMyProfile"]),b=e.useState(null===(r=i[0])||void 0===r?void 0:r.id),g=b[0],w=b[1],v=t.useTranslations().t;return m?x.default.createElement(Ce,a.__assign({title:"Baby profiles",onClose:u,open:h,placement:"bottom"},y),(function(e){var t,n=e.internalClose;return x.default.createElement("div",{className:"add-profile-container"},x.default.createElement("div",{className:"profile-container"},null===(t=i||[])||void 0===t?void 0:t.map((function(e){return x.default.createElement(ue,{key:e.id,profile:e,isActive:g===e.id,onChange:w})}))),x.default.createElement("div",{className:"button-group"},x.default.createElement(c.Button,{onClick:function(){n(),null==s||s()},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"}))},v("babyGrowth.drawer.createBaby")),x.default.createElement(c.Button,{size:"lg",color:"primary",onClick:function(){n(),C?null==f||f(g):null==d||d(g)}},v(C?"babyGrowth.drawer.switchProfile":"babyGrowth.drawer.addMeasurement"))))})):x.default.createElement(ye,{type:"confirm",isOpen:h,onClose:u},x.default.createElement("div",{className:"header"},x.default.createElement("div",{className:"title"},x.default.createElement(o.Text,{size:"s2",type:"semiBold"},"Baby profiles"),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:u},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===(l=i||[])||void 0===l?void 0:l.map((function(e){return x.default.createElement(ue,{key:e.id,profile:e,isActive:g===e.id,onChange:w})}))),x.default.createElement("div",{className:"button-group"},x.default.createElement(c.Button,{onClick:function(){null==s||s(),u()},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"}))},v("babyGrowth.drawer.createBaby")),x.default.createElement(c.Button,{size:"lg",color:"primary",onClick:function(){C?null==f||f(g):null==d||d(g),u()}},v(C?"babyGrowth.drawer.switchProfile":"babyGrowth.drawer.addMeasurement"))))},exports.BabyGrowthGender=function(e){var a=e.value,l=e.onChange,i=t.useTranslations().t;return x.default.createElement(v,null,x.default.createElement(o.Text,{size:"label2",type:"bold",style:{marginBottom:"0.5rem"}},i("babyVaccineTool.selectGender")),x.default.createElement(E,{options:[{value:n.Gender.Girl,label:i("gender.female"),content:x.default.createElement(r.Icon.GenderChooseGirl,null)},{value:n.Gender.Boy,label:i("gender.male"),content:x.default.createElement(r.Icon.GenderChooseBoy,null)}],value:a,onChange:l,className:"gender-selector"}))},exports.BabyGrowthLegend=function(e){var t=e.legends,r=e.locale;return x.default.createElement(B,null,t.map((function(e,t){return x.default.createElement(G,{key:t},x.default.createElement("span",{className:"dot",style:{backgroundColor:e.color}}),x.default.createElement(o.Text,{size:"n1",color:i.theme.colors.gray800},r===n.LOCALE.Indonesia?e["z-score"]:e.text))})))},exports.BabyGrowthProfileRadio=ue,exports.BabyGrowthRecord=function(e){var t=e.measurementDate,n=void 0===t?new Date:t,r=e.weight,a=e.height,l=e.head,c=e.onEdit;return x.default.createElement(se,null,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(o.Text,{size:"p3",color:i.theme.colors.gray600},u.format(n,"dd/mm/yyyy")),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",onClick:c},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(o.Text,{size:"s3",color:i.theme.colors.gray800,type:"semiBold"},de(r,"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(o.Text,{size:"s3",color:i.theme.colors.gray800,type:"semiBold"},de(a,"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(o.Text,{size:"s3",color:i.theme.colors.gray800,type:"semiBold"},de(l,"cm")))))},exports.BabyGrowthSwitch=function(e){var t=e.switchType,n=e.onTypeChange;return x.default.createElement(k,null,x.default.createElement(c.Button,{className:"switch",size:"sm",color:t===exports.BabyGrowthSwitchChart.WHO?"primary":"ghost",onClick:function(){return n(exports.BabyGrowthSwitchChart.WHO)}},"WHO"),x.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=ie,exports.ChildCard=function(a){var l=a.name,u=a.gender,s=a.age,d=a.isLoggedIn,f=void 0!==d&&d,h=a.showMenu,m=void 0!==h&&h,p=a.onEdit,C=a.onSwitch,y=a.onAdd,b=a.onRemove,g=a.className,w=t.useTranslations().t,v=e.useState(!1),E=v[0],B=v[1],G=e.useCallback((function(){if(s)if(s.year<1){if(0===s.month)switch(s.week){case 0:case 1:return w("childCard.age.oneWeek");default:return w("childCard.age.week",{weeks:s.week})}if(s.month>0)return w("childCard.age.months",{month:s.month})}else{if(0===s.month)return w("childCard.age.yearNoMonth",{year:s.year});if(s.month>0)return w("childCard.age.yearMonth",{year:s.year,month:s.month})}}),[s]);return x.default.createElement(fe,{className:g},x.default.createElement("div",{"data-testid":"gender"},u===n.Gender.Boy?x.default.createElement(r.Icon.Boy,{"data-testid":"boy",id:"boy"}):x.default.createElement(r.Icon.Girl,{"data-testid":"girl",id:"girl"})),x.default.createElement("div",{className:"information"},x.default.createElement(c.Heading,{tag:"h5",fontWeight:"bold",color:i.theme.colors.gray800},t.startCase(l)||w("childCard.noName")),x.default.createElement("div",{className:"detail"},x.default.createElement("div",null,u===n.Gender.Boy?x.default.createElement(r.Icon.GenderBoy,null):x.default.createElement(r.Icon.GenderGirl,null),x.default.createElement(o.Text,{size:"p3",color:i.theme.colors.gray800,style:{textTransform:"capitalize"}},u)),x.default.createElement("div",null,x.default.createElement(r.Icon.Calendar,{size:16}),s&&x.default.createElement(o.Text,{size:"p3",color:i.theme.colors.gray800},G())))),m&&f&&x.default.createElement(he,null,x.default.createElement(r.Icon.Kebab,{onClick:function(){return B((function(e){return!e}))}}),E&&x.default.createElement(pe,{name:l,onClose:function(){return B(!1)},onEdit:function(){B(!1),p()},onSwitch:function(){B(!1),C()},onAdd:function(){B(!1),y()},onRemove:function(){B(!1),b()}})))},exports.LABELS_PERCENTILE=ke,exports.LABELS_Z_SCORE=Ge,exports.divideChartData=we,exports.generateGrowthChart=xe,exports.getAxisYDomain=function(e,t,n,r,o){var a=e.slice(t-1,n),l=[a[0][r],a[0][r]],i=l[0],c=l[1];return a.forEach((function(e){e[r]>c&&(c=e[r]),e[r]<i&&(i=e[r])})),[(0|i)-o,(0|c)+o]},exports.refineDataWithLine=ve,exports.transformDataToChart=Ee;
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("./useTranslations-e724fe88.js"),n=require("./lazyLoad-0454885d.js"),r=require("./index-6341cc08.js"),o=require("./index.styled-74b743ee.js"),a=require("./tslib.es6-f7929e76.js"),l=require("styled-components"),i=require("./theme-19de09d7.js"),c=require("./index.styled-c9e10b13.js"),u=require("date-fns");require("react-range"),require("react-dom");var s=require("./useOutsideClick-528bfd6c.js"),d=require("recharts");require("lodash/debounce");var f=require("lodash");function h(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}require("./translationsContext-1968f8ef.js"),require("string-format"),require("vanilla-lazyload"),require("./useScrollbarSize-586f6706.js");var m,p,C,y,b,g,x=h(e),w=h(l),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(r.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"])),i.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,H,D,T,S,q,P,z,O,R,W,Y,A,N,Z,V,U,F,K,Q,X,J,$,ee,te,ne,re,oe=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"])),i.theme.colors.yellow600),ae=[{name:["3rd","-3SD","97th","3SD"],color:i.theme.colors.red600},{name:["15rd","-2SD","85th","2SD"],color:i.theme.colors.yellow600},{name:["50th","0Median"],color:i.theme.colors.green600}],le={"3rd":"-3SD","15th":"-2SD","50th":"Median","85th":"2SD","97th":"3SD"},ie=function(t){var r=t.riskLevel,a=t.tooltips,l=t.locale,c=e.useMemo((function(){var e;return null===(e=ae.find((function(e){return e.name.includes(r||"")})))||void 0===e?void 0:e.color}),[r]),u=e.useMemo((function(){return l===n.LOCALE.Indonesia?r?le[r]:"":r}),[l,r]);return x.default.createElement(oe,null,x.default.createElement("div",{className:"risk",style:{backgroundColor:c}},x.default.createElement(o.Text,{size:"s3",color:i.theme.colors.white,type:"semiBold"},u)),x.default.createElement("div",{className:"tooltip"},a.map((function(e,t){return x.default.createElement(o.Text,{key:t,size:"n1",color:i.theme.colors.gray600},e)}))))},ce=w.default.div(M||(M=a.__makeTemplateObject(["\n background: #ffffff;\n border: 1px solid ",";\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: #ffffff;\n border: 1px solid ",";\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"])),i.theme.colors.neutral100,i.theme.colors.gray600,"300ms",i.theme.colors.primaryBase,i.theme.colors.primaryBase,t.fadeIn,"300ms"),ue=function(e){var t=e.profile,n=e.onChange,a=e.isActive;return x.default.createElement(ce,{onClick:function(){return n(t.id)}},x.default.createElement("div",{className:"baby"},"male"===t.gender?x.default.createElement(r.Icon.Boy,{size:24}):x.default.createElement(r.Icon.Girl,{size:24}),x.default.createElement(o.Text,{size:"p2",color:i.theme.colors.gray800},t.name)),x.default.createElement("div",{className:a?"radio active":"radio"}))},se=w.default.div(_||(_=a.__makeTemplateObject(["\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: flex;\n align-items: center;\n justify-content: space-between;\n padding-right: 14px;\n }\n .record-item {\n display: flex;\n align-items: center;\n gap: 8px;\n }\n"],["\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: flex;\n align-items: center;\n justify-content: space-between;\n padding-right: 14px;\n }\n .record-item {\n display: flex;\n align-items: center;\n gap: 8px;\n }\n"])),i.theme.colors.gray100),de=function(e,t){return e?e+" "+(t||""):"--"},fe=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"])),i.theme.colors.white,i.theme.colors.gray100),he=w.default.div(j||(j=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"]))),me=w.default(o.Menu)(H||(H=a.__makeTemplateObject(["\n position: absolute;\n right: 0;\n z-index: 1;\n"],["\n position: absolute;\n right: 0;\n z-index: 1;\n"]))),pe=function(n){var r=n.name,a=n.onClose,l=n.onEdit,c=n.onSwitch,u=n.onAdd,d=n.onRemove,f=t.useTranslations().t,h=e.useRef();return s.useOutsideClick(h,a),x.default.createElement("div",{ref:h},x.default.createElement(me,{width:250},x.default.createElement(o.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(o.Text,{size:"p2",color:i.theme.colors.gray800},f("childCard.menu.edit",{name:r}))),x.default.createElement(o.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",{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(o.Text,{size:"p2",color:i.theme.colors.gray800},f("childCard.menu.switch"))),x.default.createElement(o.Menu.Item,{onClick:u,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(o.Text,{size:"p2",color:i.theme.colors.gray800},f("childCard.menu.add"))),x.default.createElement(o.Menu.Item,{onClick:d,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(o.Text,{size:"p2",color:i.theme.colors.red600},f("childCard.menu.remove",{name:r})))))},Ce=w.default(c.Drawer)(D||(D=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"]))),ye=w.default(r.Modal)(T||(T=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 }\n\n .button-group {\n display: flex;\n justify-content: flex-end;\n gap: 30px;\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 }\n\n .button-group {\n display: flex;\n justify-content: flex-end;\n gap: 30px;\n margin-block: 16px;\n }\n"])),i.theme.colors.neutral100,i.theme.colors.neutral100),be=((S={})[n.Gender.Boy]=((q={})[n.BabyGrowthChartType.Weight]=((P={})[n.BabyGrowthChartDuration.Weekly]=function(){return Promise.resolve().then((function(){return require("./WEIGHT_BOYS.percentile.weekly-8b301e27.js")}))},P[n.BabyGrowthChartDuration.Monthly]=function(){return Promise.resolve().then((function(){return require("./WEIGHT_BOYS.percentile.monthly-305649d8.js")}))},P[n.BabyGrowthChartDuration.Yearly]=function(){return Promise.resolve().then((function(){return require("./WEIGHT_BOYS.percentile.yearly-96f3249d.js")}))},P),q[n.BabyGrowthChartType.Height]=((z={})[n.BabyGrowthChartDuration.Weekly]=function(){return Promise.resolve().then((function(){return require("./HEIGHT_BOYS.percentile.weekly-71fb3532.js")}))},z[n.BabyGrowthChartDuration.Monthly]=function(){return Promise.resolve().then((function(){return require("./HEIGHT_BOYS.percentile.monthly-b6e07b4d.js")}))},z[n.BabyGrowthChartDuration.Yearly]=function(){return Promise.resolve().then((function(){return require("./HEIGHT_BOYS.percentile.yearly-18e5463a.js")}))},z),q[n.BabyGrowthChartType.Head]=((O={})[n.BabyGrowthChartDuration.Weekly]=function(){return Promise.resolve().then((function(){return require("./HEAD CIRCUM_BOYS.percentile.weekly-923d3626.js")}))},O[n.BabyGrowthChartDuration.Monthly]=function(){return Promise.resolve().then((function(){return require("./HEAD CIRCUM_BOYS.percentile.monthly-e79e5d3f.js")}))},O[n.BabyGrowthChartDuration.Yearly]=function(){return Promise.resolve().then((function(){return require("./HEAD CIRCUM_BOYS.percentile.yearly-4133a7da.js")}))},O),q[n.BabyGrowthChartType.BMI]=((R={})[n.BabyGrowthChartDuration.Weekly]=function(){return Promise.resolve().then((function(){return require("./BMI_BOYS.percentile.weekly-75bff607.js")}))},R[n.BabyGrowthChartDuration.Monthly]=function(){return Promise.resolve().then((function(){return require("./BMI_BOYS.percentile.monthly-1c8c4c98.js")}))},R[n.BabyGrowthChartDuration.Yearly]=function(){return Promise.resolve().then((function(){return require("./BMI_BOYS.percentile.yearly-b8d86c12.js")}))},R),q),S[n.Gender.Girl]=((W={})[n.BabyGrowthChartType.Weight]=((Y={})[n.BabyGrowthChartDuration.Weekly]=function(){return Promise.resolve().then((function(){return require("./WEIGHT_GIRLS.percentile.weekly-63c6a2a3.js")}))},Y[n.BabyGrowthChartDuration.Monthly]=function(){return Promise.resolve().then((function(){return require("./WEIGHT_GIRLS.percentile.monthly-b0905186.js")}))},Y[n.BabyGrowthChartDuration.Yearly]=function(){return Promise.resolve().then((function(){return require("./WEIGHT_GIRLS.percentile.yearly-49663736.js")}))},Y),W[n.BabyGrowthChartType.Height]=((A={})[n.BabyGrowthChartDuration.Weekly]=function(){return Promise.resolve().then((function(){return require("./HEIGHT_GIRLS.percentile.weekly-b2628828.js")}))},A[n.BabyGrowthChartDuration.Monthly]=function(){return Promise.resolve().then((function(){return require("./HEIGHT_GIRLS.percentile.monthly-1e34eb90.js")}))},A[n.BabyGrowthChartDuration.Yearly]=function(){return Promise.resolve().then((function(){return require("./HEIGHT_GIRLS.percentile.yearly-72339b71.js")}))},A),W[n.BabyGrowthChartType.Head]=((N={})[n.BabyGrowthChartDuration.Weekly]=function(){return Promise.resolve().then((function(){return require("./HEAD CIRCUM_GIRLS.percentile.weekly-0020f6e2.js")}))},N[n.BabyGrowthChartDuration.Monthly]=function(){return Promise.resolve().then((function(){return require("./HEAD CIRCUM_GIRLS.percentile.monthly-67f98b04.js")}))},N[n.BabyGrowthChartDuration.Yearly]=function(){return Promise.resolve().then((function(){return require("./HEAD CIRCUM_GIRLS.percentile.yearly-6afd8bc6.js")}))},N),W[n.BabyGrowthChartType.BMI]=((Z={})[n.BabyGrowthChartDuration.Weekly]=function(){return Promise.resolve().then((function(){return require("./BMI_GIRLS.percentile.weekly-aa3da5c1.js")}))},Z[n.BabyGrowthChartDuration.Monthly]=function(){return Promise.resolve().then((function(){return require("./BMI_GIRLS.percentile.monthly-f482508e.js")}))},Z[n.BabyGrowthChartDuration.Yearly]=function(){return Promise.resolve().then((function(){return require("./BMI_GIRLS.percentile.yearly-624db278.js")}))},Z),W),S),ge=((V={})[n.Gender.Boy]=((U={})[n.BabyGrowthChartType.Weight]=((F={})[n.BabyGrowthChartDuration.Weekly]=function(){return Promise.resolve().then((function(){return require("./WEIGHT_BOYS.zscore.weekly-0b1faf98.js")}))},F[n.BabyGrowthChartDuration.Monthly]=function(){return Promise.resolve().then((function(){return require("./WEIGHT_BOYS.zscore.monthly-22c8f908.js")}))},F[n.BabyGrowthChartDuration.Yearly]=function(){return Promise.resolve().then((function(){return require("./WEIGHT_BOYS.zscore.yearly-8090c58c.js")}))},F),U[n.BabyGrowthChartType.Height]=((K={})[n.BabyGrowthChartDuration.Weekly]=function(){return Promise.resolve().then((function(){return require("./HEIGHT_BOYS.zscore.weekly-70c18763.js")}))},K[n.BabyGrowthChartDuration.Monthly]=function(){return Promise.resolve().then((function(){return require("./HEIGHT_BOYS.zscore.monthly-7a8e43dd.js")}))},K[n.BabyGrowthChartDuration.Yearly]=function(){return Promise.resolve().then((function(){return require("./HEIGHT_BOYS.zscore.yearly-b9e6ea6b.js")}))},K),U[n.BabyGrowthChartType.Head]=((Q={})[n.BabyGrowthChartDuration.Weekly]=function(){return Promise.resolve().then((function(){return require("./HEAD CIRCUM_BOYS.zscore.weekly-f472daa8.js")}))},Q[n.BabyGrowthChartDuration.Monthly]=function(){return Promise.resolve().then((function(){return require("./HEAD CIRCUM_BOYS.zscore.monthly-4727bfe4.js")}))},Q[n.BabyGrowthChartDuration.Yearly]=function(){return Promise.resolve().then((function(){return require("./HEAD CIRCUM_BOYS.zscore.yearly-13a09c3f.js")}))},Q),U[n.BabyGrowthChartType.BMI]=((X={})[n.BabyGrowthChartDuration.Weekly]=function(){return Promise.resolve().then((function(){return require("./BMI_BOYS.zscore.weekly-aba5d53b.js")}))},X[n.BabyGrowthChartDuration.Monthly]=function(){return Promise.resolve().then((function(){return require("./BMI_BOYS.zscore.monthly-5efef594.js")}))},X[n.BabyGrowthChartDuration.Yearly]=function(){return Promise.resolve().then((function(){return require("./BMI_BOYS.zscore.yearly-52cbcf95.js")}))},X),U),V[n.Gender.Girl]=((J={})[n.BabyGrowthChartType.Weight]=(($={})[n.BabyGrowthChartDuration.Weekly]=function(){return Promise.resolve().then((function(){return require("./WEIGHT_GIRLS.zscore.weekly-29d8f232.js")}))},$[n.BabyGrowthChartDuration.Monthly]=function(){return Promise.resolve().then((function(){return require("./WEIGHT_GIRLS.zscore.monthly-0b14c285.js")}))},$[n.BabyGrowthChartDuration.Yearly]=function(){return Promise.resolve().then((function(){return require("./WEIGHT_GIRLS.zscore.yearly-95aa9ac3.js")}))},$),J[n.BabyGrowthChartType.Height]=((ee={})[n.BabyGrowthChartDuration.Weekly]=function(){return Promise.resolve().then((function(){return require("./HEIGHT_GIRLS.zscore.weekly-7ed52595.js")}))},ee[n.BabyGrowthChartDuration.Monthly]=function(){return Promise.resolve().then((function(){return require("./HEIGHT_GIRLS.zscore.monthly-e473a16c.js")}))},ee[n.BabyGrowthChartDuration.Yearly]=function(){return Promise.resolve().then((function(){return require("./HEIGHT_GIRLS.zscore.yearly-225f27c4.js")}))},ee),J[n.BabyGrowthChartType.Head]=((te={})[n.BabyGrowthChartDuration.Weekly]=function(){return Promise.resolve().then((function(){return require("./HEAD CIRCUM_GIRLS.zscore.weekly-a0fa670d.js")}))},te[n.BabyGrowthChartDuration.Monthly]=function(){return Promise.resolve().then((function(){return require("./HEAD CIRCUM_GIRLS.zscore.monthly-9c635d09.js")}))},te[n.BabyGrowthChartDuration.Yearly]=function(){return Promise.resolve().then((function(){return require("./HEAD CIRCUM_GIRLS.zscore.yearly-fcdb544a.js")}))},te),J[n.BabyGrowthChartType.BMI]=((ne={})[n.BabyGrowthChartDuration.Weekly]=function(){return Promise.resolve().then((function(){return require("./BMI_GIRLS.zscore.weekly-56e2c916.js")}))},ne[n.BabyGrowthChartDuration.Monthly]=function(){return Promise.resolve().then((function(){return require("./BMI_GIRLS.zscore.monthly-11ffe2ae.js")}))},ne[n.BabyGrowthChartDuration.Yearly]=function(){return Promise.resolve().then((function(){return require("./BMI_GIRLS.zscore.yearly-a3d00356.js")}))},ne),J),V),xe=function(e,t,r,o){return o===n.LOCALE.Indonesia?ge[e][t][r]():be[e][t][r]()},we=function(e,t){var n=f.chunk(t,Math.ceil(t.length/2)),r=n[0],o=n[1],a=r.map((function(e){return e.name})),l=o.map((function(e){return e.name}));return a.includes(e)?r:l.includes(e)?o:t},ve=function(e,t){return e.map((function(e){var n=t.find((function(t){return t.name===e.name}));return n?a.__assign(a.__assign({},e),{history:n.value}):a.__assign({},e)}))},Ee=function(e){var t=[],n=function(n){e[n].forEach((function(e,r){var o;t[r]?t[r][n]=e:t[r]=((o={name:r})[n]=e,o)}))};for(var r in e)n(r);return t},Be=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"]))),Ge=[{name:"-3SD",label:"-3",color:i.theme.colors.red600},{name:"-2SD",label:"-2",color:i.theme.colors.yellow600},{name:"0Median",label:"0",color:i.theme.colors.green600},{name:"2SD",label:"2",color:i.theme.colors.yellow600},{name:"3SD",label:"3",color:i.theme.colors.red600},{name:"history",color:i.theme.colors.primaryBase}],ke=[{name:"3rd",color:i.theme.colors.red600},{name:"15th",color:i.theme.colors.yellow600},{name:"50th",color:i.theme.colors.green600},{name:"85th",color:i.theme.colors.yellow600},{name:"97th",color:i.theme.colors.red600},{name:"history",color:i.theme.colors.primaryBase}],Le=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"}))})),Me=function(e){var t=e.x,n=e.y,r=e.last,o=e.index,a=e.name;return r===o?x.default.createElement("text",{x:t,y:n,dx:16,fill:i.theme.colors.gray500,fontSize:12,textAnchor:"middle"},a):null};exports.BabyGrowthChart=function(r){var l=r.gender,c=r.type,u=r.duration,f=r.xLabel,h=r.x,m=r.y,p=r.toolTipLabel,C=void 0===p?[]:p,y=r.isDivide,b=void 0===y||y,g=r.onIsPrevious,w=r.locale,v=r.riskLevel,E=r.withLine,B=void 0!==E&&E,G=r.lineData,k=void 0===G?[]:G,L=e.useState([]),M=L[0],_=L[1],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,xe(l,c,u,w)];case 1:if(e=r.sent().default,t=Ee(e),Array.isArray(t)&&0===t.length)return null==g||g(),[2];n=t.map((function(e,t){return a.__assign(a.__assign({},e),{name:t})}));try{n=b?we(h||0,t):t}catch(e){}return _(n),[2]}}))}))}),[l,c,u,w,g]);var j=e.useState(!1),H=j[0],D=j[1],T=e.useMemo((function(){return B&&Array.isArray(M)&&M.length>0?ve(M,k):M}),[B,k,M]),S=e.useRef(null);s.useOutsideClick(S,(function(){return D(!1)}));return x.default.createElement(Be,null,x.default.createElement("div",{className:"custom-chart-label"},x.default.createElement(o.Text,{size:"n1",color:i.theme.colors.gray500},function(){switch(c){case n.BabyGrowthChartType.Weight:return I("babyGrowth.weight");case n.BabyGrowthChartType.Height:return I("babyGrowth.height");case n.BabyGrowthChartType.Head:return I("babyGrowth.headCircumference");case n.BabyGrowthChartType.BMI:return"BMI";default:return""}}()),x.default.createElement(o.Text,{size:"n1",color:i.theme.colors.gray500},w===n.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:i.theme.colors.blue200}),x.default.createElement(d.Tooltip,{trigger:"click",content:x.default.createElement(x.default.Fragment,null,H&&void 0!==h&&void 0!==m&&x.default.createElement(ie,{riskLevel:v,tooltips:C,locale:w}))}),x.default.createElement(d.XAxis,{dataKey:"name",tickLine:!1,tickMargin:12,tick:{fontFamily:"Inter",fontWeight:400,fontSize:12,color:i.theme.colors.gray800},domain:["dataMin","dataMax"]}),x.default.createElement(d.YAxis,{domain:[function(e){return Math.min(e,m||e)},function(e){return Math.max(e,m||e)}],tickLine:!1,tickMargin:7,width:45,tickCount:10,allowDecimals:!1,tickFormatter:function(e){return String(Math.round(100*(e+Number.EPSILON))/100)},tick:{fontFamily:"Inter",fontWeight:400,fontSize:12,color:i.theme.colors.gray800}}),(w===n.LOCALE.Indonesia?Ge:ke).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,label:x.default.createElement(Me,{last:(null==T?void 0:T.length)?T.length-1:0,name:(null==e?void 0:e.label)||e.name}),tooltipType:"none"}))})),void 0!==h&&void 0!==m&&x.default.createElement(d.ReferenceDot,{onClick:function(){return D(!0)},x:0===h?1:h,y:m,r:4,shape:x.default.createElement(Le,{ref:S,r:4}),fill:i.theme.colors.primaryBase,stroke:i.theme.colors.primaryBase}))),x.default.createElement("div",{className:"custom-chart-label"},x.default.createElement("i",null),x.default.createElement(o.Text,{size:"n1",color:i.theme.colors.gray500},f)))},exports.BabyGrowthChartPercentile=be,exports.BabyGrowthChartZScore=ge,exports.BabyGrowthChooseProfileDrawer=function(n){var r,l,i=n.babyProfiles,u=n.onClose,s=n.onCreate,d=n.onAddMeasurement,f=n.onSwitchProfile,h=n.open,m=n.isMobile,p=n.isMyProfile,C=void 0!==p&&p,y=a.__rest(n,["babyProfiles","onClose","onCreate","onAddMeasurement","onSwitchProfile","open","isMobile","isMyProfile"]),b=e.useState(null===(r=i[0])||void 0===r?void 0:r.id),g=b[0],w=b[1],v=t.useTranslations().t;return m?x.default.createElement(Ce,a.__assign({title:"Baby profiles",onClose:u,open:h,placement:"bottom"},y),(function(e){var t,n=e.internalClose;return x.default.createElement("div",{className:"add-profile-container"},x.default.createElement("div",{className:"profile-container"},null===(t=i||[])||void 0===t?void 0:t.map((function(e){return x.default.createElement(ue,{key:e.id,profile:e,isActive:g===e.id,onChange:w})}))),x.default.createElement("div",{className:"button-group"},x.default.createElement(c.Button,{onClick:function(){n(),null==s||s()},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"}))},v("babyGrowth.drawer.createBaby")),x.default.createElement(c.Button,{size:"lg",color:"primary",onClick:function(){n(),C?null==f||f(g):null==d||d(g)}},v(C?"babyGrowth.drawer.switchProfile":"babyGrowth.drawer.addMeasurement"))))})):x.default.createElement(ye,{type:"confirm",isOpen:h,onClose:u},x.default.createElement("div",{className:"header"},x.default.createElement("div",{className:"title"},x.default.createElement(o.Text,{size:"s2",type:"semiBold"},"Baby profiles"),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:u},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===(l=i||[])||void 0===l?void 0:l.map((function(e){return x.default.createElement(ue,{key:e.id,profile:e,isActive:g===e.id,onChange:w})}))),x.default.createElement("div",{className:"button-group"},x.default.createElement(c.Button,{onClick:function(){null==s||s(),u()},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"}))},v("babyGrowth.drawer.createBaby")),x.default.createElement(c.Button,{size:"lg",color:"primary",onClick:function(){C?null==f||f(g):null==d||d(g),u()}},v(C?"babyGrowth.drawer.switchProfile":"babyGrowth.drawer.addMeasurement"))))},exports.BabyGrowthGender=function(e){var a=e.value,l=e.onChange,i=t.useTranslations().t;return x.default.createElement(v,null,x.default.createElement(o.Text,{size:"label2",type:"bold",style:{marginBottom:"0.5rem"}},i("babyVaccineTool.selectGender")),x.default.createElement(E,{options:[{value:n.Gender.Girl,label:i("gender.female"),content:x.default.createElement(r.Icon.GenderChooseGirl,null)},{value:n.Gender.Boy,label:i("gender.male"),content:x.default.createElement(r.Icon.GenderChooseBoy,null)}],value:a,onChange:l,className:"gender-selector"}))},exports.BabyGrowthLegend=function(e){var t=e.legends,r=e.locale;return x.default.createElement(B,null,t.map((function(e,t){return x.default.createElement(G,{key:t},x.default.createElement("span",{className:"dot",style:{backgroundColor:e.color}}),x.default.createElement(o.Text,{size:"n1",color:i.theme.colors.gray800},r===n.LOCALE.Indonesia?e["z-score"]:e.text))})))},exports.BabyGrowthProfileRadio=ue,exports.BabyGrowthRecord=function(e){var t=e.measurementDate,n=void 0===t?new Date:t,r=e.weight,a=e.height,l=e.head,c=e.onEdit;return x.default.createElement(se,null,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(o.Text,{size:"p3",color:i.theme.colors.gray600},u.format(n,"dd/mm/yyyy")),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",onClick:c},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(o.Text,{size:"s3",color:i.theme.colors.gray800,type:"semiBold"},de(r,"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(o.Text,{size:"s3",color:i.theme.colors.gray800,type:"semiBold"},de(a,"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(o.Text,{size:"s3",color:i.theme.colors.gray800,type:"semiBold"},de(l,"cm")))))},exports.BabyGrowthSwitch=function(e){var t=e.switchType,n=e.onTypeChange;return x.default.createElement(k,null,x.default.createElement(c.Button,{className:"switch",size:"sm",color:t===exports.BabyGrowthSwitchChart.WHO?"primary":"ghost",onClick:function(){return n(exports.BabyGrowthSwitchChart.WHO)}},"WHO"),x.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=ie,exports.ChildCard=function(a){var l=a.name,u=a.gender,s=a.age,d=a.isLoggedIn,f=void 0!==d&&d,h=a.showMenu,m=void 0!==h&&h,p=a.onEdit,C=a.onSwitch,y=a.onAdd,b=a.onRemove,g=a.className,w=t.useTranslations().t,v=e.useState(!1),E=v[0],B=v[1],G=e.useCallback((function(){if(s)if(s.year<1){if(0===s.month)switch(s.week){case 0:case 1:return w("childCard.age.oneWeek");default:return w("childCard.age.week",{weeks:s.week})}if(s.month>0)return w("childCard.age.months",{month:s.month})}else{if(0===s.month)return w("childCard.age.yearNoMonth",{year:s.year});if(s.month>0)return w("childCard.age.yearMonth",{year:s.year,month:s.month})}}),[s]);return x.default.createElement(fe,{className:g},x.default.createElement("div",{"data-testid":"gender"},u===n.Gender.Boy?x.default.createElement(r.Icon.Boy,{"data-testid":"boy",id:"boy"}):x.default.createElement(r.Icon.Girl,{"data-testid":"girl",id:"girl"})),x.default.createElement("div",{className:"information"},x.default.createElement(c.Heading,{tag:"h5",fontWeight:"bold",color:i.theme.colors.gray800},t.startCase(l)||w("childCard.noName")),x.default.createElement("div",{className:"detail"},x.default.createElement("div",null,u===n.Gender.Boy?x.default.createElement(r.Icon.GenderBoy,null):x.default.createElement(r.Icon.GenderGirl,null),x.default.createElement(o.Text,{size:"p3",color:i.theme.colors.gray800,style:{textTransform:"capitalize"}},u)),x.default.createElement("div",null,x.default.createElement(r.Icon.Calendar,{size:16}),s&&x.default.createElement(o.Text,{size:"p3",color:i.theme.colors.gray800},G())))),m&&f&&x.default.createElement(he,null,x.default.createElement(r.Icon.Kebab,{onClick:function(){return B((function(e){return!e}))}}),E&&x.default.createElement(pe,{name:l,onClose:function(){return B(!1)},onEdit:function(){B(!1),p()},onSwitch:function(){B(!1),C()},onAdd:function(){B(!1),y()},onRemove:function(){B(!1),b()}})))},exports.LABELS_PERCENTILE=ke,exports.LABELS_Z_SCORE=Ge,exports.divideChartData=we,exports.generateGrowthChart=xe,exports.getAxisYDomain=function(e,t,n,r,o){var a=e.slice(t-1,n),l=[a[0][r],a[0][r]],i=l[0],c=l[1];return a.forEach((function(e){e[r]>c&&(c=e[r]),e[r]<i&&(i=e[r])})),[(0|i)-o,(0|c)+o]},exports.refineDataWithLine=ve,exports.transformDataToChart=Ee;
|
package/build/care.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./types-
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./types-643e02d5.js"),r=require("./constants-fd158475.js");require("./tslib.es6-f7929e76.js"),require("react"),require("./theme-19de09d7.js"),require("./cookieHelper-612b90fa.js"),require("./useTranslations-e724fe88.js"),require("styled-components"),require("./translationsContext-1968f8ef.js"),require("string-format"),require("lodash/debounce"),require("./index.styled-74b743ee.js"),require("react-range"),require("react-dom"),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,4 +1,4 @@
|
|
|
1
|
-
import { ReactNode, ButtonHTMLAttributes } from 'react';
|
|
1
|
+
import React, { ReactNode, ButtonHTMLAttributes } from 'react';
|
|
2
2
|
export declare type Props = Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'onClick'> & {
|
|
3
3
|
size: 'lg' | 'md' | 'sm';
|
|
4
4
|
children?: ReactNode;
|
|
@@ -11,7 +11,7 @@ export declare type Props = Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'onCli
|
|
|
11
11
|
icon?: JSX.Element;
|
|
12
12
|
isLoading?: boolean;
|
|
13
13
|
loadingText?: string;
|
|
14
|
-
onClick?: (evt?:
|
|
14
|
+
onClick?: (evt?: React.MouseEvent) => void;
|
|
15
15
|
dataEventCategory?: string;
|
|
16
16
|
dataEventAction?: string;
|
|
17
17
|
dataEventLabel?: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
export declare type FlagCountryType = 'VN' | 'ID' | 'TH' | 'KH' | 'MY' | 'MM' | 'PH' | 'IN' | 'TW';
|
|
3
3
|
export declare type FlagLanguageType = 'vi' | 'id' | 'ms' | 'km' | 'en' | 'th' | 'my' | 'zh' | 'hi' | 'tl';
|
|
4
|
-
declare type Props = {
|
|
4
|
+
export declare type Props = {
|
|
5
5
|
country?: FlagCountryType;
|
|
6
6
|
language?: FlagLanguageType;
|
|
7
7
|
width: number;
|
|
@@ -16,6 +16,6 @@ export declare type CustomInputProps = {
|
|
|
16
16
|
enterKeyHint?: React.InputHTMLAttributes<HTMLInputElement>['enterKeyHint'];
|
|
17
17
|
nativeOnChange?: React.ChangeEventHandler<HTMLInputElement>;
|
|
18
18
|
};
|
|
19
|
-
export declare type Props = Omit<React.DetailedHTMLProps<InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, 'size' | 'autoComplete' | 'type' | 'onChange' | 'enterKeyHint'> & CustomInputProps;
|
|
20
|
-
declare const PureInput: React.ForwardRefExoticComponent<
|
|
19
|
+
export declare type Props = Omit<React.DetailedHTMLProps<InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, 'size' | 'autoComplete' | 'type' | 'onChange' | 'enterKeyHint' | 'ref'> & CustomInputProps;
|
|
20
|
+
declare const PureInput: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "enterKeyHint" | "autoComplete" | "size" | "type" | "onChange" | "ref"> & CustomInputProps & React.RefAttributes<HTMLInputElement>>;
|
|
21
21
|
export { PureInput };
|
|
@@ -5,4 +5,4 @@ export declare const StyledDropdownName: import("styled-components").StyledCompo
|
|
|
5
5
|
export declare const StyledDropdownList: import("styled-components").StyledComponent<"ul", any, {}, never>;
|
|
6
6
|
export declare const StyledDropdownOption: import("styled-components").StyledComponent<"li", any, {}, never>;
|
|
7
7
|
export declare const StyledIcon: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
8
|
-
export declare const StyledPureInput: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<
|
|
8
|
+
export declare const StyledPureInput: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref" | "type" | "size" | "onChange" | "autoComplete" | "enterKeyHint"> & import("../../atoms/pureInput/index").CustomInputProps & import("react").RefAttributes<HTMLInputElement>>, any, {}, never>;
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { DrawerProps } from 'src/components/atoms';
|
|
3
|
+
import { LOCALE } from 'src/interfaces/types';
|
|
3
4
|
export declare type ShareDrawerProps = {
|
|
4
5
|
url: string;
|
|
5
6
|
title?: string;
|
|
6
7
|
onCopied?: VoidFunction;
|
|
7
8
|
onShared?: VoidFunction;
|
|
9
|
+
locale: LOCALE;
|
|
8
10
|
} & DrawerProps;
|
|
9
11
|
declare const ShareDrawer: React.FC<ShareDrawerProps>;
|
|
10
12
|
export { ShareDrawer };
|
package/build/components.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./index-9b547b3d.js"),r=require("./index.styled-d893d5f6.js"),o=require("./index.styled-c9e10b13.js"),t=require("./index.styled-00abaf39.js"),a=require("./index-d9a6a588.js"),i=require("./constants-fd158475.js"),s=require("./index.styled-74b743ee.js"),n=require("./index-6341cc08.js");require("react"),require("./tslib.es6-f7929e76.js"),require("./useTranslations-e724fe88.js"),require("styled-components"),require("./translationsContext-1968f8ef.js"),require("string-format"),require("react-range"),require("./theme-19de09d7.js"),require("react-id-generator"),require("date-fns"),require("react-day-picker/DayPickerInput"),require("lodash"),require("keen-slider/react"),require("react-dom"),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("./lazyLoad-0454885d.js"),require("vanilla-lazyload"),require("lodash/debounce"),require("react-loading-skeleton"),require("./translationsProvider-52a4676f.js"),require("./cookieHelper-612b90fa.js"),require("smoothscroll-polyfill"),require("./routing-d8704e87.js"),require("date-fns/locale/hi"),require("date-fns/locale/ms"),require("date-fns/locale/th"),require("slugify"),require("./core-8fcc56eb.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.Layout=e.Layout,exports.NavigationBar=e.NavigationBar,exports.NavigationLayout=e.NavigationLayout,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.SiteWide=e.SiteWide,exports.Slider=e.Slider,exports.StatisticCard=e.StatisticCard,exports.StickySponsoredBy=e.StickySponsoredBy,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.DoctorInfo=r.DoctorInfo,exports.MobileBottomNavigation=r.MobileBottomNavigation,exports.MobileBottomNavigationIcon=r.MobileBottomNavigationIcon,exports.Popup=r.Popup,exports.Radio=r.Radio,exports.RadioGroup=r.RadioGroup,exports.ScrollList=r.ScrollList,exports.SurveyQuestionCard=r.SurveyQuestionCard,exports.defaultTranslation=r.defaultTranslation,exports.Button=o.Button,exports.Drawer=o.Drawer,exports.Heading=o.Heading,exports.Divider=t.Divider,exports.Dropdown=t.Dropdown,exports.Flag=a.Flag,exports.LanguageSwitcher=a.LanguageSwitcher,exports.NavigationLogoutPopup=a.NavigationLogoutPopup,exports.NavigationProfileButton=a.NavigationProfileButton,exports.NavigationV2=a.NavigationV2,exports.ProfilePopup=a.ProfilePopup,exports.UserProfileNavigation=a.UserProfileNavigation,exports.UserProfileNavigationHeader=a.NavHeader,exports.UserProfileNavigationStats=a.UserStats,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.RadioImageGroup=n.RadioImageGroup;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("./tslib.es6-f7929e76.js"),o=require("react"),i=require("./index.styled-3898ef06.js");function l(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var a=l(o),t={"en-PH":{ALL:"all",HOSPITAL:"hospital",SERVICE:"service",DOCTOR:"doctor",SEARCH:"search",SPECIALTIES:"specialties",CURRENT:"current-location"},"tl-PH":{ALL:"all",HOSPITAL:"hospital",SERVICE:"service",DOCTOR:"doctor",SEARCH:"search",SPECIALTIES:"specialties",CURRENT:"current-location"},"zh-TW":{ALL:"all",HOSPITAL:"hospital",SERVICE:"service",DOCTOR:"doctor",SEARCH:"search",SPECIALTIES:"specialties",CURRENT:"current-location"},"vi-VN":{ALL:"tat-ca",HOSPITAL:"benh-vien",SERVICE:"dich-vu",DOCTOR:"bac-si",SEARCH:"tim-kiem",SPECIALTIES:"chuyen-khoa",CURRENT:"vi-tri-hien-tai"},"id-ID":{ALL:"semua",HOSPITAL:"rumah-sakit",SERVICE:"layanan",DOCTOR:"dokter",SEARCH:"cari",SPECIALTIES:"spesialisasi",CURRENT:"posisi-saya-saat-ini"}},n=Object.freeze({__proto__:null,basePath:"/care",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"}},LOCALIZED_SLUGS:t,ID_OPTION_CURRENT_LOCATION:-1});exports.CARE_PATHS={SPECIALTIES:"api/specialties?_ishome=1&site={domain}"},exports.DISCOVER_PATHS={SPOTLIGHTS:"spotlights?per_page={perPage}&order_by={orderBy}",HEALTH_TOOLS:"healthtools",HEALTH_TOOLS_BY_CATEGORY:"healthtools?_hasgroup=1",CATEGORIES:"categories?type=all",FOOTER:"footer"},exports.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"}],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"}]},exports.ID_OPTION_CURRENT_LOCATION=-1,exports.Input=function(l){var t=l.name,n=l.value,s=l.errorMessage,c=l.isNumerousKeyboard,E=void 0!==c&&c,I=l.actionIcon,r=l.displayIcon,T=l.onActionClick,p=l.label,O=l.className,h=l.onChange,_=l.isDisabled,m=l.CustomInput,A=l.size,u=l.style,S=l.autoComplete,C=void 0===S?"off":S,N=l.type,y=void 0===N?"text":N,R=l.inputClassName,P=l.trackingAttributes,g=l.enterKeyHint,L=e.__rest(l,["name","value","errorMessage","isNumerousKeyboard","actionIcon","displayIcon","onActionClick","label","className","onChange","isDisabled","CustomInput","size","style","autoComplete","type","inputClassName","trackingAttributes","enterKeyHint"]),d=o.useMemo((function(){return P?{"data-event-category":P.dataEventCategory,"data-event-action":P.dataEventAction,"data-event-label":P.dataEventLabel}:{}}),[P]);return a.default.createElement(i.StyledInput,{"data-size":A,className:O,"data-has-action-icon":!!I||void 0,"data-has-display-icon":!!r||void 0,"data-has-error":s&&s.length>0||void 0,style:u},p&&a.default.createElement(i.Label,{size:"label2",htmlFor:t,className:"inputLabel"},p),a.default.createElement("div",{style:{position:"relative"}},m||a.default.createElement("input",e.__assign({id:t,name:t,onChange:function(e){return h&&h(e.target.value)},type:y,"aria-label":y,value:n,disabled:_,autoComplete:C,inputMode:E||"number"===y?"numeric":y,pattern:E?"[0-9]*":".*",className:R,enterKeyHint:g},d,L)),r&&a.default.createElement(i.StyledDisplayIcon,{className:"displayIcon"},r),I&&a.default.createElement(i.StyledActionIcon,{className:"actionIcon",onClick:T},I)),s&&s.length>0&&a.default.createElement(i.StyledErrorLabel,{className:"errorLabel"},s))},exports.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",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"}},exports.LOCALIZED_SLUGS=t,exports.MARRY_BABY_DEFAULT_FOOTER={SOCIAL_LINKS:{facebookLink:"https://www.facebook.com/marry.baby.vn",instagramLink:"https://www.instagram.com/marrybaby.vn",zaloLink:"http://zalo.me/806483414530291942",youtubeLink:"https://www.youtube.com/user/marrybabyvn"}},exports.MARRY_BABY_PATH={FOOTER:"menu/footer",HEALTH_TOOLS:"health-tools"},exports.SSO_PATHS={SSO_USER_PROFILE:"user",SSO_USER_BOOKMARKS:"user/bookmarks",SSO_USER_PASSWORD:"user/settings/password",SSO_USER_EMAIL:"user/settings/update-email",SSO_CLOSE_ACCOUNT:"user/settings/close-account",SSO_HELP:"user/settings/help"},exports.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/",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"}},exports.TOGETHER_PATHS={COMMUNITIES:"community?website_url={websiteUrl}",MENU_TOPIC:"topic?community_id={communityId}&website_url={websiteUrl}",GET_USER_POSTS:"profile/posts?website_url={websiteUrl}"},exports.Z_INDEX={adBlock:48,headerContainerHome:99,headerContainerPopup:300,headerContainerPopupSUbLevel:400,menuCategoryPopupWrapper:200,menuCategoryPopupContainer:210,menuSearchInputPopup:5,menuSearchInputDisplayIcon:6,menuSearchPopup:300,homeSearchComponent:200},exports.constants=n,exports.domainLocales={"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"};
|
|
1
|
+
"use strict";var e=require("./tslib.es6-f7929e76.js"),o=require("react"),i=require("./index.styled-74b743ee.js");function l(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var a=l(o),t={"en-PH":{ALL:"all",HOSPITAL:"hospital",SERVICE:"service",DOCTOR:"doctor",SEARCH:"search",SPECIALTIES:"specialties",CURRENT:"current-location"},"tl-PH":{ALL:"all",HOSPITAL:"hospital",SERVICE:"service",DOCTOR:"doctor",SEARCH:"search",SPECIALTIES:"specialties",CURRENT:"current-location"},"zh-TW":{ALL:"all",HOSPITAL:"hospital",SERVICE:"service",DOCTOR:"doctor",SEARCH:"search",SPECIALTIES:"specialties",CURRENT:"current-location"},"vi-VN":{ALL:"tat-ca",HOSPITAL:"benh-vien",SERVICE:"dich-vu",DOCTOR:"bac-si",SEARCH:"tim-kiem",SPECIALTIES:"chuyen-khoa",CURRENT:"vi-tri-hien-tai"},"id-ID":{ALL:"semua",HOSPITAL:"rumah-sakit",SERVICE:"layanan",DOCTOR:"dokter",SEARCH:"cari",SPECIALTIES:"spesialisasi",CURRENT:"posisi-saya-saat-ini"}},n=Object.freeze({__proto__:null,basePath:"/care",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"}},LOCALIZED_SLUGS:t,ID_OPTION_CURRENT_LOCATION:-1});exports.CARE_PATHS={SPECIALTIES:"api/specialties?_ishome=1&site={domain}"},exports.DISCOVER_PATHS={SPOTLIGHTS:"spotlights?per_page={perPage}&order_by={orderBy}",HEALTH_TOOLS:"healthtools",HEALTH_TOOLS_BY_CATEGORY:"healthtools?_hasgroup=1",CATEGORIES:"categories?type=all",FOOTER:"footer"},exports.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"}],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"}]},exports.ID_OPTION_CURRENT_LOCATION=-1,exports.Input=function(l){var t=l.name,n=l.value,s=l.errorMessage,c=l.isNumerousKeyboard,E=void 0!==c&&c,I=l.actionIcon,r=l.displayIcon,T=l.onActionClick,p=l.label,O=l.className,h=l.onChange,_=l.isDisabled,m=l.CustomInput,A=l.size,u=l.style,S=l.autoComplete,C=void 0===S?"off":S,N=l.type,y=void 0===N?"text":N,R=l.inputClassName,P=l.trackingAttributes,g=l.enterKeyHint,L=e.__rest(l,["name","value","errorMessage","isNumerousKeyboard","actionIcon","displayIcon","onActionClick","label","className","onChange","isDisabled","CustomInput","size","style","autoComplete","type","inputClassName","trackingAttributes","enterKeyHint"]),d=o.useMemo((function(){return P?{"data-event-category":P.dataEventCategory,"data-event-action":P.dataEventAction,"data-event-label":P.dataEventLabel}:{}}),[P]);return a.default.createElement(i.StyledInput,{"data-size":A,className:O,"data-has-action-icon":!!I||void 0,"data-has-display-icon":!!r||void 0,"data-has-error":s&&s.length>0||void 0,style:u},p&&a.default.createElement(i.Label,{size:"label2",htmlFor:t,className:"inputLabel"},p),a.default.createElement("div",{style:{position:"relative"}},m||a.default.createElement("input",e.__assign({id:t,name:t,onChange:function(e){return h&&h(e.target.value)},type:y,"aria-label":y,value:n,disabled:_,autoComplete:C,inputMode:E||"number"===y?"numeric":y,pattern:E?"[0-9]*":".*",className:R,enterKeyHint:g},d,L)),r&&a.default.createElement(i.StyledDisplayIcon,{className:"displayIcon"},r),I&&a.default.createElement(i.StyledActionIcon,{className:"actionIcon",onClick:T},I)),s&&s.length>0&&a.default.createElement(i.StyledErrorLabel,{className:"errorLabel"},s))},exports.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",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"}},exports.LOCALIZED_SLUGS=t,exports.MARRY_BABY_DEFAULT_FOOTER={SOCIAL_LINKS:{facebookLink:"https://www.facebook.com/marry.baby.vn",instagramLink:"https://www.instagram.com/marrybaby.vn",zaloLink:"http://zalo.me/806483414530291942",youtubeLink:"https://www.youtube.com/user/marrybabyvn"}},exports.MARRY_BABY_PATH={FOOTER:"menu/footer",HEALTH_TOOLS:"health-tools"},exports.SSO_PATHS={SSO_USER_PROFILE:"user",SSO_USER_BOOKMARKS:"user/bookmarks",SSO_USER_PASSWORD:"user/settings/password",SSO_USER_EMAIL:"user/settings/update-email",SSO_CLOSE_ACCOUNT:"user/settings/close-account",SSO_HELP:"user/settings/help"},exports.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/",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"}},exports.TOGETHER_PATHS={COMMUNITIES:"community?website_url={websiteUrl}",MENU_TOPIC:"topic?community_id={communityId}&website_url={websiteUrl}",GET_USER_POSTS:"profile/posts?website_url={websiteUrl}"},exports.Z_INDEX={adBlock:48,headerContainerHome:99,headerContainerPopup:300,headerContainerPopupSUbLevel:400,menuCategoryPopupWrapper:200,menuCategoryPopupContainer:210,menuSearchInputPopup:5,menuSearchInputDisplayIcon:6,menuSearchPopup:300,homeSearchComponent:200},exports.constants=n,exports.domainLocales={"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"};
|
package/build/core.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./ageGenerate-b636a650.js"),r=require("./theme-
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./ageGenerate-b636a650.js"),r=require("./theme-19de09d7.js"),t=require("./useTranslations-e724fe88.js"),s=require("./useScrollbarSize-586f6706.js"),o=require("./cookieHelper-612b90fa.js"),a=require("./lazyLoad-0454885d.js");require("react"),require("styled-components");var i=require("./number-87b13133.js"),n=require("./routing-d8704e87.js");require("./tslib.es6-f7929e76.js"),require("date-fns"),require("./translationsContext-1968f8ef.js"),require("string-format"),require("lodash/debounce"),require("vanilla-lazyload"),exports.Types=e.index,exports.ageGenerate=e.ageGenerate,exports.useFbDataLayer=e.useFbDataLayer,exports.Constants=r.constants,exports.theme=r.theme,exports.Breakpoints=t.Breakpoints,exports.MediaQueries=t.MediaQueries,exports.fadeIn=t.fadeIn,exports.formatUrlWithPageParam=t.formatUrlWithPageParam,exports.getBoundariesFromMediaQueryKey=t.getBoundariesFromMediaQueryKey,exports.getPopupWrapperDom=t.getPopupWrapperDom,exports.makeParams=t.makeParams,exports.slideInDown=t.slideInDown,exports.slideInLeft=t.slideInLeft,exports.slideInRight=t.slideInRight,exports.slideInUp=t.slideInUp,exports.slideOutDown=t.slideOutDown,exports.slideOutLeft=t.slideOutLeft,exports.slideOutRight=t.slideOutRight,exports.slideOutUp=t.slideOutUp,exports.startCase=t.startCase,exports.toggleNoScroll=t.toggleNoScroll,exports.useTranslations=t.useTranslations,exports.MEASURE_ELEMENT_CLASS=s.MEASURE_ELEMENT_CLASS,exports.useScrollbarSize=s.useScrollbarSize,exports.deleteCookie=o.deleteCookie,exports.getCookie=o.getCookie,exports.setCookie=o.setCookie,Object.defineProperty(exports,"lazyLoadInstance",{enumerable:!0,get:function(){return a.lazyLoadInstance}}),exports.abbreviateNumber=i.abbreviateNumber,exports.getCareApiDomain=n.getCareApiDomain,exports.getCurrentBaseUrl=n.getCurrentBaseUrl,exports.getCurrentSsoUrl=n.getCurrentSsoUrl,exports.getDiscoverApiDomain=n.getDiscoverApiDomain,exports.getTogetherApiDomain=n.getTogetherApiDomain;
|
package/build/ecom.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./types-
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./types-789b9d62.js");require("./tslib.es6-f7929e76.js"),require("./theme-19de09d7.js"),exports.EcomApiTypes=e.apiTypes,exports.EcomConstants=e.constants,exports.EcomDataFormatter=e.index,exports.EcomDataTypes=e.dataTypes,exports.EcomTypes=e.types;
|