@hhgtech/hhg-components 1.21.52 → 1.21.54
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/molecules/bmiForm/index.d.ts +4 -0
- package/build/components/molecules/bmiForm/index.styled.d.ts +6 -0
- package/build/components/molecules/bmrForm/index.d.ts +16 -0
- package/build/components/molecules/bmrForm/index.styled.d.ts +6 -0
- package/build/components/molecules/embeddedHeathToolCards/bmi/bmi.d.ts +19 -0
- package/build/components/molecules/embeddedHeathToolCards/bmr/bmr.d.ts +20 -0
- package/build/components/molecules/embeddedHeathToolCards/helpers.d.ts +41 -0
- package/build/components/molecules/index.d.ts +2 -0
- package/build/components.js +1 -1
- package/build/en-PH-605a14fc.js +1 -0
- package/build/esm/babyGrowth.js +1 -1
- package/build/esm/care.js +1 -1
- package/build/esm/components.js +1 -1
- package/build/esm/en-PH-8025ed49.js +1 -0
- package/build/esm/hooks.js +1 -1
- package/build/esm/i18n.js +1 -1
- package/build/esm/index-195b604e.js +1 -0
- package/build/esm/{index-c9e5ca7c.js → index-44d7b48f.js} +1 -1
- package/build/esm/index-4b920bee.js +1 -0
- package/build/esm/{index-aff96f34.js → index-a16793a4.js} +1 -1
- package/build/esm/{index-48d41d02.js → index-ab758134.js} +1 -1
- package/build/esm/{index-ed6f810c.js → index-cea036d2.js} +1 -1
- package/build/esm/{index-9445aae0.js → index-f5a80474.js} +1 -1
- package/build/esm/index-f6995c06.js +1 -0
- package/build/esm/index.js +1 -1
- package/build/esm/{index.styled-31358501.js → index.styled-2c6882a8.js} +1 -1
- package/build/esm/index.styled-aec78bf9.js +1 -0
- package/build/esm/mantine.js +1 -1
- package/build/esm/navigation.js +1 -1
- package/build/esm/theme-17f3c0af.js +1 -0
- package/build/esm/together.js +1 -1
- package/build/esm/translationsProvider-29dae7e1.js +1 -0
- package/build/esm/{types-991dce31.js → types-4ff28d8e.js} +1 -1
- package/build/esm/{types-f7e53cd8.js → types-87a52fdf.js} +1 -1
- package/build/esm/{useTranslations-4f69f5f9.js → useTranslations-c32c6487.js} +1 -1
- package/build/hooks.js +1 -1
- package/build/i18n.js +1 -1
- package/build/{index-7bfd5335.js → index-0b7d0ea2.js} +1 -1
- package/build/index-112c73a5.js +1 -0
- package/build/{index-c5ff2265.js → index-446e5d3b.js} +1 -1
- package/build/index-56ca6b6e.js +1 -0
- package/build/{index-52b9092e.js → index-891306d0.js} +1 -1
- package/build/{index-0b7cfe84.js → index-e6c32cab.js} +1 -1
- package/build/{index-9b01b9b8.js → index-f2c817d7.js} +1 -1
- package/build/{index-98fdfe4d.js → index-f41db3f3.js} +1 -1
- package/build/index.js +1 -1
- package/build/index.styled-31764906.js +1 -0
- package/build/{index.styled-45450b47.js → index.styled-b19996c0.js} +1 -1
- package/build/mantine.js +1 -1
- package/build/navigation.js +1 -1
- package/build/theme-47d2f7ea.js +1 -0
- package/build/together/interfaces/types.d.ts +4 -0
- package/build/together.js +1 -1
- package/build/translationsProvider-b07b6ec5.js +1 -0
- package/build/{types-1b55fc50.js → types-897d8e5f.js} +1 -1
- package/build/{types-3b1eb66c.js → types-8aec673b.js} +1 -1
- package/build/{useTranslations-7f08be7c.js → useTranslations-473f169c.js} +1 -1
- package/package.json +3 -1
- package/build/en-PH-cac23192.js +0 -1
- package/build/esm/en-PH-b1c3ff7e.js +0 -1
- package/build/esm/index-95ee8202.js +0 -1
- package/build/esm/index-ada51747.js +0 -1
- package/build/esm/index-f515f979.js +0 -1
- package/build/esm/index.styled-c7779899.js +0 -1
- package/build/esm/translationsProvider-4ea6357a.js +0 -1
- package/build/index-0ac76914.js +0 -1
- package/build/index-becb0c61.js +0 -1
- package/build/index.styled-b54ef4f4.js +0 -1
- package/build/translationsProvider-be5e5a3d.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-7f08be7c.js"),n=require("./Locale-11b51016.js"),r=require("./index-98fdfe4d.js"),a=require("./index.styled-b54ef4f4.js"),o=require("./tslib.es6-e6f346c4.js"),i=require("./screenSizeContext-78ac9057.js"),l=require("styled-components"),u=require("./theme-696d81a9.js"),c=require("./index-0b7cfe84.js"),s=require("date-fns");require("./gAssets.js");var d=require("./index-52b9092e.js");require("react-range"),require("@mantine/core"),require("lodash/debounce"),require("./isProduction-32e6a55a.js"),require("./index-d28c27ca.js"),require("./translationsContext-2d7ea471.js"),require("string-format");var h=require("./useOutsideClick-528bfd6c.js"),f=require("./localizeNumberFormat-d34a738e.js"),m=require("./index.styled-45450b47.js"),p=require("recharts"),C=require("lodash");function y(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}require("./en-PH-cac23192.js"),require("./index-9b01b9b8.js"),require("./useScrollbarSize-586f6706.js"),require("react-dom"),require("vanilla-lazyload");var b,g,x,w,v,E,B=y(e),G=y(l),k=G.default.div(b||(b=o.__makeTemplateObject(["\n & > :not(:last-child) {\n margin-bottom: 8px;\n }\n\n .gender-selector {\n & > :not(:last-child) {\n margin-right: 16px;\n }\n\n & > div {\n width: calc(50% - 8px);\n\n "," {\n max-width: 186px;\n justify-self: left;\n }\n }\n }\n"],["\n & > :not(:last-child) {\n margin-bottom: 8px;\n }\n\n .gender-selector {\n & > :not(:last-child) {\n margin-right: 16px;\n }\n\n & > div {\n width: calc(50% - 8px);\n\n "," {\n max-width: 186px;\n justify-self: left;\n }\n }\n }\n"])),i.MediaQueries.mbUp),L=G.default(r.RadioImageGroup)(g||(g=o.__makeTemplateObject(["\n & > div > div {\n display: flex;\n flex-direction: row;\n justify-content: center;\n align-content: center;\n gap: 8px;\n padding-block: 5px;\n }\n .radio-group-item-heading {\n margin-top: 0;\n }\n"],["\n & > div > div {\n display: flex;\n flex-direction: row;\n justify-content: center;\n align-content: center;\n gap: 8px;\n padding-block: 5px;\n }\n .radio-group-item-heading {\n margin-top: 0;\n }\n"]))),M=G.default.div(x||(x=o.__makeTemplateObject(["\n display: flex;\n justify-content: center;\n gap: 16px;\n"],["\n display: flex;\n justify-content: center;\n gap: 16px;\n"]))),_=G.default.div(w||(w=o.__makeTemplateObject(["\n display: flex;\n justify-content: center;\n align-items: center;\n gap: 6px;\n .dot {\n width: 8px;\n height: 8px;\n border-radius: 50%;\n }\n"],["\n display: flex;\n justify-content: center;\n align-items: center;\n gap: 6px;\n .dot {\n width: 8px;\n height: 8px;\n border-radius: 50%;\n }\n"]))),I=G.default.div(v||(v=o.__makeTemplateObject(["\n display: flex;\n justify-content: center;\n .switch {\n border: 1px solid ",";\n padding: 6px 12px;\n font-weight: 600;\n font-size: 11px;\n &:nth-child(2n + 1) {\n border-radius: 6px 0px 0px 6px;\n border-right: none;\n }\n &:nth-child(2n) {\n border-radius: 0px 6px 6px 0px;\n border-left: none;\n }\n }\n"],["\n display: flex;\n justify-content: center;\n .switch {\n border: 1px solid ",";\n padding: 6px 12px;\n font-weight: 600;\n font-size: 11px;\n &:nth-child(2n + 1) {\n border-radius: 6px 0px 0px 6px;\n border-right: none;\n }\n &:nth-child(2n) {\n border-radius: 0px 6px 6px 0px;\n border-left: none;\n }\n }\n"])),u.theme.colors.neutral200);exports.BabyGrowthSwitchChart=void 0,(E=exports.BabyGrowthSwitchChart||(exports.BabyGrowthSwitchChart={}))[E.WHO=0]="WHO",E[E.CDC=1]="CDC";var j,T,D,S,H,q,P,z,A,O,R,N,W,Y,Z,V,F,U,K,X,Q,J,$,ee,te,ne,re,ae,oe,ie,le,ue=G.default.div(j||(j=o.__makeTemplateObject(["\n /* position: absolute; */\n display: flex;\n align-items: stretch;\n justify-content: space-around;\n padding: 8px;\n gap: 14px;\n\n min-width: 145px;\n max-width: 220px;\n min-height: 50px;\n border-radius: 4px;\n background: rgba(255, 255, 255, 0.2);\n box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);\n backdrop-filter: blur(5px);\n -webkit-backdrop-filter: blur(5px);\n border: 1px solid rgba(255, 255, 255, 0.3);\n .risk {\n display: flex;\n align-items: center;\n padding: 4px 8px;\n background: ",";\n border-radius: 3px;\n }\n .tooltip {\n text-align: left;\n }\n"],["\n /* position: absolute; */\n display: flex;\n align-items: stretch;\n justify-content: space-around;\n padding: 8px;\n gap: 14px;\n\n min-width: 145px;\n max-width: 220px;\n min-height: 50px;\n border-radius: 4px;\n background: rgba(255, 255, 255, 0.2);\n box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);\n backdrop-filter: blur(5px);\n -webkit-backdrop-filter: blur(5px);\n border: 1px solid rgba(255, 255, 255, 0.3);\n .risk {\n display: flex;\n align-items: center;\n padding: 4px 8px;\n background: ",";\n border-radius: 3px;\n }\n .tooltip {\n text-align: left;\n }\n"])),u.theme.colors.yellow600),ce=[{name:["3rd","-3SD","97th","3SD"],color:u.theme.colors.red600},{name:["15rd","-2SD","85th","2SD"],color:u.theme.colors.yellow600},{name:["50th","0Median"],color:u.theme.colors.green600}],se={"3rd":"-3SD","15th":"-2SD","50th":"Median","85th":"2SD","97th":"3SD"},de=function(t){var r,o=t.payload,i=t.locale,l=t.active,c=null===(r=null==o?void 0:o[0])||void 0===r?void 0:r.payload;if(!(c&&c.history&&c.name&&c.risk&&c.toolTipLabel&&l))return null;var s=e.useMemo((function(){var e;return null===(e=ce.find((function(e){return e.name.includes(c.risk||"")})))||void 0===e?void 0:e.color}),[c.risk]),d=e.useMemo((function(){return i===n.LOCALE.Indonesia?c.risk?se[c.risk]:"":c.risk}),[i,c.risk]);return B.default.createElement(ue,null,B.default.createElement("div",{className:"risk",style:{backgroundColor:s}},B.default.createElement(a.Text,{size:"s3",color:u.theme.colors.white,type:"semiBold"},d)),B.default.createElement("div",{className:"tooltip"},(c.toolTipLabel||[]).map((function(e,t){return B.default.createElement(a.Text,{key:t,size:"n1",color:u.theme.colors.gray600},e)}))))},he="300ms",fe=G.default.div(T||(T=o.__makeTemplateObject(["\n background: ",";\n border-radius: 6px;\n padding: 16px 20px;\n display: flex;\n justify-content: space-between;\n align-items: center;\n .baby {\n display: flex;\n align-items: center;\n gap: 8px;\n svg {\n min-width: 24px;\n }\n }\n .radio {\n cursor: pointer;\n position: relative;\n min-width: 22px;\n width: 22px;\n height: 22px;\n background: #ffffff;\n border: 2px solid ",";\n border-radius: 50%;\n transition: all "," ease-in-out;\n &.active {\n border-color: ",";\n &::before {\n content: '';\n position: absolute;\n inset: 0;\n width: 100%;\n height: 100%;\n background-color: ",";\n background-clip: content-box;\n padding: 5px;\n border-radius: 50%;\n animation: "," "," ease-in-out forwards;\n }\n }\n }\n"],["\n background: ",";\n border-radius: 6px;\n padding: 16px 20px;\n display: flex;\n justify-content: space-between;\n align-items: center;\n .baby {\n display: flex;\n align-items: center;\n gap: 8px;\n svg {\n min-width: 24px;\n }\n }\n .radio {\n cursor: pointer;\n position: relative;\n min-width: 22px;\n width: 22px;\n height: 22px;\n background: #ffffff;\n border: 2px solid ",";\n border-radius: 50%;\n transition: all "," ease-in-out;\n &.active {\n border-color: ",";\n &::before {\n content: '';\n position: absolute;\n inset: 0;\n width: 100%;\n height: 100%;\n background-color: ",";\n background-clip: content-box;\n padding: 5px;\n border-radius: 50%;\n animation: "," "," ease-in-out forwards;\n }\n }\n }\n"])),u.theme.colors.gray50,u.theme.colors.gray600,he,u.theme.colors.primaryBase,u.theme.colors.primaryBase,i.fadeIn,he),me=function(e){var t=e.profile,n=e.onChange,o=e.isActive;return B.default.createElement(fe,{onClick:function(){return n(t.id)}},B.default.createElement("div",{className:"baby"},"male"===t.gender?B.default.createElement(r.Icon.Boy,{size:24}):B.default.createElement(r.Icon.Girl,{size:24}),B.default.createElement(a.Text,{size:"p2",color:u.theme.colors.gray800},t.name)),B.default.createElement("div",{className:o?"radio active":"radio"}))},pe=G.default.div(D||(D=o.__makeTemplateObject(["\n /* Auto layout */\n position: relative;\n display: flex;\n align-items: flex-start;\n padding: 16px;\n gap: 16px;\n background: ",";\n border: 1px solid ",";\n border-radius: 6px;\n .information {\n display: flex;\n flex-direction: column;\n gap: 8px;\n h5:first-letter {\n text-transform: uppercase;\n }\n .detail {\n display: flex;\n gap: 16px;\n div {\n display: flex;\n align-items: center;\n gap: 6px;\n }\n }\n }\n"],["\n /* Auto layout */\n position: relative;\n display: flex;\n align-items: flex-start;\n padding: 16px;\n gap: 16px;\n background: ",";\n border: 1px solid ",";\n border-radius: 6px;\n .information {\n display: flex;\n flex-direction: column;\n gap: 8px;\n h5:first-letter {\n text-transform: uppercase;\n }\n .detail {\n display: flex;\n gap: 16px;\n div {\n display: flex;\n align-items: center;\n gap: 6px;\n }\n }\n }\n"])),u.theme.colors.white,u.theme.colors.gray100),Ce=G.default.div(S||(S=o.__makeTemplateObject(["\n position: absolute;\n top: 18px;\n right: 16px;\n cursor: pointer;\n"],["\n position: absolute;\n top: 18px;\n right: 16px;\n cursor: pointer;\n"]))),ye=G.default(a.Menu)(H||(H=o.__makeTemplateObject(["\n position: absolute;\n right: 0;\n z-index: 1;\n"],["\n position: absolute;\n right: 0;\n z-index: 1;\n"]))),be=function(n){var r=n.name,o=n.onClose,i=n.onEdit,l=n.onSwitch,c=n.onAdd,s=n.onRemove,d=t.useTranslations().t,f=e.useRef();return h.useOutsideClick(f,o),B.default.createElement("div",{ref:f},B.default.createElement(ye,{width:250},B.default.createElement(a.Menu.Item,{onClick:i,icon:B.default.createElement("svg",{width:"16",height:"17",viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},B.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"}))},B.default.createElement(a.Text,{size:"p2",color:u.theme.colors.gray800},d("childCard.menu.edit",{name:r}))),B.default.createElement(a.Menu.Item,{onClick:l,icon:B.default.createElement("svg",{width:"16",height:"17",viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},B.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"}))},B.default.createElement(a.Text,{size:"p2",color:u.theme.colors.gray800},d("childCard.menu.switch"))),B.default.createElement(a.Menu.Item,{onClick:c,icon:B.default.createElement("svg",{width:"16",height:"17",viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},B.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"}),B.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"}))},B.default.createElement(a.Text,{size:"p2",color:u.theme.colors.gray800},d("childCard.menu.add"))),B.default.createElement(a.Menu.Item,{onClick:s,icon:B.default.createElement("svg",{width:"16",height:"17",viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},B.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"}))},B.default.createElement(a.Text,{size:"p2",color:u.theme.colors.red600},d("childCard.menu.remove",{name:r})))))},ge=function(e,t){if(e)if(e.year<1){if(0===e.month)switch(e.week){case 0:case 1:return t("childCard.age.oneWeek");default:return t("childCard.age.week",{weeks:e.week})}if(1===e.month)return t("childCard.age.oneMonth");if(e.month>1)return t("childCard.age.months",{month:e.month})}else{if(1===e.year)return t("childCard.age.oneYear");if(0===e.month)return t("childCard.age.yearNoMonth",{year:e.year});if(e.month>0)return t("childCard.age.yearMonth",{year:e.year,month:e.month})}},xe=G.default.div(q||(q=o.__makeTemplateObject(["\n cursor: pointer;\n position: relative;\n padding: 20px 2px;\n border-bottom: 1px solid ",";\n .time {\n display: flex;\n align-items: center;\n gap: 8px;\n margin-bottom: 16px;\n }\n .edit-button {\n margin-left: auto;\n justify-self: end;\n }\n .record {\n display: grid;\n grid-template-columns: repeat(3, 1fr);\n grid-template-rows: 1fr;\n grid-column-gap: 30px;\n grid-row-gap: 0px;\n }\n .record-item {\n display: flex;\n align-items: center;\n gap: 8px;\n }\n"],["\n cursor: pointer;\n position: relative;\n padding: 20px 2px;\n border-bottom: 1px solid ",";\n .time {\n display: flex;\n align-items: center;\n gap: 8px;\n margin-bottom: 16px;\n }\n .edit-button {\n margin-left: auto;\n justify-self: end;\n }\n .record {\n display: grid;\n grid-template-columns: repeat(3, 1fr);\n grid-template-rows: 1fr;\n grid-column-gap: 30px;\n grid-row-gap: 0px;\n }\n .record-item {\n display: flex;\n align-items: center;\n gap: 8px;\n }\n"])),u.theme.colors.gray100),we=function(e,t){return e&&"NaN"!==e?e+" "+(t||""):"--"},ve=G.default(m.Drawer)(P||(P=o.__makeTemplateObject(["\n .add-profile-container {\n display: flex;\n flex-direction: column;\n gap: 24px;\n }\n .profile-container {\n display: flex;\n flex-direction: column;\n gap: 8px;\n }\n .button-group {\n display: flex;\n flex-direction: column;\n gap: 8px;\n button {\n width: 100%;\n }\n }\n"],["\n .add-profile-container {\n display: flex;\n flex-direction: column;\n gap: 24px;\n }\n .profile-container {\n display: flex;\n flex-direction: column;\n gap: 8px;\n }\n .button-group {\n display: flex;\n flex-direction: column;\n gap: 8px;\n button {\n width: 100%;\n }\n }\n"]))),Ee=G.default(r.Modal)(z||(z=o.__makeTemplateObject(["\n .hhg-modal {\n min-width: 570px;\n }\n\n .title {\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding-bottom: 16px;\n border-bottom: 1px solid ",";\n }\n\n .close-button {\n margin-left: auto;\n }\n\n .profile-container {\n padding-block: 16px;\n display: flex;\n flex-direction: column;\n gap: 8px;\n border-bottom: 1px solid ",";\n max-height: 300px;\n overflow-y: auto;\n }\n\n .button-group {\n display: flex;\n justify-content: flex-end;\n gap: 16px;\n margin-block: 16px;\n }\n"],["\n .hhg-modal {\n min-width: 570px;\n }\n\n .title {\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding-bottom: 16px;\n border-bottom: 1px solid ",";\n }\n\n .close-button {\n margin-left: auto;\n }\n\n .profile-container {\n padding-block: 16px;\n display: flex;\n flex-direction: column;\n gap: 8px;\n border-bottom: 1px solid ",";\n max-height: 300px;\n overflow-y: auto;\n }\n\n .button-group {\n display: flex;\n justify-content: flex-end;\n gap: 16px;\n margin-block: 16px;\n }\n"])),u.theme.colors.neutral100,u.theme.colors.neutral100),Be=((A={})[n.Gender.Boy]=((O={})[n.BabyGrowthChartType.Weight]=((R={})[n.BabyGrowthChartDuration.Weekly]=function(){return Promise.resolve().then((function(){return require("./WEIGHT_BOYS.percentile.weekly-8b301e27.js")}))},R[n.BabyGrowthChartDuration.Monthly]=function(){return Promise.resolve().then((function(){return require("./WEIGHT_BOYS.percentile.monthly-9966bfb1.js")}))},R[n.BabyGrowthChartDuration.Yearly]=function(){return Promise.resolve().then((function(){return require("./WEIGHT_BOYS.percentile.yearly-c10eda77.js")}))},R),O[n.BabyGrowthChartType.Height]=((N={})[n.BabyGrowthChartDuration.Weekly]=function(){return Promise.resolve().then((function(){return require("./HEIGHT_BOYS.percentile.weekly-71fb3532.js")}))},N[n.BabyGrowthChartDuration.Monthly]=function(){return Promise.resolve().then((function(){return require("./HEIGHT_BOYS.percentile.monthly-e61c2896.js")}))},N[n.BabyGrowthChartDuration.Yearly]=function(){return Promise.resolve().then((function(){return require("./HEIGHT_BOYS.percentile.yearly-5156c057.js")}))},N),O[n.BabyGrowthChartType.Head]=((W={})[n.BabyGrowthChartDuration.Weekly]=function(){return Promise.resolve().then((function(){return require("./HEAD CIRCUM_BOYS.percentile.weekly-923d3626.js")}))},W[n.BabyGrowthChartDuration.Monthly]=function(){return Promise.resolve().then((function(){return require("./HEAD CIRCUM_BOYS.percentile.monthly-790479be.js")}))},W[n.BabyGrowthChartDuration.Yearly]=function(){return Promise.resolve().then((function(){return require("./HEAD CIRCUM_BOYS.percentile.yearly-b5aaa103.js")}))},W),O[n.BabyGrowthChartType.BMI]=((Y={})[n.BabyGrowthChartDuration.Weekly]=function(){return Promise.resolve().then((function(){return require("./BMI_BOYS.percentile.weekly-75bff607.js")}))},Y[n.BabyGrowthChartDuration.Monthly]=function(){return Promise.resolve().then((function(){return require("./BMI_BOYS.percentile.monthly-e1af0e66.js")}))},Y[n.BabyGrowthChartDuration.Yearly]=function(){return Promise.resolve().then((function(){return require("./BMI_BOYS.percentile.yearly-a1a3d0ef.js")}))},Y),O),A[n.Gender.Girl]=((Z={})[n.BabyGrowthChartType.Weight]=((V={})[n.BabyGrowthChartDuration.Weekly]=function(){return Promise.resolve().then((function(){return require("./WEIGHT_GIRLS.percentile.weekly-63c6a2a3.js")}))},V[n.BabyGrowthChartDuration.Monthly]=function(){return Promise.resolve().then((function(){return require("./WEIGHT_GIRLS.percentile.monthly-822f3f97.js")}))},V[n.BabyGrowthChartDuration.Yearly]=function(){return Promise.resolve().then((function(){return require("./WEIGHT_GIRLS.percentile.yearly-8f44f763.js")}))},V),Z[n.BabyGrowthChartType.Height]=((F={})[n.BabyGrowthChartDuration.Weekly]=function(){return Promise.resolve().then((function(){return require("./HEIGHT_GIRLS.percentile.weekly-b2628828.js")}))},F[n.BabyGrowthChartDuration.Monthly]=function(){return Promise.resolve().then((function(){return require("./HEIGHT_GIRLS.percentile.monthly-a7bf2e5d.js")}))},F[n.BabyGrowthChartDuration.Yearly]=function(){return Promise.resolve().then((function(){return require("./HEIGHT_GIRLS.percentile.yearly-e00c3ffd.js")}))},F),Z[n.BabyGrowthChartType.Head]=((U={})[n.BabyGrowthChartDuration.Weekly]=function(){return Promise.resolve().then((function(){return require("./HEAD CIRCUM_GIRLS.percentile.weekly-0020f6e2.js")}))},U[n.BabyGrowthChartDuration.Monthly]=function(){return Promise.resolve().then((function(){return require("./HEAD CIRCUM_GIRLS.percentile.monthly-24290dfb.js")}))},U[n.BabyGrowthChartDuration.Yearly]=function(){return Promise.resolve().then((function(){return require("./HEAD CIRCUM_GIRLS.percentile.yearly-22dd615a.js")}))},U),Z[n.BabyGrowthChartType.BMI]=((K={})[n.BabyGrowthChartDuration.Weekly]=function(){return Promise.resolve().then((function(){return require("./BMI_GIRLS.percentile.weekly-aa3da5c1.js")}))},K[n.BabyGrowthChartDuration.Monthly]=function(){return Promise.resolve().then((function(){return require("./BMI_GIRLS.percentile.monthly-4c519db6.js")}))},K[n.BabyGrowthChartDuration.Yearly]=function(){return Promise.resolve().then((function(){return require("./BMI_GIRLS.percentile.yearly-8561e48e.js")}))},K),Z),A),Ge=((X={})[n.Gender.Boy]=((Q={})[n.BabyGrowthChartType.Weight]=((J={})[n.BabyGrowthChartDuration.Weekly]=function(){return Promise.resolve().then((function(){return require("./WEIGHT_BOYS.zscore.weekly-0b1faf98.js")}))},J[n.BabyGrowthChartDuration.Monthly]=function(){return Promise.resolve().then((function(){return require("./WEIGHT_BOYS.zscore.monthly-897fca0b.js")}))},J[n.BabyGrowthChartDuration.Yearly]=function(){return Promise.resolve().then((function(){return require("./WEIGHT_BOYS.zscore.yearly-80018532.js")}))},J),Q[n.BabyGrowthChartType.Height]=(($={})[n.BabyGrowthChartDuration.Weekly]=function(){return Promise.resolve().then((function(){return require("./HEIGHT_BOYS.zscore.weekly-70c18763.js")}))},$[n.BabyGrowthChartDuration.Monthly]=function(){return Promise.resolve().then((function(){return require("./HEIGHT_BOYS.zscore.monthly-910c2bd0.js")}))},$[n.BabyGrowthChartDuration.Yearly]=function(){return Promise.resolve().then((function(){return require("./HEIGHT_BOYS.zscore.yearly-bd97678c.js")}))},$),Q[n.BabyGrowthChartType.Head]=((ee={})[n.BabyGrowthChartDuration.Weekly]=function(){return Promise.resolve().then((function(){return require("./HEAD CIRCUM_BOYS.zscore.weekly-f472daa8.js")}))},ee[n.BabyGrowthChartDuration.Monthly]=function(){return Promise.resolve().then((function(){return require("./HEAD CIRCUM_BOYS.zscore.monthly-bc73088f.js")}))},ee[n.BabyGrowthChartDuration.Yearly]=function(){return Promise.resolve().then((function(){return require("./HEAD CIRCUM_BOYS.zscore.yearly-d7a7b9df.js")}))},ee),Q[n.BabyGrowthChartType.BMI]=((te={})[n.BabyGrowthChartDuration.Weekly]=function(){return Promise.resolve().then((function(){return require("./BMI_BOYS.zscore.weekly-aba5d53b.js")}))},te[n.BabyGrowthChartDuration.Monthly]=function(){return Promise.resolve().then((function(){return require("./BMI_BOYS.zscore.monthly-a175df2d.js")}))},te[n.BabyGrowthChartDuration.Yearly]=function(){return Promise.resolve().then((function(){return require("./BMI_BOYS.zscore.yearly-aafb7ce1.js")}))},te),Q),X[n.Gender.Girl]=((ne={})[n.BabyGrowthChartType.Weight]=((re={})[n.BabyGrowthChartDuration.Weekly]=function(){return Promise.resolve().then((function(){return require("./WEIGHT_GIRLS.zscore.weekly-29d8f232.js")}))},re[n.BabyGrowthChartDuration.Monthly]=function(){return Promise.resolve().then((function(){return require("./WEIGHT_GIRLS.zscore.monthly-86b583c7.js")}))},re[n.BabyGrowthChartDuration.Yearly]=function(){return Promise.resolve().then((function(){return require("./WEIGHT_GIRLS.zscore.yearly-07eeb8b5.js")}))},re),ne[n.BabyGrowthChartType.Height]=((ae={})[n.BabyGrowthChartDuration.Weekly]=function(){return Promise.resolve().then((function(){return require("./HEIGHT_GIRLS.zscore.weekly-7ed52595.js")}))},ae[n.BabyGrowthChartDuration.Monthly]=function(){return Promise.resolve().then((function(){return require("./HEIGHT_GIRLS.zscore.monthly-3542327e.js")}))},ae[n.BabyGrowthChartDuration.Yearly]=function(){return Promise.resolve().then((function(){return require("./HEIGHT_GIRLS.zscore.yearly-4bbd497c.js")}))},ae),ne[n.BabyGrowthChartType.Head]=((oe={})[n.BabyGrowthChartDuration.Weekly]=function(){return Promise.resolve().then((function(){return require("./HEAD CIRCUM_GIRLS.zscore.weekly-a0fa670d.js")}))},oe[n.BabyGrowthChartDuration.Monthly]=function(){return Promise.resolve().then((function(){return require("./HEAD CIRCUM_GIRLS.zscore.monthly-96a0f069.js")}))},oe[n.BabyGrowthChartDuration.Yearly]=function(){return Promise.resolve().then((function(){return require("./HEAD CIRCUM_GIRLS.zscore.yearly-02cf35f7.js")}))},oe),ne[n.BabyGrowthChartType.BMI]=((ie={})[n.BabyGrowthChartDuration.Weekly]=function(){return Promise.resolve().then((function(){return require("./BMI_GIRLS.zscore.weekly-56e2c916.js")}))},ie[n.BabyGrowthChartDuration.Monthly]=function(){return Promise.resolve().then((function(){return require("./BMI_GIRLS.zscore.monthly-849cbbe5.js")}))},ie[n.BabyGrowthChartDuration.Yearly]=function(){return Promise.resolve().then((function(){return require("./BMI_GIRLS.zscore.yearly-eb9d49d1.js")}))},ie),ne),X),ke=function(e,t,r,a){return a===n.LOCALE.Indonesia?Ge[e][t][r]():Be[e][t][r]()},Le=function(e,t){var n=C.chunk(t,Math.ceil(t.length/2)),r=n[0],a=n[1],o=r.map((function(e){return e.name})),i=a.map((function(e){return e.name}));return o.includes(e)?{data:r,status:"first-half"}:i.includes(e)?{data:a,status:"second-half"}:{data:t,status:"full"}},Me=function(e,t){return o.__spreadArray(o.__spreadArray([],e,!0),t.map((function(e){return{name:e.name,history:e.history,risk:e.risk,toolTipLabel:e.toolTipLabel}})),!0).sort((function(e,t){return e.name-t.name}))},_e=function(e,t,n,r,a){return o.__spreadArray(o.__spreadArray([],e,!0),[{name:r,history:a,risk:t,toolTipLabel:n}],!1).sort((function(e,t){return e.name-t.name}))},Ie=function(e,t){void 0===t&&(t=0);var n=[],r=function(r){e[r].forEach((function(e,a){var o;n[a]?n[a][r]=e:n[a]=((o={name:a+t})[r]=e,o)}))};for(var a in e)r(a);return n},je=function(e,t){return void 0===t&&(t=0),Array.from({length:e-t+1},(function(e,n){return n+t}))},Te=G.default.div(le||(le=o.__makeTemplateObject(["\n position: relative;\n .custom-chart-label {\n display: flex;\n width: 100%;\n justify-content: space-between;\n align-items: center;\n margin-top: 8px;\n }\n"],["\n position: relative;\n .custom-chart-label {\n display: flex;\n width: 100%;\n justify-content: space-between;\n align-items: center;\n margin-top: 8px;\n }\n"]))),De=[{name:"-3SD",label:"-3",color:u.theme.colors.red600},{name:"-2SD",label:"-2",color:u.theme.colors.yellow600},{name:"0Median",label:"0",color:u.theme.colors.green600},{name:"2SD",label:"2",color:u.theme.colors.yellow600},{name:"3SD",label:"3",color:u.theme.colors.red600},{name:"history",color:u.theme.colors.primaryBase}],Se=[{name:"3rd",color:u.theme.colors.red600},{name:"15th",color:u.theme.colors.yellow600},{name:"50th",color:u.theme.colors.green600},{name:"85th",color:u.theme.colors.yellow600},{name:"97th",color:u.theme.colors.red600},{name:"history",color:u.theme.colors.primaryBase}],He=e.forwardRef((function(e,t){return B.default.createElement("circle",o.__assign({},e,{ref:t}),B.default.createElement("animate",{attributeName:"r",values:"4;8;4",dur:"2s",begin:"0s",repeatCount:"indefinite"}))})),qe=function(e){var t=e.x,n=e.y,r=e.last,a=e.index,o=e.name;return r===a?B.default.createElement("text",{x:t,y:n,dx:16,fill:u.theme.colors.gray500,fontSize:12,textAnchor:"middle"},o):null};exports.BabyGrowthChart=function(r){var i=r.gender,l=r.type,c=r.duration,s=r.xLabel,d=r.x,f=r.y,m=r.toolTipLabel,C=void 0===m?[]:m,y=r.isDivide,b=void 0===y||y,g=r.onIsPrevious,x=r.locale,w=r.riskLevel,v=r.withLine,E=void 0!==v&&v,G=r.lineData,k=void 0===G?[]:G,L=e.useState([]),M=L[0],_=L[1],I=e.useRef([]),j=t.useTranslations().t;e.useEffect((function(){o.__awaiter(void 0,void 0,void 0,(function(){var e,t,r,a;return o.__generator(this,(function(u){switch(u.label){case 0:return[4,ke(i,l,c,x)];case 1:if(e=u.sent().default,t=c===n.BabyGrowthChartDuration.Weekly?0:1,r=Ie(e,t),Array.isArray(r)&&0===r.length)return null==g||g(),[2];a={data:r.map((function(e,t){return o.__assign(o.__assign({},e),{name:t})})),status:"full"};try{a=b?Le(d||t,r):{data:r,status:"full"}}catch(e){}if(b)switch(a.status){case"first-half":I.current=je(a.data.length-1+t,t);break;case"second-half":I.current=je(e.length,a.data.length);break;default:I.current=je(r.length-1+t,t)}else I.current=je(r.length-1+t,t);return _(a.data),[2]}}))}))}),[i,l,c,x,g]);var T=e.useState(!1),D=T[0],S=T[1],H=e.useMemo((function(){return E&&Array.isArray(M)&&M.length>0?Me(M,k):_e(M,w,C,d,f)}),[E,k,M]),q=e.useRef(null);h.useOutsideClick(q,(function(){return S(!1)}));return B.default.createElement(Te,null,B.default.createElement("div",{className:"custom-chart-label"},B.default.createElement(a.Text,{size:"n1",color:u.theme.colors.gray500},function(){switch(l){case n.BabyGrowthChartType.Weight:return j("babyGrowth.weight");case n.BabyGrowthChartType.Height:return j("babyGrowth.height");case n.BabyGrowthChartType.Head:return j("babyGrowth.headCircumference");case n.BabyGrowthChartType.BMI:return"BMI";default:return""}}()),B.default.createElement(a.Text,{size:"n1",color:u.theme.colors.gray500},x===n.LOCALE.Indonesia?"Z-Score":j("babyGrowth.percentiles"))),Array.isArray(H)&&H.length>0&&B.default.createElement(p.ResponsiveContainer,{height:388,className:"chart"},B.default.createElement(p.LineChart,{data:H,margin:{top:16,right:28,bottom:8,left:0}},B.default.createElement(p.CartesianGrid,{stroke:u.theme.colors.blue200}),B.default.createElement(p.Tooltip,{trigger:"click",content:function(e){return B.default.createElement(de,o.__assign({active:!E&&D&&void 0!==d&&void 0!==f,locale:x},e))}}),B.default.createElement(p.XAxis,{type:"number",scale:"linear",ticks:I.current,dataKey:"name",tickLine:!1,tickMargin:12,tick:{fontFamily:"Inter",fontWeight:400,fontSize:12,color:u.theme.colors.gray800},domain:["dataMin","dataMax"],interval:"preserveStartEnd",tickCount:1,tickFormatter:function(e){return String(Math.round(100*(e+Number.EPSILON))/100)},allowDecimals:!0}),B.default.createElement(p.YAxis,{domain:[function(e){return Math.min(e,f||e)},function(e){return Math.max(e,f||e)}],tickLine:!1,tickMargin:7,width:45,tickCount:10,allowDecimals:!0,tickFormatter:function(e){return String(Math.round(100*(e+Number.EPSILON))/100)},tick:{fontFamily:"Inter",fontWeight:400,fontSize:12,color:u.theme.colors.gray800}}),(x===n.LOCALE.Indonesia?De:Se).map((function(e,t){return B.default.createElement(B.default.Fragment,null,"history"===e.name?B.default.createElement(p.Line,{key:t,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}):B.default.createElement(p.Line,{key:e.name,type:"linear",dataKey:e.name,stroke:e.color,dot:!1,activeDot:!1,connectNulls:!0,label:B.default.createElement(qe,{last:(null==H?void 0:H.length)?H.length-1:0,name:(null==e?void 0:e.label)||e.name}),tooltipType:"none"}))})),void 0!==d&&void 0!==f&&B.default.createElement(p.ReferenceDot,{onClick:function(){return S(!0)},x:0===d?1:d,y:f,r:4,shape:B.default.createElement(He,{ref:q,r:4}),fill:u.theme.colors.primaryBase,stroke:u.theme.colors.primaryBase}))),B.default.createElement("div",{className:"custom-chart-label"},B.default.createElement("i",null),B.default.createElement(a.Text,{size:"n1",color:u.theme.colors.gray500},s)))},exports.BabyGrowthChartPercentile=Be,exports.BabyGrowthChartZScore=Ge,exports.BabyGrowthChooseProfileDrawer=function(n){var i,l,u=n.babyProfiles,s=n.currentProfileId,d=n.onClose,h=n.onCreate,f=n.onAddMeasurement,m=n.onSwitchProfile,p=n.open,C=n.isMobile,y=n.isMyProfile,b=void 0!==y&&y,g=n.buttonGroup,x=n.newBabyValue,w=n.onNewBabyValueChange,v=o.__rest(n,["babyProfiles","currentProfileId","onClose","onCreate","onAddMeasurement","onSwitchProfile","open","isMobile","isMyProfile","buttonGroup","newBabyValue","onNewBabyValueChange"]),E=function(e){return b?B.default.createElement(B.default.Fragment,null,B.default.createElement(c.Button,{onClick:function(){null==h||h(),d()},size:"lg",color:"secondary",icon:B.default.createElement("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},B.default.createElement("path",{d:"M13.5 9.75H9.75V13.5C9.75 13.9125 9.4125 14.25 9 14.25C8.5875 14.25 8.25 13.9125 8.25 13.5V9.75H4.5C4.0875 9.75 3.75 9.4125 3.75 9C3.75 8.5875 4.0875 8.25 4.5 8.25H8.25V4.5C8.25 4.0875 8.5875 3.75 9 3.75C9.4125 3.75 9.75 4.0875 9.75 4.5V8.25H13.5C13.9125 8.25 14.25 8.5875 14.25 9C14.25 9.4125 13.9125 9.75 13.5 9.75Z",fill:"#2D87F3"}))},M("babyGrowth.drawer.createBaby")),B.default.createElement(c.Button,{size:"lg",color:"primary",onClick:function(){null==e||e(),b?null==m||m(k):null==f||f(k),d()}},M(b?"babyGrowth.drawer.switchProfile":"babyGrowth.drawer.addMeasurement"))):B.default.createElement(c.Button,{size:"lg",color:"primary",onClick:function(){null==f||f(k),null==e||e(),d()}},M("chooseBaby.button"))},G=e.useState(s||(null===(i=u[0])||void 0===i?void 0:i.id)),k=G[0],L=G[1],M=t.useTranslations().t;return C?B.default.createElement(ve,o.__assign({title:"Baby profiles",onClose:d,open:p,placement:"bottom"},v),(function(e){var t,n=e.internalClose;return B.default.createElement("div",{className:"add-profile-container"},B.default.createElement("div",{className:"profile-container"},null===(t=u||[])||void 0===t?void 0:t.map((function(e){return B.default.createElement(me,{key:e.id,profile:e,isActive:k===e.id,onChange:L})})),!b&&B.default.createElement(r.NewBabyProfileRadio,{value:x,onInputChange:w,isActive:"new"===k,onChange:L})),B.default.createElement("div",{className:"button-group"},g||E(n)))})):B.default.createElement(Ee,{type:"confirm",isOpen:p,onClose:d},B.default.createElement("div",{className:"header"},B.default.createElement("div",{className:"title"},B.default.createElement(a.Text,{size:"s2",type:"semiBold"},M("chooseBaby.title")),B.default.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"close-button",onClick:d},B.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"})))),B.default.createElement("div",{className:"profile-container"},null===(l=u||[])||void 0===l?void 0:l.map((function(e){return B.default.createElement(me,{key:e.id,profile:e,isActive:k===e.id,onChange:L})})),!b&&B.default.createElement(r.NewBabyProfileRadio,{value:x,onInputChange:w,isActive:"new"===k,onChange:L})),B.default.createElement("div",{className:"button-group"},g||E()))},exports.BabyGrowthGender=function(e){var o=e.value,i=e.onChange,l=t.useTranslations().t;return B.default.createElement(k,null,B.default.createElement(a.Text,{size:"label2",type:"bold",style:{marginBottom:"0.5rem"}},l("babyVaccineTool.selectGender")),B.default.createElement(L,{options:[{value:n.Gender.Girl,label:l("gender.female"),content:B.default.createElement(r.Icon.GenderChooseGirl,null)},{value:n.Gender.Boy,label:l("gender.male"),content:B.default.createElement(r.Icon.GenderChooseBoy,null)}],value:o,onChange:i,className:"gender-selector"}))},exports.BabyGrowthLegend=function(e){var t=e.legends,r=e.locale;return B.default.createElement(M,null,t.map((function(e,t){return B.default.createElement(_,{key:t},B.default.createElement("span",{className:"dot",style:{backgroundColor:e.color}}),B.default.createElement(a.Text,{size:"n1",color:u.theme.colors.gray800},r===n.LOCALE.Indonesia?e["z-score"]:e.text))})))},exports.BabyGrowthProfileRadio=me,exports.BabyGrowthRecord=function(e){var r=e.measurementDate,o=void 0===r?new Date:r,i=e.weight,l=e.height,c=e.head,d=e.onEdit,h=e.birthday,m=e.dateFormat,p=void 0===m?"dd/MM/yyyy":m,C=e.locale;void 0===C&&n.LOCALE.PhilippinesEnglish;var y=t.useTranslations().t;return B.default.createElement(xe,{onClick:d},B.default.createElement("div",{className:"time"},B.default.createElement("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},B.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"})),B.default.createElement(a.Text,{size:"p3",color:u.theme.colors.gray600},"".concat(s.format(o,p)," (").concat(ge(f.ageGenerate(h,o),y),")")),B.default.createElement("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"edit-button"},B.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"}))),B.default.createElement("div",{className:"record"},B.default.createElement("div",{className:"record-item"},B.default.createElement("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},B.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"}),B.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"}),B.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"})),B.default.createElement(a.Text,{size:"s3",color:u.theme.colors.gray800,type:"semiBold"},we(f.localizeNumberFormat(i),"kg"))),B.default.createElement("div",{className:"record-item"},B.default.createElement("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},B.default.createElement("g",{clipPath:"url(#clip0_855_82991)"},B.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"})),B.default.createElement("defs",null,B.default.createElement("clipPath",{id:"clip0_855_82991"},B.default.createElement("rect",{width:"16",height:"16",fill:"white",transform:"translate(16.6055) rotate(90)"})))),B.default.createElement(a.Text,{size:"s3",color:u.theme.colors.gray800,type:"semiBold"},we(f.localizeNumberFormat(l),"cm"))),B.default.createElement("div",{className:"record-item"},B.default.createElement("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},B.default.createElement("g",{clipPath:"url(#clip0_855_82994)"},B.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"}),B.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"}),B.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"})),B.default.createElement("defs",null,B.default.createElement("clipPath",{id:"clip0_855_82994"},B.default.createElement("rect",{width:"16",height:"16",fill:"white",transform:"translate(0.234375)"})))),B.default.createElement(a.Text,{size:"s3",color:u.theme.colors.gray800,type:"semiBold"},we(f.localizeNumberFormat(c),"cm")))))},exports.BabyGrowthSwitch=function(e){var t=e.switchType,n=e.onTypeChange;return B.default.createElement(I,null,B.default.createElement(c.Button,{className:"switch",size:"sm",color:t===exports.BabyGrowthSwitchChart.WHO?"primary":"ghost",onClick:function(){return n(exports.BabyGrowthSwitchChart.WHO)}},"WHO"),B.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=de,exports.ChildCard=function(o){var l=o.name,c=o.gender,s=o.age,h=o.isLoggedIn,f=void 0!==h&&h,m=o.showMenu,p=void 0!==m&&m,C=o.onEdit,y=o.onSwitch,b=o.onAdd,g=o.onRemove,x=o.className,w=t.useTranslations().t,v=e.useState(!1),E=v[0],G=v[1];return B.default.createElement(pe,{className:x},B.default.createElement("div",{"data-testid":"gender"},c===n.Gender.Boy?B.default.createElement(r.Icon.Boy,{"data-testid":"boy",id:"boy"}):B.default.createElement(r.Icon.Girl,{"data-testid":"girl",id:"girl"})),B.default.createElement("div",{className:"information"},B.default.createElement(d.Heading,{tag:"h5",fontWeight:"bold",color:u.theme.colors.gray800},i.startCase(l)||w("childCard.noName")),B.default.createElement("div",{className:"detail"},B.default.createElement("div",null,c===n.Gender.Boy?B.default.createElement(r.Icon.GenderBoy,null):B.default.createElement(r.Icon.GenderGirl,null),B.default.createElement(a.Text,{size:"p3",color:u.theme.colors.gray800,style:{textTransform:"capitalize"}},c)),B.default.createElement("div",null,B.default.createElement(r.Icon.Calendar,{size:16}),s&&B.default.createElement(a.Text,{size:"p3",color:u.theme.colors.gray800},ge(s,w))))),p&&f&&B.default.createElement(Ce,null,B.default.createElement(r.Icon.Kebab,{onClick:function(){return G((function(e){return!e}))}}),E&&B.default.createElement(be,{name:l,onClose:function(){return G(!1)},onEdit:function(){G(!1),C()},onSwitch:function(){G(!1),y()},onAdd:function(){G(!1),b()},onRemove:function(){G(!1),g()}})))},exports.LABELS_PERCENTILE=Se,exports.LABELS_Z_SCORE=De,exports.divideChartData=Le,exports.generateGrowthChart=ke,exports.generateXAxisTicks=je,exports.getAxisYDomain=function(e,t,n,r,a){var o=e.slice(t-1,n),i=[o[0][r],o[0][r]],l=i[0],u=i[1];return o.forEach((function(e){e[r]>u&&(u=e[r]),e[r]<l&&(l=e[r])})),[(0|l)-a,(0|u)+a]},exports.paintAxis=function(){var e,t=null===(e=document.getElementsByClassName("recharts-cartesian-grid-vertical"))||void 0===e?void 0:e[0];if(console.log(t),t)for(var n=t.getElementsByTagName("line"),r=0;r<n.length;r++){if(r%2!=0){var a=n[r],o=n[r+1],i=a.getAttribute("x1"),l=a.getAttribute("y"),c=a.getAttribute("height"),s=a.getAttribute("x1"),d=o.getAttribute("x1");console.log({oddLine:a,nextLine:o});var h=document.createElementNS("http://www.w3.org/1999/xhtml","rect");h.setAttribute("stroke",u.theme.colors.blue50),h.setAttribute("fill",u.theme.colors.blue50),h.setAttribute("x",i),h.setAttribute("y",l),h.setAttribute("height",c),h.setAttribute("width",String(Number(d)-Number(s))),t.appendChild(a),t.appendChild(h)}else t.appendChild(n[r]);console.log(t)}},exports.refineDataWithDot=_e,exports.refineDataWithLine=Me,exports.transformDataToChart=Ie;
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("./useTranslations-473f169c.js"),n=require("./Locale-11b51016.js"),r=require("./index-f41db3f3.js"),a=require("./index.styled-31764906.js"),o=require("./tslib.es6-e6f346c4.js"),i=require("./screenSizeContext-78ac9057.js"),l=require("styled-components"),u=require("./theme-696d81a9.js"),c=require("./index-e6c32cab.js"),s=require("date-fns");require("./gAssets.js");var d=require("./index-891306d0.js");require("react-range"),require("@mantine/core"),require("lodash/debounce"),require("./isProduction-32e6a55a.js"),require("./index-d28c27ca.js"),require("./translationsContext-2d7ea471.js"),require("string-format");var h=require("./useOutsideClick-528bfd6c.js"),f=require("./localizeNumberFormat-d34a738e.js"),m=require("./index.styled-b19996c0.js"),p=require("recharts"),C=require("lodash");function y(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}require("./en-PH-605a14fc.js"),require("./index-f2c817d7.js"),require("./useScrollbarSize-586f6706.js"),require("react-dom"),require("vanilla-lazyload");var b,g,x,w,v,E,B=y(e),G=y(l),k=G.default.div(b||(b=o.__makeTemplateObject(["\n & > :not(:last-child) {\n margin-bottom: 8px;\n }\n\n .gender-selector {\n & > :not(:last-child) {\n margin-right: 16px;\n }\n\n & > div {\n width: calc(50% - 8px);\n\n "," {\n max-width: 186px;\n justify-self: left;\n }\n }\n }\n"],["\n & > :not(:last-child) {\n margin-bottom: 8px;\n }\n\n .gender-selector {\n & > :not(:last-child) {\n margin-right: 16px;\n }\n\n & > div {\n width: calc(50% - 8px);\n\n "," {\n max-width: 186px;\n justify-self: left;\n }\n }\n }\n"])),i.MediaQueries.mbUp),L=G.default(r.RadioImageGroup)(g||(g=o.__makeTemplateObject(["\n & > div > div {\n display: flex;\n flex-direction: row;\n justify-content: center;\n align-content: center;\n gap: 8px;\n padding-block: 5px;\n }\n .radio-group-item-heading {\n margin-top: 0;\n }\n"],["\n & > div > div {\n display: flex;\n flex-direction: row;\n justify-content: center;\n align-content: center;\n gap: 8px;\n padding-block: 5px;\n }\n .radio-group-item-heading {\n margin-top: 0;\n }\n"]))),M=G.default.div(x||(x=o.__makeTemplateObject(["\n display: flex;\n justify-content: center;\n gap: 16px;\n"],["\n display: flex;\n justify-content: center;\n gap: 16px;\n"]))),_=G.default.div(w||(w=o.__makeTemplateObject(["\n display: flex;\n justify-content: center;\n align-items: center;\n gap: 6px;\n .dot {\n width: 8px;\n height: 8px;\n border-radius: 50%;\n }\n"],["\n display: flex;\n justify-content: center;\n align-items: center;\n gap: 6px;\n .dot {\n width: 8px;\n height: 8px;\n border-radius: 50%;\n }\n"]))),I=G.default.div(v||(v=o.__makeTemplateObject(["\n display: flex;\n justify-content: center;\n .switch {\n border: 1px solid ",";\n padding: 6px 12px;\n font-weight: 600;\n font-size: 11px;\n &:nth-child(2n + 1) {\n border-radius: 6px 0px 0px 6px;\n border-right: none;\n }\n &:nth-child(2n) {\n border-radius: 0px 6px 6px 0px;\n border-left: none;\n }\n }\n"],["\n display: flex;\n justify-content: center;\n .switch {\n border: 1px solid ",";\n padding: 6px 12px;\n font-weight: 600;\n font-size: 11px;\n &:nth-child(2n + 1) {\n border-radius: 6px 0px 0px 6px;\n border-right: none;\n }\n &:nth-child(2n) {\n border-radius: 0px 6px 6px 0px;\n border-left: none;\n }\n }\n"])),u.theme.colors.neutral200);exports.BabyGrowthSwitchChart=void 0,(E=exports.BabyGrowthSwitchChart||(exports.BabyGrowthSwitchChart={}))[E.WHO=0]="WHO",E[E.CDC=1]="CDC";var j,T,D,S,H,q,P,z,A,O,R,N,W,Y,Z,V,F,U,K,X,Q,J,$,ee,te,ne,re,ae,oe,ie,le,ue=G.default.div(j||(j=o.__makeTemplateObject(["\n /* position: absolute; */\n display: flex;\n align-items: stretch;\n justify-content: space-around;\n padding: 8px;\n gap: 14px;\n\n min-width: 145px;\n max-width: 220px;\n min-height: 50px;\n border-radius: 4px;\n background: rgba(255, 255, 255, 0.2);\n box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);\n backdrop-filter: blur(5px);\n -webkit-backdrop-filter: blur(5px);\n border: 1px solid rgba(255, 255, 255, 0.3);\n .risk {\n display: flex;\n align-items: center;\n padding: 4px 8px;\n background: ",";\n border-radius: 3px;\n }\n .tooltip {\n text-align: left;\n }\n"],["\n /* position: absolute; */\n display: flex;\n align-items: stretch;\n justify-content: space-around;\n padding: 8px;\n gap: 14px;\n\n min-width: 145px;\n max-width: 220px;\n min-height: 50px;\n border-radius: 4px;\n background: rgba(255, 255, 255, 0.2);\n box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);\n backdrop-filter: blur(5px);\n -webkit-backdrop-filter: blur(5px);\n border: 1px solid rgba(255, 255, 255, 0.3);\n .risk {\n display: flex;\n align-items: center;\n padding: 4px 8px;\n background: ",";\n border-radius: 3px;\n }\n .tooltip {\n text-align: left;\n }\n"])),u.theme.colors.yellow600),ce=[{name:["3rd","-3SD","97th","3SD"],color:u.theme.colors.red600},{name:["15rd","-2SD","85th","2SD"],color:u.theme.colors.yellow600},{name:["50th","0Median"],color:u.theme.colors.green600}],se={"3rd":"-3SD","15th":"-2SD","50th":"Median","85th":"2SD","97th":"3SD"},de=function(t){var r,o=t.payload,i=t.locale,l=t.active,c=null===(r=null==o?void 0:o[0])||void 0===r?void 0:r.payload;if(!(c&&c.history&&c.name&&c.risk&&c.toolTipLabel&&l))return null;var s=e.useMemo((function(){var e;return null===(e=ce.find((function(e){return e.name.includes(c.risk||"")})))||void 0===e?void 0:e.color}),[c.risk]),d=e.useMemo((function(){return i===n.LOCALE.Indonesia?c.risk?se[c.risk]:"":c.risk}),[i,c.risk]);return B.default.createElement(ue,null,B.default.createElement("div",{className:"risk",style:{backgroundColor:s}},B.default.createElement(a.Text,{size:"s3",color:u.theme.colors.white,type:"semiBold"},d)),B.default.createElement("div",{className:"tooltip"},(c.toolTipLabel||[]).map((function(e,t){return B.default.createElement(a.Text,{key:t,size:"n1",color:u.theme.colors.gray600},e)}))))},he="300ms",fe=G.default.div(T||(T=o.__makeTemplateObject(["\n background: ",";\n border-radius: 6px;\n padding: 16px 20px;\n display: flex;\n justify-content: space-between;\n align-items: center;\n .baby {\n display: flex;\n align-items: center;\n gap: 8px;\n svg {\n min-width: 24px;\n }\n }\n .radio {\n cursor: pointer;\n position: relative;\n min-width: 22px;\n width: 22px;\n height: 22px;\n background: #ffffff;\n border: 2px solid ",";\n border-radius: 50%;\n transition: all "," ease-in-out;\n &.active {\n border-color: ",";\n &::before {\n content: '';\n position: absolute;\n inset: 0;\n width: 100%;\n height: 100%;\n background-color: ",";\n background-clip: content-box;\n padding: 5px;\n border-radius: 50%;\n animation: "," "," ease-in-out forwards;\n }\n }\n }\n"],["\n background: ",";\n border-radius: 6px;\n padding: 16px 20px;\n display: flex;\n justify-content: space-between;\n align-items: center;\n .baby {\n display: flex;\n align-items: center;\n gap: 8px;\n svg {\n min-width: 24px;\n }\n }\n .radio {\n cursor: pointer;\n position: relative;\n min-width: 22px;\n width: 22px;\n height: 22px;\n background: #ffffff;\n border: 2px solid ",";\n border-radius: 50%;\n transition: all "," ease-in-out;\n &.active {\n border-color: ",";\n &::before {\n content: '';\n position: absolute;\n inset: 0;\n width: 100%;\n height: 100%;\n background-color: ",";\n background-clip: content-box;\n padding: 5px;\n border-radius: 50%;\n animation: "," "," ease-in-out forwards;\n }\n }\n }\n"])),u.theme.colors.gray50,u.theme.colors.gray600,he,u.theme.colors.primaryBase,u.theme.colors.primaryBase,i.fadeIn,he),me=function(e){var t=e.profile,n=e.onChange,o=e.isActive;return B.default.createElement(fe,{onClick:function(){return n(t.id)}},B.default.createElement("div",{className:"baby"},"male"===t.gender?B.default.createElement(r.Icon.Boy,{size:24}):B.default.createElement(r.Icon.Girl,{size:24}),B.default.createElement(a.Text,{size:"p2",color:u.theme.colors.gray800},t.name)),B.default.createElement("div",{className:o?"radio active":"radio"}))},pe=G.default.div(D||(D=o.__makeTemplateObject(["\n /* Auto layout */\n position: relative;\n display: flex;\n align-items: flex-start;\n padding: 16px;\n gap: 16px;\n background: ",";\n border: 1px solid ",";\n border-radius: 6px;\n .information {\n display: flex;\n flex-direction: column;\n gap: 8px;\n h5:first-letter {\n text-transform: uppercase;\n }\n .detail {\n display: flex;\n gap: 16px;\n div {\n display: flex;\n align-items: center;\n gap: 6px;\n }\n }\n }\n"],["\n /* Auto layout */\n position: relative;\n display: flex;\n align-items: flex-start;\n padding: 16px;\n gap: 16px;\n background: ",";\n border: 1px solid ",";\n border-radius: 6px;\n .information {\n display: flex;\n flex-direction: column;\n gap: 8px;\n h5:first-letter {\n text-transform: uppercase;\n }\n .detail {\n display: flex;\n gap: 16px;\n div {\n display: flex;\n align-items: center;\n gap: 6px;\n }\n }\n }\n"])),u.theme.colors.white,u.theme.colors.gray100),Ce=G.default.div(S||(S=o.__makeTemplateObject(["\n position: absolute;\n top: 18px;\n right: 16px;\n cursor: pointer;\n"],["\n position: absolute;\n top: 18px;\n right: 16px;\n cursor: pointer;\n"]))),ye=G.default(a.Menu)(H||(H=o.__makeTemplateObject(["\n position: absolute;\n right: 0;\n z-index: 1;\n"],["\n position: absolute;\n right: 0;\n z-index: 1;\n"]))),be=function(n){var r=n.name,o=n.onClose,i=n.onEdit,l=n.onSwitch,c=n.onAdd,s=n.onRemove,d=t.useTranslations().t,f=e.useRef();return h.useOutsideClick(f,o),B.default.createElement("div",{ref:f},B.default.createElement(ye,{width:250},B.default.createElement(a.Menu.Item,{onClick:i,icon:B.default.createElement("svg",{width:"16",height:"17",viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},B.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"}))},B.default.createElement(a.Text,{size:"p2",color:u.theme.colors.gray800},d("childCard.menu.edit",{name:r}))),B.default.createElement(a.Menu.Item,{onClick:l,icon:B.default.createElement("svg",{width:"16",height:"17",viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},B.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"}))},B.default.createElement(a.Text,{size:"p2",color:u.theme.colors.gray800},d("childCard.menu.switch"))),B.default.createElement(a.Menu.Item,{onClick:c,icon:B.default.createElement("svg",{width:"16",height:"17",viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},B.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"}),B.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"}))},B.default.createElement(a.Text,{size:"p2",color:u.theme.colors.gray800},d("childCard.menu.add"))),B.default.createElement(a.Menu.Item,{onClick:s,icon:B.default.createElement("svg",{width:"16",height:"17",viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},B.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"}))},B.default.createElement(a.Text,{size:"p2",color:u.theme.colors.red600},d("childCard.menu.remove",{name:r})))))},ge=function(e,t){if(e)if(e.year<1){if(0===e.month)switch(e.week){case 0:case 1:return t("childCard.age.oneWeek");default:return t("childCard.age.week",{weeks:e.week})}if(1===e.month)return t("childCard.age.oneMonth");if(e.month>1)return t("childCard.age.months",{month:e.month})}else{if(1===e.year)return t("childCard.age.oneYear");if(0===e.month)return t("childCard.age.yearNoMonth",{year:e.year});if(e.month>0)return t("childCard.age.yearMonth",{year:e.year,month:e.month})}},xe=G.default.div(q||(q=o.__makeTemplateObject(["\n cursor: pointer;\n position: relative;\n padding: 20px 2px;\n border-bottom: 1px solid ",";\n .time {\n display: flex;\n align-items: center;\n gap: 8px;\n margin-bottom: 16px;\n }\n .edit-button {\n margin-left: auto;\n justify-self: end;\n }\n .record {\n display: grid;\n grid-template-columns: repeat(3, 1fr);\n grid-template-rows: 1fr;\n grid-column-gap: 30px;\n grid-row-gap: 0px;\n }\n .record-item {\n display: flex;\n align-items: center;\n gap: 8px;\n }\n"],["\n cursor: pointer;\n position: relative;\n padding: 20px 2px;\n border-bottom: 1px solid ",";\n .time {\n display: flex;\n align-items: center;\n gap: 8px;\n margin-bottom: 16px;\n }\n .edit-button {\n margin-left: auto;\n justify-self: end;\n }\n .record {\n display: grid;\n grid-template-columns: repeat(3, 1fr);\n grid-template-rows: 1fr;\n grid-column-gap: 30px;\n grid-row-gap: 0px;\n }\n .record-item {\n display: flex;\n align-items: center;\n gap: 8px;\n }\n"])),u.theme.colors.gray100),we=function(e,t){return e&&"NaN"!==e?e+" "+(t||""):"--"},ve=G.default(m.Drawer)(P||(P=o.__makeTemplateObject(["\n .add-profile-container {\n display: flex;\n flex-direction: column;\n gap: 24px;\n }\n .profile-container {\n display: flex;\n flex-direction: column;\n gap: 8px;\n }\n .button-group {\n display: flex;\n flex-direction: column;\n gap: 8px;\n button {\n width: 100%;\n }\n }\n"],["\n .add-profile-container {\n display: flex;\n flex-direction: column;\n gap: 24px;\n }\n .profile-container {\n display: flex;\n flex-direction: column;\n gap: 8px;\n }\n .button-group {\n display: flex;\n flex-direction: column;\n gap: 8px;\n button {\n width: 100%;\n }\n }\n"]))),Ee=G.default(r.Modal)(z||(z=o.__makeTemplateObject(["\n .hhg-modal {\n min-width: 570px;\n }\n\n .title {\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding-bottom: 16px;\n border-bottom: 1px solid ",";\n }\n\n .close-button {\n margin-left: auto;\n }\n\n .profile-container {\n padding-block: 16px;\n display: flex;\n flex-direction: column;\n gap: 8px;\n border-bottom: 1px solid ",";\n max-height: 300px;\n overflow-y: auto;\n }\n\n .button-group {\n display: flex;\n justify-content: flex-end;\n gap: 16px;\n margin-block: 16px;\n }\n"],["\n .hhg-modal {\n min-width: 570px;\n }\n\n .title {\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding-bottom: 16px;\n border-bottom: 1px solid ",";\n }\n\n .close-button {\n margin-left: auto;\n }\n\n .profile-container {\n padding-block: 16px;\n display: flex;\n flex-direction: column;\n gap: 8px;\n border-bottom: 1px solid ",";\n max-height: 300px;\n overflow-y: auto;\n }\n\n .button-group {\n display: flex;\n justify-content: flex-end;\n gap: 16px;\n margin-block: 16px;\n }\n"])),u.theme.colors.neutral100,u.theme.colors.neutral100),Be=((A={})[n.Gender.Boy]=((O={})[n.BabyGrowthChartType.Weight]=((R={})[n.BabyGrowthChartDuration.Weekly]=function(){return Promise.resolve().then((function(){return require("./WEIGHT_BOYS.percentile.weekly-8b301e27.js")}))},R[n.BabyGrowthChartDuration.Monthly]=function(){return Promise.resolve().then((function(){return require("./WEIGHT_BOYS.percentile.monthly-9966bfb1.js")}))},R[n.BabyGrowthChartDuration.Yearly]=function(){return Promise.resolve().then((function(){return require("./WEIGHT_BOYS.percentile.yearly-c10eda77.js")}))},R),O[n.BabyGrowthChartType.Height]=((N={})[n.BabyGrowthChartDuration.Weekly]=function(){return Promise.resolve().then((function(){return require("./HEIGHT_BOYS.percentile.weekly-71fb3532.js")}))},N[n.BabyGrowthChartDuration.Monthly]=function(){return Promise.resolve().then((function(){return require("./HEIGHT_BOYS.percentile.monthly-e61c2896.js")}))},N[n.BabyGrowthChartDuration.Yearly]=function(){return Promise.resolve().then((function(){return require("./HEIGHT_BOYS.percentile.yearly-5156c057.js")}))},N),O[n.BabyGrowthChartType.Head]=((W={})[n.BabyGrowthChartDuration.Weekly]=function(){return Promise.resolve().then((function(){return require("./HEAD CIRCUM_BOYS.percentile.weekly-923d3626.js")}))},W[n.BabyGrowthChartDuration.Monthly]=function(){return Promise.resolve().then((function(){return require("./HEAD CIRCUM_BOYS.percentile.monthly-790479be.js")}))},W[n.BabyGrowthChartDuration.Yearly]=function(){return Promise.resolve().then((function(){return require("./HEAD CIRCUM_BOYS.percentile.yearly-b5aaa103.js")}))},W),O[n.BabyGrowthChartType.BMI]=((Y={})[n.BabyGrowthChartDuration.Weekly]=function(){return Promise.resolve().then((function(){return require("./BMI_BOYS.percentile.weekly-75bff607.js")}))},Y[n.BabyGrowthChartDuration.Monthly]=function(){return Promise.resolve().then((function(){return require("./BMI_BOYS.percentile.monthly-e1af0e66.js")}))},Y[n.BabyGrowthChartDuration.Yearly]=function(){return Promise.resolve().then((function(){return require("./BMI_BOYS.percentile.yearly-a1a3d0ef.js")}))},Y),O),A[n.Gender.Girl]=((Z={})[n.BabyGrowthChartType.Weight]=((V={})[n.BabyGrowthChartDuration.Weekly]=function(){return Promise.resolve().then((function(){return require("./WEIGHT_GIRLS.percentile.weekly-63c6a2a3.js")}))},V[n.BabyGrowthChartDuration.Monthly]=function(){return Promise.resolve().then((function(){return require("./WEIGHT_GIRLS.percentile.monthly-822f3f97.js")}))},V[n.BabyGrowthChartDuration.Yearly]=function(){return Promise.resolve().then((function(){return require("./WEIGHT_GIRLS.percentile.yearly-8f44f763.js")}))},V),Z[n.BabyGrowthChartType.Height]=((F={})[n.BabyGrowthChartDuration.Weekly]=function(){return Promise.resolve().then((function(){return require("./HEIGHT_GIRLS.percentile.weekly-b2628828.js")}))},F[n.BabyGrowthChartDuration.Monthly]=function(){return Promise.resolve().then((function(){return require("./HEIGHT_GIRLS.percentile.monthly-a7bf2e5d.js")}))},F[n.BabyGrowthChartDuration.Yearly]=function(){return Promise.resolve().then((function(){return require("./HEIGHT_GIRLS.percentile.yearly-e00c3ffd.js")}))},F),Z[n.BabyGrowthChartType.Head]=((U={})[n.BabyGrowthChartDuration.Weekly]=function(){return Promise.resolve().then((function(){return require("./HEAD CIRCUM_GIRLS.percentile.weekly-0020f6e2.js")}))},U[n.BabyGrowthChartDuration.Monthly]=function(){return Promise.resolve().then((function(){return require("./HEAD CIRCUM_GIRLS.percentile.monthly-24290dfb.js")}))},U[n.BabyGrowthChartDuration.Yearly]=function(){return Promise.resolve().then((function(){return require("./HEAD CIRCUM_GIRLS.percentile.yearly-22dd615a.js")}))},U),Z[n.BabyGrowthChartType.BMI]=((K={})[n.BabyGrowthChartDuration.Weekly]=function(){return Promise.resolve().then((function(){return require("./BMI_GIRLS.percentile.weekly-aa3da5c1.js")}))},K[n.BabyGrowthChartDuration.Monthly]=function(){return Promise.resolve().then((function(){return require("./BMI_GIRLS.percentile.monthly-4c519db6.js")}))},K[n.BabyGrowthChartDuration.Yearly]=function(){return Promise.resolve().then((function(){return require("./BMI_GIRLS.percentile.yearly-8561e48e.js")}))},K),Z),A),Ge=((X={})[n.Gender.Boy]=((Q={})[n.BabyGrowthChartType.Weight]=((J={})[n.BabyGrowthChartDuration.Weekly]=function(){return Promise.resolve().then((function(){return require("./WEIGHT_BOYS.zscore.weekly-0b1faf98.js")}))},J[n.BabyGrowthChartDuration.Monthly]=function(){return Promise.resolve().then((function(){return require("./WEIGHT_BOYS.zscore.monthly-897fca0b.js")}))},J[n.BabyGrowthChartDuration.Yearly]=function(){return Promise.resolve().then((function(){return require("./WEIGHT_BOYS.zscore.yearly-80018532.js")}))},J),Q[n.BabyGrowthChartType.Height]=(($={})[n.BabyGrowthChartDuration.Weekly]=function(){return Promise.resolve().then((function(){return require("./HEIGHT_BOYS.zscore.weekly-70c18763.js")}))},$[n.BabyGrowthChartDuration.Monthly]=function(){return Promise.resolve().then((function(){return require("./HEIGHT_BOYS.zscore.monthly-910c2bd0.js")}))},$[n.BabyGrowthChartDuration.Yearly]=function(){return Promise.resolve().then((function(){return require("./HEIGHT_BOYS.zscore.yearly-bd97678c.js")}))},$),Q[n.BabyGrowthChartType.Head]=((ee={})[n.BabyGrowthChartDuration.Weekly]=function(){return Promise.resolve().then((function(){return require("./HEAD CIRCUM_BOYS.zscore.weekly-f472daa8.js")}))},ee[n.BabyGrowthChartDuration.Monthly]=function(){return Promise.resolve().then((function(){return require("./HEAD CIRCUM_BOYS.zscore.monthly-bc73088f.js")}))},ee[n.BabyGrowthChartDuration.Yearly]=function(){return Promise.resolve().then((function(){return require("./HEAD CIRCUM_BOYS.zscore.yearly-d7a7b9df.js")}))},ee),Q[n.BabyGrowthChartType.BMI]=((te={})[n.BabyGrowthChartDuration.Weekly]=function(){return Promise.resolve().then((function(){return require("./BMI_BOYS.zscore.weekly-aba5d53b.js")}))},te[n.BabyGrowthChartDuration.Monthly]=function(){return Promise.resolve().then((function(){return require("./BMI_BOYS.zscore.monthly-a175df2d.js")}))},te[n.BabyGrowthChartDuration.Yearly]=function(){return Promise.resolve().then((function(){return require("./BMI_BOYS.zscore.yearly-aafb7ce1.js")}))},te),Q),X[n.Gender.Girl]=((ne={})[n.BabyGrowthChartType.Weight]=((re={})[n.BabyGrowthChartDuration.Weekly]=function(){return Promise.resolve().then((function(){return require("./WEIGHT_GIRLS.zscore.weekly-29d8f232.js")}))},re[n.BabyGrowthChartDuration.Monthly]=function(){return Promise.resolve().then((function(){return require("./WEIGHT_GIRLS.zscore.monthly-86b583c7.js")}))},re[n.BabyGrowthChartDuration.Yearly]=function(){return Promise.resolve().then((function(){return require("./WEIGHT_GIRLS.zscore.yearly-07eeb8b5.js")}))},re),ne[n.BabyGrowthChartType.Height]=((ae={})[n.BabyGrowthChartDuration.Weekly]=function(){return Promise.resolve().then((function(){return require("./HEIGHT_GIRLS.zscore.weekly-7ed52595.js")}))},ae[n.BabyGrowthChartDuration.Monthly]=function(){return Promise.resolve().then((function(){return require("./HEIGHT_GIRLS.zscore.monthly-3542327e.js")}))},ae[n.BabyGrowthChartDuration.Yearly]=function(){return Promise.resolve().then((function(){return require("./HEIGHT_GIRLS.zscore.yearly-4bbd497c.js")}))},ae),ne[n.BabyGrowthChartType.Head]=((oe={})[n.BabyGrowthChartDuration.Weekly]=function(){return Promise.resolve().then((function(){return require("./HEAD CIRCUM_GIRLS.zscore.weekly-a0fa670d.js")}))},oe[n.BabyGrowthChartDuration.Monthly]=function(){return Promise.resolve().then((function(){return require("./HEAD CIRCUM_GIRLS.zscore.monthly-96a0f069.js")}))},oe[n.BabyGrowthChartDuration.Yearly]=function(){return Promise.resolve().then((function(){return require("./HEAD CIRCUM_GIRLS.zscore.yearly-02cf35f7.js")}))},oe),ne[n.BabyGrowthChartType.BMI]=((ie={})[n.BabyGrowthChartDuration.Weekly]=function(){return Promise.resolve().then((function(){return require("./BMI_GIRLS.zscore.weekly-56e2c916.js")}))},ie[n.BabyGrowthChartDuration.Monthly]=function(){return Promise.resolve().then((function(){return require("./BMI_GIRLS.zscore.monthly-849cbbe5.js")}))},ie[n.BabyGrowthChartDuration.Yearly]=function(){return Promise.resolve().then((function(){return require("./BMI_GIRLS.zscore.yearly-eb9d49d1.js")}))},ie),ne),X),ke=function(e,t,r,a){return a===n.LOCALE.Indonesia?Ge[e][t][r]():Be[e][t][r]()},Le=function(e,t){var n=C.chunk(t,Math.ceil(t.length/2)),r=n[0],a=n[1],o=r.map((function(e){return e.name})),i=a.map((function(e){return e.name}));return o.includes(e)?{data:r,status:"first-half"}:i.includes(e)?{data:a,status:"second-half"}:{data:t,status:"full"}},Me=function(e,t){return o.__spreadArray(o.__spreadArray([],e,!0),t.map((function(e){return{name:e.name,history:e.history,risk:e.risk,toolTipLabel:e.toolTipLabel}})),!0).sort((function(e,t){return e.name-t.name}))},_e=function(e,t,n,r,a){return o.__spreadArray(o.__spreadArray([],e,!0),[{name:r,history:a,risk:t,toolTipLabel:n}],!1).sort((function(e,t){return e.name-t.name}))},Ie=function(e,t){void 0===t&&(t=0);var n=[],r=function(r){e[r].forEach((function(e,a){var o;n[a]?n[a][r]=e:n[a]=((o={name:a+t})[r]=e,o)}))};for(var a in e)r(a);return n},je=function(e,t){return void 0===t&&(t=0),Array.from({length:e-t+1},(function(e,n){return n+t}))},Te=G.default.div(le||(le=o.__makeTemplateObject(["\n position: relative;\n .custom-chart-label {\n display: flex;\n width: 100%;\n justify-content: space-between;\n align-items: center;\n margin-top: 8px;\n }\n"],["\n position: relative;\n .custom-chart-label {\n display: flex;\n width: 100%;\n justify-content: space-between;\n align-items: center;\n margin-top: 8px;\n }\n"]))),De=[{name:"-3SD",label:"-3",color:u.theme.colors.red600},{name:"-2SD",label:"-2",color:u.theme.colors.yellow600},{name:"0Median",label:"0",color:u.theme.colors.green600},{name:"2SD",label:"2",color:u.theme.colors.yellow600},{name:"3SD",label:"3",color:u.theme.colors.red600},{name:"history",color:u.theme.colors.primaryBase}],Se=[{name:"3rd",color:u.theme.colors.red600},{name:"15th",color:u.theme.colors.yellow600},{name:"50th",color:u.theme.colors.green600},{name:"85th",color:u.theme.colors.yellow600},{name:"97th",color:u.theme.colors.red600},{name:"history",color:u.theme.colors.primaryBase}],He=e.forwardRef((function(e,t){return B.default.createElement("circle",o.__assign({},e,{ref:t}),B.default.createElement("animate",{attributeName:"r",values:"4;8;4",dur:"2s",begin:"0s",repeatCount:"indefinite"}))})),qe=function(e){var t=e.x,n=e.y,r=e.last,a=e.index,o=e.name;return r===a?B.default.createElement("text",{x:t,y:n,dx:16,fill:u.theme.colors.gray500,fontSize:12,textAnchor:"middle"},o):null};exports.BabyGrowthChart=function(r){var i=r.gender,l=r.type,c=r.duration,s=r.xLabel,d=r.x,f=r.y,m=r.toolTipLabel,C=void 0===m?[]:m,y=r.isDivide,b=void 0===y||y,g=r.onIsPrevious,x=r.locale,w=r.riskLevel,v=r.withLine,E=void 0!==v&&v,G=r.lineData,k=void 0===G?[]:G,L=e.useState([]),M=L[0],_=L[1],I=e.useRef([]),j=t.useTranslations().t;e.useEffect((function(){o.__awaiter(void 0,void 0,void 0,(function(){var e,t,r,a;return o.__generator(this,(function(u){switch(u.label){case 0:return[4,ke(i,l,c,x)];case 1:if(e=u.sent().default,t=c===n.BabyGrowthChartDuration.Weekly?0:1,r=Ie(e,t),Array.isArray(r)&&0===r.length)return null==g||g(),[2];a={data:r.map((function(e,t){return o.__assign(o.__assign({},e),{name:t})})),status:"full"};try{a=b?Le(d||t,r):{data:r,status:"full"}}catch(e){}if(b)switch(a.status){case"first-half":I.current=je(a.data.length-1+t,t);break;case"second-half":I.current=je(e.length,a.data.length);break;default:I.current=je(r.length-1+t,t)}else I.current=je(r.length-1+t,t);return _(a.data),[2]}}))}))}),[i,l,c,x,g]);var T=e.useState(!1),D=T[0],S=T[1],H=e.useMemo((function(){return E&&Array.isArray(M)&&M.length>0?Me(M,k):_e(M,w,C,d,f)}),[E,k,M]),q=e.useRef(null);h.useOutsideClick(q,(function(){return S(!1)}));return B.default.createElement(Te,null,B.default.createElement("div",{className:"custom-chart-label"},B.default.createElement(a.Text,{size:"n1",color:u.theme.colors.gray500},function(){switch(l){case n.BabyGrowthChartType.Weight:return j("babyGrowth.weight");case n.BabyGrowthChartType.Height:return j("babyGrowth.height");case n.BabyGrowthChartType.Head:return j("babyGrowth.headCircumference");case n.BabyGrowthChartType.BMI:return"BMI";default:return""}}()),B.default.createElement(a.Text,{size:"n1",color:u.theme.colors.gray500},x===n.LOCALE.Indonesia?"Z-Score":j("babyGrowth.percentiles"))),Array.isArray(H)&&H.length>0&&B.default.createElement(p.ResponsiveContainer,{height:388,className:"chart"},B.default.createElement(p.LineChart,{data:H,margin:{top:16,right:28,bottom:8,left:0}},B.default.createElement(p.CartesianGrid,{stroke:u.theme.colors.blue200}),B.default.createElement(p.Tooltip,{trigger:"click",content:function(e){return B.default.createElement(de,o.__assign({active:!E&&D&&void 0!==d&&void 0!==f,locale:x},e))}}),B.default.createElement(p.XAxis,{type:"number",scale:"linear",ticks:I.current,dataKey:"name",tickLine:!1,tickMargin:12,tick:{fontFamily:"Inter",fontWeight:400,fontSize:12,color:u.theme.colors.gray800},domain:["dataMin","dataMax"],interval:"preserveStartEnd",tickCount:1,tickFormatter:function(e){return String(Math.round(100*(e+Number.EPSILON))/100)},allowDecimals:!0}),B.default.createElement(p.YAxis,{domain:[function(e){return Math.min(e,f||e)},function(e){return Math.max(e,f||e)}],tickLine:!1,tickMargin:7,width:45,tickCount:10,allowDecimals:!0,tickFormatter:function(e){return String(Math.round(100*(e+Number.EPSILON))/100)},tick:{fontFamily:"Inter",fontWeight:400,fontSize:12,color:u.theme.colors.gray800}}),(x===n.LOCALE.Indonesia?De:Se).map((function(e,t){return B.default.createElement(B.default.Fragment,null,"history"===e.name?B.default.createElement(p.Line,{key:t,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}):B.default.createElement(p.Line,{key:e.name,type:"linear",dataKey:e.name,stroke:e.color,dot:!1,activeDot:!1,connectNulls:!0,label:B.default.createElement(qe,{last:(null==H?void 0:H.length)?H.length-1:0,name:(null==e?void 0:e.label)||e.name}),tooltipType:"none"}))})),void 0!==d&&void 0!==f&&B.default.createElement(p.ReferenceDot,{onClick:function(){return S(!0)},x:0===d?1:d,y:f,r:4,shape:B.default.createElement(He,{ref:q,r:4}),fill:u.theme.colors.primaryBase,stroke:u.theme.colors.primaryBase}))),B.default.createElement("div",{className:"custom-chart-label"},B.default.createElement("i",null),B.default.createElement(a.Text,{size:"n1",color:u.theme.colors.gray500},s)))},exports.BabyGrowthChartPercentile=Be,exports.BabyGrowthChartZScore=Ge,exports.BabyGrowthChooseProfileDrawer=function(n){var i,l,u=n.babyProfiles,s=n.currentProfileId,d=n.onClose,h=n.onCreate,f=n.onAddMeasurement,m=n.onSwitchProfile,p=n.open,C=n.isMobile,y=n.isMyProfile,b=void 0!==y&&y,g=n.buttonGroup,x=n.newBabyValue,w=n.onNewBabyValueChange,v=o.__rest(n,["babyProfiles","currentProfileId","onClose","onCreate","onAddMeasurement","onSwitchProfile","open","isMobile","isMyProfile","buttonGroup","newBabyValue","onNewBabyValueChange"]),E=function(e){return b?B.default.createElement(B.default.Fragment,null,B.default.createElement(c.Button,{onClick:function(){null==h||h(),d()},size:"lg",color:"secondary",icon:B.default.createElement("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},B.default.createElement("path",{d:"M13.5 9.75H9.75V13.5C9.75 13.9125 9.4125 14.25 9 14.25C8.5875 14.25 8.25 13.9125 8.25 13.5V9.75H4.5C4.0875 9.75 3.75 9.4125 3.75 9C3.75 8.5875 4.0875 8.25 4.5 8.25H8.25V4.5C8.25 4.0875 8.5875 3.75 9 3.75C9.4125 3.75 9.75 4.0875 9.75 4.5V8.25H13.5C13.9125 8.25 14.25 8.5875 14.25 9C14.25 9.4125 13.9125 9.75 13.5 9.75Z",fill:"#2D87F3"}))},M("babyGrowth.drawer.createBaby")),B.default.createElement(c.Button,{size:"lg",color:"primary",onClick:function(){null==e||e(),b?null==m||m(k):null==f||f(k),d()}},M(b?"babyGrowth.drawer.switchProfile":"babyGrowth.drawer.addMeasurement"))):B.default.createElement(c.Button,{size:"lg",color:"primary",onClick:function(){null==f||f(k),null==e||e(),d()}},M("chooseBaby.button"))},G=e.useState(s||(null===(i=u[0])||void 0===i?void 0:i.id)),k=G[0],L=G[1],M=t.useTranslations().t;return C?B.default.createElement(ve,o.__assign({title:"Baby profiles",onClose:d,open:p,placement:"bottom"},v),(function(e){var t,n=e.internalClose;return B.default.createElement("div",{className:"add-profile-container"},B.default.createElement("div",{className:"profile-container"},null===(t=u||[])||void 0===t?void 0:t.map((function(e){return B.default.createElement(me,{key:e.id,profile:e,isActive:k===e.id,onChange:L})})),!b&&B.default.createElement(r.NewBabyProfileRadio,{value:x,onInputChange:w,isActive:"new"===k,onChange:L})),B.default.createElement("div",{className:"button-group"},g||E(n)))})):B.default.createElement(Ee,{type:"confirm",isOpen:p,onClose:d},B.default.createElement("div",{className:"header"},B.default.createElement("div",{className:"title"},B.default.createElement(a.Text,{size:"s2",type:"semiBold"},M("chooseBaby.title")),B.default.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"close-button",onClick:d},B.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"})))),B.default.createElement("div",{className:"profile-container"},null===(l=u||[])||void 0===l?void 0:l.map((function(e){return B.default.createElement(me,{key:e.id,profile:e,isActive:k===e.id,onChange:L})})),!b&&B.default.createElement(r.NewBabyProfileRadio,{value:x,onInputChange:w,isActive:"new"===k,onChange:L})),B.default.createElement("div",{className:"button-group"},g||E()))},exports.BabyGrowthGender=function(e){var o=e.value,i=e.onChange,l=t.useTranslations().t;return B.default.createElement(k,null,B.default.createElement(a.Text,{size:"label2",type:"bold",style:{marginBottom:"0.5rem"}},l("babyVaccineTool.selectGender")),B.default.createElement(L,{options:[{value:n.Gender.Girl,label:l("gender.female"),content:B.default.createElement(r.Icon.GenderChooseGirl,null)},{value:n.Gender.Boy,label:l("gender.male"),content:B.default.createElement(r.Icon.GenderChooseBoy,null)}],value:o,onChange:i,className:"gender-selector"}))},exports.BabyGrowthLegend=function(e){var t=e.legends,r=e.locale;return B.default.createElement(M,null,t.map((function(e,t){return B.default.createElement(_,{key:t},B.default.createElement("span",{className:"dot",style:{backgroundColor:e.color}}),B.default.createElement(a.Text,{size:"n1",color:u.theme.colors.gray800},r===n.LOCALE.Indonesia?e["z-score"]:e.text))})))},exports.BabyGrowthProfileRadio=me,exports.BabyGrowthRecord=function(e){var r=e.measurementDate,o=void 0===r?new Date:r,i=e.weight,l=e.height,c=e.head,d=e.onEdit,h=e.birthday,m=e.dateFormat,p=void 0===m?"dd/MM/yyyy":m,C=e.locale;void 0===C&&n.LOCALE.PhilippinesEnglish;var y=t.useTranslations().t;return B.default.createElement(xe,{onClick:d},B.default.createElement("div",{className:"time"},B.default.createElement("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},B.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"})),B.default.createElement(a.Text,{size:"p3",color:u.theme.colors.gray600},"".concat(s.format(o,p)," (").concat(ge(f.ageGenerate(h,o),y),")")),B.default.createElement("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"edit-button"},B.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"}))),B.default.createElement("div",{className:"record"},B.default.createElement("div",{className:"record-item"},B.default.createElement("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},B.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"}),B.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"}),B.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"})),B.default.createElement(a.Text,{size:"s3",color:u.theme.colors.gray800,type:"semiBold"},we(f.localizeNumberFormat(i),"kg"))),B.default.createElement("div",{className:"record-item"},B.default.createElement("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},B.default.createElement("g",{clipPath:"url(#clip0_855_82991)"},B.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"})),B.default.createElement("defs",null,B.default.createElement("clipPath",{id:"clip0_855_82991"},B.default.createElement("rect",{width:"16",height:"16",fill:"white",transform:"translate(16.6055) rotate(90)"})))),B.default.createElement(a.Text,{size:"s3",color:u.theme.colors.gray800,type:"semiBold"},we(f.localizeNumberFormat(l),"cm"))),B.default.createElement("div",{className:"record-item"},B.default.createElement("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},B.default.createElement("g",{clipPath:"url(#clip0_855_82994)"},B.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"}),B.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"}),B.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"})),B.default.createElement("defs",null,B.default.createElement("clipPath",{id:"clip0_855_82994"},B.default.createElement("rect",{width:"16",height:"16",fill:"white",transform:"translate(0.234375)"})))),B.default.createElement(a.Text,{size:"s3",color:u.theme.colors.gray800,type:"semiBold"},we(f.localizeNumberFormat(c),"cm")))))},exports.BabyGrowthSwitch=function(e){var t=e.switchType,n=e.onTypeChange;return B.default.createElement(I,null,B.default.createElement(c.Button,{className:"switch",size:"sm",color:t===exports.BabyGrowthSwitchChart.WHO?"primary":"ghost",onClick:function(){return n(exports.BabyGrowthSwitchChart.WHO)}},"WHO"),B.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=de,exports.ChildCard=function(o){var l=o.name,c=o.gender,s=o.age,h=o.isLoggedIn,f=void 0!==h&&h,m=o.showMenu,p=void 0!==m&&m,C=o.onEdit,y=o.onSwitch,b=o.onAdd,g=o.onRemove,x=o.className,w=t.useTranslations().t,v=e.useState(!1),E=v[0],G=v[1];return B.default.createElement(pe,{className:x},B.default.createElement("div",{"data-testid":"gender"},c===n.Gender.Boy?B.default.createElement(r.Icon.Boy,{"data-testid":"boy",id:"boy"}):B.default.createElement(r.Icon.Girl,{"data-testid":"girl",id:"girl"})),B.default.createElement("div",{className:"information"},B.default.createElement(d.Heading,{tag:"h5",fontWeight:"bold",color:u.theme.colors.gray800},i.startCase(l)||w("childCard.noName")),B.default.createElement("div",{className:"detail"},B.default.createElement("div",null,c===n.Gender.Boy?B.default.createElement(r.Icon.GenderBoy,null):B.default.createElement(r.Icon.GenderGirl,null),B.default.createElement(a.Text,{size:"p3",color:u.theme.colors.gray800,style:{textTransform:"capitalize"}},c)),B.default.createElement("div",null,B.default.createElement(r.Icon.Calendar,{size:16}),s&&B.default.createElement(a.Text,{size:"p3",color:u.theme.colors.gray800},ge(s,w))))),p&&f&&B.default.createElement(Ce,null,B.default.createElement(r.Icon.Kebab,{onClick:function(){return G((function(e){return!e}))}}),E&&B.default.createElement(be,{name:l,onClose:function(){return G(!1)},onEdit:function(){G(!1),C()},onSwitch:function(){G(!1),y()},onAdd:function(){G(!1),b()},onRemove:function(){G(!1),g()}})))},exports.LABELS_PERCENTILE=Se,exports.LABELS_Z_SCORE=De,exports.divideChartData=Le,exports.generateGrowthChart=ke,exports.generateXAxisTicks=je,exports.getAxisYDomain=function(e,t,n,r,a){var o=e.slice(t-1,n),i=[o[0][r],o[0][r]],l=i[0],u=i[1];return o.forEach((function(e){e[r]>u&&(u=e[r]),e[r]<l&&(l=e[r])})),[(0|l)-a,(0|u)+a]},exports.paintAxis=function(){var e,t=null===(e=document.getElementsByClassName("recharts-cartesian-grid-vertical"))||void 0===e?void 0:e[0];if(console.log(t),t)for(var n=t.getElementsByTagName("line"),r=0;r<n.length;r++){if(r%2!=0){var a=n[r],o=n[r+1],i=a.getAttribute("x1"),l=a.getAttribute("y"),c=a.getAttribute("height"),s=a.getAttribute("x1"),d=o.getAttribute("x1");console.log({oddLine:a,nextLine:o});var h=document.createElementNS("http://www.w3.org/1999/xhtml","rect");h.setAttribute("stroke",u.theme.colors.blue50),h.setAttribute("fill",u.theme.colors.blue50),h.setAttribute("x",i),h.setAttribute("y",l),h.setAttribute("height",c),h.setAttribute("width",String(Number(d)-Number(s))),t.appendChild(a),t.appendChild(h)}else t.appendChild(n[r]);console.log(t)}},exports.refineDataWithDot=_e,exports.refineDataWithLine=Me,exports.transformDataToChart=Ie;
|
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-897d8e5f.js"),r=require("./constants-ca5ea110.js");require("./tslib.es6-e6f346c4.js"),require("react"),require("./index-d28c27ca.js"),require("./isProduction-32e6a55a.js"),require("./cookieHelper-612b90fa.js"),require("./useTranslations-473f169c.js"),require("./en-PH-605a14fc.js"),require("./translationsContext-2d7ea471.js"),require("string-format"),require("lodash/debounce"),require("./index.styled-31764906.js"),require("styled-components"),require("./theme-696d81a9.js"),require("./screenSizeContext-78ac9057.js"),require("vanilla-lazyload"),require("lodash"),require("date-fns"),require("./Locale-11b51016.js"),require("./gAssets.js"),require("./index-f2c817d7.js"),require("react-range"),require("@mantine/core"),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;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { BmiFormProps } from '../embeddedHeathToolCards/helpers';
|
|
3
|
+
declare const BmiForm: ({ value: valueProps, onChange: onChangeProps, onSubmit: onSubmitProps, disabled, bmiGenerated, bmiUnit, locale, }: BmiFormProps) => JSX.Element;
|
|
4
|
+
export { BmiForm };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const StyledButton: import("styled-components").StyledComponent<({ size, color, theme, isDisabled, isBlock, title, className, onClick, icon, children, isLoading, loadingText, dataEventCategory, dataEventAction, dataEventLabel, dataProductChannel, dataProductSku, dataProductBrand, dataProductName, dataProductPrice, dataProductCategory, dataProductPosition, isAmp, on, dataVarsTracking, type, ...rest }: import("../../atoms/button").Props) => JSX.Element, any, {}, never>;
|
|
3
|
+
export declare const StyledInput: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "type" | "onChange" | "size" | "ref" | "autoComplete" | "enterKeyHint"> & import("../../atoms/pureInput").CustomInputProps & import("react").RefAttributes<HTMLInputElement>>, any, {}, never>;
|
|
4
|
+
export declare const StyledContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
5
|
+
export declare const FormControl: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
6
|
+
export declare const StyledRow: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { CSSProperties } from 'react';
|
|
2
|
+
import { LOCALE } from 'src/interfaces/types';
|
|
3
|
+
import { BmrInfo } from 'src/together/interfaces/types';
|
|
4
|
+
import { InputError } from '../embeddedHeathToolCards/bmr/bmr';
|
|
5
|
+
export type Props = {
|
|
6
|
+
info: BmrInfo;
|
|
7
|
+
errorMessage?: InputError;
|
|
8
|
+
onChange?: (o: BmrInfo) => void;
|
|
9
|
+
style?: CSSProperties;
|
|
10
|
+
className?: string;
|
|
11
|
+
isMobile?: boolean;
|
|
12
|
+
locale?: LOCALE;
|
|
13
|
+
onClick?: (genderInfo: string) => void;
|
|
14
|
+
};
|
|
15
|
+
declare const BmrInputForm: ({ info, className, style, onChange, errorMessage, locale, onClick, }: Props) => JSX.Element;
|
|
16
|
+
export { BmrInputForm };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const StyledButton: import("styled-components").StyledComponent<({ size, color, theme, isDisabled, isBlock, title, className, onClick, icon, children, isLoading, loadingText, dataEventCategory, dataEventAction, dataEventLabel, dataProductChannel, dataProductSku, dataProductBrand, dataProductName, dataProductPrice, dataProductCategory, dataProductPosition, isAmp, on, dataVarsTracking, type, ...rest }: import("../../atoms/button").Props) => JSX.Element, any, {}, never>;
|
|
3
|
+
export declare const StyledInput: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "type" | "onChange" | "size" | "ref" | "autoComplete" | "enterKeyHint"> & import("../../atoms/pureInput").CustomInputProps & import("react").RefAttributes<HTMLInputElement>>, any, {}, never>;
|
|
4
|
+
export declare const StyledContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
5
|
+
export declare const FormControl: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
6
|
+
export declare const StyledRow: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { LOCALE } from 'src/interfaces/types';
|
|
3
|
+
import { ToolContent } from 'src/together/interfaces/types';
|
|
4
|
+
import { BmiFormValue, Rule, BMIUnit } from '../helpers';
|
|
5
|
+
type Props = {
|
|
6
|
+
onSubmit: (data: BmiFormValue) => void;
|
|
7
|
+
isMobile?: boolean;
|
|
8
|
+
locale?: LOCALE;
|
|
9
|
+
bmiContent: ToolContent;
|
|
10
|
+
isSide?: boolean;
|
|
11
|
+
bmiGenerated?: Record<keyof BmiFormValue, {
|
|
12
|
+
label: string;
|
|
13
|
+
rule?: Rule;
|
|
14
|
+
}>;
|
|
15
|
+
bmiUnit?: BMIUnit;
|
|
16
|
+
bmiLink?: string;
|
|
17
|
+
};
|
|
18
|
+
declare const BMICardEmbed: ({ isMobile, onSubmit, bmiContent, isSide, bmiGenerated, bmiUnit, bmiLink, locale, }: Props) => JSX.Element;
|
|
19
|
+
export { BMICardEmbed };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { LOCALE } from 'src/interfaces/types';
|
|
3
|
+
import { BmrInfo, ToolContent } from 'src/together/interfaces/types';
|
|
4
|
+
export type InputError = {
|
|
5
|
+
age: string;
|
|
6
|
+
weight: string;
|
|
7
|
+
height: string;
|
|
8
|
+
};
|
|
9
|
+
type Props = {
|
|
10
|
+
isMobile?: boolean;
|
|
11
|
+
locale?: LOCALE;
|
|
12
|
+
bmrContent: ToolContent;
|
|
13
|
+
isSide?: boolean;
|
|
14
|
+
info: BmrInfo;
|
|
15
|
+
inputErrorMessage?: InputError;
|
|
16
|
+
onFormChange?: (o: BmrInfo) => void;
|
|
17
|
+
onSubmit: (genderInfo: string) => void;
|
|
18
|
+
};
|
|
19
|
+
export declare const BMRCardEmbed: ({ isSide, locale, bmrContent, isMobile, info, inputErrorMessage, onFormChange, onSubmit, }: Props) => JSX.Element;
|
|
20
|
+
export {};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { FieldPath, FieldValues, RegisterOptions } from 'react-hook-form';
|
|
2
|
+
import { LOCALE } from 'src/interfaces/types';
|
|
3
|
+
export type BmiObjective = 'lose-weight' | 'maintain-weight' | 'gain-weight';
|
|
4
|
+
export type BmiFormValue = {
|
|
5
|
+
gender?: 'male' | 'female';
|
|
6
|
+
age?: number;
|
|
7
|
+
weight?: number;
|
|
8
|
+
height?: number;
|
|
9
|
+
objective?: BmiObjective;
|
|
10
|
+
bmi?: number;
|
|
11
|
+
};
|
|
12
|
+
export type BmiFormValueKeys = keyof BmiFormValue;
|
|
13
|
+
export type Rule = Omit<RegisterOptions<FieldValues, FieldPath<FieldValues>>, 'valueAsNumber' | 'valueAsDate' | 'setValueAs' | 'disabled'>;
|
|
14
|
+
export type BMIUnit = {
|
|
15
|
+
minAge: number;
|
|
16
|
+
maxAge: number;
|
|
17
|
+
minHeight: number;
|
|
18
|
+
maxHeight: number;
|
|
19
|
+
minWeight: number;
|
|
20
|
+
maxWeight: number;
|
|
21
|
+
heightConvert: (val: number) => number;
|
|
22
|
+
weightConvert: (val: number) => number;
|
|
23
|
+
};
|
|
24
|
+
export type BmiFormProps = {
|
|
25
|
+
value?: BmiFormValue;
|
|
26
|
+
onChange?: (value: BmiFormValue) => void;
|
|
27
|
+
onSubmit?: (value: BmiFormValue) => void;
|
|
28
|
+
className?: string;
|
|
29
|
+
template?: 'page' | 'embed';
|
|
30
|
+
disabled?: Partial<Record<BmiFormValueKeys, boolean>>;
|
|
31
|
+
locale?: LOCALE;
|
|
32
|
+
bmiGenerated: Record<keyof BmiFormValue, {
|
|
33
|
+
label: string;
|
|
34
|
+
rule?: Rule | undefined;
|
|
35
|
+
}>;
|
|
36
|
+
bmiUnit: BMIUnit;
|
|
37
|
+
};
|
|
38
|
+
export declare function getBmi({ weight: weightProps, height: heightProps, }: {
|
|
39
|
+
weight: number;
|
|
40
|
+
height: number;
|
|
41
|
+
}): number;
|
|
@@ -29,6 +29,8 @@ export type { MobileBottomNavigationIconProps } from './mobileBottomNavigation/M
|
|
|
29
29
|
export { SeoHead } from './seoHead';
|
|
30
30
|
export { ToolsBannerCard } from './toolBannerCard';
|
|
31
31
|
export { DueDateCardEmbed } from './embeddedHeathToolCards/due-date/dueDate';
|
|
32
|
+
export { BMICardEmbed } from './embeddedHeathToolCards/bmi/bmi';
|
|
33
|
+
export { BMRCardEmbed } from './embeddedHeathToolCards/bmr/bmr';
|
|
32
34
|
export type { Props as DueDateCardEmbedProps } from './embeddedHeathToolCards/due-date/dueDate';
|
|
33
35
|
export { OvulationCardEmbed } from './embeddedHeathToolCards/ovulation/ovulation';
|
|
34
36
|
export type { Props as OvulationCardEmbedProps } from './embeddedHeathToolCards/ovulation/ovulation';
|
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-56ca6b6e.js"),r=require("./index-446e5d3b.js"),o=require("./index-e6c32cab.js"),t=require("./index-0b7d0ea2.js"),a=require("./index-112c73a5.js"),i=require("./index-891306d0.js"),s=require("./index-f2c817d7.js"),n=require("./index.styled-31764906.js"),d=require("./index-f41db3f3.js"),p=require("./index.styled-b19996c0.js");require("react"),require("./tslib.es6-e6f346c4.js"),require("./screenSizeContext-78ac9057.js"),require("styled-components"),require("vanilla-lazyload"),require("lodash"),require("./theme-696d81a9.js"),require("react-id-generator"),require("keen-slider/react"),require("./gAssets.js"),require("./index-d28c27ca.js"),require("./isProduction-32e6a55a.js"),require("react-range"),require("date-fns"),require("./Locale-11b51016.js"),require("@mantine/core"),require("./translationsContext-2d7ea471.js"),require("string-format"),require("lodash/debounce"),require("./useTranslations-473f169c.js"),require("./en-PH-605a14fc.js"),require("react-hook-form"),require("./useHealthToolCache-ae750aac.js"),require("./getDynamicHealthTool-1d292d71.js"),require("./core-97cd306c.js"),require("./theme-47d2f7ea.js"),require("@mantine/dates"),require("@mantine/hooks"),require("@mantine/carousel"),require("./useOutsideClick-528bfd6c.js"),require("date-fns/locale/en-US"),require("date-fns/locale/id"),require("date-fns/locale/vi"),require("date-fns/locale/zh-TW"),require("./getSocialList-19da0f19.js"),require("date-fns/locale/hi"),require("date-fns/locale/ms"),require("date-fns/locale/th"),require("./cookieHelper-612b90fa.js"),require("slugify"),require("react-day-picker/DayPickerInput"),require("react-dom"),require("smoothscroll-polyfill"),require("./types-2b3bdf79.js"),require("./constants-ca5ea110.js"),require("./useScrollbarSize-586f6706.js"),exports.Alert=e.Alert,exports.AmpNextPage=e.AmpNextPage,exports.ArticleCard=e.ArticleCard,exports.BMICardEmbed=e.BMICardEmbed,exports.BMRCardEmbed=e.BMRCardEmbed,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.DateRangePicker=e.DateRangePicker,exports.DueDateCardEmbed=e.DueDateCardEmbed,exports.FileDropdown=e.FileDropdown,exports.FloatButtonGroup=e.FloatButtonGroup,exports.Footer=e.Footer,exports.Grid=e.Grid,exports.IconText=e.IconText,exports.OvulationCardEmbed=e.OvulationCardEmbed,exports.PWGCardEmbed=e.PWGCardEmbed,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.StatisticCard=e.StatisticCard,exports.SurveyThankyouCard=e.SurveyThankyouCard,exports.Table=e.index$1,exports.Tabs=e.Tabs,exports.Tag=e.Tag,exports.Toggle=e.Toggle,exports.ToolsBannerCard=e.ToolsBannerCard,exports.UnderlinedLink=e.UnderlinedLink,exports.Uploader=e.Uploader,exports.Avatar=r.Avatar,exports.Dropdown=r.Dropdown,exports.Popup=r.Popup,exports.Button=o.Button,exports.Divider=t.Divider,exports.DatePicker=a.DatePicker,exports.DoctorInfo=a.DoctorInfo,exports.Flag=a.Flag,exports.LanguageSwitcher=a.LanguageSwitcher,exports.Logo=a.Logo,exports.MobileBottomNavigation=a.MobileBottomNavigation,exports.MobileBottomNavigationIcon=a.MobileBottomNavigationIcon,exports.NavigationLogoutPopup=a.NavigationLogoutPopup,exports.NavigationProfileButton=a.NavigationProfileButton,exports.NavigationV2=a.NavigationV2,exports.ProfilePopup=a.ProfilePopup,exports.Radio=a.Radio,exports.RadioGroup=a.RadioGroup,exports.ScrollList=a.ScrollList,exports.Slider=a.Slider,exports.SurveyQuestionCard=a.SurveyQuestionCard,exports.UserProfileNavigation=a.UserProfileNavigation,exports.UserProfileNavigationHeader=a.NavHeader,exports.UserProfileNavigationStats=a.UserStats,exports.getNavMenuContent=a.getNavMenuContent,exports.getNavMenuContentWithCache=a.getNavMenuContentWithCache,exports.Heading=i.Heading,exports.Input=s.Input,exports.Container=n.Container,exports.Label=n.Label,exports.Menu=n.Menu,exports.PureInput=n.PureInput,exports.Text=n.Text,exports.TextArea=n.TextArea,exports.TextDivider=n.TextDivider,exports.Icon=d.Icon,exports.Modal=d.Modal,exports.NewBabyProfileRadio=d.NewBabyProfileRadio,exports.RadioImageGroup=d.RadioImageGroup,exports.Drawer=p.Drawer;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var e={"actionPopover.delete":"Delete","actionPopover.deleteNotification":"Delete this notification","actionPopover.edit":"Edit","actionPopover.inviteShareCommunity":"Invite / Share community","actionPopover.joinCommunity":"Join Community","actionPopover.leaveCommunit":"Leave Community","actionPopover.leaveCommunity":"Leave Community","actionPopover.leaveCommunity.accept":"Leave","actionPopover.leaveCommunity.cancel":"Cancel","actionPopover.leaveCommunity.description":"Are you sure you want to leave this community?","actionPopover.leaveCommunity.title":"Leave Community","actionPopover.report":"Report","actionPopover.turnOffNotification":"Turn off notification","actionPopover.turnOffNotificationAbout":"Turn off notification about {label}","actionPopover.turnOnNotification":"Turn on notification","admin.comments":"Comments","admin.communities":"Communities","admin.community":"Community","article.shareOn":"Share on","articlePage.articleReviewerBy":"Medically reviewed by {name}","babyGrowth.alert.bmi":"There is no BMI measurements to display for {name} in WHO data range of 0 to 5 years. Use <a>BMI calculator tool</a> above 5 year old","babyGrowth.alert.head":"There is no head circumference measurements to display for {name} in WHO data range of 0 to 5 years","babyGrowth.alert.weight":"There is no Weight measurements to display for {name} in WHO data range of 0 to 10 years ","babyGrowth.drawer.addMeasurement":"Add a Measurement","babyGrowth.drawer.createBaby":"Create a baby profile","babyGrowth.drawer.switchProfile":"Switch profile","babyGrowth.head":"Head","babyGrowth.headCircumference":"Head Circumference","babyGrowth.height":"Height","babyGrowth.input.babyName":"Child’s name","babyGrowth.input.birthday":"Baby's birthday","babyGrowth.input.bodyMass":"Body Mass","babyGrowth.input.checkSubmit":"Track your child's growth","babyGrowth.input.measurementDate":"Measurement Date","babyGrowth.nickname":"Nickname","babyGrowth.percentiles":"Percentiles","babyGrowth.placeholder.babyName":"Your child's name","babyGrowth.weight":"Weight","babyVaccineTool.selectGender":"What is your child's gender?","bmi.ageInput":"How old are you?","bmi.ageInput.desc":"(years)","bmi.ageInput.error":"Please put in a valid age","bmi.heading":"BMI Calculator","bmi.heightInput":"How tall are you?","bmi.heightInput.desc":"(cm)","bmi.heightInput.error":"Please put in a valid height","bmi.objective":"Objectives","bmi.objective.gainWeight":"Build muscle ","bmi.objective.loseWeight":"Lose fat","bmi.objective.maintainWeight":"Maintain weight","bmi.selectGender":"What is your gender?","bmi.submit":"Calculate","bmi.weightInput":"How much do you weigh?","bmi.weightInput.desc":"(kg)","bmi.weightInput.error":"Please put in a valid weight","bmr.heading":"BMR Calculator","booking.searchBar.currentLocation":"Current location","booking.searchBar.grantLocation":"Please grant location permission to search by current location","booking.searchBar.locationPlaceholder":"Enter city","booking.searchBar.noResults":"No Results","booking.searchBar.placeholder.doctor":"Search by doctor name","booking.searchBar.placeholder.hospital":"Search by hospital name","booking.searchBar.placeholder.service":"Search by service","booking.searchBar.placeholder.specialty":"Search by specialty","booking.searchBar.searchButton":"Search","booking.searchBar.searchInput.placeholder":"Search by Specialty or Clinic...","booking.searchBar.useCurrentLocation":"Use my current location","booking.searchPopup.doctors":"Doctors","booking.searchPopup.hospitals":"Hospitals & Clinics","booking.searchPopup.searchIn.doctors":'Search "{name}" in Doctors',"booking.searchPopup.searchIn.hospitals":'Search "{name}" in Hospitals',"booking.searchPopup.searchIn.services":'See "{name}" in Services',"booking.searchPopup.searchIn.specialties":'Search "{name}" in Specialties',"booking.searchPopup.seeAll":"See All","booking.searchPopup.seeLessSpecialties":"See less specialties","booking.searchPopup.seeMoreSpecialties":"See more specialties","booking.searchPopup.services":"Services","booking.searchPopup.specialties":"Specialties","bottomBar.share":"Share","cardAuthor.admin":"Admin","cardAuthor.ambassador":"Ambassador","cardAuthor.expert":"Expert","cardAuthor.guide":"Guide","cardAuthor.influencer":"Influencer","cardAuthor.localAdmin":"Local Admin","cardAuthor.moderator":"Moderator","cardAuthor.sponsor":"Sponsor","cardReactions.comment":"Comment","cardReactions.repliesCount":"{count} replies","cardReactions.reply":"Reply","careBooking.bookAnAppointment":"Book an appoinment",character:"Characters","childCard.age.months":"{month} months","childCard.age.oneMonth":"1 month","childCard.age.oneWeek":"1 week","childCard.age.oneYear":"1 year","childCard.age.oneYearMonth":"1 year {month} months","childCard.age.oneYearOneMonth":"1 year 1 month","childCard.age.week":"{weeks} weeks","childCard.age.yearMonth":"{year} years {month} months","childCard.age.yearNoMonth":"{year} years","childCard.age.yearOneMonth":"{year} years 1 month","childCard.boy":"Boy","childCard.girl":"Girl","childCard.menu.add":"Add a child profile","childCard.menu.edit":"Edit {name}’s profile","childCard.menu.remove":"Remove {name}’s profile","childCard.menu.switch":"Switch child's profile","childCard.noName":"Child's Name","choicePopover.ambassadorPosts":"Ambassador posts","choicePopover.expertPosts":"Expert posts","choicePopover.lastestPost":"Latest posts","choicePopover.latest":"Latest","choicePopover.newest":"Newest","choicePopover.oldest":"Oldest","choicePopover.popular":"Popular","choicePopover.popularPost":"Popular posts","choicePopover.sort":"Sort","chooseBaby.button":"View your Child Growth Chart","chooseBaby.new":"or Add new child profile","chooseBaby.placeholder":"Please give child's name","chooseBaby.title":"Choose Child's Profile","comment.count":"{count} comments","comment.seeMoreComments":"See {count} more comments","comment.seeMoreReplies":"See {count} more replies","commentPopup.warning.newPost":"Your question will be public","community.choose":"Choose a community","community.notification.joined":"You joined {name} community","community.notification.left":"You left {name} community",copied:"Copied",copy:"Copy","createPost.popup.description":"Description","createPost.popup.primary":"Tap to select/ unselect topics","createPost.popup.submit":"Post","createPost.popup.success":"New Post Created","createPost.popup.warning":"Select a community to see your following topics","createPost.popup.warningImage":"Maximum 20 images allow, please remove some item below","createPost.popup.wordCount":"{count}/{max} words","createPost.title":"Title","createPost.urlText":"Text","dueDatePage.calculationMethod":"Calculation Method","dueDatePage.conceptionDate":"Conception Date","dueDatePage.daysText":"{number} days","dueDatePage.ivf":"IVF","dueDatePage.ivf.transferDate":"IVF Transfer Date","dueDatePage.ivf.transferDateRadio":"{number}-Day Transfer","dueDatePage.lastPeriod":"Last Period","dueDatePage.lastPeriod.calculate":"Calculate","dueDatePage.lastPeriod.lastPeriodLabel":"The first day of your last period","dueDatePage.lastPeriod.periodLengthLabel":"Cycle Length","expert.content.description":"Expert's Profile","expert.content.experiences":"Experiences","footer.signUp":"Sign Up Now","gender.female":"Female","gender.male":"Male","healthTools.dueDateCalculator":"Due Date Calculator","healthTools.ovulationCalculator":"Ovulation Calculator","home.menu.category.view":"View {category}","home.navigator.menu.care.noDatas.cta":"Book a Doctor","home.navigator.menu.care.noDatas.description":"HelloCare helps patients to find the right medical doctors and service treatment for their needs, in their vicinity.","home.navigator.menu.care.noDatas.title":"Make an appointment with doctors easily","home.navigator.menu.category.noDatas.cta":"Discover now","home.navigator.menu.category.noDatas.description":"Hello Doctor wants to be your most trusted ally to make more informed decisions and to live healthier and happier lives.","home.navigator.menu.category.noDatas.title":"Welcome to Hello Doctor","home.navigator.menu.healthTools.noDatas.cta":"Discover more","home.navigator.menu.healthTools.noDatas.description":"These easy-to-use health assessment tools will help you gauge vital parts of your overall health and wellness.","home.navigator.menu.healthTools.noDatas.title":"Health Tools","home.navigator.menu.spotlightHospitals":"Popular Hospitals","home.navigator.menu.spotlightTools":"Favorite Tools","home.navigator.menu.spotlights":"All In Focus","home.navigator.menu.spotlights.seeAll":"See All In Focus","home.navigator.menu.together.noPosts.cta":"Join Our Communities","home.navigator.menu.together.noPosts.description":"Community is a safe space where you can connect with other members, comment on topics you care about, and receive trusted advice from medical experts on the health issues that matter most.","home.navigator.menu.together.noPosts.title":"Welcome to Community","home.navigator.menu.trendingPosts":"Highlight Posts","home.navigator.menu.trendingPosts.seeMore":"See more","home.navigator.menuItem.allCategories":"See All Categories","home.navigator.menuItem.allCommunities":"See all communities","home.navigator.menuItem.allCommunitiesheadingTitle":"Find your communities","home.navigator.menuItem.allHealthTools":"See All Health Tools","home.navigator.menuItem.allSpecialties":"All specialties","home.navigator.menuItem.allSpotlight":"See All In Focus","home.navigator.menuItem.discover":"Discover","home.navigator.menuItem.healthCategories":"Health Categories","home.navigator.menuItem.healthTools":"Health Tools","home.navigator.menuItem.healthToolsList":"Health Tools","home.navigator.menuItem.helloCare":"Book a Doctor","home.navigator.menuItem.helloEcom":"Pharmacy","home.navigator.menuItem.helloTogether":"Communities","home.navigator.menuItem.language":"Language","home.navigator.menuItem.specialties":"Specialties","home.navigator.menuItem.spotlights":"All In Focus","home.search":"Search {site}","home.seeAll":"See All","home.seeAllCategories":"See All Topics","home.seeExpert":"View Full Expert's Profile","home.seeHospital":"View Full Hospital's Profile","home.seeMore":"See More","home.seeMoreExperts":"See More Experts","hospital.content.description":"Hospital Details","inputComment.replyTo":"Reply to {name}",insert:"Insert","label.latestPost":"Latest Post","label.pinnedPost":"Pinned Post",loading:"loading","login.booking":"Booking with doctor","logout.popup.ask.mb":"Logout of Marry Baby","logout.popup.ask1":"Log Out of Hello Doctor?","logout.popup.ask2":"Are you sure you want to log out?","logout.popup.button.cancel":"Cancel","logout.popup.button.logout":"Log Out","menu.care.searchBySpecialties":"Search by specialty","morePopover.report":"Report","morePopover.report.description":"Help us understand what’s happening with this post. How would you describe it?","morePopover.report.falseNews":"False news","morePopover.report.offensive":"Offensive","morePopover.report.other":"Other","morePopover.report.prohibited":"Prohibited content","morePopover.report.scam":"Misleading or scam","morePopover.report.sex":"Sexually inappropriate","morePopover.report.spam":"Spam","morePopover.report.title":"Report this post","morePopover.report.violence":"Violence","morePopover.reportSubmit.description":"We won’t tell them who reported it. Please check these details:","morePopover.reportSubmit.title":"Submit report?","morePopover.savePost":"Save post","morePopover.share":"Share","morePopover.shareOn":"Share on","morePopover.turnOffNotifications":"Turn off notifications","morePopover.turnOnNotifications":"Turn on notifications","morePopover.unsavePost":"Remove Saved post","navigation.loginJoin":"Log in","navigation.search.input.placeholder":"Search","notification.comment.blocked.message":"This comment contains banned words or phrases and won’t be published","notification.comment.blocked.title":"Blocked comment","notification.comment.premod":"Your comment needs to be reviewed.","notification.comment.rejected":"Your comment contain words that are not allowed.","notification.comment.reportFailed":"Failed!","notification.comment.reportSuccess":"You have successfully reported a comment.","notification.comment.somethingWrong":"Something went wrong.","notification.comment.suspect.message":"This comment contains suspected words or phrases and won’t be published","notification.comment.suspect.title":"Pending comment","notification.comment.systemWithheld":"Your comment needs to be reviewed.","notification.failure":"Something wrong. Try again later!","notification.limitUrlDomain":"Cannot post link outside of Hello Health Group.","notification.post.blocked.message":"This post contains banned words or phrases and won’t be published","notification.post.blocked.title":"Blocked post","notification.post.delete":"Post Deleted","notification.post.suspect.message":"This post contains suspected words or phrases, and is placed for moderator review","notification.post.suspect.title":"Pending post","notification.success":"Success","notification.suspend.message":"Your account has been suspended for violating our terms of service","notification.urlWrongFormat":"Incorrect URL format",orCopyLink:"Or copy link","ovulationPage.avoidPregnancy":"Avoid pregnancy","ovulationPage.conceive":"Trying to conceive","ovulationPage.cycleLength":"Cycle Length","ovulationPage.dayUnit":"(days)","ovulationPage.objectives":"Objectives","ovulationPage.periodDuration":"Period Duration","ovulationPage.trackPeriod":"Track period cycle","placeholder.enterTitleHere":"Enter title here","placeholder.enterUrlHere":"Enter URL here","placeholder.enterUrlTextHere":"Enter URL Text here","placeholder.newCmt":"Write a comment","placeholder.newPost":"Start a new post","popup.allTopics":"All Topics","popup.createPost.confirmCloseDescription":"If you discard now, you’ll lose this post","popup.createPost.confirmCloseTitle":"Are you sure?","popup.deleteComment.description":"Delete your comment cannot be undone","popup.deleteComment.title":"Delete comment?","popup.deletePost.accept":"Delete","popup.deletePost.cancel":"Cancel","popup.deletePost.description":"Delete your post cannot be undone","popup.deletePost.title":"Delete post?","popup.discardPost":"Discard post","popup.discardPostEdit":"Discard changes","popup.editPost":"Edit post","popup.keepEditing":"Keep editing","popup.startANewPost":"Start a new post","post.commentCount":"{count} comments","post.likesCount":"{count} likes","post.seeMore":"See More","post.shareCount":"{count} shares","pregnancyWeightGain.havingTwins":"Having twins?","pregnancyWeightGain.heading":"Pregnancy Weight Gain","pregnancyWeightGain.heightInput":"Height","pregnancyWeightGain.weekInput":"Weeks of pregnant","pregnancyWeightGain.weightBeforeInput":"Weight before pregnancy","pregnancyWeightGain.weightInput":"Current Weight","pregnancyWeightGain.weightInput.desc":" (kg)","previewPhotos.title":"{name}'s Post","pwg.placeholder.height":"Your height","pwg.placeholder.weight":"Your weight","sensitiveMask.blur":"Blur","sensitiveMask.contentWarningDescription":"Warning: The following picture may be disturbing to some viewers. Viewer discretion is advised","sensitiveMask.contentWarningMessage":"These images may be disturbing...","sensitiveMask.unblur":"Show","share.copyLink":"Or copy link","share.letsJoinCommunity":"Let's join {name} community!","share.letsJoinTopic":"Let's join {name} topic!","share.linkCopied":"Link Copied","share.linkShared":"Link Shared Successfully","share.title":"Share","shareContainer.title":"Share the results",submit:"Submit","switchBtn.no":"No","switchBtn.yes":"Yes","tab.about":"About","tab.discussion":"Discussions","tab.topic":"Topics","tool.askChecking":"I’m checking for other","tool.selectPerson":"Are you checking for?","tool.selectPerson.other":"Other","tool.selectPerson.yourSelf":"Your self","toolPage.toolReviewer":"Medically Reviewed by {expert_name} on {date}","tools.heading.on":"on","userProfile.nav.card.eCom":"E-commerce","userProfile.nav.card.myBooking":"My Booking","userProfile.nav.card.myCommunity":"My Community","userProfile.nav.card.myFamily":"Family Profiles","userProfile.nav.card.myHealth":"My Health","userProfile.nav.card.mySaved":"Saved","userProfile.nav.header.count.comments":"Comments","userProfile.nav.header.count.posts":"Posts","userProfile.nav.header.count.tools":"Tools","userProfile.nav.header.points":"Points","userProfile.nav.header.viewProfile":"View My Profile","userProfile.nav.menu.accountSettings":"Account Settings","userProfile.nav.menu.disableAccount":"Disable Account","userProfile.nav.menu.help":"Help","userProfile.nav.menu.logout":"Log out","userProfile.nav.menu.password":"Password","userProfile.userRank.ambassador":"Ambassador","userProfile.userRank.doctor":"Doctor","userProfile.userRank.expert":"Expert","userProfile.userRank.influencer":"Influencer","userProfile.userRank.member":"Member"};exports.defaultTranslations=e;
|