@hhgtech/hhg-components 1.20.22 → 1.20.23
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/components/molecules/babyGrowthChooseProfileDrawer/index.styled.d.ts +1 -1
- package/build/components/molecules/modal/index.d.ts +3 -2
- package/build/components.js +1 -1
- package/build/esm/babyGrowth.js +1 -1
- package/build/esm/components.js +1 -1
- package/build/esm/{index-613a8df5.js → index-f32c8c70.js} +1 -1
- package/build/esm/index.js +1 -1
- package/build/{index-389edd10.js → index-3fefcbc5.js} +1 -1
- package/build/index.js +1 -1
- package/package.json +2 -2
package/build/babyGrowth.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("./useTranslations-9e64b19e.js"),n=require("./lazyLoad-0454885d.js"),r=require("./index-389edd10.js"),a=require("./index.styled-af1f423b.js"),o=require("./tslib.es6-f7929e76.js"),l=require("styled-components"),i=require("./theme-fe7c279c.js"),c=require("./index-b71b4420.js"),u=require("date-fns");require("react-range"),require("react-dom");var s=require("./useOutsideClick-528bfd6c.js"),d=require("./index.styled-a613a33c.js"),f=require("recharts");require("lodash/debounce");var h=require("lodash");function m(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}require("./translationsContext-e97f3b58.js"),require("string-format"),require("vanilla-lazyload"),require("./useScrollbarSize-586f6706.js");var p,C,y,b,g,x,w=m(e),v=m(l),E=v.default.div(p||(p=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"])),t.MediaQueries.mbUp),B=v.default(r.RadioImageGroup)(C||(C=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"]))),G=v.default.div(y||(y=o.__makeTemplateObject(["\n display: flex;\n justify-content: center;\n gap: 16px;\n"],["\n display: flex;\n justify-content: center;\n gap: 16px;\n"]))),k=v.default.div(b||(b=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"]))),L=v.default.div(g||(g=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"])),i.theme.colors.neutral200);exports.BabyGrowthSwitchChart=void 0,(x=exports.BabyGrowthSwitchChart||(exports.BabyGrowthSwitchChart={}))[x.WHO=0]="WHO",x[x.CDC=1]="CDC";var M,_,I,j,D,H,T,S,q,P,z,O,R,A,W,Y,N,Z,V,U,F,K,X,Q,J,$,ee,te,ne,re,ae,oe=v.default.div(M||(M=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"])),i.theme.colors.yellow600),le=[{name:["3rd","-3SD","97th","3SD"],color:i.theme.colors.red600},{name:["15rd","-2SD","85th","2SD"],color:i.theme.colors.yellow600},{name:["50th","0Median"],color:i.theme.colors.green600}],ie={"3rd":"-3SD","15th":"-2SD","50th":"Median","85th":"2SD","97th":"3SD"},ce=function(t){var r=t.riskLevel,o=t.tooltips,l=t.locale,c=e.useMemo((function(){var e;return null===(e=le.find((function(e){return e.name.includes(r||"")})))||void 0===e?void 0:e.color}),[r]),u=e.useMemo((function(){return l===n.LOCALE.Indonesia?r?ie[r]:"":r}),[l,r]);return w.default.createElement(oe,null,w.default.createElement("div",{className:"risk",style:{backgroundColor:c}},w.default.createElement(a.Text,{size:"s3",color:i.theme.colors.white,type:"semiBold"},u)),w.default.createElement("div",{className:"tooltip"},o.map((function(e,t){return w.default.createElement(a.Text,{key:t,size:"n1",color:i.theme.colors.gray600},e)}))))},ue=v.default.div(_||(_=o.__makeTemplateObject(["\n background: #ffffff;\n border: 1px solid ",";\n border-radius: 6px;\n padding: 16px 20px;\n display: flex;\n justify-content: space-between;\n align-items: center;\n .baby {\n display: flex;\n align-items: center;\n gap: 8px;\n }\n .radio {\n cursor: pointer;\n position: relative;\n width: 22px;\n height: 22px;\n background: #ffffff;\n border: 2px solid ",";\n border-radius: 50%;\n transition: all "," ease-in-out;\n &.active {\n border-color: ",";\n &::before {\n content: '';\n position: absolute;\n inset: 0;\n width: 100%;\n height: 100%;\n background-color: ",";\n background-clip: content-box;\n padding: 5px;\n border-radius: 50%;\n animation: "," "," ease-in-out forwards;\n }\n }\n }\n"],["\n background: #ffffff;\n border: 1px solid ",";\n border-radius: 6px;\n padding: 16px 20px;\n display: flex;\n justify-content: space-between;\n align-items: center;\n .baby {\n display: flex;\n align-items: center;\n gap: 8px;\n }\n .radio {\n cursor: pointer;\n position: relative;\n width: 22px;\n height: 22px;\n background: #ffffff;\n border: 2px solid ",";\n border-radius: 50%;\n transition: all "," ease-in-out;\n &.active {\n border-color: ",";\n &::before {\n content: '';\n position: absolute;\n inset: 0;\n width: 100%;\n height: 100%;\n background-color: ",";\n background-clip: content-box;\n padding: 5px;\n border-radius: 50%;\n animation: "," "," ease-in-out forwards;\n }\n }\n }\n"])),i.theme.colors.neutral100,i.theme.colors.gray600,"300ms",i.theme.colors.primaryBase,i.theme.colors.primaryBase,t.fadeIn,"300ms"),se=function(e){var t=e.profile,n=e.onChange,o=e.isActive;return w.default.createElement(ue,{onClick:function(){return n(t.id)}},w.default.createElement("div",{className:"baby"},"male"===t.gender?w.default.createElement(r.Icon.Boy,{size:24}):w.default.createElement(r.Icon.Girl,{size:24}),w.default.createElement(a.Text,{size:"p2",color:i.theme.colors.gray800},t.name)),w.default.createElement("div",{className:o?"radio active":"radio"}))},de=v.default.div(I||(I=o.__makeTemplateObject(["\n position: relative;\n padding: 20px 2px;\n border-bottom: 1px solid ",";\n .time {\n display: flex;\n align-items: center;\n gap: 8px;\n margin-bottom: 16px;\n }\n .edit-button {\n margin-left: auto;\n justify-self: end;\n }\n .record {\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding-right: 14px;\n }\n .record-item {\n display: flex;\n align-items: center;\n gap: 8px;\n }\n"],["\n position: relative;\n padding: 20px 2px;\n border-bottom: 1px solid ",";\n .time {\n display: flex;\n align-items: center;\n gap: 8px;\n margin-bottom: 16px;\n }\n .edit-button {\n margin-left: auto;\n justify-self: end;\n }\n .record {\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding-right: 14px;\n }\n .record-item {\n display: flex;\n align-items: center;\n gap: 8px;\n }\n"])),i.theme.colors.gray100),fe=function(e,t){return e?e+" "+(t||""):"--"},he=v.default.div(j||(j=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"])),i.theme.colors.white,i.theme.colors.gray100),me=v.default.div(D||(D=o.__makeTemplateObject(["\n position: absolute;\n top: 18px;\n right: 16px;\n cursor: pointer;\n"],["\n position: absolute;\n top: 18px;\n right: 16px;\n cursor: pointer;\n"]))),pe=v.default(a.Menu)(H||(H=o.__makeTemplateObject(["\n position: absolute;\n right: 0;\n z-index: 1;\n"],["\n position: absolute;\n right: 0;\n z-index: 1;\n"]))),Ce=function(n){var r=n.name,o=n.onClose,l=n.onEdit,c=n.onSwitch,u=n.onAdd,d=n.onRemove,f=t.useTranslations().t,h=e.useRef();return s.useOutsideClick(h,o),w.default.createElement("div",{ref:h},w.default.createElement(pe,{width:250},w.default.createElement(a.Menu.Item,{onClick:l,icon:w.default.createElement("svg",{width:"16",height:"17",viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},w.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"}))},w.default.createElement(a.Text,{size:"p2",color:i.theme.colors.gray800},f("childCard.menu.edit",{name:r}))),w.default.createElement(a.Menu.Item,{onClick:c,icon:w.default.createElement("svg",{width:"16",height:"17",viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},w.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"}))},w.default.createElement(a.Text,{size:"p2",color:i.theme.colors.gray800},f("childCard.menu.switch"))),w.default.createElement(a.Menu.Item,{onClick:u,icon:w.default.createElement("svg",{width:"16",height:"17",viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},w.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"}),w.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"}))},w.default.createElement(a.Text,{size:"p2",color:i.theme.colors.gray800},f("childCard.menu.add"))),w.default.createElement(a.Menu.Item,{onClick:d,icon:w.default.createElement("svg",{width:"16",height:"17",viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},w.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"}))},w.default.createElement(a.Text,{size:"p2",color:i.theme.colors.red600},f("childCard.menu.remove",{name:r})))))},ye=v.default(d.Drawer)(T||(T=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"]))),be=v.default(r.Modal)(S||(S=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 }\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 }\n\n .button-group {\n display: flex;\n justify-content: flex-end;\n gap: 16px;\n margin-block: 16px;\n }\n"])),i.theme.colors.neutral100,i.theme.colors.neutral100),ge=((q={})[n.Gender.Boy]=((P={})[n.BabyGrowthChartType.Weight]=((z={})[n.BabyGrowthChartDuration.Weekly]=function(){return Promise.resolve().then((function(){return require("./WEIGHT_BOYS.percentile.weekly-8b301e27.js")}))},z[n.BabyGrowthChartDuration.Monthly]=function(){return Promise.resolve().then((function(){return require("./WEIGHT_BOYS.percentile.monthly-305649d8.js")}))},z[n.BabyGrowthChartDuration.Yearly]=function(){return Promise.resolve().then((function(){return require("./WEIGHT_BOYS.percentile.yearly-96f3249d.js")}))},z),P[n.BabyGrowthChartType.Height]=((O={})[n.BabyGrowthChartDuration.Weekly]=function(){return Promise.resolve().then((function(){return require("./HEIGHT_BOYS.percentile.weekly-71fb3532.js")}))},O[n.BabyGrowthChartDuration.Monthly]=function(){return Promise.resolve().then((function(){return require("./HEIGHT_BOYS.percentile.monthly-b6e07b4d.js")}))},O[n.BabyGrowthChartDuration.Yearly]=function(){return Promise.resolve().then((function(){return require("./HEIGHT_BOYS.percentile.yearly-18e5463a.js")}))},O),P[n.BabyGrowthChartType.Head]=((R={})[n.BabyGrowthChartDuration.Weekly]=function(){return Promise.resolve().then((function(){return require("./HEAD CIRCUM_BOYS.percentile.weekly-923d3626.js")}))},R[n.BabyGrowthChartDuration.Monthly]=function(){return Promise.resolve().then((function(){return require("./HEAD CIRCUM_BOYS.percentile.monthly-e79e5d3f.js")}))},R[n.BabyGrowthChartDuration.Yearly]=function(){return Promise.resolve().then((function(){return require("./HEAD CIRCUM_BOYS.percentile.yearly-4133a7da.js")}))},R),P[n.BabyGrowthChartType.BMI]=((A={})[n.BabyGrowthChartDuration.Weekly]=function(){return Promise.resolve().then((function(){return require("./BMI_BOYS.percentile.weekly-75bff607.js")}))},A[n.BabyGrowthChartDuration.Monthly]=function(){return Promise.resolve().then((function(){return require("./BMI_BOYS.percentile.monthly-1c8c4c98.js")}))},A[n.BabyGrowthChartDuration.Yearly]=function(){return Promise.resolve().then((function(){return require("./BMI_BOYS.percentile.yearly-b8d86c12.js")}))},A),P),q[n.Gender.Girl]=((W={})[n.BabyGrowthChartType.Weight]=((Y={})[n.BabyGrowthChartDuration.Weekly]=function(){return Promise.resolve().then((function(){return require("./WEIGHT_GIRLS.percentile.weekly-63c6a2a3.js")}))},Y[n.BabyGrowthChartDuration.Monthly]=function(){return Promise.resolve().then((function(){return require("./WEIGHT_GIRLS.percentile.monthly-b0905186.js")}))},Y[n.BabyGrowthChartDuration.Yearly]=function(){return Promise.resolve().then((function(){return require("./WEIGHT_GIRLS.percentile.yearly-49663736.js")}))},Y),W[n.BabyGrowthChartType.Height]=((N={})[n.BabyGrowthChartDuration.Weekly]=function(){return Promise.resolve().then((function(){return require("./HEIGHT_GIRLS.percentile.weekly-b2628828.js")}))},N[n.BabyGrowthChartDuration.Monthly]=function(){return Promise.resolve().then((function(){return require("./HEIGHT_GIRLS.percentile.monthly-1e34eb90.js")}))},N[n.BabyGrowthChartDuration.Yearly]=function(){return Promise.resolve().then((function(){return require("./HEIGHT_GIRLS.percentile.yearly-72339b71.js")}))},N),W[n.BabyGrowthChartType.Head]=((Z={})[n.BabyGrowthChartDuration.Weekly]=function(){return Promise.resolve().then((function(){return require("./HEAD CIRCUM_GIRLS.percentile.weekly-0020f6e2.js")}))},Z[n.BabyGrowthChartDuration.Monthly]=function(){return Promise.resolve().then((function(){return require("./HEAD CIRCUM_GIRLS.percentile.monthly-67f98b04.js")}))},Z[n.BabyGrowthChartDuration.Yearly]=function(){return Promise.resolve().then((function(){return require("./HEAD CIRCUM_GIRLS.percentile.yearly-6afd8bc6.js")}))},Z),W[n.BabyGrowthChartType.BMI]=((V={})[n.BabyGrowthChartDuration.Weekly]=function(){return Promise.resolve().then((function(){return require("./BMI_GIRLS.percentile.weekly-aa3da5c1.js")}))},V[n.BabyGrowthChartDuration.Monthly]=function(){return Promise.resolve().then((function(){return require("./BMI_GIRLS.percentile.monthly-f482508e.js")}))},V[n.BabyGrowthChartDuration.Yearly]=function(){return Promise.resolve().then((function(){return require("./BMI_GIRLS.percentile.yearly-624db278.js")}))},V),W),q),xe=((U={})[n.Gender.Boy]=((F={})[n.BabyGrowthChartType.Weight]=((K={})[n.BabyGrowthChartDuration.Weekly]=function(){return Promise.resolve().then((function(){return require("./WEIGHT_BOYS.zscore.weekly-0b1faf98.js")}))},K[n.BabyGrowthChartDuration.Monthly]=function(){return Promise.resolve().then((function(){return require("./WEIGHT_BOYS.zscore.monthly-22c8f908.js")}))},K[n.BabyGrowthChartDuration.Yearly]=function(){return Promise.resolve().then((function(){return require("./WEIGHT_BOYS.zscore.yearly-8090c58c.js")}))},K),F[n.BabyGrowthChartType.Height]=((X={})[n.BabyGrowthChartDuration.Weekly]=function(){return Promise.resolve().then((function(){return require("./HEIGHT_BOYS.zscore.weekly-70c18763.js")}))},X[n.BabyGrowthChartDuration.Monthly]=function(){return Promise.resolve().then((function(){return require("./HEIGHT_BOYS.zscore.monthly-7a8e43dd.js")}))},X[n.BabyGrowthChartDuration.Yearly]=function(){return Promise.resolve().then((function(){return require("./HEIGHT_BOYS.zscore.yearly-b9e6ea6b.js")}))},X),F[n.BabyGrowthChartType.Head]=((Q={})[n.BabyGrowthChartDuration.Weekly]=function(){return Promise.resolve().then((function(){return require("./HEAD CIRCUM_BOYS.zscore.weekly-f472daa8.js")}))},Q[n.BabyGrowthChartDuration.Monthly]=function(){return Promise.resolve().then((function(){return require("./HEAD CIRCUM_BOYS.zscore.monthly-4727bfe4.js")}))},Q[n.BabyGrowthChartDuration.Yearly]=function(){return Promise.resolve().then((function(){return require("./HEAD CIRCUM_BOYS.zscore.yearly-13a09c3f.js")}))},Q),F[n.BabyGrowthChartType.BMI]=((J={})[n.BabyGrowthChartDuration.Weekly]=function(){return Promise.resolve().then((function(){return require("./BMI_BOYS.zscore.weekly-aba5d53b.js")}))},J[n.BabyGrowthChartDuration.Monthly]=function(){return Promise.resolve().then((function(){return require("./BMI_BOYS.zscore.monthly-5efef594.js")}))},J[n.BabyGrowthChartDuration.Yearly]=function(){return Promise.resolve().then((function(){return require("./BMI_BOYS.zscore.yearly-52cbcf95.js")}))},J),F),U[n.Gender.Girl]=(($={})[n.BabyGrowthChartType.Weight]=((ee={})[n.BabyGrowthChartDuration.Weekly]=function(){return Promise.resolve().then((function(){return require("./WEIGHT_GIRLS.zscore.weekly-29d8f232.js")}))},ee[n.BabyGrowthChartDuration.Monthly]=function(){return Promise.resolve().then((function(){return require("./WEIGHT_GIRLS.zscore.monthly-0b14c285.js")}))},ee[n.BabyGrowthChartDuration.Yearly]=function(){return Promise.resolve().then((function(){return require("./WEIGHT_GIRLS.zscore.yearly-95aa9ac3.js")}))},ee),$[n.BabyGrowthChartType.Height]=((te={})[n.BabyGrowthChartDuration.Weekly]=function(){return Promise.resolve().then((function(){return require("./HEIGHT_GIRLS.zscore.weekly-7ed52595.js")}))},te[n.BabyGrowthChartDuration.Monthly]=function(){return Promise.resolve().then((function(){return require("./HEIGHT_GIRLS.zscore.monthly-e473a16c.js")}))},te[n.BabyGrowthChartDuration.Yearly]=function(){return Promise.resolve().then((function(){return require("./HEIGHT_GIRLS.zscore.yearly-225f27c4.js")}))},te),$[n.BabyGrowthChartType.Head]=((ne={})[n.BabyGrowthChartDuration.Weekly]=function(){return Promise.resolve().then((function(){return require("./HEAD CIRCUM_GIRLS.zscore.weekly-a0fa670d.js")}))},ne[n.BabyGrowthChartDuration.Monthly]=function(){return Promise.resolve().then((function(){return require("./HEAD CIRCUM_GIRLS.zscore.monthly-9c635d09.js")}))},ne[n.BabyGrowthChartDuration.Yearly]=function(){return Promise.resolve().then((function(){return require("./HEAD CIRCUM_GIRLS.zscore.yearly-fcdb544a.js")}))},ne),$[n.BabyGrowthChartType.BMI]=((re={})[n.BabyGrowthChartDuration.Weekly]=function(){return Promise.resolve().then((function(){return require("./BMI_GIRLS.zscore.weekly-56e2c916.js")}))},re[n.BabyGrowthChartDuration.Monthly]=function(){return Promise.resolve().then((function(){return require("./BMI_GIRLS.zscore.monthly-11ffe2ae.js")}))},re[n.BabyGrowthChartDuration.Yearly]=function(){return Promise.resolve().then((function(){return require("./BMI_GIRLS.zscore.yearly-a3d00356.js")}))},re),$),U),we=function(e,t,r,a){return a===n.LOCALE.Indonesia?xe[e][t][r]():ge[e][t][r]()},ve=function(e,t){var n=h.chunk(t,Math.ceil(t.length/2)),r=n[0],a=n[1],o=r.map((function(e){return e.name})),l=a.map((function(e){return e.name}));return o.includes(e)?r:l.includes(e)?a:t},Ee=function(e,t){return o.__spreadArray(o.__spreadArray([],e,!0),t.map((function(e){return{name:e.name,history:e.value}})),!0).sort((function(e,t){return e.name-t.name}))},Be=function(e){var t=[],n=function(n){e[n].forEach((function(e,r){var a;t[r]?t[r][n]=e:t[r]=((a={name:r})[n]=e,a)}))};for(var r in e)n(r);return t},Ge=function(e){return Array.from(Array(e.length).keys())},ke=v.default.div(ae||(ae=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"]))),Le=[{name:"-3SD",label:"-3",color:i.theme.colors.red600},{name:"-2SD",label:"-2",color:i.theme.colors.yellow600},{name:"0Median",label:"0",color:i.theme.colors.green600},{name:"2SD",label:"2",color:i.theme.colors.yellow600},{name:"3SD",label:"3",color:i.theme.colors.red600},{name:"history",color:i.theme.colors.primaryBase}],Me=[{name:"3rd",color:i.theme.colors.red600},{name:"15th",color:i.theme.colors.yellow600},{name:"50th",color:i.theme.colors.green600},{name:"85th",color:i.theme.colors.yellow600},{name:"97th",color:i.theme.colors.red600},{name:"history",color:i.theme.colors.primaryBase}],_e=e.forwardRef((function(e,t){return w.default.createElement("circle",o.__assign({},e,{ref:t}),w.default.createElement("animate",{attributeName:"r",values:"4;8;4",dur:"2s",begin:"0s",repeatCount:"indefinite"}))})),Ie=function(e){var t=e.x,n=e.y,r=e.last,a=e.index,o=e.name;return r===a?w.default.createElement("text",{x:t,y:n,dx:16,fill:i.theme.colors.gray500,fontSize:12,textAnchor:"middle"},o):null};exports.BabyGrowthChart=function(r){var l=r.gender,c=r.type,u=r.duration,d=r.xLabel,h=r.x,m=r.y,p=r.toolTipLabel,C=void 0===p?[]:p,y=r.isDivide,b=void 0===y||y,g=r.onIsPrevious,x=r.locale,v=r.riskLevel,E=r.withLine,B=void 0!==E&&E,G=r.lineData,k=void 0===G?[]:G,L=e.useState([]),M=L[0],_=L[1],I=e.useRef([]),j=t.useTranslations().t;e.useEffect((function(){o.__awaiter(void 0,void 0,void 0,(function(){var e,t,n;return o.__generator(this,(function(r){switch(r.label){case 0:return[4,we(l,c,u,x)];case 1:if(e=r.sent().default,t=Be(e),Array.isArray(t)&&0===t.length)return null==g||g(),[2];n=t.map((function(e,t){return o.__assign(o.__assign({},e),{name:t})}));try{n=b?ve(h||0,t):t}catch(e){}return I.current=Ge(n),_(n),[2]}}))}))}),[l,c,u,x,g]);var D=e.useState(!1),H=D[0],T=D[1],S=e.useMemo((function(){return B&&Array.isArray(M)&&M.length>0?Ee(M,k):M}),[B,k,M]),q=e.useRef(null);s.useOutsideClick(q,(function(){return T(!1)}));return w.default.createElement(ke,null,w.default.createElement("div",{className:"custom-chart-label"},w.default.createElement(a.Text,{size:"n1",color:i.theme.colors.gray500},function(){switch(c){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""}}()),w.default.createElement(a.Text,{size:"n1",color:i.theme.colors.gray500},x===n.LOCALE.Indonesia?"Z-Score":j("babyGrowth.percentiles"))),Array.isArray(S)&&S.length>0&&w.default.createElement(f.ResponsiveContainer,{height:388,className:"chart"},w.default.createElement(f.LineChart,{data:S,margin:{top:16,right:28,bottom:8,left:0}},w.default.createElement(f.CartesianGrid,{stroke:i.theme.colors.blue200}),w.default.createElement(f.Tooltip,{trigger:"click",content:w.default.createElement(w.default.Fragment,null,H&&void 0!==h&&void 0!==m&&w.default.createElement(ce,{riskLevel:v,tooltips:C,locale:x}))}),w.default.createElement(f.XAxis,{type:"number",scale:"linear",ticks:I.current,dataKey:"name",tickLine:!1,tickMargin:12,tick:{fontFamily:"Inter",fontWeight:400,fontSize:12,color:i.theme.colors.gray800},domain:["dataMin","dataMax"],interval:"preserveStartEnd",tickCount:1,tickFormatter:function(e){return String(Math.round(100*(e+Number.EPSILON))/100)},allowDecimals:!0}),w.default.createElement(f.YAxis,{domain:[function(e){return Math.min(e,m||e)},function(e){return Math.max(e,m||e)}],tickLine:!1,tickMargin:7,width:45,tickCount:10,allowDecimals:!0,tickFormatter:function(e){return String(Math.round(100*(e+Number.EPSILON))/100)},tick:{fontFamily:"Inter",fontWeight:400,fontSize:12,color:i.theme.colors.gray800}}),(x===n.LOCALE.Indonesia?Le:Me).map((function(e){return w.default.createElement(w.default.Fragment,null,"history"===e.name?w.default.createElement(f.Line,{key:"history",connectNulls:!0,type:"linear",dataKey:"history",stroke:e.color,dot:{stroke:e.color,fill:e.color,strokeWidth:1,r:4,strokeDasharray:""},activeDot:!0,color:e.color}):w.default.createElement(f.Line,{key:e.name,type:"linear",dataKey:e.name,stroke:e.color,dot:!1,activeDot:!1,connectNulls:!0,label:w.default.createElement(Ie,{last:(null==S?void 0:S.length)?S.length-1:0,name:(null==e?void 0:e.label)||e.name}),tooltipType:"none"}))})),void 0!==h&&void 0!==m&&w.default.createElement(f.ReferenceDot,{onClick:function(){return T(!0)},x:0===h?1:h,y:m,r:4,shape:w.default.createElement(_e,{ref:q,r:4}),fill:i.theme.colors.primaryBase,stroke:i.theme.colors.primaryBase}))),w.default.createElement("div",{className:"custom-chart-label"},w.default.createElement("i",null),w.default.createElement(a.Text,{size:"n1",color:i.theme.colors.gray500},d)))},exports.BabyGrowthChartPercentile=ge,exports.BabyGrowthChartZScore=xe,exports.BabyGrowthChooseProfileDrawer=function(n){var r,l,i=n.babyProfiles,u=n.onClose,s=n.onCreate,d=n.onAddMeasurement,f=n.onSwitchProfile,h=n.open,m=n.isMobile,p=n.isMyProfile,C=void 0!==p&&p,y=o.__rest(n,["babyProfiles","onClose","onCreate","onAddMeasurement","onSwitchProfile","open","isMobile","isMyProfile"]),b=e.useState(null===(r=i[0])||void 0===r?void 0:r.id),g=b[0],x=b[1],v=t.useTranslations().t;return m?w.default.createElement(ye,o.__assign({title:"Baby profiles",onClose:u,open:h,placement:"bottom"},y),(function(e){var t,n=e.internalClose;return w.default.createElement("div",{className:"add-profile-container"},w.default.createElement("div",{className:"profile-container"},null===(t=i||[])||void 0===t?void 0:t.map((function(e){return w.default.createElement(se,{key:e.id,profile:e,isActive:g===e.id,onChange:x})}))),w.default.createElement("div",{className:"button-group"},w.default.createElement(c.Button,{onClick:function(){n(),null==s||s()},size:"lg",color:"secondary",icon:w.default.createElement("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},w.default.createElement("path",{d:"M13.5 9.75H9.75V13.5C9.75 13.9125 9.4125 14.25 9 14.25C8.5875 14.25 8.25 13.9125 8.25 13.5V9.75H4.5C4.0875 9.75 3.75 9.4125 3.75 9C3.75 8.5875 4.0875 8.25 4.5 8.25H8.25V4.5C8.25 4.0875 8.5875 3.75 9 3.75C9.4125 3.75 9.75 4.0875 9.75 4.5V8.25H13.5C13.9125 8.25 14.25 8.5875 14.25 9C14.25 9.4125 13.9125 9.75 13.5 9.75Z",fill:"#2D87F3"}))},v("babyGrowth.drawer.createBaby")),w.default.createElement(c.Button,{size:"lg",color:"primary",onClick:function(){n(),C?null==f||f(g):null==d||d(g)}},v(C?"babyGrowth.drawer.switchProfile":"babyGrowth.drawer.addMeasurement"))))})):w.default.createElement(be,{type:"confirm",isOpen:h,onClose:u},w.default.createElement("div",{className:"header"},w.default.createElement("div",{className:"title"},w.default.createElement(a.Text,{size:"s2",type:"semiBold"},"Baby profiles"),w.default.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"close-button",onClick:u},w.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"})))),w.default.createElement("div",{className:"profile-container"},null===(l=i||[])||void 0===l?void 0:l.map((function(e){return w.default.createElement(se,{key:e.id,profile:e,isActive:g===e.id,onChange:x})}))),w.default.createElement("div",{className:"button-group"},w.default.createElement(c.Button,{onClick:function(){null==s||s(),u()},size:"lg",color:"secondary",icon:w.default.createElement("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},w.default.createElement("path",{d:"M13.5 9.75H9.75V13.5C9.75 13.9125 9.4125 14.25 9 14.25C8.5875 14.25 8.25 13.9125 8.25 13.5V9.75H4.5C4.0875 9.75 3.75 9.4125 3.75 9C3.75 8.5875 4.0875 8.25 4.5 8.25H8.25V4.5C8.25 4.0875 8.5875 3.75 9 3.75C9.4125 3.75 9.75 4.0875 9.75 4.5V8.25H13.5C13.9125 8.25 14.25 8.5875 14.25 9C14.25 9.4125 13.9125 9.75 13.5 9.75Z",fill:"#2D87F3"}))},v("babyGrowth.drawer.createBaby")),w.default.createElement(c.Button,{size:"lg",color:"primary",onClick:function(){C?null==f||f(g):null==d||d(g),u()}},v(C?"babyGrowth.drawer.switchProfile":"babyGrowth.drawer.addMeasurement"))))},exports.BabyGrowthGender=function(e){var o=e.value,l=e.onChange,i=t.useTranslations().t;return w.default.createElement(E,null,w.default.createElement(a.Text,{size:"label2",type:"bold",style:{marginBottom:"0.5rem"}},i("babyVaccineTool.selectGender")),w.default.createElement(B,{options:[{value:n.Gender.Girl,label:i("gender.female"),content:w.default.createElement(r.Icon.GenderChooseGirl,null)},{value:n.Gender.Boy,label:i("gender.male"),content:w.default.createElement(r.Icon.GenderChooseBoy,null)}],value:o,onChange:l,className:"gender-selector"}))},exports.BabyGrowthLegend=function(e){var t=e.legends,r=e.locale;return w.default.createElement(G,null,t.map((function(e,t){return w.default.createElement(k,{key:t},w.default.createElement("span",{className:"dot",style:{backgroundColor:e.color}}),w.default.createElement(a.Text,{size:"n1",color:i.theme.colors.gray800},r===n.LOCALE.Indonesia?e["z-score"]:e.text))})))},exports.BabyGrowthProfileRadio=se,exports.BabyGrowthRecord=function(e){var t=e.measurementDate,n=void 0===t?new Date:t,r=e.weight,o=e.height,l=e.head,c=e.onEdit;return w.default.createElement(de,null,w.default.createElement("div",{className:"time"},w.default.createElement("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},w.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"})),w.default.createElement(a.Text,{size:"p3",color:i.theme.colors.gray600},u.format(n,"dd/MM/yyyy")),w.default.createElement("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"edit-button",onClick:c},w.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"}))),w.default.createElement("div",{className:"record"},w.default.createElement("div",{className:"record-item"},w.default.createElement("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},w.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"}),w.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"}),w.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"})),w.default.createElement(a.Text,{size:"s3",color:i.theme.colors.gray800,type:"semiBold"},fe(r,"kg"))),w.default.createElement("div",{className:"record-item"},w.default.createElement("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},w.default.createElement("g",{clipPath:"url(#clip0_855_82991)"},w.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"})),w.default.createElement("defs",null,w.default.createElement("clipPath",{id:"clip0_855_82991"},w.default.createElement("rect",{width:"16",height:"16",fill:"white",transform:"translate(16.6055) rotate(90)"})))),w.default.createElement(a.Text,{size:"s3",color:i.theme.colors.gray800,type:"semiBold"},fe(o,"cm"))),w.default.createElement("div",{className:"record-item"},w.default.createElement("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},w.default.createElement("g",{clipPath:"url(#clip0_855_82994)"},w.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"}),w.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"}),w.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"})),w.default.createElement("defs",null,w.default.createElement("clipPath",{id:"clip0_855_82994"},w.default.createElement("rect",{width:"16",height:"16",fill:"white",transform:"translate(0.234375)"})))),w.default.createElement(a.Text,{size:"s3",color:i.theme.colors.gray800,type:"semiBold"},fe(l,"cm")))))},exports.BabyGrowthSwitch=function(e){var t=e.switchType,n=e.onTypeChange;return w.default.createElement(L,null,w.default.createElement(c.Button,{className:"switch",size:"sm",color:t===exports.BabyGrowthSwitchChart.WHO?"primary":"ghost",onClick:function(){return n(exports.BabyGrowthSwitchChart.WHO)}},"WHO"),w.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=ce,exports.ChildCard=function(o){var l=o.name,u=o.gender,s=o.age,d=o.isLoggedIn,f=void 0!==d&&d,h=o.showMenu,m=void 0!==h&&h,p=o.onEdit,C=o.onSwitch,y=o.onAdd,b=o.onRemove,g=o.className,x=t.useTranslations().t,v=e.useState(!1),E=v[0],B=v[1],G=e.useCallback((function(){if(s)if(s.year<1){if(0===s.month)switch(s.week){case 0:case 1:return x("childCard.age.oneWeek");default:return x("childCard.age.week",{weeks:s.week})}if(s.month>0)return x("childCard.age.months",{month:s.month})}else{if(0===s.month)return x("childCard.age.yearNoMonth",{year:s.year});if(s.month>0)return x("childCard.age.yearMonth",{year:s.year,month:s.month})}}),[s]);return w.default.createElement(he,{className:g},w.default.createElement("div",{"data-testid":"gender"},u===n.Gender.Boy?w.default.createElement(r.Icon.Boy,{"data-testid":"boy",id:"boy"}):w.default.createElement(r.Icon.Girl,{"data-testid":"girl",id:"girl"})),w.default.createElement("div",{className:"information"},w.default.createElement(c.Heading,{tag:"h5",fontWeight:"bold",color:i.theme.colors.gray800},t.startCase(l)||x("childCard.noName")),w.default.createElement("div",{className:"detail"},w.default.createElement("div",null,u===n.Gender.Boy?w.default.createElement(r.Icon.GenderBoy,null):w.default.createElement(r.Icon.GenderGirl,null),w.default.createElement(a.Text,{size:"p3",color:i.theme.colors.gray800,style:{textTransform:"capitalize"}},u)),w.default.createElement("div",null,w.default.createElement(r.Icon.Calendar,{size:16}),s&&w.default.createElement(a.Text,{size:"p3",color:i.theme.colors.gray800},G())))),m&&f&&w.default.createElement(me,null,w.default.createElement(r.Icon.Kebab,{onClick:function(){return B((function(e){return!e}))}}),E&&w.default.createElement(Ce,{name:l,onClose:function(){return B(!1)},onEdit:function(){B(!1),p()},onSwitch:function(){B(!1),C()},onAdd:function(){B(!1),y()},onRemove:function(){B(!1),b()}})))},exports.LABELS_PERCENTILE=Me,exports.LABELS_Z_SCORE=Le,exports.divideChartData=ve,exports.generateGrowthChart=we,exports.generateXAxisTicks=Ge,exports.getAxisYDomain=function(e,t,n,r,a){var o=e.slice(t-1,n),l=[o[0][r],o[0][r]],i=l[0],c=l[1];return o.forEach((function(e){e[r]>c&&(c=e[r]),e[r]<i&&(i=e[r])})),[(0|i)-a,(0|c)+a]},exports.refineDataWithLine=Ee,exports.transformDataToChart=Be;
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("./useTranslations-9e64b19e.js"),n=require("./lazyLoad-0454885d.js"),r=require("./index-3fefcbc5.js"),o=require("./index.styled-af1f423b.js"),a=require("./tslib.es6-f7929e76.js"),l=require("styled-components"),i=require("./theme-fe7c279c.js"),c=require("./index-b71b4420.js"),u=require("date-fns");require("react-range"),require("react-dom");var s=require("./useOutsideClick-528bfd6c.js"),d=require("./index.styled-a613a33c.js"),f=require("recharts");require("lodash/debounce");var h=require("lodash");function m(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}require("./translationsContext-e97f3b58.js"),require("string-format"),require("vanilla-lazyload"),require("./useScrollbarSize-586f6706.js");var p,C,y,b,g,x,w=m(e),v=m(l),E=v.default.div(p||(p=a.__makeTemplateObject(["\n & > :not(:last-child) {\n margin-bottom: 8px;\n }\n\n .gender-selector {\n & > :not(:last-child) {\n margin-right: 16px;\n }\n\n & > div {\n width: calc(50% - 8px);\n\n "," {\n max-width: 186px;\n justify-self: left;\n }\n }\n }\n"],["\n & > :not(:last-child) {\n margin-bottom: 8px;\n }\n\n .gender-selector {\n & > :not(:last-child) {\n margin-right: 16px;\n }\n\n & > div {\n width: calc(50% - 8px);\n\n "," {\n max-width: 186px;\n justify-self: left;\n }\n }\n }\n"])),t.MediaQueries.mbUp),B=v.default(r.RadioImageGroup)(C||(C=a.__makeTemplateObject(["\n & > div > div {\n display: flex;\n flex-direction: row;\n justify-content: center;\n align-content: center;\n gap: 8px;\n padding-block: 5px;\n }\n .radio-group-item-heading {\n margin-top: 0;\n }\n"],["\n & > div > div {\n display: flex;\n flex-direction: row;\n justify-content: center;\n align-content: center;\n gap: 8px;\n padding-block: 5px;\n }\n .radio-group-item-heading {\n margin-top: 0;\n }\n"]))),G=v.default.div(y||(y=a.__makeTemplateObject(["\n display: flex;\n justify-content: center;\n gap: 16px;\n"],["\n display: flex;\n justify-content: center;\n gap: 16px;\n"]))),k=v.default.div(b||(b=a.__makeTemplateObject(["\n display: flex;\n justify-content: center;\n align-items: center;\n gap: 6px;\n .dot {\n width: 8px;\n height: 8px;\n border-radius: 50%;\n }\n"],["\n display: flex;\n justify-content: center;\n align-items: center;\n gap: 6px;\n .dot {\n width: 8px;\n height: 8px;\n border-radius: 50%;\n }\n"]))),L=v.default.div(g||(g=a.__makeTemplateObject(["\n display: flex;\n justify-content: center;\n .switch {\n border: 1px solid ",";\n padding: 6px 12px;\n font-weight: 600;\n font-size: 11px;\n &:nth-child(2n + 1) {\n border-radius: 6px 0px 0px 6px;\n border-right: none;\n }\n &:nth-child(2n) {\n border-radius: 0px 6px 6px 0px;\n border-left: none;\n }\n }\n"],["\n display: flex;\n justify-content: center;\n .switch {\n border: 1px solid ",";\n padding: 6px 12px;\n font-weight: 600;\n font-size: 11px;\n &:nth-child(2n + 1) {\n border-radius: 6px 0px 0px 6px;\n border-right: none;\n }\n &:nth-child(2n) {\n border-radius: 0px 6px 6px 0px;\n border-left: none;\n }\n }\n"])),i.theme.colors.neutral200);exports.BabyGrowthSwitchChart=void 0,(x=exports.BabyGrowthSwitchChart||(exports.BabyGrowthSwitchChart={}))[x.WHO=0]="WHO",x[x.CDC=1]="CDC";var M,_,I,j,D,H,T,S,q,P,z,O,R,A,W,Y,N,Z,V,U,F,K,X,Q,J,$,ee,te,ne,re,oe,ae=v.default.div(M||(M=a.__makeTemplateObject(["\n /* position: absolute; */\n display: flex;\n align-items: stretch;\n justify-content: space-around;\n padding: 8px;\n gap: 14px;\n\n min-width: 145px;\n max-width: 220px;\n min-height: 50px;\n border-radius: 4px;\n background: rgba(255, 255, 255, 0.2);\n box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);\n backdrop-filter: blur(5px);\n -webkit-backdrop-filter: blur(5px);\n border: 1px solid rgba(255, 255, 255, 0.3);\n .risk {\n display: flex;\n align-items: center;\n padding: 4px 8px;\n background: ",";\n border-radius: 3px;\n }\n .tooltip {\n text-align: left;\n }\n"],["\n /* position: absolute; */\n display: flex;\n align-items: stretch;\n justify-content: space-around;\n padding: 8px;\n gap: 14px;\n\n min-width: 145px;\n max-width: 220px;\n min-height: 50px;\n border-radius: 4px;\n background: rgba(255, 255, 255, 0.2);\n box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);\n backdrop-filter: blur(5px);\n -webkit-backdrop-filter: blur(5px);\n border: 1px solid rgba(255, 255, 255, 0.3);\n .risk {\n display: flex;\n align-items: center;\n padding: 4px 8px;\n background: ",";\n border-radius: 3px;\n }\n .tooltip {\n text-align: left;\n }\n"])),i.theme.colors.yellow600),le=[{name:["3rd","-3SD","97th","3SD"],color:i.theme.colors.red600},{name:["15rd","-2SD","85th","2SD"],color:i.theme.colors.yellow600},{name:["50th","0Median"],color:i.theme.colors.green600}],ie={"3rd":"-3SD","15th":"-2SD","50th":"Median","85th":"2SD","97th":"3SD"},ce=function(t){var r=t.riskLevel,a=t.tooltips,l=t.locale,c=e.useMemo((function(){var e;return null===(e=le.find((function(e){return e.name.includes(r||"")})))||void 0===e?void 0:e.color}),[r]),u=e.useMemo((function(){return l===n.LOCALE.Indonesia?r?ie[r]:"":r}),[l,r]);return w.default.createElement(ae,null,w.default.createElement("div",{className:"risk",style:{backgroundColor:c}},w.default.createElement(o.Text,{size:"s3",color:i.theme.colors.white,type:"semiBold"},u)),w.default.createElement("div",{className:"tooltip"},a.map((function(e,t){return w.default.createElement(o.Text,{key:t,size:"n1",color:i.theme.colors.gray600},e)}))))},ue=v.default.div(_||(_=a.__makeTemplateObject(["\n background: #ffffff;\n border: 1px solid ",";\n border-radius: 6px;\n padding: 16px 20px;\n display: flex;\n justify-content: space-between;\n align-items: center;\n .baby {\n display: flex;\n align-items: center;\n gap: 8px;\n }\n .radio {\n cursor: pointer;\n position: relative;\n width: 22px;\n height: 22px;\n background: #ffffff;\n border: 2px solid ",";\n border-radius: 50%;\n transition: all "," ease-in-out;\n &.active {\n border-color: ",";\n &::before {\n content: '';\n position: absolute;\n inset: 0;\n width: 100%;\n height: 100%;\n background-color: ",";\n background-clip: content-box;\n padding: 5px;\n border-radius: 50%;\n animation: "," "," ease-in-out forwards;\n }\n }\n }\n"],["\n background: #ffffff;\n border: 1px solid ",";\n border-radius: 6px;\n padding: 16px 20px;\n display: flex;\n justify-content: space-between;\n align-items: center;\n .baby {\n display: flex;\n align-items: center;\n gap: 8px;\n }\n .radio {\n cursor: pointer;\n position: relative;\n width: 22px;\n height: 22px;\n background: #ffffff;\n border: 2px solid ",";\n border-radius: 50%;\n transition: all "," ease-in-out;\n &.active {\n border-color: ",";\n &::before {\n content: '';\n position: absolute;\n inset: 0;\n width: 100%;\n height: 100%;\n background-color: ",";\n background-clip: content-box;\n padding: 5px;\n border-radius: 50%;\n animation: "," "," ease-in-out forwards;\n }\n }\n }\n"])),i.theme.colors.neutral100,i.theme.colors.gray600,"300ms",i.theme.colors.primaryBase,i.theme.colors.primaryBase,t.fadeIn,"300ms"),se=function(e){var t=e.profile,n=e.onChange,a=e.isActive;return w.default.createElement(ue,{onClick:function(){return n(t.id)}},w.default.createElement("div",{className:"baby"},"male"===t.gender?w.default.createElement(r.Icon.Boy,{size:24}):w.default.createElement(r.Icon.Girl,{size:24}),w.default.createElement(o.Text,{size:"p2",color:i.theme.colors.gray800},t.name)),w.default.createElement("div",{className:a?"radio active":"radio"}))},de=v.default.div(I||(I=a.__makeTemplateObject(["\n cursor: pointer;\n position: relative;\n padding: 20px 2px;\n border-bottom: 1px solid ",";\n .time {\n display: flex;\n align-items: center;\n gap: 8px;\n margin-bottom: 16px;\n }\n .edit-button {\n margin-left: auto;\n justify-self: end;\n }\n .record {\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding-right: 14px;\n }\n .record-item {\n display: flex;\n align-items: center;\n gap: 8px;\n }\n"],["\n 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: flex;\n align-items: center;\n justify-content: space-between;\n padding-right: 14px;\n }\n .record-item {\n display: flex;\n align-items: center;\n gap: 8px;\n }\n"])),i.theme.colors.gray100),fe=function(e,t){return e?e+" "+(t||""):"--"},he=v.default.div(j||(j=a.__makeTemplateObject(["\n /* Auto layout */\n position: relative;\n display: flex;\n align-items: flex-start;\n padding: 16px;\n gap: 16px;\n background: ",";\n border: 1px solid ",";\n border-radius: 6px;\n .information {\n display: flex;\n flex-direction: column;\n gap: 8px;\n h5:first-letter {\n text-transform: uppercase;\n }\n .detail {\n display: flex;\n gap: 16px;\n div {\n display: flex;\n align-items: center;\n gap: 6px;\n }\n }\n }\n"],["\n /* Auto layout */\n position: relative;\n display: flex;\n align-items: flex-start;\n padding: 16px;\n gap: 16px;\n background: ",";\n border: 1px solid ",";\n border-radius: 6px;\n .information {\n display: flex;\n flex-direction: column;\n gap: 8px;\n h5:first-letter {\n text-transform: uppercase;\n }\n .detail {\n display: flex;\n gap: 16px;\n div {\n display: flex;\n align-items: center;\n gap: 6px;\n }\n }\n }\n"])),i.theme.colors.white,i.theme.colors.gray100),me=v.default.div(D||(D=a.__makeTemplateObject(["\n position: absolute;\n top: 18px;\n right: 16px;\n cursor: pointer;\n"],["\n position: absolute;\n top: 18px;\n right: 16px;\n cursor: pointer;\n"]))),pe=v.default(o.Menu)(H||(H=a.__makeTemplateObject(["\n position: absolute;\n right: 0;\n z-index: 1;\n"],["\n position: absolute;\n right: 0;\n z-index: 1;\n"]))),Ce=function(n){var r=n.name,a=n.onClose,l=n.onEdit,c=n.onSwitch,u=n.onAdd,d=n.onRemove,f=t.useTranslations().t,h=e.useRef();return s.useOutsideClick(h,a),w.default.createElement("div",{ref:h},w.default.createElement(pe,{width:250},w.default.createElement(o.Menu.Item,{onClick:l,icon:w.default.createElement("svg",{width:"16",height:"17",viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},w.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"}))},w.default.createElement(o.Text,{size:"p2",color:i.theme.colors.gray800},f("childCard.menu.edit",{name:r}))),w.default.createElement(o.Menu.Item,{onClick:c,icon:w.default.createElement("svg",{width:"16",height:"17",viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},w.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"}))},w.default.createElement(o.Text,{size:"p2",color:i.theme.colors.gray800},f("childCard.menu.switch"))),w.default.createElement(o.Menu.Item,{onClick:u,icon:w.default.createElement("svg",{width:"16",height:"17",viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},w.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"}),w.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"}))},w.default.createElement(o.Text,{size:"p2",color:i.theme.colors.gray800},f("childCard.menu.add"))),w.default.createElement(o.Menu.Item,{onClick:d,icon:w.default.createElement("svg",{width:"16",height:"17",viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},w.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"}))},w.default.createElement(o.Text,{size:"p2",color:i.theme.colors.red600},f("childCard.menu.remove",{name:r})))))},ye=v.default(d.Drawer)(T||(T=a.__makeTemplateObject(["\n .add-profile-container {\n display: flex;\n flex-direction: column;\n gap: 24px;\n }\n .profile-container {\n display: flex;\n flex-direction: column;\n gap: 8px;\n }\n .button-group {\n display: flex;\n flex-direction: column;\n gap: 8px;\n button {\n width: 100%;\n }\n }\n"],["\n .add-profile-container {\n display: flex;\n flex-direction: column;\n gap: 24px;\n }\n .profile-container {\n display: flex;\n flex-direction: column;\n gap: 8px;\n }\n .button-group {\n display: flex;\n flex-direction: column;\n gap: 8px;\n button {\n width: 100%;\n }\n }\n"]))),be=v.default(r.Modal)(S||(S=a.__makeTemplateObject(["\n .hhg-modal {\n min-width: 570px;\n }\n\n .title {\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding-bottom: 16px;\n border-bottom: 1px solid ",";\n }\n\n .close-button {\n margin-left: auto;\n }\n\n .profile-container {\n padding-block: 16px;\n display: flex;\n flex-direction: column;\n gap: 8px;\n border-bottom: 1px solid ",";\n }\n\n .button-group {\n display: flex;\n justify-content: flex-end;\n gap: 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 }\n\n .button-group {\n display: flex;\n justify-content: flex-end;\n gap: 16px;\n margin-block: 16px;\n }\n"])),i.theme.colors.neutral100,i.theme.colors.neutral100),ge=((q={})[n.Gender.Boy]=((P={})[n.BabyGrowthChartType.Weight]=((z={})[n.BabyGrowthChartDuration.Weekly]=function(){return Promise.resolve().then((function(){return require("./WEIGHT_BOYS.percentile.weekly-8b301e27.js")}))},z[n.BabyGrowthChartDuration.Monthly]=function(){return Promise.resolve().then((function(){return require("./WEIGHT_BOYS.percentile.monthly-305649d8.js")}))},z[n.BabyGrowthChartDuration.Yearly]=function(){return Promise.resolve().then((function(){return require("./WEIGHT_BOYS.percentile.yearly-96f3249d.js")}))},z),P[n.BabyGrowthChartType.Height]=((O={})[n.BabyGrowthChartDuration.Weekly]=function(){return Promise.resolve().then((function(){return require("./HEIGHT_BOYS.percentile.weekly-71fb3532.js")}))},O[n.BabyGrowthChartDuration.Monthly]=function(){return Promise.resolve().then((function(){return require("./HEIGHT_BOYS.percentile.monthly-b6e07b4d.js")}))},O[n.BabyGrowthChartDuration.Yearly]=function(){return Promise.resolve().then((function(){return require("./HEIGHT_BOYS.percentile.yearly-18e5463a.js")}))},O),P[n.BabyGrowthChartType.Head]=((R={})[n.BabyGrowthChartDuration.Weekly]=function(){return Promise.resolve().then((function(){return require("./HEAD CIRCUM_BOYS.percentile.weekly-923d3626.js")}))},R[n.BabyGrowthChartDuration.Monthly]=function(){return Promise.resolve().then((function(){return require("./HEAD CIRCUM_BOYS.percentile.monthly-e79e5d3f.js")}))},R[n.BabyGrowthChartDuration.Yearly]=function(){return Promise.resolve().then((function(){return require("./HEAD CIRCUM_BOYS.percentile.yearly-4133a7da.js")}))},R),P[n.BabyGrowthChartType.BMI]=((A={})[n.BabyGrowthChartDuration.Weekly]=function(){return Promise.resolve().then((function(){return require("./BMI_BOYS.percentile.weekly-75bff607.js")}))},A[n.BabyGrowthChartDuration.Monthly]=function(){return Promise.resolve().then((function(){return require("./BMI_BOYS.percentile.monthly-1c8c4c98.js")}))},A[n.BabyGrowthChartDuration.Yearly]=function(){return Promise.resolve().then((function(){return require("./BMI_BOYS.percentile.yearly-b8d86c12.js")}))},A),P),q[n.Gender.Girl]=((W={})[n.BabyGrowthChartType.Weight]=((Y={})[n.BabyGrowthChartDuration.Weekly]=function(){return Promise.resolve().then((function(){return require("./WEIGHT_GIRLS.percentile.weekly-63c6a2a3.js")}))},Y[n.BabyGrowthChartDuration.Monthly]=function(){return Promise.resolve().then((function(){return require("./WEIGHT_GIRLS.percentile.monthly-b0905186.js")}))},Y[n.BabyGrowthChartDuration.Yearly]=function(){return Promise.resolve().then((function(){return require("./WEIGHT_GIRLS.percentile.yearly-49663736.js")}))},Y),W[n.BabyGrowthChartType.Height]=((N={})[n.BabyGrowthChartDuration.Weekly]=function(){return Promise.resolve().then((function(){return require("./HEIGHT_GIRLS.percentile.weekly-b2628828.js")}))},N[n.BabyGrowthChartDuration.Monthly]=function(){return Promise.resolve().then((function(){return require("./HEIGHT_GIRLS.percentile.monthly-1e34eb90.js")}))},N[n.BabyGrowthChartDuration.Yearly]=function(){return Promise.resolve().then((function(){return require("./HEIGHT_GIRLS.percentile.yearly-72339b71.js")}))},N),W[n.BabyGrowthChartType.Head]=((Z={})[n.BabyGrowthChartDuration.Weekly]=function(){return Promise.resolve().then((function(){return require("./HEAD CIRCUM_GIRLS.percentile.weekly-0020f6e2.js")}))},Z[n.BabyGrowthChartDuration.Monthly]=function(){return Promise.resolve().then((function(){return require("./HEAD CIRCUM_GIRLS.percentile.monthly-67f98b04.js")}))},Z[n.BabyGrowthChartDuration.Yearly]=function(){return Promise.resolve().then((function(){return require("./HEAD CIRCUM_GIRLS.percentile.yearly-6afd8bc6.js")}))},Z),W[n.BabyGrowthChartType.BMI]=((V={})[n.BabyGrowthChartDuration.Weekly]=function(){return Promise.resolve().then((function(){return require("./BMI_GIRLS.percentile.weekly-aa3da5c1.js")}))},V[n.BabyGrowthChartDuration.Monthly]=function(){return Promise.resolve().then((function(){return require("./BMI_GIRLS.percentile.monthly-f482508e.js")}))},V[n.BabyGrowthChartDuration.Yearly]=function(){return Promise.resolve().then((function(){return require("./BMI_GIRLS.percentile.yearly-624db278.js")}))},V),W),q),xe=((U={})[n.Gender.Boy]=((F={})[n.BabyGrowthChartType.Weight]=((K={})[n.BabyGrowthChartDuration.Weekly]=function(){return Promise.resolve().then((function(){return require("./WEIGHT_BOYS.zscore.weekly-0b1faf98.js")}))},K[n.BabyGrowthChartDuration.Monthly]=function(){return Promise.resolve().then((function(){return require("./WEIGHT_BOYS.zscore.monthly-22c8f908.js")}))},K[n.BabyGrowthChartDuration.Yearly]=function(){return Promise.resolve().then((function(){return require("./WEIGHT_BOYS.zscore.yearly-8090c58c.js")}))},K),F[n.BabyGrowthChartType.Height]=((X={})[n.BabyGrowthChartDuration.Weekly]=function(){return Promise.resolve().then((function(){return require("./HEIGHT_BOYS.zscore.weekly-70c18763.js")}))},X[n.BabyGrowthChartDuration.Monthly]=function(){return Promise.resolve().then((function(){return require("./HEIGHT_BOYS.zscore.monthly-7a8e43dd.js")}))},X[n.BabyGrowthChartDuration.Yearly]=function(){return Promise.resolve().then((function(){return require("./HEIGHT_BOYS.zscore.yearly-b9e6ea6b.js")}))},X),F[n.BabyGrowthChartType.Head]=((Q={})[n.BabyGrowthChartDuration.Weekly]=function(){return Promise.resolve().then((function(){return require("./HEAD CIRCUM_BOYS.zscore.weekly-f472daa8.js")}))},Q[n.BabyGrowthChartDuration.Monthly]=function(){return Promise.resolve().then((function(){return require("./HEAD CIRCUM_BOYS.zscore.monthly-4727bfe4.js")}))},Q[n.BabyGrowthChartDuration.Yearly]=function(){return Promise.resolve().then((function(){return require("./HEAD CIRCUM_BOYS.zscore.yearly-13a09c3f.js")}))},Q),F[n.BabyGrowthChartType.BMI]=((J={})[n.BabyGrowthChartDuration.Weekly]=function(){return Promise.resolve().then((function(){return require("./BMI_BOYS.zscore.weekly-aba5d53b.js")}))},J[n.BabyGrowthChartDuration.Monthly]=function(){return Promise.resolve().then((function(){return require("./BMI_BOYS.zscore.monthly-5efef594.js")}))},J[n.BabyGrowthChartDuration.Yearly]=function(){return Promise.resolve().then((function(){return require("./BMI_BOYS.zscore.yearly-52cbcf95.js")}))},J),F),U[n.Gender.Girl]=(($={})[n.BabyGrowthChartType.Weight]=((ee={})[n.BabyGrowthChartDuration.Weekly]=function(){return Promise.resolve().then((function(){return require("./WEIGHT_GIRLS.zscore.weekly-29d8f232.js")}))},ee[n.BabyGrowthChartDuration.Monthly]=function(){return Promise.resolve().then((function(){return require("./WEIGHT_GIRLS.zscore.monthly-0b14c285.js")}))},ee[n.BabyGrowthChartDuration.Yearly]=function(){return Promise.resolve().then((function(){return require("./WEIGHT_GIRLS.zscore.yearly-95aa9ac3.js")}))},ee),$[n.BabyGrowthChartType.Height]=((te={})[n.BabyGrowthChartDuration.Weekly]=function(){return Promise.resolve().then((function(){return require("./HEIGHT_GIRLS.zscore.weekly-7ed52595.js")}))},te[n.BabyGrowthChartDuration.Monthly]=function(){return Promise.resolve().then((function(){return require("./HEIGHT_GIRLS.zscore.monthly-e473a16c.js")}))},te[n.BabyGrowthChartDuration.Yearly]=function(){return Promise.resolve().then((function(){return require("./HEIGHT_GIRLS.zscore.yearly-225f27c4.js")}))},te),$[n.BabyGrowthChartType.Head]=((ne={})[n.BabyGrowthChartDuration.Weekly]=function(){return Promise.resolve().then((function(){return require("./HEAD CIRCUM_GIRLS.zscore.weekly-a0fa670d.js")}))},ne[n.BabyGrowthChartDuration.Monthly]=function(){return Promise.resolve().then((function(){return require("./HEAD CIRCUM_GIRLS.zscore.monthly-9c635d09.js")}))},ne[n.BabyGrowthChartDuration.Yearly]=function(){return Promise.resolve().then((function(){return require("./HEAD CIRCUM_GIRLS.zscore.yearly-fcdb544a.js")}))},ne),$[n.BabyGrowthChartType.BMI]=((re={})[n.BabyGrowthChartDuration.Weekly]=function(){return Promise.resolve().then((function(){return require("./BMI_GIRLS.zscore.weekly-56e2c916.js")}))},re[n.BabyGrowthChartDuration.Monthly]=function(){return Promise.resolve().then((function(){return require("./BMI_GIRLS.zscore.monthly-11ffe2ae.js")}))},re[n.BabyGrowthChartDuration.Yearly]=function(){return Promise.resolve().then((function(){return require("./BMI_GIRLS.zscore.yearly-a3d00356.js")}))},re),$),U),we=function(e,t,r,o){return o===n.LOCALE.Indonesia?xe[e][t][r]():ge[e][t][r]()},ve=function(e,t){var n=h.chunk(t,Math.ceil(t.length/2)),r=n[0],o=n[1],a=r.map((function(e){return e.name})),l=o.map((function(e){return e.name}));return a.includes(e)?r:l.includes(e)?o:t},Ee=function(e,t){return a.__spreadArray(a.__spreadArray([],e,!0),t.map((function(e){return{name:e.name,history:e.value}})),!0).sort((function(e,t){return e.name-t.name}))},Be=function(e){var t=[],n=function(n){e[n].forEach((function(e,r){var o;t[r]?t[r][n]=e:t[r]=((o={name:r})[n]=e,o)}))};for(var r in e)n(r);return t},Ge=function(e){return Array.from(Array(e.length).keys())},ke=v.default.div(oe||(oe=a.__makeTemplateObject(["\n position: relative;\n .custom-chart-label {\n display: flex;\n width: 100%;\n justify-content: space-between;\n align-items: center;\n margin-top: 8px;\n }\n"],["\n position: relative;\n .custom-chart-label {\n display: flex;\n width: 100%;\n justify-content: space-between;\n align-items: center;\n margin-top: 8px;\n }\n"]))),Le=[{name:"-3SD",label:"-3",color:i.theme.colors.red600},{name:"-2SD",label:"-2",color:i.theme.colors.yellow600},{name:"0Median",label:"0",color:i.theme.colors.green600},{name:"2SD",label:"2",color:i.theme.colors.yellow600},{name:"3SD",label:"3",color:i.theme.colors.red600},{name:"history",color:i.theme.colors.primaryBase}],Me=[{name:"3rd",color:i.theme.colors.red600},{name:"15th",color:i.theme.colors.yellow600},{name:"50th",color:i.theme.colors.green600},{name:"85th",color:i.theme.colors.yellow600},{name:"97th",color:i.theme.colors.red600},{name:"history",color:i.theme.colors.primaryBase}],_e=e.forwardRef((function(e,t){return w.default.createElement("circle",a.__assign({},e,{ref:t}),w.default.createElement("animate",{attributeName:"r",values:"4;8;4",dur:"2s",begin:"0s",repeatCount:"indefinite"}))})),Ie=function(e){var t=e.x,n=e.y,r=e.last,o=e.index,a=e.name;return r===o?w.default.createElement("text",{x:t,y:n,dx:16,fill:i.theme.colors.gray500,fontSize:12,textAnchor:"middle"},a):null};exports.BabyGrowthChart=function(r){var l=r.gender,c=r.type,u=r.duration,d=r.xLabel,h=r.x,m=r.y,p=r.toolTipLabel,C=void 0===p?[]:p,y=r.isDivide,b=void 0===y||y,g=r.onIsPrevious,x=r.locale,v=r.riskLevel,E=r.withLine,B=void 0!==E&&E,G=r.lineData,k=void 0===G?[]:G,L=e.useState([]),M=L[0],_=L[1],I=e.useRef([]),j=t.useTranslations().t;e.useEffect((function(){a.__awaiter(void 0,void 0,void 0,(function(){var e,t,n;return a.__generator(this,(function(r){switch(r.label){case 0:return[4,we(l,c,u,x)];case 1:if(e=r.sent().default,t=Be(e),Array.isArray(t)&&0===t.length)return null==g||g(),[2];n=t.map((function(e,t){return a.__assign(a.__assign({},e),{name:t})}));try{n=b?ve(h||0,t):t}catch(e){}return I.current=Ge(n),_(n),[2]}}))}))}),[l,c,u,x,g]);var D=e.useState(!1),H=D[0],T=D[1],S=e.useMemo((function(){return B&&Array.isArray(M)&&M.length>0?Ee(M,k):M}),[B,k,M]),q=e.useRef(null);s.useOutsideClick(q,(function(){return T(!1)}));return w.default.createElement(ke,null,w.default.createElement("div",{className:"custom-chart-label"},w.default.createElement(o.Text,{size:"n1",color:i.theme.colors.gray500},function(){switch(c){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""}}()),w.default.createElement(o.Text,{size:"n1",color:i.theme.colors.gray500},x===n.LOCALE.Indonesia?"Z-Score":j("babyGrowth.percentiles"))),Array.isArray(S)&&S.length>0&&w.default.createElement(f.ResponsiveContainer,{height:388,className:"chart"},w.default.createElement(f.LineChart,{data:S,margin:{top:16,right:28,bottom:8,left:0}},w.default.createElement(f.CartesianGrid,{stroke:i.theme.colors.blue200}),w.default.createElement(f.Tooltip,{trigger:"click",content:w.default.createElement(w.default.Fragment,null,H&&void 0!==h&&void 0!==m&&w.default.createElement(ce,{riskLevel:v,tooltips:C,locale:x}))}),w.default.createElement(f.XAxis,{type:"number",scale:"linear",ticks:I.current,dataKey:"name",tickLine:!1,tickMargin:12,tick:{fontFamily:"Inter",fontWeight:400,fontSize:12,color:i.theme.colors.gray800},domain:["dataMin","dataMax"],interval:"preserveStartEnd",tickCount:1,tickFormatter:function(e){return String(Math.round(100*(e+Number.EPSILON))/100)},allowDecimals:!0}),w.default.createElement(f.YAxis,{domain:[function(e){return Math.min(e,m||e)},function(e){return Math.max(e,m||e)}],tickLine:!1,tickMargin:7,width:45,tickCount:10,allowDecimals:!0,tickFormatter:function(e){return String(Math.round(100*(e+Number.EPSILON))/100)},tick:{fontFamily:"Inter",fontWeight:400,fontSize:12,color:i.theme.colors.gray800}}),(x===n.LOCALE.Indonesia?Le:Me).map((function(e){return w.default.createElement(w.default.Fragment,null,"history"===e.name?w.default.createElement(f.Line,{key:"history",connectNulls:!0,type:"linear",dataKey:"history",stroke:e.color,dot:{stroke:e.color,fill:e.color,strokeWidth:1,r:4,strokeDasharray:""},activeDot:!0,color:e.color}):w.default.createElement(f.Line,{key:e.name,type:"linear",dataKey:e.name,stroke:e.color,dot:!1,activeDot:!1,connectNulls:!0,label:w.default.createElement(Ie,{last:(null==S?void 0:S.length)?S.length-1:0,name:(null==e?void 0:e.label)||e.name}),tooltipType:"none"}))})),void 0!==h&&void 0!==m&&w.default.createElement(f.ReferenceDot,{onClick:function(){return T(!0)},x:0===h?1:h,y:m,r:4,shape:w.default.createElement(_e,{ref:q,r:4}),fill:i.theme.colors.primaryBase,stroke:i.theme.colors.primaryBase}))),w.default.createElement("div",{className:"custom-chart-label"},w.default.createElement("i",null),w.default.createElement(o.Text,{size:"n1",color:i.theme.colors.gray500},d)))},exports.BabyGrowthChartPercentile=ge,exports.BabyGrowthChartZScore=xe,exports.BabyGrowthChooseProfileDrawer=function(n){var r,l,i=n.babyProfiles,u=n.onClose,s=n.onCreate,d=n.onAddMeasurement,f=n.onSwitchProfile,h=n.open,m=n.isMobile,p=n.isMyProfile,C=void 0!==p&&p,y=a.__rest(n,["babyProfiles","onClose","onCreate","onAddMeasurement","onSwitchProfile","open","isMobile","isMyProfile"]),b=e.useState(null===(r=i[0])||void 0===r?void 0:r.id),g=b[0],x=b[1],v=t.useTranslations().t;return m?w.default.createElement(ye,a.__assign({title:"Baby profiles",onClose:u,open:h,placement:"bottom"},y),(function(e){var t,n=e.internalClose;return w.default.createElement("div",{className:"add-profile-container"},w.default.createElement("div",{className:"profile-container"},null===(t=i||[])||void 0===t?void 0:t.map((function(e){return w.default.createElement(se,{key:e.id,profile:e,isActive:g===e.id,onChange:x})}))),w.default.createElement("div",{className:"button-group"},w.default.createElement(c.Button,{onClick:function(){n(),null==s||s()},size:"lg",color:"secondary",icon:w.default.createElement("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},w.default.createElement("path",{d:"M13.5 9.75H9.75V13.5C9.75 13.9125 9.4125 14.25 9 14.25C8.5875 14.25 8.25 13.9125 8.25 13.5V9.75H4.5C4.0875 9.75 3.75 9.4125 3.75 9C3.75 8.5875 4.0875 8.25 4.5 8.25H8.25V4.5C8.25 4.0875 8.5875 3.75 9 3.75C9.4125 3.75 9.75 4.0875 9.75 4.5V8.25H13.5C13.9125 8.25 14.25 8.5875 14.25 9C14.25 9.4125 13.9125 9.75 13.5 9.75Z",fill:"#2D87F3"}))},v("babyGrowth.drawer.createBaby")),w.default.createElement(c.Button,{size:"lg",color:"primary",onClick:function(){n(),C?null==f||f(g):null==d||d(g)}},v(C?"babyGrowth.drawer.switchProfile":"babyGrowth.drawer.addMeasurement"))))})):w.default.createElement(be,{type:"confirm",isOpen:h,onClose:u},w.default.createElement("div",{className:"header"},w.default.createElement("div",{className:"title"},w.default.createElement(o.Text,{size:"s2",type:"semiBold"},"Baby profiles"),w.default.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"close-button",onClick:u},w.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"})))),w.default.createElement("div",{className:"profile-container"},null===(l=i||[])||void 0===l?void 0:l.map((function(e){return w.default.createElement(se,{key:e.id,profile:e,isActive:g===e.id,onChange:x})}))),w.default.createElement("div",{className:"button-group"},w.default.createElement(c.Button,{onClick:function(){null==s||s(),u()},size:"lg",color:"secondary",icon:w.default.createElement("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},w.default.createElement("path",{d:"M13.5 9.75H9.75V13.5C9.75 13.9125 9.4125 14.25 9 14.25C8.5875 14.25 8.25 13.9125 8.25 13.5V9.75H4.5C4.0875 9.75 3.75 9.4125 3.75 9C3.75 8.5875 4.0875 8.25 4.5 8.25H8.25V4.5C8.25 4.0875 8.5875 3.75 9 3.75C9.4125 3.75 9.75 4.0875 9.75 4.5V8.25H13.5C13.9125 8.25 14.25 8.5875 14.25 9C14.25 9.4125 13.9125 9.75 13.5 9.75Z",fill:"#2D87F3"}))},v("babyGrowth.drawer.createBaby")),w.default.createElement(c.Button,{size:"lg",color:"primary",onClick:function(){C?null==f||f(g):null==d||d(g),u()}},v(C?"babyGrowth.drawer.switchProfile":"babyGrowth.drawer.addMeasurement"))))},exports.BabyGrowthGender=function(e){var a=e.value,l=e.onChange,i=t.useTranslations().t;return w.default.createElement(E,null,w.default.createElement(o.Text,{size:"label2",type:"bold",style:{marginBottom:"0.5rem"}},i("babyVaccineTool.selectGender")),w.default.createElement(B,{options:[{value:n.Gender.Girl,label:i("gender.female"),content:w.default.createElement(r.Icon.GenderChooseGirl,null)},{value:n.Gender.Boy,label:i("gender.male"),content:w.default.createElement(r.Icon.GenderChooseBoy,null)}],value:a,onChange:l,className:"gender-selector"}))},exports.BabyGrowthLegend=function(e){var t=e.legends,r=e.locale;return w.default.createElement(G,null,t.map((function(e,t){return w.default.createElement(k,{key:t},w.default.createElement("span",{className:"dot",style:{backgroundColor:e.color}}),w.default.createElement(o.Text,{size:"n1",color:i.theme.colors.gray800},r===n.LOCALE.Indonesia?e["z-score"]:e.text))})))},exports.BabyGrowthProfileRadio=se,exports.BabyGrowthRecord=function(e){var t=e.measurementDate,n=void 0===t?new Date:t,r=e.weight,a=e.height,l=e.head,c=e.onEdit;return w.default.createElement(de,{onClick:c},w.default.createElement("div",{className:"time"},w.default.createElement("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},w.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"})),w.default.createElement(o.Text,{size:"p3",color:i.theme.colors.gray600},u.format(n,"dd/MM/yyyy")),w.default.createElement("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"edit-button"},w.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"}))),w.default.createElement("div",{className:"record"},w.default.createElement("div",{className:"record-item"},w.default.createElement("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},w.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"}),w.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"}),w.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"})),w.default.createElement(o.Text,{size:"s3",color:i.theme.colors.gray800,type:"semiBold"},fe(r,"kg"))),w.default.createElement("div",{className:"record-item"},w.default.createElement("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},w.default.createElement("g",{clipPath:"url(#clip0_855_82991)"},w.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"})),w.default.createElement("defs",null,w.default.createElement("clipPath",{id:"clip0_855_82991"},w.default.createElement("rect",{width:"16",height:"16",fill:"white",transform:"translate(16.6055) rotate(90)"})))),w.default.createElement(o.Text,{size:"s3",color:i.theme.colors.gray800,type:"semiBold"},fe(a,"cm"))),w.default.createElement("div",{className:"record-item"},w.default.createElement("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},w.default.createElement("g",{clipPath:"url(#clip0_855_82994)"},w.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"}),w.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"}),w.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"})),w.default.createElement("defs",null,w.default.createElement("clipPath",{id:"clip0_855_82994"},w.default.createElement("rect",{width:"16",height:"16",fill:"white",transform:"translate(0.234375)"})))),w.default.createElement(o.Text,{size:"s3",color:i.theme.colors.gray800,type:"semiBold"},fe(l,"cm")))))},exports.BabyGrowthSwitch=function(e){var t=e.switchType,n=e.onTypeChange;return w.default.createElement(L,null,w.default.createElement(c.Button,{className:"switch",size:"sm",color:t===exports.BabyGrowthSwitchChart.WHO?"primary":"ghost",onClick:function(){return n(exports.BabyGrowthSwitchChart.WHO)}},"WHO"),w.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=ce,exports.ChildCard=function(a){var l=a.name,u=a.gender,s=a.age,d=a.isLoggedIn,f=void 0!==d&&d,h=a.showMenu,m=void 0!==h&&h,p=a.onEdit,C=a.onSwitch,y=a.onAdd,b=a.onRemove,g=a.className,x=t.useTranslations().t,v=e.useState(!1),E=v[0],B=v[1],G=e.useCallback((function(){if(s)if(s.year<1){if(0===s.month)switch(s.week){case 0:case 1:return x("childCard.age.oneWeek");default:return x("childCard.age.week",{weeks:s.week})}if(s.month>0)return x("childCard.age.months",{month:s.month})}else{if(0===s.month)return x("childCard.age.yearNoMonth",{year:s.year});if(s.month>0)return x("childCard.age.yearMonth",{year:s.year,month:s.month})}}),[s]);return w.default.createElement(he,{className:g},w.default.createElement("div",{"data-testid":"gender"},u===n.Gender.Boy?w.default.createElement(r.Icon.Boy,{"data-testid":"boy",id:"boy"}):w.default.createElement(r.Icon.Girl,{"data-testid":"girl",id:"girl"})),w.default.createElement("div",{className:"information"},w.default.createElement(c.Heading,{tag:"h5",fontWeight:"bold",color:i.theme.colors.gray800},t.startCase(l)||x("childCard.noName")),w.default.createElement("div",{className:"detail"},w.default.createElement("div",null,u===n.Gender.Boy?w.default.createElement(r.Icon.GenderBoy,null):w.default.createElement(r.Icon.GenderGirl,null),w.default.createElement(o.Text,{size:"p3",color:i.theme.colors.gray800,style:{textTransform:"capitalize"}},u)),w.default.createElement("div",null,w.default.createElement(r.Icon.Calendar,{size:16}),s&&w.default.createElement(o.Text,{size:"p3",color:i.theme.colors.gray800},G())))),m&&f&&w.default.createElement(me,null,w.default.createElement(r.Icon.Kebab,{onClick:function(){return B((function(e){return!e}))}}),E&&w.default.createElement(Ce,{name:l,onClose:function(){return B(!1)},onEdit:function(){B(!1),p()},onSwitch:function(){B(!1),C()},onAdd:function(){B(!1),y()},onRemove:function(){B(!1),b()}})))},exports.LABELS_PERCENTILE=Me,exports.LABELS_Z_SCORE=Le,exports.divideChartData=ve,exports.generateGrowthChart=we,exports.generateXAxisTicks=Ge,exports.getAxisYDomain=function(e,t,n,r,o){var a=e.slice(t-1,n),l=[a[0][r],a[0][r]],i=l[0],c=l[1];return a.forEach((function(e){e[r]>c&&(c=e[r]),e[r]<i&&(i=e[r])})),[(0|i)-o,(0|c)+o]},exports.refineDataWithLine=Ee,exports.transformDataToChart=Be;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
export declare const StyledBabyGrowthChooseProfileDrawer: import("styled-components").StyledComponent<import("react").FC<import("src/components/atoms").DrawerProps>, any, {}, never>;
|
|
3
|
-
export declare const StyledModal: import("styled-components").StyledComponent<({ type, closeIcon, isOpen, onClose, children, className, animationType, isStaticBackdrop, }: import("../modal").Props) => import("react").ReactPortal, any, {}, never>;
|
|
3
|
+
export declare const StyledModal: import("styled-components").StyledComponent<({ type, closeIcon, isOpen, onClose, children, className, animationType, isStaticBackdrop, style, }: import("../modal").Props) => import("react").ReactPortal, any, {}, never>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React from 'react';
|
|
1
|
+
import React, { CSSProperties } from 'react';
|
|
2
2
|
export declare type Props = {
|
|
3
3
|
type: 'tail' | 'lead' | 'form' | 'confirm' | 'profile' | 'video';
|
|
4
4
|
animationType?: 'slideTop' | 'scaleUp';
|
|
@@ -8,6 +8,7 @@ export declare type Props = {
|
|
|
8
8
|
children?: any;
|
|
9
9
|
className?: string;
|
|
10
10
|
isStaticBackdrop?: boolean;
|
|
11
|
+
style?: CSSProperties;
|
|
11
12
|
};
|
|
12
|
-
declare const Modal: ({ type, closeIcon, isOpen, onClose, children, className, animationType, isStaticBackdrop, }: Props) => React.ReactPortal;
|
|
13
|
+
declare const Modal: ({ type, closeIcon, isOpen, onClose, children, className, animationType, isStaticBackdrop, style, }: Props) => React.ReactPortal;
|
|
13
14
|
export { Modal };
|
package/build/components.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./index-3855a71d.js"),r=require("./index-3474408b.js"),o=require("./index-b71b4420.js"),t=require("./index-94e56980.js"),a=require("./index-e05c1de0.js"),i=require("./index-e6f9ac7f.js"),s=require("./index.styled-af1f423b.js"),n=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./index-3855a71d.js"),r=require("./index-3474408b.js"),o=require("./index-b71b4420.js"),t=require("./index-94e56980.js"),a=require("./index-e05c1de0.js"),i=require("./index-e6f9ac7f.js"),s=require("./index.styled-af1f423b.js"),n=require("./index-3fefcbc5.js"),p=require("./index.styled-a613a33c.js");require("react"),require("./tslib.es6-f7929e76.js"),require("./useTranslations-9e64b19e.js"),require("styled-components"),require("./translationsContext-e97f3b58.js"),require("string-format"),require("react-range"),require("./theme-fe7c279c.js"),require("react-id-generator"),require("date-fns"),require("react-day-picker/DayPickerInput"),require("lodash"),require("keen-slider/react"),require("react-dom"),require("./constants-ea7b35a2.js"),require("./useOutsideClick-528bfd6c.js"),require("date-fns/locale/en-US"),require("date-fns/locale/id"),require("date-fns/locale/vi"),require("date-fns/locale/zh-TW"),require("./lazyLoad-0454885d.js"),require("vanilla-lazyload"),require("lodash/debounce"),require("./getSocialList-ca2a08a9.js"),require("react-loading-skeleton"),require("./translationsProvider-e3bdfdcc.js"),require("./cookieHelper-612b90fa.js"),require("date-fns/locale/hi"),require("date-fns/locale/ms"),require("date-fns/locale/th"),require("slugify"),require("./core-8fcc56eb.js"),require("smoothscroll-polyfill"),require("./routing-9fbc897b.js"),require("./useScrollbarSize-586f6706.js"),exports.Alert=e.Alert,exports.AmpNextPage=e.AmpNextPage,exports.ArticleCard=e.ArticleCard,exports.Badge=e.Badge,exports.BorderHeading=e.BorderHeading,exports.Breadcrumbs=e.Breadcrumbs,exports.Carousel=e.Carousel,exports.CategoryCard=e.CategoryCard,exports.Checkbox=e.Checkbox,exports.CheckboxGroup=e.CheckboxGroup,exports.CookieAcceptConfirm=e.CookieAcceptConfirm,exports.DatePicker=e.DatePicker,exports.DateRangePicker=e.DateRangePicker,exports.FileDropdown=e.FileDropdown,exports.FloatButtonGroup=e.FloatButtonGroup,exports.Footer=e.Footer,exports.Grid=e.Grid,exports.IconText=e.IconText,exports.Layout=e.Layout,exports.NavigationBar=e.NavigationBar,exports.NavigationLayout=e.NavigationLayout,exports.Pagination=e.Pagination,exports.Progress=e.Progress,exports.ProgressBar=e.ProgressBar,exports.RateStars=e.RateStars,exports.SeoHead=e.SeoHead,exports.Shadow=e.Shadow,exports.ShareContainer=e.ShareContainer,exports.ShareDrawer=e.ShareDrawer,exports.SideMenu=e.index,exports.SiteWide=e.SiteWide,exports.Slider=e.Slider,exports.StatisticCard=e.StatisticCard,exports.StickySponsoredBy=e.StickySponsoredBy,exports.SurveyThankyouCard=e.SurveyThankyouCard,exports.Table=e.index$1,exports.Tabs=e.Tabs,exports.Tag=e.Tag,exports.Toggle=e.Toggle,exports.UnderlinedLink=e.UnderlinedLink,exports.Uploader=e.Uploader,exports.Avatar=r.Avatar,exports.Popup=r.Popup,exports.Button=o.Button,exports.Heading=o.Heading,exports.Divider=t.Divider,exports.Dropdown=t.Dropdown,exports.DoctorInfo=a.DoctorInfo,exports.Flag=a.Flag,exports.LanguageSwitcher=a.LanguageSwitcher,exports.MobileBottomNavigation=a.MobileBottomNavigation,exports.MobileBottomNavigationIcon=a.MobileBottomNavigationIcon,exports.NavigationLogoutPopup=a.NavigationLogoutPopup,exports.NavigationProfileButton=a.NavigationProfileButton,exports.NavigationV2=a.NavigationV2,exports.ProfilePopup=a.ProfilePopup,exports.Radio=a.Radio,exports.RadioGroup=a.RadioGroup,exports.ScrollList=a.ScrollList,exports.SurveyQuestionCard=a.SurveyQuestionCard,exports.UserProfileNavigation=a.UserProfileNavigation,exports.UserProfileNavigationHeader=a.NavHeader,exports.UserProfileNavigationStats=a.UserStats,exports.defaultTranslation=a.defaultTranslation,exports.getNavMenuContent=a.getNavMenuContent,exports.getNavMenuContentWithCache=a.getNavMenuContentWithCache,exports.Input=i.Input,exports.Container=s.Container,exports.Label=s.Label,exports.Logo=s.Logo,exports.Menu=s.Menu,exports.PureInput=s.PureInput,exports.Text=s.Text,exports.TextArea=s.TextArea,exports.TextDivider=s.TextDivider,exports.Icon=n.Icon,exports.Modal=n.Modal,exports.RadioImageGroup=n.RadioImageGroup,exports.Drawer=p.Drawer;
|
package/build/esm/babyGrowth.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import e,{useMemo as n,useRef as t,useState as r,useCallback as o,forwardRef as i,useEffect as l}from"react";import{M as a,u as c,h as s,l as d}from"./useTranslations-e61cf3ed.js";import{G as p,L as m,B as u,a as f}from"./lazyLoad-d80d3fd1.js";import{R as C,I as y,M as h}from"./index-613a8df5.js";import{T as g,M as x}from"./index.styled-df180c76.js";import{e as b,d as w,b as E,c as v,_ as k,a as M}from"./tslib.es6-6ae0d506.js";import L from"styled-components";import{t as H}from"./theme-82709ce4.js";import{B as I,H as j}from"./index-9ee79492.js";import{format as B}from"date-fns";import"react-range";import"react-dom";import{u as S}from"./useOutsideClick-6004483a.js";import{D as G}from"./index.styled-ecba7a5d.js";import{ResponsiveContainer as z,LineChart as _,CartesianGrid as R,Tooltip as D,XAxis as W,YAxis as Y,Line as N,ReferenceDot as Z}from"recharts";import"lodash/debounce";import{chunk as O}from"lodash";import"./translationsContext-65bea19b.js";import"string-format";import"vanilla-lazyload";import"./useScrollbarSize-99db33e1.js";var V,T,A,P,U,F,K=L.div(V||(V=b(["\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"])),a.mbUp),q=L(C)(T||(T=b(["\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"]))),J=function(n){var t=n.value,r=n.onChange,o=c().t;return e.createElement(K,null,e.createElement(g,{size:"label2",type:"bold",style:{marginBottom:"0.5rem"}},o("babyVaccineTool.selectGender")),e.createElement(q,{options:[{value:p.Girl,label:o("gender.female"),content:e.createElement(y.GenderChooseGirl,null)},{value:p.Boy,label:o("gender.male"),content:e.createElement(y.GenderChooseBoy,null)}],value:t,onChange:r,className:"gender-selector"}))},Q=L.div(A||(A=b(["\n display: flex;\n justify-content: center;\n gap: 16px;\n"],["\n display: flex;\n justify-content: center;\n gap: 16px;\n"]))),X=L.div(P||(P=b(["\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"]))),$=function(n){var t=n.legends,r=n.locale;return e.createElement(Q,null,t.map((function(n,t){return e.createElement(X,{key:t},e.createElement("span",{className:"dot",style:{backgroundColor:n.color}}),e.createElement(g,{size:"n1",color:H.colors.gray800},r===m.Indonesia?n["z-score"]:n.text))})))},ee=L.div(U||(U=b(["\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"])),H.colors.neutral200);!function(e){e[e.WHO=0]="WHO",e[e.CDC=1]="CDC"}(F||(F={}));var ne,te,re,oe,ie,le,ae,ce,se,de,pe,me,ue,fe,Ce,ye,he,ge,xe,be,we,Ee,ve,ke,Me,Le,He,Ie,je,Be,Se,Ge=function(n){var t=n.switchType,r=n.onTypeChange;return e.createElement(ee,null,e.createElement(I,{className:"switch",size:"sm",color:t===F.WHO?"primary":"ghost",onClick:function(){return r(F.WHO)}},"WHO"),e.createElement(I,{className:"switch",size:"sm",isDisabled:!0,color:t===F.CDC?"primary":"ghost",onClick:function(){return r(F.CDC)}},"CDC"))},ze=L.div(ne||(ne=b(["\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"])),H.colors.yellow600),_e=[{name:["3rd","-3SD","97th","3SD"],color:H.colors.red600},{name:["15rd","-2SD","85th","2SD"],color:H.colors.yellow600},{name:["50th","0Median"],color:H.colors.green600}],Re={"3rd":"-3SD","15th":"-2SD","50th":"Median","85th":"2SD","97th":"3SD"},De=function(t){var r=t.riskLevel,o=t.tooltips,i=t.locale,l=n((function(){var e;return null===(e=_e.find((function(e){return e.name.includes(r||"")})))||void 0===e?void 0:e.color}),[r]),a=n((function(){return i===m.Indonesia?r?Re[r]:"":r}),[i,r]);return e.createElement(ze,null,e.createElement("div",{className:"risk",style:{backgroundColor:l}},e.createElement(g,{size:"s3",color:H.colors.white,type:"semiBold"},a)),e.createElement("div",{className:"tooltip"},o.map((function(n,t){return e.createElement(g,{key:t,size:"n1",color:H.colors.gray600},n)}))))},We=L.div(te||(te=b(["\n background: #ffffff;\n border: 1px solid ",";\n border-radius: 6px;\n padding: 16px 20px;\n display: flex;\n justify-content: space-between;\n align-items: center;\n .baby {\n display: flex;\n align-items: center;\n gap: 8px;\n }\n .radio {\n cursor: pointer;\n position: relative;\n width: 22px;\n height: 22px;\n background: #ffffff;\n border: 2px solid ",";\n border-radius: 50%;\n transition: all "," ease-in-out;\n &.active {\n border-color: ",";\n &::before {\n content: '';\n position: absolute;\n inset: 0;\n width: 100%;\n height: 100%;\n background-color: ",";\n background-clip: content-box;\n padding: 5px;\n border-radius: 50%;\n animation: "," "," ease-in-out forwards;\n }\n }\n }\n"],["\n background: #ffffff;\n border: 1px solid ",";\n border-radius: 6px;\n padding: 16px 20px;\n display: flex;\n justify-content: space-between;\n align-items: center;\n .baby {\n display: flex;\n align-items: center;\n gap: 8px;\n }\n .radio {\n cursor: pointer;\n position: relative;\n width: 22px;\n height: 22px;\n background: #ffffff;\n border: 2px solid ",";\n border-radius: 50%;\n transition: all "," ease-in-out;\n &.active {\n border-color: ",";\n &::before {\n content: '';\n position: absolute;\n inset: 0;\n width: 100%;\n height: 100%;\n background-color: ",";\n background-clip: content-box;\n padding: 5px;\n border-radius: 50%;\n animation: "," "," ease-in-out forwards;\n }\n }\n }\n"])),H.colors.neutral100,H.colors.gray600,"300ms",H.colors.primaryBase,H.colors.primaryBase,s,"300ms"),Ye=function(n){var t=n.profile,r=n.onChange,o=n.isActive;return e.createElement(We,{onClick:function(){return r(t.id)}},e.createElement("div",{className:"baby"},"male"===t.gender?e.createElement(y.Boy,{size:24}):e.createElement(y.Girl,{size:24}),e.createElement(g,{size:"p2",color:H.colors.gray800},t.name)),e.createElement("div",{className:o?"radio active":"radio"}))},Ne=L.div(re||(re=b(["\n position: relative;\n padding: 20px 2px;\n border-bottom: 1px solid ",";\n .time {\n display: flex;\n align-items: center;\n gap: 8px;\n margin-bottom: 16px;\n }\n .edit-button {\n margin-left: auto;\n justify-self: end;\n }\n .record {\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding-right: 14px;\n }\n .record-item {\n display: flex;\n align-items: center;\n gap: 8px;\n }\n"],["\n position: relative;\n padding: 20px 2px;\n border-bottom: 1px solid ",";\n .time {\n display: flex;\n align-items: center;\n gap: 8px;\n margin-bottom: 16px;\n }\n .edit-button {\n margin-left: auto;\n justify-self: end;\n }\n .record {\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding-right: 14px;\n }\n .record-item {\n display: flex;\n align-items: center;\n gap: 8px;\n }\n"])),H.colors.gray100),Ze=function(e,n){return e?e+" "+(n||""):"--"},Oe=function(n){var t=n.measurementDate,r=void 0===t?new Date:t,o=n.weight,i=n.height,l=n.head,a=n.onEdit;return e.createElement(Ne,null,e.createElement("div",{className:"time"},e.createElement("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{d:"M5.64421 0.666016C5.27621 0.666016 4.97754 0.964682 4.97754 1.33268V1.99935H4.31087C3.57754 1.99935 2.97754 2.59935 2.97754 3.33268V12.666C2.97754 13.3993 3.57754 13.9993 4.31087 13.9993H13.6442C14.3775 13.9993 14.9775 13.3993 14.9775 12.666V3.33268C14.9775 2.59935 14.3775 1.99935 13.6442 1.99935H12.9775V1.33268C12.9775 0.964682 12.6789 0.666016 12.3109 0.666016C11.9429 0.666016 11.6442 0.964682 11.6442 1.33268V1.99935H6.31087V1.33268C6.31087 0.964682 6.01221 0.666016 5.64421 0.666016ZM4.31087 5.33268H13.6442V11.9993C13.6442 12.3673 13.3455 12.666 12.9775 12.666H4.97754C4.60954 12.666 4.31087 12.3673 4.31087 11.9993V5.33268Z",fill:"#8C8C8C"})),e.createElement(g,{size:"p3",color:H.colors.gray600},B(r,"dd/MM/yyyy")),e.createElement("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"edit-button",onClick:a},e.createElement("path",{d:"M12.7721 1.33398C12.2911 1.33398 11.8102 1.51773 11.443 1.88607L10.6643 2.66732L13.3224 5.33398L14.1011 4.55273C14.8348 3.81673 14.8348 2.62273 14.1011 1.88607C13.734 1.51773 13.253 1.33398 12.7721 1.33398ZM9.66748 3.66732L2.02539 11.334V14.0007H4.68351L12.3256 6.33398L9.66748 3.66732Z",fill:"#8C8C8C"}))),e.createElement("div",{className:"record"},e.createElement("div",{className:"record-item"},e.createElement("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{d:"M8.44401 9.86602C8.44401 9.57146 8.68279 9.33268 8.97734 9.33268C9.2719 9.33268 9.51068 9.57146 9.51068 9.86602V11.466C9.51068 11.7606 9.2719 11.9993 8.97734 11.9993C8.68279 11.9993 8.44401 11.7606 8.44401 11.466V9.86602Z",fill:"#8C8C8C"}),e.createElement("path",{d:"M8.17595 3.05319C7.96767 3.26147 7.96767 3.59916 8.17595 3.80744L8.83592 4.46741C9.0442 4.67569 9.38189 4.67569 9.59017 4.46741C9.79844 4.25913 9.79844 3.92144 9.59017 3.71316L8.9302 3.05319C8.72192 2.84491 8.38423 2.84492 8.17595 3.05319Z",fill:"#8C8C8C"}),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.2941 3.66435C12.1261 1.98071 10.7053 0.666016 8.97738 0.666016C7.2495 0.666016 5.82868 1.9807 5.66067 3.66434L3.67054 3.86336C2.92499 3.93791 2.38724 4.61197 2.48017 5.35545L3.498 13.4981C3.5814 14.1653 4.1486 14.666 4.82104 14.666H13.1336C13.806 14.666 14.3732 14.1653 14.4567 13.4981L15.4745 5.35545C15.5674 4.61197 15.0297 3.93791 14.2841 3.86336L12.2941 3.66435ZM12.1607 4.991C11.7386 6.34768 10.473 7.33268 8.97738 7.33268C7.48176 7.33268 6.2162 6.34767 5.79403 4.99099L3.80321 5.19007L4.82104 13.3327L13.1336 13.3327L14.1514 5.19007L12.1607 4.991ZM10.9774 3.99935C10.9774 5.10392 10.0819 5.99935 8.97738 5.99935C7.87281 5.99935 6.97738 5.10392 6.97738 3.99935C6.97738 2.89478 7.87281 1.99935 8.97738 1.99935C10.0819 1.99935 10.9774 2.89478 10.9774 3.99935Z",fill:"#8C8C8C"})),e.createElement(g,{size:"s3",color:H.colors.gray800,type:"semiBold"},Ze(o,"kg"))),e.createElement("div",{className:"record-item"},e.createElement("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("g",{clipPath:"url(#clip0_855_82991)"},e.createElement("path",{d:"M12.6055 13.9993L12.6055 1.99935C12.6055 1.26602 12.0055 0.666016 11.2721 0.666016L5.9388 0.666015C5.20547 0.666015 4.60547 1.26602 4.60547 1.99935L4.60547 13.9993C4.60547 14.7327 5.20547 15.3327 5.9388 15.3327L11.2721 15.3327C12.0055 15.3327 12.6055 14.7327 12.6055 13.9993ZM5.9388 13.9993L5.9388 1.99935L11.2721 1.99935L11.2721 3.33268L8.60547 3.33268L8.60547 4.66602L11.2721 4.66602L11.2721 5.99935L8.60547 5.99935L8.60547 7.33268L11.2721 7.33268L11.2721 8.66602L8.60547 8.66601L8.60547 9.99935L11.2721 9.99935L11.2721 11.3327L8.60547 11.3327L8.60547 12.666L11.2721 12.666L11.2721 13.9993L5.9388 13.9993Z",fill:"#8C8C8C"})),e.createElement("defs",null,e.createElement("clipPath",{id:"clip0_855_82991"},e.createElement("rect",{width:"16",height:"16",fill:"white",transform:"translate(16.6055) rotate(90)"})))),e.createElement(g,{size:"s3",color:H.colors.gray800,type:"semiBold"},Ze(i,"cm"))),e.createElement("div",{className:"record-item"},e.createElement("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("g",{clipPath:"url(#clip0_855_82994)"},e.createElement("path",{d:"M9.90072 7.83268C10.361 7.83268 10.734 7.45959 10.734 6.99935C10.734 6.53911 10.361 6.16602 9.90072 6.16602C9.44048 6.16602 9.06738 6.53911 9.06738 6.99935C9.06738 7.45959 9.44048 7.83268 9.90072 7.83268Z",fill:"#8C8C8C"}),e.createElement("path",{d:"M6.56771 7.83268C7.02795 7.83268 7.40104 7.45959 7.40104 6.99935C7.40104 6.53911 7.02795 6.16602 6.56771 6.16602C6.10747 6.16602 5.73438 6.53911 5.73438 6.99935C5.73438 7.45959 6.10747 7.83268 6.56771 7.83268Z",fill:"#8C8C8C"}),e.createElement("path",{d:"M15.528 7.56C15.3614 6.55333 14.6214 5.73333 13.6547 5.44667C13.3014 4.7 12.8014 4.04667 12.1947 3.50667C11.1414 2.56667 9.7547 2 8.2347 2C6.7147 2 5.32803 2.56667 4.2747 3.50667C3.66137 4.04667 3.16137 4.70667 2.8147 5.44667C1.84803 5.73333 1.10803 6.54667 0.941367 7.56C0.9147 7.7 0.901367 7.84667 0.901367 8C0.901367 8.15333 0.9147 8.3 0.941367 8.44C1.10803 9.44667 1.84803 10.2667 2.8147 10.5533C3.16137 11.2933 3.66137 11.9467 4.26137 12.48C5.3147 13.4267 6.70803 14 8.2347 14C9.76137 14 11.1547 13.4267 12.2147 12.48C12.8147 11.9467 13.3147 11.2867 13.6614 10.5533C14.6214 10.2667 15.3614 9.45333 15.528 8.44C15.5547 8.3 15.568 8.15333 15.568 8C15.568 7.84667 15.5547 7.7 15.528 7.56ZM12.9014 9.33333C12.8347 9.33333 12.7747 9.32 12.708 9.31333C12.5747 9.76 12.3814 10.1733 12.1347 10.5533C11.3014 11.8267 9.86803 12.6667 8.2347 12.6667C6.60137 12.6667 5.16803 11.8267 4.3347 10.5533C4.08803 10.1733 3.8947 9.76 3.76137 9.31333C3.6947 9.32 3.6347 9.33333 3.56803 9.33333C2.8347 9.33333 2.2347 8.73333 2.2347 8C2.2347 7.26667 2.8347 6.66667 3.56803 6.66667C3.6347 6.66667 3.6947 6.68 3.76137 6.68667C3.8947 6.24 4.08803 5.82667 4.3347 5.44667C5.16803 4.17333 6.60137 3.33333 8.2347 3.33333C9.86803 3.33333 11.3014 4.17333 12.1347 5.44667C12.3814 5.82667 12.5747 6.24 12.708 6.68667C12.7747 6.68 12.8347 6.66667 12.9014 6.66667C13.6347 6.66667 14.2347 7.26667 14.2347 8C14.2347 8.73333 13.6347 9.33333 12.9014 9.33333ZM8.2347 11.3333C9.5747 11.3333 10.728 10.5133 11.2347 9.33333H5.2347C5.74137 10.5133 6.8947 11.3333 8.2347 11.3333Z",fill:"#8C8C8C"})),e.createElement("defs",null,e.createElement("clipPath",{id:"clip0_855_82994"},e.createElement("rect",{width:"16",height:"16",fill:"white",transform:"translate(0.234375)"})))),e.createElement(g,{size:"s3",color:H.colors.gray800,type:"semiBold"},Ze(l,"cm")))))},Ve=L.div(oe||(oe=b(["\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"])),H.colors.white,H.colors.gray100),Te=L.div(ie||(ie=b(["\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"]))),Ae=L(x)(le||(le=b(["\n position: absolute;\n right: 0;\n z-index: 1;\n"],["\n position: absolute;\n right: 0;\n z-index: 1;\n"]))),Pe=function(n){var r=n.name,o=n.onClose,i=n.onEdit,l=n.onSwitch,a=n.onAdd,s=n.onRemove,d=c().t,p=t();return S(p,o),e.createElement("div",{ref:p},e.createElement(Ae,{width:250},e.createElement(x.Item,{onClick:i,icon:e.createElement("svg",{width:"16",height:"17",viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{d:"M12.7812 1.83301C12.2987 1.83301 11.8162 2.01676 11.4479 2.38509L10.6667 3.16634L13.3333 5.83301L14.1146 5.05176C14.8506 4.31576 14.8506 3.12176 14.1146 2.38509C13.7463 2.01676 13.2638 1.83301 12.7812 1.83301ZM9.66667 4.16634L2 11.833V14.4997H4.66667L12.3333 6.83301L9.66667 4.16634Z",fill:"#595959"}))},e.createElement(g,{size:"p2",color:H.colors.gray800},d("childCard.menu.edit",{name:r}))),e.createElement(x.Item,{onClick:l,icon:e.createElement("svg",{width:"16",height:"17",viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{d:"M8 2.5C4.9478 2.5 2.4204 4.79359 2.05078 7.7513C2.03763 7.83928 2.04222 7.929 2.06428 8.01518C2.08634 8.10136 2.12542 8.18226 2.17922 8.2531C2.23303 8.32394 2.30046 8.3833 2.37756 8.42768C2.45465 8.47206 2.53985 8.50057 2.62813 8.51152C2.71642 8.52247 2.806 8.51564 2.8916 8.49143C2.9772 8.46723 3.05709 8.42614 3.12657 8.37059C3.19605 8.31503 3.2537 8.24613 3.29615 8.16795C3.33859 8.08978 3.36496 8.00389 3.3737 7.91536C3.66141 5.61307 5.61354 3.83333 8 3.83333C9.34288 3.83333 10.5434 4.39987 11.3919 5.30339L10.0977 6.59766C9.96766 6.72766 9.96766 6.93901 10.0977 7.06901C10.1623 7.13434 10.248 7.16667 10.3333 7.16667H13.3333C13.5101 7.16667 13.6797 7.09643 13.8047 6.9714C13.9298 6.84638 14 6.67681 14 6.5V3.5C14 3.41467 13.967 3.32966 13.9023 3.26432C13.7723 3.13432 13.561 3.13432 13.431 3.26432L12.3359 4.35938C11.2437 3.21415 9.7037 2.5 8 2.5ZM13.2943 8.49089C13.1292 8.48959 12.9695 8.54959 12.8461 8.65928C12.7227 8.76896 12.6444 8.92053 12.6263 9.08464C12.3386 11.3869 10.3865 13.1667 8 13.1667C6.65713 13.1667 5.45884 12.5994 4.60938 11.6953L5.90234 10.4023C6.03234 10.2723 6.03234 10.061 5.90234 9.93099C5.83768 9.86566 5.752 9.83333 5.66667 9.83333H2.66667C2.48986 9.83333 2.32029 9.90357 2.19526 10.0286C2.07024 10.1536 2 10.3232 2 10.5V13.5C2 13.5853 2.03299 13.6703 2.09766 13.7357C2.22766 13.8657 2.43901 13.8657 2.56901 13.7357L3.66536 12.6393C4.75711 13.7836 6.29696 14.5 8 14.5C11.0522 14.5 13.5796 12.2064 13.9492 9.2487C13.9622 9.1548 13.955 9.05922 13.928 8.96833C13.9011 8.87745 13.8552 8.79334 13.7932 8.72163C13.7312 8.64991 13.6546 8.59224 13.5686 8.55245C13.4826 8.51266 13.3891 8.49167 13.2943 8.49089Z",fill:"#595959"}))},e.createElement(g,{size:"p2",color:H.colors.gray800},d("childCard.menu.switch"))),e.createElement(x.Item,{onClick:a,icon:e.createElement("svg",{width:"16",height:"17",viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.9564 8.56545C15.7745 7.46727 14.9673 6.57273 13.9127 6.26C13.5273 5.44545 12.9818 4.73273 12.32 4.14364C11.1709 3.11818 9.65818 2.5 8 2.5C6.34182 2.5 4.82909 3.11818 3.68 4.14364C3.01091 4.73273 2.46545 5.45273 2.08727 6.26C1.03273 6.57273 0.225455 7.46 0.0436364 8.56545C0.0145455 8.71818 0 8.87818 0 9.04545C0 9.21273 0.0145455 9.37273 0.0436364 9.52545C0.225455 10.6236 1.03273 11.5182 2.08727 11.8309C2.46545 12.6382 3.01091 13.3509 3.66545 13.9327C4.81455 14.9655 6.33455 15.5909 8 15.5909C9.66545 15.5909 11.1855 14.9655 12.3418 13.9327C12.9964 13.3509 13.5418 12.6309 13.92 11.8309C14.9673 11.5182 15.7745 10.6309 15.9564 9.52545C15.9855 9.37273 16 9.21273 16 9.04545C16 8.87818 15.9855 8.71818 15.9564 8.56545ZM6.18182 7.04545C5.67974 7.04545 5.27273 7.45247 5.27273 7.95455C5.27273 8.45662 5.67974 8.86364 6.18182 8.86364C6.6839 8.86364 7.09091 8.45662 7.09091 7.95455C7.09091 7.45247 6.6839 7.04545 6.18182 7.04545ZM9.81818 7.04545C9.3161 7.04545 8.90909 7.45247 8.90909 7.95455C8.90909 8.45662 9.3161 8.86364 9.81818 8.86364C10.3203 8.86364 10.7273 8.45662 10.7273 7.95455C10.7273 7.45247 10.3203 7.04545 9.81818 7.04545ZM5.01821 10.5H10.9818C11.1128 10.5 11.2073 10.6455 11.1491 10.7691C10.5455 11.9109 9.36002 12.6818 8.00002 12.6818C6.64002 12.6818 5.45457 11.9109 4.85093 10.7691C4.78548 10.6455 4.88002 10.5 5.01821 10.5ZM12.9538 10.4875C12.9991 10.4938 13.0435 10.5 13.0909 10.5C13.8909 10.5 14.5455 9.84545 14.5455 9.04545C14.5455 8.24545 13.8909 7.59091 13.0909 7.59091C13.0435 7.59091 12.9991 7.5971 12.9538 7.60343C12.9297 7.60679 12.9053 7.6102 12.88 7.61273C12.7345 7.12545 12.5236 6.67455 12.2545 6.26C11.3455 4.87091 9.78182 3.95455 8 3.95455C6.21818 3.95455 4.65455 4.87091 3.74545 6.26C3.47636 6.67455 3.26545 7.12545 3.12 7.61273C3.09473 7.6102 3.07033 7.60679 3.0462 7.60343C3.0009 7.5971 2.95654 7.59091 2.90909 7.59091C2.10909 7.59091 1.45455 8.24545 1.45455 9.04545C1.45455 9.84545 2.10909 10.5 2.90909 10.5C2.95654 10.5 3.0009 10.4938 3.0462 10.4875C3.07033 10.4841 3.09473 10.4807 3.12 10.4782C3.26545 10.9655 3.47636 11.4164 3.74545 11.8309C4.65455 13.22 6.21818 14.1364 8 14.1364C9.78182 14.1364 11.3455 13.22 12.2545 11.8309C12.5236 11.4164 12.7345 10.9655 12.88 10.4782C12.9053 10.4807 12.9297 10.4841 12.9538 10.4875Z",fill:"#595959"}),e.createElement("path",{d:"M2.5 2V1C2.5 0.725 2.275 0.5 2 0.5C1.725 0.5 1.5 0.725 1.5 1V2H0.5C0.225 2 0 2.225 0 2.5C0 2.775 0.225 3 0.5 3H1.5V4C1.5 4.275 1.725 4.5 2 4.5C2.275 4.5 2.5 4.275 2.5 4V3H3.5C3.775 3 4 2.775 4 2.5C4 2.225 3.775 2 3.5 2H2.5Z",fill:"#595959"}))},e.createElement(g,{size:"p2",color:H.colors.gray800},d("childCard.menu.add"))),e.createElement(x.Item,{onClick:s,icon:e.createElement("svg",{width:"16",height:"17",viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{d:"M6.66699 1.83301L6.00033 2.49967H3.33366C2.93366 2.49967 2.66699 2.76634 2.66699 3.16634C2.66699 3.56634 2.93366 3.83301 3.33366 3.83301H4.66699H11.3337H12.667C13.067 3.83301 13.3337 3.56634 13.3337 3.16634C13.3337 2.76634 13.067 2.49967 12.667 2.49967H10.0003L9.33366 1.83301H6.66699ZM3.33366 5.16634V13.833C3.33366 14.5663 3.93366 15.1663 4.66699 15.1663H11.3337C12.067 15.1663 12.667 14.5663 12.667 13.833V5.16634H3.33366ZM6.00033 6.49967C6.40033 6.49967 6.66699 6.76634 6.66699 7.16634V13.1663C6.66699 13.5663 6.40033 13.833 6.00033 13.833C5.60033 13.833 5.33366 13.5663 5.33366 13.1663V7.16634C5.33366 6.76634 5.60033 6.49967 6.00033 6.49967ZM10.0003 6.49967C10.4003 6.49967 10.667 6.76634 10.667 7.16634V13.1663C10.667 13.5663 10.4003 13.833 10.0003 13.833C9.60033 13.833 9.33366 13.5663 9.33366 13.1663V7.16634C9.33366 6.76634 9.60033 6.49967 10.0003 6.49967Z",fill:"#F44D2C"}))},e.createElement(g,{size:"p2",color:H.colors.red600},d("childCard.menu.remove",{name:r})))))},Ue=function(n){var t=n.name,i=n.gender,l=n.age,a=n.isLoggedIn,s=void 0!==a&&a,m=n.showMenu,u=void 0!==m&&m,f=n.onEdit,C=n.onSwitch,h=n.onAdd,x=n.onRemove,b=n.className,w=c().t,E=r(!1),v=E[0],k=E[1],M=o((function(){if(l)if(l.year<1){if(0===l.month)switch(l.week){case 0:case 1:return w("childCard.age.oneWeek");default:return w("childCard.age.week",{weeks:l.week})}if(l.month>0)return w("childCard.age.months",{month:l.month})}else{if(0===l.month)return w("childCard.age.yearNoMonth",{year:l.year});if(l.month>0)return w("childCard.age.yearMonth",{year:l.year,month:l.month})}}),[l]);return e.createElement(Ve,{className:b},e.createElement("div",{"data-testid":"gender"},i===p.Boy?e.createElement(y.Boy,{"data-testid":"boy",id:"boy"}):e.createElement(y.Girl,{"data-testid":"girl",id:"girl"})),e.createElement("div",{className:"information"},e.createElement(j,{tag:"h5",fontWeight:"bold",color:H.colors.gray800},d(t)||w("childCard.noName")),e.createElement("div",{className:"detail"},e.createElement("div",null,i===p.Boy?e.createElement(y.GenderBoy,null):e.createElement(y.GenderGirl,null),e.createElement(g,{size:"p3",color:H.colors.gray800,style:{textTransform:"capitalize"}},i)),e.createElement("div",null,e.createElement(y.Calendar,{size:16}),l&&e.createElement(g,{size:"p3",color:H.colors.gray800},M())))),u&&s&&e.createElement(Te,null,e.createElement(y.Kebab,{onClick:function(){return k((function(e){return!e}))}}),v&&e.createElement(Pe,{name:t,onClose:function(){return k(!1)},onEdit:function(){k(!1),f()},onSwitch:function(){k(!1),C()},onAdd:function(){k(!1),h()},onRemove:function(){k(!1),x()}})))},Fe=L(G)(ae||(ae=b(["\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"]))),Ke=L(h)(ce||(ce=b(["\n .hhg-modal {\n min-width: 570px;\n }\n\n .title {\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding-bottom: 16px;\n border-bottom: 1px solid ",";\n }\n\n .close-button {\n margin-left: auto;\n }\n\n .profile-container {\n padding-block: 16px;\n display: flex;\n flex-direction: column;\n gap: 8px;\n border-bottom: 1px solid ",";\n }\n\n .button-group {\n display: flex;\n justify-content: flex-end;\n gap: 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 }\n\n .button-group {\n display: flex;\n justify-content: flex-end;\n gap: 16px;\n margin-block: 16px;\n }\n"])),H.colors.neutral100,H.colors.neutral100),qe=function(n){var t,o,i=n.babyProfiles,l=n.onClose,a=n.onCreate,s=n.onAddMeasurement,d=n.onSwitchProfile,p=n.open,m=n.isMobile,u=n.isMyProfile,f=void 0!==u&&u,C=w(n,["babyProfiles","onClose","onCreate","onAddMeasurement","onSwitchProfile","open","isMobile","isMyProfile"]),y=r(null===(t=i[0])||void 0===t?void 0:t.id),h=y[0],x=y[1],b=c().t;return m?e.createElement(Fe,E({title:"Baby profiles",onClose:l,open:p,placement:"bottom"},C),(function(n){var t,r=n.internalClose;return e.createElement("div",{className:"add-profile-container"},e.createElement("div",{className:"profile-container"},null===(t=i||[])||void 0===t?void 0:t.map((function(n){return e.createElement(Ye,{key:n.id,profile:n,isActive:h===n.id,onChange:x})}))),e.createElement("div",{className:"button-group"},e.createElement(I,{onClick:function(){r(),null==a||a()},size:"lg",color:"secondary",icon:e.createElement("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{d:"M13.5 9.75H9.75V13.5C9.75 13.9125 9.4125 14.25 9 14.25C8.5875 14.25 8.25 13.9125 8.25 13.5V9.75H4.5C4.0875 9.75 3.75 9.4125 3.75 9C3.75 8.5875 4.0875 8.25 4.5 8.25H8.25V4.5C8.25 4.0875 8.5875 3.75 9 3.75C9.4125 3.75 9.75 4.0875 9.75 4.5V8.25H13.5C13.9125 8.25 14.25 8.5875 14.25 9C14.25 9.4125 13.9125 9.75 13.5 9.75Z",fill:"#2D87F3"}))},b("babyGrowth.drawer.createBaby")),e.createElement(I,{size:"lg",color:"primary",onClick:function(){r(),f?null==d||d(h):null==s||s(h)}},b(f?"babyGrowth.drawer.switchProfile":"babyGrowth.drawer.addMeasurement"))))})):e.createElement(Ke,{type:"confirm",isOpen:p,onClose:l},e.createElement("div",{className:"header"},e.createElement("div",{className:"title"},e.createElement(g,{size:"s2",type:"semiBold"},"Baby profiles"),e.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"close-button",onClick:l},e.createElement("path",{d:"M5.99007 4.99067C5.79114 4.99072 5.59674 5.0501 5.43173 5.16121C5.26672 5.27233 5.1386 5.43013 5.06374 5.61444C4.98889 5.79875 4.9707 6.0012 5.0115 6.1959C5.05231 6.39061 5.15025 6.56872 5.29281 6.70747L10.5858 12.0004L5.29281 17.2934C5.19684 17.3855 5.12021 17.4959 5.06743 17.618C5.01464 17.7402 4.98676 17.8716 4.9854 18.0046C4.98405 18.1377 5.00926 18.2697 5.05954 18.3928C5.10983 18.516 5.1842 18.6279 5.27827 18.722C5.37235 18.8161 5.48426 18.8904 5.60743 18.9407C5.73061 18.991 5.86259 19.0162 5.99563 19.0149C6.12867 19.0135 6.2601 18.9856 6.38223 18.9328C6.50436 18.8801 6.61473 18.8034 6.70687 18.7075L11.9998 13.4145L17.2928 18.7075C17.385 18.8034 17.4953 18.8801 17.6175 18.9328C17.7396 18.9856 17.871 19.0135 18.0041 19.0149C18.1371 19.0162 18.2691 18.991 18.3922 18.9407C18.5154 18.8904 18.6273 18.8161 18.7214 18.722C18.8155 18.6279 18.8899 18.516 18.9401 18.3928C18.9904 18.2697 19.0156 18.1377 19.0143 18.0047C19.0129 17.8716 18.985 17.7402 18.9323 17.618C18.8795 17.4959 18.8028 17.3855 18.7069 17.2934L13.4139 12.0004L18.7069 6.70747C18.8514 6.567 18.9501 6.38616 18.99 6.18864C19.03 5.99112 19.0093 5.78614 18.9308 5.60055C18.8523 5.41497 18.7195 5.25744 18.5499 5.14861C18.3803 5.03978 18.1817 4.98473 17.9803 4.99067C17.7205 4.99841 17.4739 5.10699 17.2928 5.2934L11.9998 10.5864L6.70687 5.2934C6.61368 5.19761 6.50224 5.12146 6.37912 5.06947C6.25601 5.01747 6.12372 4.99068 5.99007 4.99067Z",fill:"#595959"})))),e.createElement("div",{className:"profile-container"},null===(o=i||[])||void 0===o?void 0:o.map((function(n){return e.createElement(Ye,{key:n.id,profile:n,isActive:h===n.id,onChange:x})}))),e.createElement("div",{className:"button-group"},e.createElement(I,{onClick:function(){null==a||a(),l()},size:"lg",color:"secondary",icon:e.createElement("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{d:"M13.5 9.75H9.75V13.5C9.75 13.9125 9.4125 14.25 9 14.25C8.5875 14.25 8.25 13.9125 8.25 13.5V9.75H4.5C4.0875 9.75 3.75 9.4125 3.75 9C3.75 8.5875 4.0875 8.25 4.5 8.25H8.25V4.5C8.25 4.0875 8.5875 3.75 9 3.75C9.4125 3.75 9.75 4.0875 9.75 4.5V8.25H13.5C13.9125 8.25 14.25 8.5875 14.25 9C14.25 9.4125 13.9125 9.75 13.5 9.75Z",fill:"#2D87F3"}))},b("babyGrowth.drawer.createBaby")),e.createElement(I,{size:"lg",color:"primary",onClick:function(){f?null==d||d(h):null==s||s(h),l()}},b(f?"babyGrowth.drawer.switchProfile":"babyGrowth.drawer.addMeasurement"))))},Je=((se={})[p.Boy]=((de={})[u.Weight]=((pe={})[f.Weekly]=function(){return import("./WEIGHT_BOYS.percentile.weekly-a43c4530.js")},pe[f.Monthly]=function(){return import("./WEIGHT_BOYS.percentile.monthly-16ba5786.js")},pe[f.Yearly]=function(){return import("./WEIGHT_BOYS.percentile.yearly-24f8e32b.js")},pe),de[u.Height]=((me={})[f.Weekly]=function(){return import("./HEIGHT_BOYS.percentile.weekly-452b6591.js")},me[f.Monthly]=function(){return import("./HEIGHT_BOYS.percentile.monthly-2789701d.js")},me[f.Yearly]=function(){return import("./HEIGHT_BOYS.percentile.yearly-508abf50.js")},me),de[u.Head]=((ue={})[f.Weekly]=function(){return import("./HEAD CIRCUM_BOYS.percentile.weekly-92a20a1c.js")},ue[f.Monthly]=function(){return import("./HEAD CIRCUM_BOYS.percentile.monthly-2529844b.js")},ue[f.Yearly]=function(){return import("./HEAD CIRCUM_BOYS.percentile.yearly-e5fdf327.js")},ue),de[u.BMI]=((fe={})[f.Weekly]=function(){return import("./BMI_BOYS.percentile.weekly-3e59e311.js")},fe[f.Monthly]=function(){return import("./BMI_BOYS.percentile.monthly-386ccaf6.js")},fe[f.Yearly]=function(){return import("./BMI_BOYS.percentile.yearly-20bb1506.js")},fe),de),se[p.Girl]=((Ce={})[u.Weight]=((ye={})[f.Weekly]=function(){return import("./WEIGHT_GIRLS.percentile.weekly-3942d908.js")},ye[f.Monthly]=function(){return import("./WEIGHT_GIRLS.percentile.monthly-9b7eb057.js")},ye[f.Yearly]=function(){return import("./WEIGHT_GIRLS.percentile.yearly-8e36163c.js")},ye),Ce[u.Height]=((he={})[f.Weekly]=function(){return import("./HEIGHT_GIRLS.percentile.weekly-575d53c8.js")},he[f.Monthly]=function(){return import("./HEIGHT_GIRLS.percentile.monthly-ebbd598a.js")},he[f.Yearly]=function(){return import("./HEIGHT_GIRLS.percentile.yearly-9a4039cb.js")},he),Ce[u.Head]=((ge={})[f.Weekly]=function(){return import("./HEAD CIRCUM_GIRLS.percentile.weekly-0a80b339.js")},ge[f.Monthly]=function(){return import("./HEAD CIRCUM_GIRLS.percentile.monthly-b01f4080.js")},ge[f.Yearly]=function(){return import("./HEAD CIRCUM_GIRLS.percentile.yearly-32e11349.js")},ge),Ce[u.BMI]=((xe={})[f.Weekly]=function(){return import("./BMI_GIRLS.percentile.weekly-e48d680c.js")},xe[f.Monthly]=function(){return import("./BMI_GIRLS.percentile.monthly-366f178b.js")},xe[f.Yearly]=function(){return import("./BMI_GIRLS.percentile.yearly-28fa4d04.js")},xe),Ce),se),Qe=((be={})[p.Boy]=((we={})[u.Weight]=((Ee={})[f.Weekly]=function(){return import("./WEIGHT_BOYS.zscore.weekly-7419ed62.js")},Ee[f.Monthly]=function(){return import("./WEIGHT_BOYS.zscore.monthly-fa1aeb66.js")},Ee[f.Yearly]=function(){return import("./WEIGHT_BOYS.zscore.yearly-935df0a9.js")},Ee),we[u.Height]=((ve={})[f.Weekly]=function(){return import("./HEIGHT_BOYS.zscore.weekly-935edd5c.js")},ve[f.Monthly]=function(){return import("./HEIGHT_BOYS.zscore.monthly-5c608c4e.js")},ve[f.Yearly]=function(){return import("./HEIGHT_BOYS.zscore.yearly-ba31a8e6.js")},ve),we[u.Head]=((ke={})[f.Weekly]=function(){return import("./HEAD CIRCUM_BOYS.zscore.weekly-58c98bc3.js")},ke[f.Monthly]=function(){return import("./HEAD CIRCUM_BOYS.zscore.monthly-49eff093.js")},ke[f.Yearly]=function(){return import("./HEAD CIRCUM_BOYS.zscore.yearly-dbd60e9f.js")},ke),we[u.BMI]=((Me={})[f.Weekly]=function(){return import("./BMI_BOYS.zscore.weekly-71fe0115.js")},Me[f.Monthly]=function(){return import("./BMI_BOYS.zscore.monthly-8ff383f8.js")},Me[f.Yearly]=function(){return import("./BMI_BOYS.zscore.yearly-ad6b15e1.js")},Me),we),be[p.Girl]=((Le={})[u.Weight]=((He={})[f.Weekly]=function(){return import("./WEIGHT_GIRLS.zscore.weekly-c824c3a7.js")},He[f.Monthly]=function(){return import("./WEIGHT_GIRLS.zscore.monthly-471c3c4c.js")},He[f.Yearly]=function(){return import("./WEIGHT_GIRLS.zscore.yearly-f85059c4.js")},He),Le[u.Height]=((Ie={})[f.Weekly]=function(){return import("./HEIGHT_GIRLS.zscore.weekly-7292924a.js")},Ie[f.Monthly]=function(){return import("./HEIGHT_GIRLS.zscore.monthly-e1da2967.js")},Ie[f.Yearly]=function(){return import("./HEIGHT_GIRLS.zscore.yearly-9cf08782.js")},Ie),Le[u.Head]=((je={})[f.Weekly]=function(){return import("./HEAD CIRCUM_GIRLS.zscore.weekly-81f96658.js")},je[f.Monthly]=function(){return import("./HEAD CIRCUM_GIRLS.zscore.monthly-b6c39653.js")},je[f.Yearly]=function(){return import("./HEAD CIRCUM_GIRLS.zscore.yearly-a441f775.js")},je),Le[u.BMI]=((Be={})[f.Weekly]=function(){return import("./BMI_GIRLS.zscore.weekly-82f7aa14.js")},Be[f.Monthly]=function(){return import("./BMI_GIRLS.zscore.monthly-ebd8cd71.js")},Be[f.Yearly]=function(){return import("./BMI_GIRLS.zscore.yearly-6fcf910c.js")},Be),Le),be),Xe=function(e,n,t,r,o){var i=e.slice(n-1,t),l=[i[0][r],i[0][r]],a=l[0],c=l[1];return i.forEach((function(e){e[r]>c&&(c=e[r]),e[r]<a&&(a=e[r])})),[(0|a)-o,(0|c)+o]},$e=function(e,n,t,r){return r===m.Indonesia?Qe[e][n][t]():Je[e][n][t]()},en=function(e,n){var t=O(n,Math.ceil(n.length/2)),r=t[0],o=t[1],i=r.map((function(e){return e.name})),l=o.map((function(e){return e.name}));return i.includes(e)?r:l.includes(e)?o:n},nn=function(e,n){return v(v([],e,!0),n.map((function(e){return{name:e.name,history:e.value}})),!0).sort((function(e,n){return e.name-n.name}))},tn=function(e){var n=[],t=function(t){e[t].forEach((function(e,r){var o;n[r]?n[r][t]=e:n[r]=((o={name:r})[t]=e,o)}))};for(var r in e)t(r);return n},rn=function(e){return Array.from(Array(e.length).keys())},on=L.div(Se||(Se=b(["\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"]))),ln=[{name:"-3SD",label:"-3",color:H.colors.red600},{name:"-2SD",label:"-2",color:H.colors.yellow600},{name:"0Median",label:"0",color:H.colors.green600},{name:"2SD",label:"2",color:H.colors.yellow600},{name:"3SD",label:"3",color:H.colors.red600},{name:"history",color:H.colors.primaryBase}],an=[{name:"3rd",color:H.colors.red600},{name:"15th",color:H.colors.yellow600},{name:"50th",color:H.colors.green600},{name:"85th",color:H.colors.yellow600},{name:"97th",color:H.colors.red600},{name:"history",color:H.colors.primaryBase}],cn=i((function(n,t){return e.createElement("circle",E({},n,{ref:t}),e.createElement("animate",{attributeName:"r",values:"4;8;4",dur:"2s",begin:"0s",repeatCount:"indefinite"}))})),sn=function(n){var t=n.x,r=n.y,o=n.last,i=n.index,l=n.name;return o===i?e.createElement("text",{x:t,y:r,dx:16,fill:H.colors.gray500,fontSize:12,textAnchor:"middle"},l):null},dn=function(o){var i=o.gender,a=o.type,s=o.duration,d=o.xLabel,p=o.x,f=o.y,C=o.toolTipLabel,y=void 0===C?[]:C,h=o.isDivide,x=void 0===h||h,b=o.onIsPrevious,w=o.locale,v=o.riskLevel,L=o.withLine,I=void 0!==L&&L,j=o.lineData,B=void 0===j?[]:j,G=r([]),O=G[0],V=G[1],T=t([]),A=c().t;l((function(){k(void 0,void 0,void 0,(function(){var e,n,t;return M(this,(function(r){switch(r.label){case 0:return[4,$e(i,a,s,w)];case 1:if(e=r.sent().default,n=tn(e),Array.isArray(n)&&0===n.length)return null==b||b(),[2];t=n.map((function(e,n){return E(E({},e),{name:n})}));try{t=x?en(p||0,n):n}catch(e){}return T.current=rn(t),V(t),[2]}}))}))}),[i,a,s,w,b]);var P=r(!1),U=P[0],F=P[1],K=n((function(){return I&&Array.isArray(O)&&O.length>0?nn(O,B):O}),[I,B,O]),q=t(null);S(q,(function(){return F(!1)}));return e.createElement(on,null,e.createElement("div",{className:"custom-chart-label"},e.createElement(g,{size:"n1",color:H.colors.gray500},function(){switch(a){case u.Weight:return A("babyGrowth.weight");case u.Height:return A("babyGrowth.height");case u.Head:return A("babyGrowth.headCircumference");case u.BMI:return"BMI";default:return""}}()),e.createElement(g,{size:"n1",color:H.colors.gray500},w===m.Indonesia?"Z-Score":A("babyGrowth.percentiles"))),Array.isArray(K)&&K.length>0&&e.createElement(z,{height:388,className:"chart"},e.createElement(_,{data:K,margin:{top:16,right:28,bottom:8,left:0}},e.createElement(R,{stroke:H.colors.blue200}),e.createElement(D,{trigger:"click",content:e.createElement(e.Fragment,null,U&&void 0!==p&&void 0!==f&&e.createElement(De,{riskLevel:v,tooltips:y,locale:w}))}),e.createElement(W,{type:"number",scale:"linear",ticks:T.current,dataKey:"name",tickLine:!1,tickMargin:12,tick:{fontFamily:"Inter",fontWeight:400,fontSize:12,color:H.colors.gray800},domain:["dataMin","dataMax"],interval:"preserveStartEnd",tickCount:1,tickFormatter:function(e){return String(Math.round(100*(e+Number.EPSILON))/100)},allowDecimals:!0}),e.createElement(Y,{domain:[function(e){return Math.min(e,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:H.colors.gray800}}),(w===m.Indonesia?ln:an).map((function(n){return e.createElement(e.Fragment,null,"history"===n.name?e.createElement(N,{key:"history",connectNulls:!0,type:"linear",dataKey:"history",stroke:n.color,dot:{stroke:n.color,fill:n.color,strokeWidth:1,r:4,strokeDasharray:""},activeDot:!0,color:n.color}):e.createElement(N,{key:n.name,type:"linear",dataKey:n.name,stroke:n.color,dot:!1,activeDot:!1,connectNulls:!0,label:e.createElement(sn,{last:(null==K?void 0:K.length)?K.length-1:0,name:(null==n?void 0:n.label)||n.name}),tooltipType:"none"}))})),void 0!==p&&void 0!==f&&e.createElement(Z,{onClick:function(){return F(!0)},x:0===p?1:p,y:f,r:4,shape:e.createElement(cn,{ref:q,r:4}),fill:H.colors.primaryBase,stroke:H.colors.primaryBase}))),e.createElement("div",{className:"custom-chart-label"},e.createElement("i",null),e.createElement(g,{size:"n1",color:H.colors.gray500},d)))};export{dn as BabyGrowthChart,Je as BabyGrowthChartPercentile,Qe as BabyGrowthChartZScore,qe as BabyGrowthChooseProfileDrawer,J as BabyGrowthGender,$ as BabyGrowthLegend,Ye as BabyGrowthProfileRadio,Oe as BabyGrowthRecord,Ge as BabyGrowthSwitch,F as BabyGrowthSwitchChart,De as BabyGrowthTooltip,Ue as ChildCard,an as LABELS_PERCENTILE,ln as LABELS_Z_SCORE,en as divideChartData,$e as generateGrowthChart,rn as generateXAxisTicks,Xe as getAxisYDomain,nn as refineDataWithLine,tn as transformDataToChart};
|
|
1
|
+
import e,{useMemo as n,useRef as t,useState as r,useCallback as o,forwardRef as i,useEffect as l}from"react";import{M as a,u as c,h as s,l as d}from"./useTranslations-e61cf3ed.js";import{G as p,L as m,B as u,a as f}from"./lazyLoad-d80d3fd1.js";import{R as C,I as y,M as h}from"./index-f32c8c70.js";import{T as g,M as x}from"./index.styled-df180c76.js";import{e as b,d as w,b as E,c as v,_ as k,a as M}from"./tslib.es6-6ae0d506.js";import L from"styled-components";import{t as H}from"./theme-82709ce4.js";import{B as I,H as j}from"./index-9ee79492.js";import{format as B}from"date-fns";import"react-range";import"react-dom";import{u as S}from"./useOutsideClick-6004483a.js";import{D as G}from"./index.styled-ecba7a5d.js";import{ResponsiveContainer as z,LineChart as _,CartesianGrid as R,Tooltip as D,XAxis as W,YAxis as Y,Line as N,ReferenceDot as Z}from"recharts";import"lodash/debounce";import{chunk as O}from"lodash";import"./translationsContext-65bea19b.js";import"string-format";import"vanilla-lazyload";import"./useScrollbarSize-99db33e1.js";var V,T,A,P,U,F,K=L.div(V||(V=b(["\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"])),a.mbUp),q=L(C)(T||(T=b(["\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"]))),J=function(n){var t=n.value,r=n.onChange,o=c().t;return e.createElement(K,null,e.createElement(g,{size:"label2",type:"bold",style:{marginBottom:"0.5rem"}},o("babyVaccineTool.selectGender")),e.createElement(q,{options:[{value:p.Girl,label:o("gender.female"),content:e.createElement(y.GenderChooseGirl,null)},{value:p.Boy,label:o("gender.male"),content:e.createElement(y.GenderChooseBoy,null)}],value:t,onChange:r,className:"gender-selector"}))},Q=L.div(A||(A=b(["\n display: flex;\n justify-content: center;\n gap: 16px;\n"],["\n display: flex;\n justify-content: center;\n gap: 16px;\n"]))),X=L.div(P||(P=b(["\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"]))),$=function(n){var t=n.legends,r=n.locale;return e.createElement(Q,null,t.map((function(n,t){return e.createElement(X,{key:t},e.createElement("span",{className:"dot",style:{backgroundColor:n.color}}),e.createElement(g,{size:"n1",color:H.colors.gray800},r===m.Indonesia?n["z-score"]:n.text))})))},ee=L.div(U||(U=b(["\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"])),H.colors.neutral200);!function(e){e[e.WHO=0]="WHO",e[e.CDC=1]="CDC"}(F||(F={}));var ne,te,re,oe,ie,le,ae,ce,se,de,pe,me,ue,fe,Ce,ye,he,ge,xe,be,we,Ee,ve,ke,Me,Le,He,Ie,je,Be,Se,Ge=function(n){var t=n.switchType,r=n.onTypeChange;return e.createElement(ee,null,e.createElement(I,{className:"switch",size:"sm",color:t===F.WHO?"primary":"ghost",onClick:function(){return r(F.WHO)}},"WHO"),e.createElement(I,{className:"switch",size:"sm",isDisabled:!0,color:t===F.CDC?"primary":"ghost",onClick:function(){return r(F.CDC)}},"CDC"))},ze=L.div(ne||(ne=b(["\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"])),H.colors.yellow600),_e=[{name:["3rd","-3SD","97th","3SD"],color:H.colors.red600},{name:["15rd","-2SD","85th","2SD"],color:H.colors.yellow600},{name:["50th","0Median"],color:H.colors.green600}],Re={"3rd":"-3SD","15th":"-2SD","50th":"Median","85th":"2SD","97th":"3SD"},De=function(t){var r=t.riskLevel,o=t.tooltips,i=t.locale,l=n((function(){var e;return null===(e=_e.find((function(e){return e.name.includes(r||"")})))||void 0===e?void 0:e.color}),[r]),a=n((function(){return i===m.Indonesia?r?Re[r]:"":r}),[i,r]);return e.createElement(ze,null,e.createElement("div",{className:"risk",style:{backgroundColor:l}},e.createElement(g,{size:"s3",color:H.colors.white,type:"semiBold"},a)),e.createElement("div",{className:"tooltip"},o.map((function(n,t){return e.createElement(g,{key:t,size:"n1",color:H.colors.gray600},n)}))))},We=L.div(te||(te=b(["\n background: #ffffff;\n border: 1px solid ",";\n border-radius: 6px;\n padding: 16px 20px;\n display: flex;\n justify-content: space-between;\n align-items: center;\n .baby {\n display: flex;\n align-items: center;\n gap: 8px;\n }\n .radio {\n cursor: pointer;\n position: relative;\n width: 22px;\n height: 22px;\n background: #ffffff;\n border: 2px solid ",";\n border-radius: 50%;\n transition: all "," ease-in-out;\n &.active {\n border-color: ",";\n &::before {\n content: '';\n position: absolute;\n inset: 0;\n width: 100%;\n height: 100%;\n background-color: ",";\n background-clip: content-box;\n padding: 5px;\n border-radius: 50%;\n animation: "," "," ease-in-out forwards;\n }\n }\n }\n"],["\n background: #ffffff;\n border: 1px solid ",";\n border-radius: 6px;\n padding: 16px 20px;\n display: flex;\n justify-content: space-between;\n align-items: center;\n .baby {\n display: flex;\n align-items: center;\n gap: 8px;\n }\n .radio {\n cursor: pointer;\n position: relative;\n width: 22px;\n height: 22px;\n background: #ffffff;\n border: 2px solid ",";\n border-radius: 50%;\n transition: all "," ease-in-out;\n &.active {\n border-color: ",";\n &::before {\n content: '';\n position: absolute;\n inset: 0;\n width: 100%;\n height: 100%;\n background-color: ",";\n background-clip: content-box;\n padding: 5px;\n border-radius: 50%;\n animation: "," "," ease-in-out forwards;\n }\n }\n }\n"])),H.colors.neutral100,H.colors.gray600,"300ms",H.colors.primaryBase,H.colors.primaryBase,s,"300ms"),Ye=function(n){var t=n.profile,r=n.onChange,o=n.isActive;return e.createElement(We,{onClick:function(){return r(t.id)}},e.createElement("div",{className:"baby"},"male"===t.gender?e.createElement(y.Boy,{size:24}):e.createElement(y.Girl,{size:24}),e.createElement(g,{size:"p2",color:H.colors.gray800},t.name)),e.createElement("div",{className:o?"radio active":"radio"}))},Ne=L.div(re||(re=b(["\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: flex;\n align-items: center;\n justify-content: space-between;\n padding-right: 14px;\n }\n .record-item {\n display: flex;\n align-items: center;\n gap: 8px;\n }\n"],["\n 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: flex;\n align-items: center;\n justify-content: space-between;\n padding-right: 14px;\n }\n .record-item {\n display: flex;\n align-items: center;\n gap: 8px;\n }\n"])),H.colors.gray100),Ze=function(e,n){return e?e+" "+(n||""):"--"},Oe=function(n){var t=n.measurementDate,r=void 0===t?new Date:t,o=n.weight,i=n.height,l=n.head,a=n.onEdit;return e.createElement(Ne,{onClick:a},e.createElement("div",{className:"time"},e.createElement("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{d:"M5.64421 0.666016C5.27621 0.666016 4.97754 0.964682 4.97754 1.33268V1.99935H4.31087C3.57754 1.99935 2.97754 2.59935 2.97754 3.33268V12.666C2.97754 13.3993 3.57754 13.9993 4.31087 13.9993H13.6442C14.3775 13.9993 14.9775 13.3993 14.9775 12.666V3.33268C14.9775 2.59935 14.3775 1.99935 13.6442 1.99935H12.9775V1.33268C12.9775 0.964682 12.6789 0.666016 12.3109 0.666016C11.9429 0.666016 11.6442 0.964682 11.6442 1.33268V1.99935H6.31087V1.33268C6.31087 0.964682 6.01221 0.666016 5.64421 0.666016ZM4.31087 5.33268H13.6442V11.9993C13.6442 12.3673 13.3455 12.666 12.9775 12.666H4.97754C4.60954 12.666 4.31087 12.3673 4.31087 11.9993V5.33268Z",fill:"#8C8C8C"})),e.createElement(g,{size:"p3",color:H.colors.gray600},B(r,"dd/MM/yyyy")),e.createElement("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"edit-button"},e.createElement("path",{d:"M12.7721 1.33398C12.2911 1.33398 11.8102 1.51773 11.443 1.88607L10.6643 2.66732L13.3224 5.33398L14.1011 4.55273C14.8348 3.81673 14.8348 2.62273 14.1011 1.88607C13.734 1.51773 13.253 1.33398 12.7721 1.33398ZM9.66748 3.66732L2.02539 11.334V14.0007H4.68351L12.3256 6.33398L9.66748 3.66732Z",fill:"#8C8C8C"}))),e.createElement("div",{className:"record"},e.createElement("div",{className:"record-item"},e.createElement("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{d:"M8.44401 9.86602C8.44401 9.57146 8.68279 9.33268 8.97734 9.33268C9.2719 9.33268 9.51068 9.57146 9.51068 9.86602V11.466C9.51068 11.7606 9.2719 11.9993 8.97734 11.9993C8.68279 11.9993 8.44401 11.7606 8.44401 11.466V9.86602Z",fill:"#8C8C8C"}),e.createElement("path",{d:"M8.17595 3.05319C7.96767 3.26147 7.96767 3.59916 8.17595 3.80744L8.83592 4.46741C9.0442 4.67569 9.38189 4.67569 9.59017 4.46741C9.79844 4.25913 9.79844 3.92144 9.59017 3.71316L8.9302 3.05319C8.72192 2.84491 8.38423 2.84492 8.17595 3.05319Z",fill:"#8C8C8C"}),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.2941 3.66435C12.1261 1.98071 10.7053 0.666016 8.97738 0.666016C7.2495 0.666016 5.82868 1.9807 5.66067 3.66434L3.67054 3.86336C2.92499 3.93791 2.38724 4.61197 2.48017 5.35545L3.498 13.4981C3.5814 14.1653 4.1486 14.666 4.82104 14.666H13.1336C13.806 14.666 14.3732 14.1653 14.4567 13.4981L15.4745 5.35545C15.5674 4.61197 15.0297 3.93791 14.2841 3.86336L12.2941 3.66435ZM12.1607 4.991C11.7386 6.34768 10.473 7.33268 8.97738 7.33268C7.48176 7.33268 6.2162 6.34767 5.79403 4.99099L3.80321 5.19007L4.82104 13.3327L13.1336 13.3327L14.1514 5.19007L12.1607 4.991ZM10.9774 3.99935C10.9774 5.10392 10.0819 5.99935 8.97738 5.99935C7.87281 5.99935 6.97738 5.10392 6.97738 3.99935C6.97738 2.89478 7.87281 1.99935 8.97738 1.99935C10.0819 1.99935 10.9774 2.89478 10.9774 3.99935Z",fill:"#8C8C8C"})),e.createElement(g,{size:"s3",color:H.colors.gray800,type:"semiBold"},Ze(o,"kg"))),e.createElement("div",{className:"record-item"},e.createElement("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("g",{clipPath:"url(#clip0_855_82991)"},e.createElement("path",{d:"M12.6055 13.9993L12.6055 1.99935C12.6055 1.26602 12.0055 0.666016 11.2721 0.666016L5.9388 0.666015C5.20547 0.666015 4.60547 1.26602 4.60547 1.99935L4.60547 13.9993C4.60547 14.7327 5.20547 15.3327 5.9388 15.3327L11.2721 15.3327C12.0055 15.3327 12.6055 14.7327 12.6055 13.9993ZM5.9388 13.9993L5.9388 1.99935L11.2721 1.99935L11.2721 3.33268L8.60547 3.33268L8.60547 4.66602L11.2721 4.66602L11.2721 5.99935L8.60547 5.99935L8.60547 7.33268L11.2721 7.33268L11.2721 8.66602L8.60547 8.66601L8.60547 9.99935L11.2721 9.99935L11.2721 11.3327L8.60547 11.3327L8.60547 12.666L11.2721 12.666L11.2721 13.9993L5.9388 13.9993Z",fill:"#8C8C8C"})),e.createElement("defs",null,e.createElement("clipPath",{id:"clip0_855_82991"},e.createElement("rect",{width:"16",height:"16",fill:"white",transform:"translate(16.6055) rotate(90)"})))),e.createElement(g,{size:"s3",color:H.colors.gray800,type:"semiBold"},Ze(i,"cm"))),e.createElement("div",{className:"record-item"},e.createElement("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("g",{clipPath:"url(#clip0_855_82994)"},e.createElement("path",{d:"M9.90072 7.83268C10.361 7.83268 10.734 7.45959 10.734 6.99935C10.734 6.53911 10.361 6.16602 9.90072 6.16602C9.44048 6.16602 9.06738 6.53911 9.06738 6.99935C9.06738 7.45959 9.44048 7.83268 9.90072 7.83268Z",fill:"#8C8C8C"}),e.createElement("path",{d:"M6.56771 7.83268C7.02795 7.83268 7.40104 7.45959 7.40104 6.99935C7.40104 6.53911 7.02795 6.16602 6.56771 6.16602C6.10747 6.16602 5.73438 6.53911 5.73438 6.99935C5.73438 7.45959 6.10747 7.83268 6.56771 7.83268Z",fill:"#8C8C8C"}),e.createElement("path",{d:"M15.528 7.56C15.3614 6.55333 14.6214 5.73333 13.6547 5.44667C13.3014 4.7 12.8014 4.04667 12.1947 3.50667C11.1414 2.56667 9.7547 2 8.2347 2C6.7147 2 5.32803 2.56667 4.2747 3.50667C3.66137 4.04667 3.16137 4.70667 2.8147 5.44667C1.84803 5.73333 1.10803 6.54667 0.941367 7.56C0.9147 7.7 0.901367 7.84667 0.901367 8C0.901367 8.15333 0.9147 8.3 0.941367 8.44C1.10803 9.44667 1.84803 10.2667 2.8147 10.5533C3.16137 11.2933 3.66137 11.9467 4.26137 12.48C5.3147 13.4267 6.70803 14 8.2347 14C9.76137 14 11.1547 13.4267 12.2147 12.48C12.8147 11.9467 13.3147 11.2867 13.6614 10.5533C14.6214 10.2667 15.3614 9.45333 15.528 8.44C15.5547 8.3 15.568 8.15333 15.568 8C15.568 7.84667 15.5547 7.7 15.528 7.56ZM12.9014 9.33333C12.8347 9.33333 12.7747 9.32 12.708 9.31333C12.5747 9.76 12.3814 10.1733 12.1347 10.5533C11.3014 11.8267 9.86803 12.6667 8.2347 12.6667C6.60137 12.6667 5.16803 11.8267 4.3347 10.5533C4.08803 10.1733 3.8947 9.76 3.76137 9.31333C3.6947 9.32 3.6347 9.33333 3.56803 9.33333C2.8347 9.33333 2.2347 8.73333 2.2347 8C2.2347 7.26667 2.8347 6.66667 3.56803 6.66667C3.6347 6.66667 3.6947 6.68 3.76137 6.68667C3.8947 6.24 4.08803 5.82667 4.3347 5.44667C5.16803 4.17333 6.60137 3.33333 8.2347 3.33333C9.86803 3.33333 11.3014 4.17333 12.1347 5.44667C12.3814 5.82667 12.5747 6.24 12.708 6.68667C12.7747 6.68 12.8347 6.66667 12.9014 6.66667C13.6347 6.66667 14.2347 7.26667 14.2347 8C14.2347 8.73333 13.6347 9.33333 12.9014 9.33333ZM8.2347 11.3333C9.5747 11.3333 10.728 10.5133 11.2347 9.33333H5.2347C5.74137 10.5133 6.8947 11.3333 8.2347 11.3333Z",fill:"#8C8C8C"})),e.createElement("defs",null,e.createElement("clipPath",{id:"clip0_855_82994"},e.createElement("rect",{width:"16",height:"16",fill:"white",transform:"translate(0.234375)"})))),e.createElement(g,{size:"s3",color:H.colors.gray800,type:"semiBold"},Ze(l,"cm")))))},Ve=L.div(oe||(oe=b(["\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"])),H.colors.white,H.colors.gray100),Te=L.div(ie||(ie=b(["\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"]))),Ae=L(x)(le||(le=b(["\n position: absolute;\n right: 0;\n z-index: 1;\n"],["\n position: absolute;\n right: 0;\n z-index: 1;\n"]))),Pe=function(n){var r=n.name,o=n.onClose,i=n.onEdit,l=n.onSwitch,a=n.onAdd,s=n.onRemove,d=c().t,p=t();return S(p,o),e.createElement("div",{ref:p},e.createElement(Ae,{width:250},e.createElement(x.Item,{onClick:i,icon:e.createElement("svg",{width:"16",height:"17",viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{d:"M12.7812 1.83301C12.2987 1.83301 11.8162 2.01676 11.4479 2.38509L10.6667 3.16634L13.3333 5.83301L14.1146 5.05176C14.8506 4.31576 14.8506 3.12176 14.1146 2.38509C13.7463 2.01676 13.2638 1.83301 12.7812 1.83301ZM9.66667 4.16634L2 11.833V14.4997H4.66667L12.3333 6.83301L9.66667 4.16634Z",fill:"#595959"}))},e.createElement(g,{size:"p2",color:H.colors.gray800},d("childCard.menu.edit",{name:r}))),e.createElement(x.Item,{onClick:l,icon:e.createElement("svg",{width:"16",height:"17",viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{d:"M8 2.5C4.9478 2.5 2.4204 4.79359 2.05078 7.7513C2.03763 7.83928 2.04222 7.929 2.06428 8.01518C2.08634 8.10136 2.12542 8.18226 2.17922 8.2531C2.23303 8.32394 2.30046 8.3833 2.37756 8.42768C2.45465 8.47206 2.53985 8.50057 2.62813 8.51152C2.71642 8.52247 2.806 8.51564 2.8916 8.49143C2.9772 8.46723 3.05709 8.42614 3.12657 8.37059C3.19605 8.31503 3.2537 8.24613 3.29615 8.16795C3.33859 8.08978 3.36496 8.00389 3.3737 7.91536C3.66141 5.61307 5.61354 3.83333 8 3.83333C9.34288 3.83333 10.5434 4.39987 11.3919 5.30339L10.0977 6.59766C9.96766 6.72766 9.96766 6.93901 10.0977 7.06901C10.1623 7.13434 10.248 7.16667 10.3333 7.16667H13.3333C13.5101 7.16667 13.6797 7.09643 13.8047 6.9714C13.9298 6.84638 14 6.67681 14 6.5V3.5C14 3.41467 13.967 3.32966 13.9023 3.26432C13.7723 3.13432 13.561 3.13432 13.431 3.26432L12.3359 4.35938C11.2437 3.21415 9.7037 2.5 8 2.5ZM13.2943 8.49089C13.1292 8.48959 12.9695 8.54959 12.8461 8.65928C12.7227 8.76896 12.6444 8.92053 12.6263 9.08464C12.3386 11.3869 10.3865 13.1667 8 13.1667C6.65713 13.1667 5.45884 12.5994 4.60938 11.6953L5.90234 10.4023C6.03234 10.2723 6.03234 10.061 5.90234 9.93099C5.83768 9.86566 5.752 9.83333 5.66667 9.83333H2.66667C2.48986 9.83333 2.32029 9.90357 2.19526 10.0286C2.07024 10.1536 2 10.3232 2 10.5V13.5C2 13.5853 2.03299 13.6703 2.09766 13.7357C2.22766 13.8657 2.43901 13.8657 2.56901 13.7357L3.66536 12.6393C4.75711 13.7836 6.29696 14.5 8 14.5C11.0522 14.5 13.5796 12.2064 13.9492 9.2487C13.9622 9.1548 13.955 9.05922 13.928 8.96833C13.9011 8.87745 13.8552 8.79334 13.7932 8.72163C13.7312 8.64991 13.6546 8.59224 13.5686 8.55245C13.4826 8.51266 13.3891 8.49167 13.2943 8.49089Z",fill:"#595959"}))},e.createElement(g,{size:"p2",color:H.colors.gray800},d("childCard.menu.switch"))),e.createElement(x.Item,{onClick:a,icon:e.createElement("svg",{width:"16",height:"17",viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.9564 8.56545C15.7745 7.46727 14.9673 6.57273 13.9127 6.26C13.5273 5.44545 12.9818 4.73273 12.32 4.14364C11.1709 3.11818 9.65818 2.5 8 2.5C6.34182 2.5 4.82909 3.11818 3.68 4.14364C3.01091 4.73273 2.46545 5.45273 2.08727 6.26C1.03273 6.57273 0.225455 7.46 0.0436364 8.56545C0.0145455 8.71818 0 8.87818 0 9.04545C0 9.21273 0.0145455 9.37273 0.0436364 9.52545C0.225455 10.6236 1.03273 11.5182 2.08727 11.8309C2.46545 12.6382 3.01091 13.3509 3.66545 13.9327C4.81455 14.9655 6.33455 15.5909 8 15.5909C9.66545 15.5909 11.1855 14.9655 12.3418 13.9327C12.9964 13.3509 13.5418 12.6309 13.92 11.8309C14.9673 11.5182 15.7745 10.6309 15.9564 9.52545C15.9855 9.37273 16 9.21273 16 9.04545C16 8.87818 15.9855 8.71818 15.9564 8.56545ZM6.18182 7.04545C5.67974 7.04545 5.27273 7.45247 5.27273 7.95455C5.27273 8.45662 5.67974 8.86364 6.18182 8.86364C6.6839 8.86364 7.09091 8.45662 7.09091 7.95455C7.09091 7.45247 6.6839 7.04545 6.18182 7.04545ZM9.81818 7.04545C9.3161 7.04545 8.90909 7.45247 8.90909 7.95455C8.90909 8.45662 9.3161 8.86364 9.81818 8.86364C10.3203 8.86364 10.7273 8.45662 10.7273 7.95455C10.7273 7.45247 10.3203 7.04545 9.81818 7.04545ZM5.01821 10.5H10.9818C11.1128 10.5 11.2073 10.6455 11.1491 10.7691C10.5455 11.9109 9.36002 12.6818 8.00002 12.6818C6.64002 12.6818 5.45457 11.9109 4.85093 10.7691C4.78548 10.6455 4.88002 10.5 5.01821 10.5ZM12.9538 10.4875C12.9991 10.4938 13.0435 10.5 13.0909 10.5C13.8909 10.5 14.5455 9.84545 14.5455 9.04545C14.5455 8.24545 13.8909 7.59091 13.0909 7.59091C13.0435 7.59091 12.9991 7.5971 12.9538 7.60343C12.9297 7.60679 12.9053 7.6102 12.88 7.61273C12.7345 7.12545 12.5236 6.67455 12.2545 6.26C11.3455 4.87091 9.78182 3.95455 8 3.95455C6.21818 3.95455 4.65455 4.87091 3.74545 6.26C3.47636 6.67455 3.26545 7.12545 3.12 7.61273C3.09473 7.6102 3.07033 7.60679 3.0462 7.60343C3.0009 7.5971 2.95654 7.59091 2.90909 7.59091C2.10909 7.59091 1.45455 8.24545 1.45455 9.04545C1.45455 9.84545 2.10909 10.5 2.90909 10.5C2.95654 10.5 3.0009 10.4938 3.0462 10.4875C3.07033 10.4841 3.09473 10.4807 3.12 10.4782C3.26545 10.9655 3.47636 11.4164 3.74545 11.8309C4.65455 13.22 6.21818 14.1364 8 14.1364C9.78182 14.1364 11.3455 13.22 12.2545 11.8309C12.5236 11.4164 12.7345 10.9655 12.88 10.4782C12.9053 10.4807 12.9297 10.4841 12.9538 10.4875Z",fill:"#595959"}),e.createElement("path",{d:"M2.5 2V1C2.5 0.725 2.275 0.5 2 0.5C1.725 0.5 1.5 0.725 1.5 1V2H0.5C0.225 2 0 2.225 0 2.5C0 2.775 0.225 3 0.5 3H1.5V4C1.5 4.275 1.725 4.5 2 4.5C2.275 4.5 2.5 4.275 2.5 4V3H3.5C3.775 3 4 2.775 4 2.5C4 2.225 3.775 2 3.5 2H2.5Z",fill:"#595959"}))},e.createElement(g,{size:"p2",color:H.colors.gray800},d("childCard.menu.add"))),e.createElement(x.Item,{onClick:s,icon:e.createElement("svg",{width:"16",height:"17",viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{d:"M6.66699 1.83301L6.00033 2.49967H3.33366C2.93366 2.49967 2.66699 2.76634 2.66699 3.16634C2.66699 3.56634 2.93366 3.83301 3.33366 3.83301H4.66699H11.3337H12.667C13.067 3.83301 13.3337 3.56634 13.3337 3.16634C13.3337 2.76634 13.067 2.49967 12.667 2.49967H10.0003L9.33366 1.83301H6.66699ZM3.33366 5.16634V13.833C3.33366 14.5663 3.93366 15.1663 4.66699 15.1663H11.3337C12.067 15.1663 12.667 14.5663 12.667 13.833V5.16634H3.33366ZM6.00033 6.49967C6.40033 6.49967 6.66699 6.76634 6.66699 7.16634V13.1663C6.66699 13.5663 6.40033 13.833 6.00033 13.833C5.60033 13.833 5.33366 13.5663 5.33366 13.1663V7.16634C5.33366 6.76634 5.60033 6.49967 6.00033 6.49967ZM10.0003 6.49967C10.4003 6.49967 10.667 6.76634 10.667 7.16634V13.1663C10.667 13.5663 10.4003 13.833 10.0003 13.833C9.60033 13.833 9.33366 13.5663 9.33366 13.1663V7.16634C9.33366 6.76634 9.60033 6.49967 10.0003 6.49967Z",fill:"#F44D2C"}))},e.createElement(g,{size:"p2",color:H.colors.red600},d("childCard.menu.remove",{name:r})))))},Ue=function(n){var t=n.name,i=n.gender,l=n.age,a=n.isLoggedIn,s=void 0!==a&&a,m=n.showMenu,u=void 0!==m&&m,f=n.onEdit,C=n.onSwitch,h=n.onAdd,x=n.onRemove,b=n.className,w=c().t,E=r(!1),v=E[0],k=E[1],M=o((function(){if(l)if(l.year<1){if(0===l.month)switch(l.week){case 0:case 1:return w("childCard.age.oneWeek");default:return w("childCard.age.week",{weeks:l.week})}if(l.month>0)return w("childCard.age.months",{month:l.month})}else{if(0===l.month)return w("childCard.age.yearNoMonth",{year:l.year});if(l.month>0)return w("childCard.age.yearMonth",{year:l.year,month:l.month})}}),[l]);return e.createElement(Ve,{className:b},e.createElement("div",{"data-testid":"gender"},i===p.Boy?e.createElement(y.Boy,{"data-testid":"boy",id:"boy"}):e.createElement(y.Girl,{"data-testid":"girl",id:"girl"})),e.createElement("div",{className:"information"},e.createElement(j,{tag:"h5",fontWeight:"bold",color:H.colors.gray800},d(t)||w("childCard.noName")),e.createElement("div",{className:"detail"},e.createElement("div",null,i===p.Boy?e.createElement(y.GenderBoy,null):e.createElement(y.GenderGirl,null),e.createElement(g,{size:"p3",color:H.colors.gray800,style:{textTransform:"capitalize"}},i)),e.createElement("div",null,e.createElement(y.Calendar,{size:16}),l&&e.createElement(g,{size:"p3",color:H.colors.gray800},M())))),u&&s&&e.createElement(Te,null,e.createElement(y.Kebab,{onClick:function(){return k((function(e){return!e}))}}),v&&e.createElement(Pe,{name:t,onClose:function(){return k(!1)},onEdit:function(){k(!1),f()},onSwitch:function(){k(!1),C()},onAdd:function(){k(!1),h()},onRemove:function(){k(!1),x()}})))},Fe=L(G)(ae||(ae=b(["\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"]))),Ke=L(h)(ce||(ce=b(["\n .hhg-modal {\n min-width: 570px;\n }\n\n .title {\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding-bottom: 16px;\n border-bottom: 1px solid ",";\n }\n\n .close-button {\n margin-left: auto;\n }\n\n .profile-container {\n padding-block: 16px;\n display: flex;\n flex-direction: column;\n gap: 8px;\n border-bottom: 1px solid ",";\n }\n\n .button-group {\n display: flex;\n justify-content: flex-end;\n gap: 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 }\n\n .button-group {\n display: flex;\n justify-content: flex-end;\n gap: 16px;\n margin-block: 16px;\n }\n"])),H.colors.neutral100,H.colors.neutral100),qe=function(n){var t,o,i=n.babyProfiles,l=n.onClose,a=n.onCreate,s=n.onAddMeasurement,d=n.onSwitchProfile,p=n.open,m=n.isMobile,u=n.isMyProfile,f=void 0!==u&&u,C=w(n,["babyProfiles","onClose","onCreate","onAddMeasurement","onSwitchProfile","open","isMobile","isMyProfile"]),y=r(null===(t=i[0])||void 0===t?void 0:t.id),h=y[0],x=y[1],b=c().t;return m?e.createElement(Fe,E({title:"Baby profiles",onClose:l,open:p,placement:"bottom"},C),(function(n){var t,r=n.internalClose;return e.createElement("div",{className:"add-profile-container"},e.createElement("div",{className:"profile-container"},null===(t=i||[])||void 0===t?void 0:t.map((function(n){return e.createElement(Ye,{key:n.id,profile:n,isActive:h===n.id,onChange:x})}))),e.createElement("div",{className:"button-group"},e.createElement(I,{onClick:function(){r(),null==a||a()},size:"lg",color:"secondary",icon:e.createElement("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{d:"M13.5 9.75H9.75V13.5C9.75 13.9125 9.4125 14.25 9 14.25C8.5875 14.25 8.25 13.9125 8.25 13.5V9.75H4.5C4.0875 9.75 3.75 9.4125 3.75 9C3.75 8.5875 4.0875 8.25 4.5 8.25H8.25V4.5C8.25 4.0875 8.5875 3.75 9 3.75C9.4125 3.75 9.75 4.0875 9.75 4.5V8.25H13.5C13.9125 8.25 14.25 8.5875 14.25 9C14.25 9.4125 13.9125 9.75 13.5 9.75Z",fill:"#2D87F3"}))},b("babyGrowth.drawer.createBaby")),e.createElement(I,{size:"lg",color:"primary",onClick:function(){r(),f?null==d||d(h):null==s||s(h)}},b(f?"babyGrowth.drawer.switchProfile":"babyGrowth.drawer.addMeasurement"))))})):e.createElement(Ke,{type:"confirm",isOpen:p,onClose:l},e.createElement("div",{className:"header"},e.createElement("div",{className:"title"},e.createElement(g,{size:"s2",type:"semiBold"},"Baby profiles"),e.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"close-button",onClick:l},e.createElement("path",{d:"M5.99007 4.99067C5.79114 4.99072 5.59674 5.0501 5.43173 5.16121C5.26672 5.27233 5.1386 5.43013 5.06374 5.61444C4.98889 5.79875 4.9707 6.0012 5.0115 6.1959C5.05231 6.39061 5.15025 6.56872 5.29281 6.70747L10.5858 12.0004L5.29281 17.2934C5.19684 17.3855 5.12021 17.4959 5.06743 17.618C5.01464 17.7402 4.98676 17.8716 4.9854 18.0046C4.98405 18.1377 5.00926 18.2697 5.05954 18.3928C5.10983 18.516 5.1842 18.6279 5.27827 18.722C5.37235 18.8161 5.48426 18.8904 5.60743 18.9407C5.73061 18.991 5.86259 19.0162 5.99563 19.0149C6.12867 19.0135 6.2601 18.9856 6.38223 18.9328C6.50436 18.8801 6.61473 18.8034 6.70687 18.7075L11.9998 13.4145L17.2928 18.7075C17.385 18.8034 17.4953 18.8801 17.6175 18.9328C17.7396 18.9856 17.871 19.0135 18.0041 19.0149C18.1371 19.0162 18.2691 18.991 18.3922 18.9407C18.5154 18.8904 18.6273 18.8161 18.7214 18.722C18.8155 18.6279 18.8899 18.516 18.9401 18.3928C18.9904 18.2697 19.0156 18.1377 19.0143 18.0047C19.0129 17.8716 18.985 17.7402 18.9323 17.618C18.8795 17.4959 18.8028 17.3855 18.7069 17.2934L13.4139 12.0004L18.7069 6.70747C18.8514 6.567 18.9501 6.38616 18.99 6.18864C19.03 5.99112 19.0093 5.78614 18.9308 5.60055C18.8523 5.41497 18.7195 5.25744 18.5499 5.14861C18.3803 5.03978 18.1817 4.98473 17.9803 4.99067C17.7205 4.99841 17.4739 5.10699 17.2928 5.2934L11.9998 10.5864L6.70687 5.2934C6.61368 5.19761 6.50224 5.12146 6.37912 5.06947C6.25601 5.01747 6.12372 4.99068 5.99007 4.99067Z",fill:"#595959"})))),e.createElement("div",{className:"profile-container"},null===(o=i||[])||void 0===o?void 0:o.map((function(n){return e.createElement(Ye,{key:n.id,profile:n,isActive:h===n.id,onChange:x})}))),e.createElement("div",{className:"button-group"},e.createElement(I,{onClick:function(){null==a||a(),l()},size:"lg",color:"secondary",icon:e.createElement("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{d:"M13.5 9.75H9.75V13.5C9.75 13.9125 9.4125 14.25 9 14.25C8.5875 14.25 8.25 13.9125 8.25 13.5V9.75H4.5C4.0875 9.75 3.75 9.4125 3.75 9C3.75 8.5875 4.0875 8.25 4.5 8.25H8.25V4.5C8.25 4.0875 8.5875 3.75 9 3.75C9.4125 3.75 9.75 4.0875 9.75 4.5V8.25H13.5C13.9125 8.25 14.25 8.5875 14.25 9C14.25 9.4125 13.9125 9.75 13.5 9.75Z",fill:"#2D87F3"}))},b("babyGrowth.drawer.createBaby")),e.createElement(I,{size:"lg",color:"primary",onClick:function(){f?null==d||d(h):null==s||s(h),l()}},b(f?"babyGrowth.drawer.switchProfile":"babyGrowth.drawer.addMeasurement"))))},Je=((se={})[p.Boy]=((de={})[u.Weight]=((pe={})[f.Weekly]=function(){return import("./WEIGHT_BOYS.percentile.weekly-a43c4530.js")},pe[f.Monthly]=function(){return import("./WEIGHT_BOYS.percentile.monthly-16ba5786.js")},pe[f.Yearly]=function(){return import("./WEIGHT_BOYS.percentile.yearly-24f8e32b.js")},pe),de[u.Height]=((me={})[f.Weekly]=function(){return import("./HEIGHT_BOYS.percentile.weekly-452b6591.js")},me[f.Monthly]=function(){return import("./HEIGHT_BOYS.percentile.monthly-2789701d.js")},me[f.Yearly]=function(){return import("./HEIGHT_BOYS.percentile.yearly-508abf50.js")},me),de[u.Head]=((ue={})[f.Weekly]=function(){return import("./HEAD CIRCUM_BOYS.percentile.weekly-92a20a1c.js")},ue[f.Monthly]=function(){return import("./HEAD CIRCUM_BOYS.percentile.monthly-2529844b.js")},ue[f.Yearly]=function(){return import("./HEAD CIRCUM_BOYS.percentile.yearly-e5fdf327.js")},ue),de[u.BMI]=((fe={})[f.Weekly]=function(){return import("./BMI_BOYS.percentile.weekly-3e59e311.js")},fe[f.Monthly]=function(){return import("./BMI_BOYS.percentile.monthly-386ccaf6.js")},fe[f.Yearly]=function(){return import("./BMI_BOYS.percentile.yearly-20bb1506.js")},fe),de),se[p.Girl]=((Ce={})[u.Weight]=((ye={})[f.Weekly]=function(){return import("./WEIGHT_GIRLS.percentile.weekly-3942d908.js")},ye[f.Monthly]=function(){return import("./WEIGHT_GIRLS.percentile.monthly-9b7eb057.js")},ye[f.Yearly]=function(){return import("./WEIGHT_GIRLS.percentile.yearly-8e36163c.js")},ye),Ce[u.Height]=((he={})[f.Weekly]=function(){return import("./HEIGHT_GIRLS.percentile.weekly-575d53c8.js")},he[f.Monthly]=function(){return import("./HEIGHT_GIRLS.percentile.monthly-ebbd598a.js")},he[f.Yearly]=function(){return import("./HEIGHT_GIRLS.percentile.yearly-9a4039cb.js")},he),Ce[u.Head]=((ge={})[f.Weekly]=function(){return import("./HEAD CIRCUM_GIRLS.percentile.weekly-0a80b339.js")},ge[f.Monthly]=function(){return import("./HEAD CIRCUM_GIRLS.percentile.monthly-b01f4080.js")},ge[f.Yearly]=function(){return import("./HEAD CIRCUM_GIRLS.percentile.yearly-32e11349.js")},ge),Ce[u.BMI]=((xe={})[f.Weekly]=function(){return import("./BMI_GIRLS.percentile.weekly-e48d680c.js")},xe[f.Monthly]=function(){return import("./BMI_GIRLS.percentile.monthly-366f178b.js")},xe[f.Yearly]=function(){return import("./BMI_GIRLS.percentile.yearly-28fa4d04.js")},xe),Ce),se),Qe=((be={})[p.Boy]=((we={})[u.Weight]=((Ee={})[f.Weekly]=function(){return import("./WEIGHT_BOYS.zscore.weekly-7419ed62.js")},Ee[f.Monthly]=function(){return import("./WEIGHT_BOYS.zscore.monthly-fa1aeb66.js")},Ee[f.Yearly]=function(){return import("./WEIGHT_BOYS.zscore.yearly-935df0a9.js")},Ee),we[u.Height]=((ve={})[f.Weekly]=function(){return import("./HEIGHT_BOYS.zscore.weekly-935edd5c.js")},ve[f.Monthly]=function(){return import("./HEIGHT_BOYS.zscore.monthly-5c608c4e.js")},ve[f.Yearly]=function(){return import("./HEIGHT_BOYS.zscore.yearly-ba31a8e6.js")},ve),we[u.Head]=((ke={})[f.Weekly]=function(){return import("./HEAD CIRCUM_BOYS.zscore.weekly-58c98bc3.js")},ke[f.Monthly]=function(){return import("./HEAD CIRCUM_BOYS.zscore.monthly-49eff093.js")},ke[f.Yearly]=function(){return import("./HEAD CIRCUM_BOYS.zscore.yearly-dbd60e9f.js")},ke),we[u.BMI]=((Me={})[f.Weekly]=function(){return import("./BMI_BOYS.zscore.weekly-71fe0115.js")},Me[f.Monthly]=function(){return import("./BMI_BOYS.zscore.monthly-8ff383f8.js")},Me[f.Yearly]=function(){return import("./BMI_BOYS.zscore.yearly-ad6b15e1.js")},Me),we),be[p.Girl]=((Le={})[u.Weight]=((He={})[f.Weekly]=function(){return import("./WEIGHT_GIRLS.zscore.weekly-c824c3a7.js")},He[f.Monthly]=function(){return import("./WEIGHT_GIRLS.zscore.monthly-471c3c4c.js")},He[f.Yearly]=function(){return import("./WEIGHT_GIRLS.zscore.yearly-f85059c4.js")},He),Le[u.Height]=((Ie={})[f.Weekly]=function(){return import("./HEIGHT_GIRLS.zscore.weekly-7292924a.js")},Ie[f.Monthly]=function(){return import("./HEIGHT_GIRLS.zscore.monthly-e1da2967.js")},Ie[f.Yearly]=function(){return import("./HEIGHT_GIRLS.zscore.yearly-9cf08782.js")},Ie),Le[u.Head]=((je={})[f.Weekly]=function(){return import("./HEAD CIRCUM_GIRLS.zscore.weekly-81f96658.js")},je[f.Monthly]=function(){return import("./HEAD CIRCUM_GIRLS.zscore.monthly-b6c39653.js")},je[f.Yearly]=function(){return import("./HEAD CIRCUM_GIRLS.zscore.yearly-a441f775.js")},je),Le[u.BMI]=((Be={})[f.Weekly]=function(){return import("./BMI_GIRLS.zscore.weekly-82f7aa14.js")},Be[f.Monthly]=function(){return import("./BMI_GIRLS.zscore.monthly-ebd8cd71.js")},Be[f.Yearly]=function(){return import("./BMI_GIRLS.zscore.yearly-6fcf910c.js")},Be),Le),be),Xe=function(e,n,t,r,o){var i=e.slice(n-1,t),l=[i[0][r],i[0][r]],a=l[0],c=l[1];return i.forEach((function(e){e[r]>c&&(c=e[r]),e[r]<a&&(a=e[r])})),[(0|a)-o,(0|c)+o]},$e=function(e,n,t,r){return r===m.Indonesia?Qe[e][n][t]():Je[e][n][t]()},en=function(e,n){var t=O(n,Math.ceil(n.length/2)),r=t[0],o=t[1],i=r.map((function(e){return e.name})),l=o.map((function(e){return e.name}));return i.includes(e)?r:l.includes(e)?o:n},nn=function(e,n){return v(v([],e,!0),n.map((function(e){return{name:e.name,history:e.value}})),!0).sort((function(e,n){return e.name-n.name}))},tn=function(e){var n=[],t=function(t){e[t].forEach((function(e,r){var o;n[r]?n[r][t]=e:n[r]=((o={name:r})[t]=e,o)}))};for(var r in e)t(r);return n},rn=function(e){return Array.from(Array(e.length).keys())},on=L.div(Se||(Se=b(["\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"]))),ln=[{name:"-3SD",label:"-3",color:H.colors.red600},{name:"-2SD",label:"-2",color:H.colors.yellow600},{name:"0Median",label:"0",color:H.colors.green600},{name:"2SD",label:"2",color:H.colors.yellow600},{name:"3SD",label:"3",color:H.colors.red600},{name:"history",color:H.colors.primaryBase}],an=[{name:"3rd",color:H.colors.red600},{name:"15th",color:H.colors.yellow600},{name:"50th",color:H.colors.green600},{name:"85th",color:H.colors.yellow600},{name:"97th",color:H.colors.red600},{name:"history",color:H.colors.primaryBase}],cn=i((function(n,t){return e.createElement("circle",E({},n,{ref:t}),e.createElement("animate",{attributeName:"r",values:"4;8;4",dur:"2s",begin:"0s",repeatCount:"indefinite"}))})),sn=function(n){var t=n.x,r=n.y,o=n.last,i=n.index,l=n.name;return o===i?e.createElement("text",{x:t,y:r,dx:16,fill:H.colors.gray500,fontSize:12,textAnchor:"middle"},l):null},dn=function(o){var i=o.gender,a=o.type,s=o.duration,d=o.xLabel,p=o.x,f=o.y,C=o.toolTipLabel,y=void 0===C?[]:C,h=o.isDivide,x=void 0===h||h,b=o.onIsPrevious,w=o.locale,v=o.riskLevel,L=o.withLine,I=void 0!==L&&L,j=o.lineData,B=void 0===j?[]:j,G=r([]),O=G[0],V=G[1],T=t([]),A=c().t;l((function(){k(void 0,void 0,void 0,(function(){var e,n,t;return M(this,(function(r){switch(r.label){case 0:return[4,$e(i,a,s,w)];case 1:if(e=r.sent().default,n=tn(e),Array.isArray(n)&&0===n.length)return null==b||b(),[2];t=n.map((function(e,n){return E(E({},e),{name:n})}));try{t=x?en(p||0,n):n}catch(e){}return T.current=rn(t),V(t),[2]}}))}))}),[i,a,s,w,b]);var P=r(!1),U=P[0],F=P[1],K=n((function(){return I&&Array.isArray(O)&&O.length>0?nn(O,B):O}),[I,B,O]),q=t(null);S(q,(function(){return F(!1)}));return e.createElement(on,null,e.createElement("div",{className:"custom-chart-label"},e.createElement(g,{size:"n1",color:H.colors.gray500},function(){switch(a){case u.Weight:return A("babyGrowth.weight");case u.Height:return A("babyGrowth.height");case u.Head:return A("babyGrowth.headCircumference");case u.BMI:return"BMI";default:return""}}()),e.createElement(g,{size:"n1",color:H.colors.gray500},w===m.Indonesia?"Z-Score":A("babyGrowth.percentiles"))),Array.isArray(K)&&K.length>0&&e.createElement(z,{height:388,className:"chart"},e.createElement(_,{data:K,margin:{top:16,right:28,bottom:8,left:0}},e.createElement(R,{stroke:H.colors.blue200}),e.createElement(D,{trigger:"click",content:e.createElement(e.Fragment,null,U&&void 0!==p&&void 0!==f&&e.createElement(De,{riskLevel:v,tooltips:y,locale:w}))}),e.createElement(W,{type:"number",scale:"linear",ticks:T.current,dataKey:"name",tickLine:!1,tickMargin:12,tick:{fontFamily:"Inter",fontWeight:400,fontSize:12,color:H.colors.gray800},domain:["dataMin","dataMax"],interval:"preserveStartEnd",tickCount:1,tickFormatter:function(e){return String(Math.round(100*(e+Number.EPSILON))/100)},allowDecimals:!0}),e.createElement(Y,{domain:[function(e){return Math.min(e,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:H.colors.gray800}}),(w===m.Indonesia?ln:an).map((function(n){return e.createElement(e.Fragment,null,"history"===n.name?e.createElement(N,{key:"history",connectNulls:!0,type:"linear",dataKey:"history",stroke:n.color,dot:{stroke:n.color,fill:n.color,strokeWidth:1,r:4,strokeDasharray:""},activeDot:!0,color:n.color}):e.createElement(N,{key:n.name,type:"linear",dataKey:n.name,stroke:n.color,dot:!1,activeDot:!1,connectNulls:!0,label:e.createElement(sn,{last:(null==K?void 0:K.length)?K.length-1:0,name:(null==n?void 0:n.label)||n.name}),tooltipType:"none"}))})),void 0!==p&&void 0!==f&&e.createElement(Z,{onClick:function(){return F(!0)},x:0===p?1:p,y:f,r:4,shape:e.createElement(cn,{ref:q,r:4}),fill:H.colors.primaryBase,stroke:H.colors.primaryBase}))),e.createElement("div",{className:"custom-chart-label"},e.createElement("i",null),e.createElement(g,{size:"n1",color:H.colors.gray500},d)))};export{dn as BabyGrowthChart,Je as BabyGrowthChartPercentile,Qe as BabyGrowthChartZScore,qe as BabyGrowthChooseProfileDrawer,J as BabyGrowthGender,$ as BabyGrowthLegend,Ye as BabyGrowthProfileRadio,Oe as BabyGrowthRecord,Ge as BabyGrowthSwitch,F as BabyGrowthSwitchChart,De as BabyGrowthTooltip,Ue as ChildCard,an as LABELS_PERCENTILE,ln as LABELS_Z_SCORE,en as divideChartData,$e as generateGrowthChart,rn as generateXAxisTicks,Xe as getAxisYDomain,nn as refineDataWithLine,tn as transformDataToChart};
|
package/build/esm/components.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{A as Alert,t as AmpNextPage,f as ArticleCard,B as Badge,a as BorderHeading,g as Breadcrumbs,l as Carousel,h as CategoryCard,C as Checkbox,i as CheckboxGroup,r as CookieAcceptConfirm,D as DatePicker,u as DateRangePicker,F as FileDropdown,q as FloatButtonGroup,E as Footer,G as Grid,I as IconText,L as Layout,y as NavigationBar,N as NavigationLayout,P as Pagination,e as Progress,j as ProgressBar,R as RateStars,s as SeoHead,S as Shadow,v as ShareContainer,w as ShareDrawer,k as SideMenu,x as SiteWide,b as Slider,m as StatisticCard,z as StickySponsoredBy,p as SurveyThankyouCard,n as Table,o as Tabs,T as Tag,c as Toggle,U as UnderlinedLink,d as Uploader}from"./index-11ca3854.js";export{A as Avatar,P as Popup}from"./index-73638a82.js";export{B as Button,H as Heading}from"./index-9ee79492.js";export{D as Divider,a as Dropdown}from"./index-f92f5049.js";export{D as DoctorInfo,F as Flag,L as LanguageSwitcher,M as MobileBottomNavigation,c as MobileBottomNavigationIcon,i as NavigationLogoutPopup,j as NavigationProfileButton,N as NavigationV2,P as ProfilePopup,R as Radio,a as RadioGroup,S as ScrollList,b as SurveyQuestionCard,U as UserProfileNavigation,f as UserProfileNavigationHeader,h as UserProfileNavigationStats,e as defaultTranslation,g as getNavMenuContent,d as getNavMenuContentWithCache}from"./index-531e1c32.js";export{I as Input}from"./index-38ea4462.js";export{C as Container,L as Label,a as Logo,M as Menu,P as PureInput,T as Text,b as TextArea,c as TextDivider}from"./index.styled-df180c76.js";export{I as Icon,M as Modal,R as RadioImageGroup}from"./index-
|
|
1
|
+
export{A as Alert,t as AmpNextPage,f as ArticleCard,B as Badge,a as BorderHeading,g as Breadcrumbs,l as Carousel,h as CategoryCard,C as Checkbox,i as CheckboxGroup,r as CookieAcceptConfirm,D as DatePicker,u as DateRangePicker,F as FileDropdown,q as FloatButtonGroup,E as Footer,G as Grid,I as IconText,L as Layout,y as NavigationBar,N as NavigationLayout,P as Pagination,e as Progress,j as ProgressBar,R as RateStars,s as SeoHead,S as Shadow,v as ShareContainer,w as ShareDrawer,k as SideMenu,x as SiteWide,b as Slider,m as StatisticCard,z as StickySponsoredBy,p as SurveyThankyouCard,n as Table,o as Tabs,T as Tag,c as Toggle,U as UnderlinedLink,d as Uploader}from"./index-11ca3854.js";export{A as Avatar,P as Popup}from"./index-73638a82.js";export{B as Button,H as Heading}from"./index-9ee79492.js";export{D as Divider,a as Dropdown}from"./index-f92f5049.js";export{D as DoctorInfo,F as Flag,L as LanguageSwitcher,M as MobileBottomNavigation,c as MobileBottomNavigationIcon,i as NavigationLogoutPopup,j as NavigationProfileButton,N as NavigationV2,P as ProfilePopup,R as Radio,a as RadioGroup,S as ScrollList,b as SurveyQuestionCard,U as UserProfileNavigation,f as UserProfileNavigationHeader,h as UserProfileNavigationStats,e as defaultTranslation,g as getNavMenuContent,d as getNavMenuContentWithCache}from"./index-531e1c32.js";export{I as Input}from"./index-38ea4462.js";export{C as Container,L as Label,a as Logo,M as Menu,P as PureInput,T as Text,b as TextArea,c as TextDivider}from"./index.styled-df180c76.js";export{I as Icon,M as Modal,R as RadioImageGroup}from"./index-f32c8c70.js";export{D as Drawer}from"./index.styled-ecba7a5d.js";import"react";import"./tslib.es6-6ae0d506.js";import"./useTranslations-e61cf3ed.js";import"styled-components";import"./translationsContext-65bea19b.js";import"string-format";import"react-range";import"./theme-82709ce4.js";import"react-id-generator";import"date-fns";import"react-day-picker/DayPickerInput";import"lodash";import"keen-slider/react";import"react-dom";import"./constants-dc22740c.js";import"./useOutsideClick-6004483a.js";import"date-fns/locale/en-US";import"date-fns/locale/id";import"date-fns/locale/vi";import"date-fns/locale/zh-TW";import"./lazyLoad-d80d3fd1.js";import"vanilla-lazyload";import"lodash/debounce";import"./getSocialList-27eabc04.js";import"react-loading-skeleton";import"./translationsProvider-b1af0026.js";import"./cookieHelper-0e8521c3.js";import"date-fns/locale/hi";import"date-fns/locale/ms";import"date-fns/locale/th";import"slugify";import"./core-286f158c.js";import"smoothscroll-polyfill";import"./routing-f63546d5.js";import"./useScrollbarSize-99db33e1.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as e,$ as a,a0 as t,a1 as l,a2 as n,a3 as c,a4 as i,a5 as o,a6 as r,a7 as d,a8 as s,a9 as m,aa as h,ab as v,ac as u,ad as f,ae as p,af as z,ag as g,T as w}from"./index.styled-df180c76.js";import{d as E,b as M}from"./tslib.es6-6ae0d506.js";import y,{useRef as C,useState as b,useEffect as H}from"react";import{u as x}from"./useScrollbarSize-99db33e1.js";import{createPortal as F}from"react-dom";import{S as A,a as V,b as B}from"./index.styled-ecba7a5d.js";var _={Ask:e,BarChart:a,Booking:t,Bookmark:l,Boy:function(e){var a=e.size,t=void 0===a?40:a,l=E(e,["size"]);return y.createElement("svg",M({xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:"none",viewBox:"0 0 40 40"},l),y.createElement("circle",{cx:"20",cy:"20",r:"20",fill:"#2D87F3"}),y.createElement("path",{fill:"#fff",d:"M20.002 30.973c-2.616 0-4.945-.607-6.734-1.755-1.82-1.166-3.058-2.884-3.604-4.992-.045 0-.09.003-.136.003-.758 0-1.486-.3-2.023-.834a2.843 2.843 0 010-4.029 2.868 2.868 0 012.194-.83c.577-2.321 1.83-4.42 3.567-5.952C15.16 10.918 17.552 10 20.002 10s4.84.918 6.733 2.587c1.737 1.53 2.99 3.628 3.567 5.952a2.868 2.868 0 012.194.83 2.843 2.843 0 010 4.028 2.868 2.868 0 01-2.16.831c-.546 2.106-1.782 3.826-3.602 4.992-1.79 1.146-4.118 1.753-6.732 1.753z"}),y.createElement("path",{fill:"#2D87F3",d:"M17.95 13.19h-.014a.525.525 0 00-.524.509c0 .015-.059 1.466-2.006 1.927a.525.525 0 00-.389.63.523.523 0 00.633.386c2.18-.516 2.793-2.134 2.812-2.917a.519.519 0 00-.313-.491.527.527 0 00-.2-.044zM20.591 12.874a.524.524 0 00-.326.663c.004.014.455 1.396-1.212 2.5a.521.521 0 00.19.936.526.526 0 00.39-.066c1.866-1.236 1.878-2.966 1.625-3.708a.521.521 0 00-.464-.352.529.529 0 00-.203.027zM23.292 13.4a.525.525 0 00-.735.749c.008.007.787.783.35 2.119a.523.523 0 00.898.508.523.523 0 00.098-.183c.641-1.946-.56-3.142-.611-3.192zM15.977 21.818a1.365 1.365 0 000-1.936 1.38 1.38 0 00-1.945 0 1.365 1.365 0 000 1.936 1.38 1.38 0 001.945 0zM25.445 22.172a1.368 1.368 0 10-.682-2.652 1.369 1.369 0 10.682 2.652zM22.837 22.755a.532.532 0 00-.66.338c-.005.012-.414 1.222-2.124 1.222-1.71 0-2.12-1.21-2.124-1.222a.523.523 0 00-.998.316c.026.08.656 1.947 3.123 1.947s3.097-1.867 3.122-1.947a.52.52 0 00-.339-.654z"}))},Calendar:function(e){var a=e.size,t=void 0===a?20:a,l=e.color,n=void 0===l?"#595959":l,c=E(e,["size","color"]);return y.createElement("svg",M({width:t,height:t,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c),y.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.8337 2.50065H16.667C17.5837 2.50065 18.3337 3.25065 18.3337 4.16732V17.5006C18.3337 18.4173 17.5837 19.1673 16.667 19.1673H3.33366C2.41699 19.1673 1.66699 18.4173 1.66699 17.5006V4.16732C1.66699 3.25065 2.41699 2.50065 3.33366 2.50065H4.16699V1.66732C4.16699 1.20898 4.54199 0.833984 5.00033 0.833984C5.45866 0.833984 5.83366 1.20898 5.83366 1.66732V2.50065H14.167V1.66732C14.167 1.20898 14.542 0.833984 15.0003 0.833984C15.4587 0.833984 15.8337 1.20898 15.8337 1.66732V2.50065ZM4.16699 17.5007H15.8337C16.292 17.5007 16.667 17.1257 16.667 16.6673V6.66732H3.33366V16.6673C3.33366 17.1257 3.70866 17.5007 4.16699 17.5007Z",fill:n}))},Community:n,EditSpecial:c,Family:i,Font:o,GenderBoy:function(e){var a=e.size,t=void 0===a?16:a,l=E(e,["size"]);return y.createElement("svg",M({xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:"none",viewBox:"0 0 16 16"},l),y.createElement("g",{fill:"#595959",clipPath:"url(#clip0_408_8625)"},y.createElement("path",{d:"M15.325 1.199a.602.602 0 00-.038-.151v-.005h-.001a.618.618 0 00-.107-.168.623.623 0 00-.117-.105l-.004-.002a.6.6 0 00-.175-.078.609.609 0 00-.161-.024h-4.278a.611.611 0 000 1.223h2.802L9.6 5.535a5.469 5.469 0 00-3.433-1.203 5.506 5.506 0 00-5.5 5.5c0 3.033 2.468 5.5 5.5 5.5 3.033 0 5.5-2.467 5.5-5.5 0-1.262-.425-2.46-1.203-3.433l3.648-3.647v2.802a.611.611 0 001.222 0V1.277c0-.012-.003-.025-.004-.037a.617.617 0 00-.004-.041zM6.166 14.11A4.282 4.282 0 011.89 9.833a4.282 4.282 0 017.303-3.028 4.282 4.282 0 01-3.026 7.305z"}),y.createElement("path",{fillRule:"evenodd",d:"M15.287 1.048a.602.602 0 01.042.192l.002.016a.156.156 0 01.002.021v4.278a.611.611 0 01-1.222 0V2.753L10.463 6.4a5.469 5.469 0 011.203 3.433c0 3.033-2.467 5.5-5.5 5.5a5.506 5.506 0 01-5.5-5.5c0-3.033 2.468-5.5 5.5-5.5 1.263 0 2.46.425 3.433 1.203l3.647-3.647h-2.802a.611.611 0 010-1.223h4.278a.609.609 0 01.197.036.6.6 0 01.14.067h.003a.623.623 0 01.14.135h.001a.618.618 0 01.083.138v.003l.001.003zm.064-.02c.021.053.033.107.04.162m-.04-.162a.695.695 0 00-.096-.165l-.001-.002c-.008-.009-.016-.02-.026-.03A.69.69 0 0015.1.715m-.2-.089A.675.675 0 0014.722.6h-4.278a.678.678 0 000 1.355h2.641L9.594 5.447a5.535 5.535 0 00-3.428-1.18A5.573 5.573 0 00.6 9.832 5.573 5.573 0 006.166 15.4a5.573 5.573 0 005.567-5.567c0-1.257-.417-2.45-1.18-3.427l3.491-3.492v2.641a.678.678 0 001.356 0V1.277a.202.202 0 00-.003-.027v-.004l-.001-.01a.743.743 0 00-.005-.046M1.955 9.833a4.216 4.216 0 004.211 4.211 4.216 4.216 0 002.979-7.191 4.216 4.216 0 00-7.19 2.98zm7.237-3.028a4.282 4.282 0 00-7.304 3.028 4.282 4.282 0 004.278 4.278 4.282 4.282 0 003.026-7.306z",clipRule:"evenodd"})),y.createElement("defs",null,y.createElement("clipPath",{id:"clip0_408_8625"},y.createElement("path",{fill:"#fff",d:"M0 0H16V16H0z"}))))},GenderChooseBoy:function(e){var a=C("svg-".concat(Math.random()));return y.createElement("svg",M({xmlns:"http://www.w3.org/2000/svg",width:"21",height:"20",fill:"none",viewBox:"0 0 21 20"},e),y.createElement("g",{clipPath:"url(#".concat(a.current,")")},y.createElement("path",{fill:"#45A4FF",d:"M11.203 7.633l1.914 1.914 6.397-6.397L17.6 1.235l-6.397 6.398z"}),y.createElement("path",{fill:"#45A4FF",d:"M8.083 5.334a7.333 7.333 0 100 14.667 7.333 7.333 0 000-14.667zm0 11.96a4.626 4.626 0 110-9.253 4.626 4.626 0 010 9.252z"}),y.createElement("path",{fill:"#2D87F3",d:"M7.508 8.077a4.626 4.626 0 100 9.181 4.627 4.627 0 010-9.181zM8.083 5.334a7.43 7.43 0 00-.575.022 7.334 7.334 0 010 14.622 7.333 7.333 0 10.575-14.644zM19.88 2.785v-.78L18.744.872h-.78l-2.707 2.707h1.55c.2 0 .364.163.364.365v1.55l2.707-2.708z"}),y.createElement("path",{fill:"#45A4FF",d:"M18.043 0h-4.585a.365.365 0 00-.364.365v1.978c0 .201.163.364.364.364h4.22c.201 0 .365.163.365.365v4.22c0 .2.163.364.364.364h1.978a.365.365 0 00.365-.364V.365A.365.365 0 0020.385 0h-2.342z"})),y.createElement("defs",null,y.createElement("clipPath",{id:a.current},y.createElement("path",{fill:"#fff",d:"M0 0H20V20H0z",transform:"translate(.75)"}))))},GenderChooseGirl:function(e){return y.createElement("svg",M({xmlns:"http://www.w3.org/2000/svg",width:"21",height:"20",fill:"none",viewBox:"0 0 21 20"},e),y.createElement("path",{fill:"#FE9DC2",d:"M13.748 15.546h-1.503a.321.321 0 01-.321-.322v-3.7H9.577v3.7a.321.321 0 01-.322.322H7.753a.321.321 0 00-.321.321v1.704c0 .178.144.322.321.322h1.502c.178 0 .322.144.322.321v1.465c0 .178.144.321.321.321h1.704a.321.321 0 00.322-.321v-1.465c0-.177.144-.321.321-.321h1.503a.321.321 0 00.321-.322v-1.704a.322.322 0 00-.321-.321z"}),y.createElement("path",{fill:"#FC488D",d:"M9.576 11.523v2.151a7.466 7.466 0 002.347 0v-2.15H9.576z"}),y.createElement("path",{fill:"#FE9DC2",d:"M10.75 0a6.357 6.357 0 100 12.715A6.357 6.357 0 0010.75 0zm0 10.368a4.01 4.01 0 110-8.021 4.01 4.01 0 010 8.021z"}),y.createElement("path",{fill:"#FC488D",d:"M10.157 2.391a4.01 4.01 0 100 7.934 4.011 4.011 0 010-7.934zM10.75 0c-.2 0-.398.01-.593.028a6.358 6.358 0 010 12.66A6.357 6.357 0 1010.75 0z"}))},GenderGirl:function(e){var a=e.size,t=void 0===a?16:a,l=E(e,["size"]);return y.createElement("svg",M({xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:"none",viewBox:"0 0 16 16"},l),y.createElement("path",{fill:"#595959",d:"M11.445 8.979a4.875 4.875 0 000-6.888 4.879 4.879 0 00-6.89 0 4.875 4.875 0 000 6.888 4.849 4.849 0 002.872 1.39V12H6.28a.573.573 0 100 1.147h1.147v1.614a.573.573 0 001.146 0v-1.614H9.72a.573.573 0 100-1.146H8.573v-1.63a4.849 4.849 0 002.872-1.391zm-6.08-.81a3.728 3.728 0 010-5.268 3.73 3.73 0 015.27 0 3.728 3.728 0 010 5.267 3.73 3.73 0 01-5.27 0z"}),y.createElement("path",{fill:"#595959",fillRule:"evenodd",d:"M5.366 8.168a3.73 3.73 0 005.268 0 3.728 3.728 0 000-5.267 3.73 3.73 0 00-5.268 0 3.728 3.728 0 000 5.267zm6.15-6.148a4.975 4.975 0 010 7.03 4.948 4.948 0 01-2.843 1.407V11.9H9.72a.673.673 0 110 1.346H8.673v1.514a.673.673 0 01-1.346 0v-1.514H6.28a.673.673 0 110-1.346h1.046v-1.443A4.948 4.948 0 014.484 9.05a4.975 4.975 0 010-7.029 4.979 4.979 0 017.032 0zm-4.09 8.35a4.849 4.849 0 01-2.871-1.391 4.875 4.875 0 010-6.888 4.879 4.879 0 016.89 0 4.875 4.875 0 010 6.888 4.849 4.849 0 01-2.872 1.39V12H9.72a.573.573 0 110 1.147H8.573v1.614a.573.573 0 01-1.146 0v-1.614H6.28a.573.573 0 110-1.146h1.147v-1.63zm-1.99-7.398a3.628 3.628 0 000 5.126 3.63 3.63 0 005.128 0 3.628 3.628 0 000-5.126 3.63 3.63 0 00-5.128 0z",clipRule:"evenodd"}))},Girl:function(e){var a=e.size,t=void 0===a?40:a,l=E(e,["size"]);return y.createElement("svg",M({xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:"none",viewBox:"0 0 24 24"},l),y.createElement("circle",{cx:"12",cy:"12",r:"12",fill:"#FC5D9A"}),y.createElement("path",{fill:"#fff",d:"M18.283 11.759c-.034 0-.068 0-.102.003-.346-1.394-1.099-2.652-2.14-3.57a6.132 6.132 0 00-3.726-1.544v-.532a2.062 2.062 0 001.617-.634 1.178 1.178 0 000-1.638 1.13 1.13 0 00-1.626 0c-.116.119-.218.25-.305.392a2.212 2.212 0 00-.308-.393 1.13 1.13 0 00-1.625 0 1.179 1.179 0 000 1.638 2.06 2.06 0 001.5.639c.041 0 .08 0 .117-.004v.533a6.143 6.143 0 00-3.726 1.543c-1.042.918-1.793 2.177-2.14 3.572a1.72 1.72 0 00-1.317.498 1.706 1.706 0 000 2.417c.323.32.76.5 1.215.5.027 0 .054 0 .081-.002a4.968 4.968 0 002.162 2.996c1.073.69 2.47 1.053 4.04 1.053 1.57 0 2.967-.364 4.04-1.053a4.987 4.987 0 002.162-2.998 1.72 1.72 0 001.295-.499 1.705 1.705 0 000-2.417c-.322-.32-.759-.5-1.214-.5zm-5.527-7.477a.5.5 0 01.724 0 .55.55 0 010 .763 1.446 1.446 0 01-1.165.446 1.834 1.834 0 01-.004-.077v-.09c.01-.392.168-.764.445-1.042zm-2.238.762a.55.55 0 010-.763.501.501 0 01.724 0c.276.278.435.65.444 1.042v.09c0 .027-.002.053-.004.078a1.45 1.45 0 01-1.164-.447z"}),y.createElement("path",{fill:"#FC5D9A",d:"M9.586 13.68a.819.819 0 000-1.161.828.828 0 00-1.167 0 .819.819 0 000 1.162c.323.32.845.32 1.167 0zM15.267 13.894a.821.821 0 10-.41-1.592.821.821 0 10.41 1.592zM13.704 14.242a.32.32 0 00-.282.045.314.314 0 00-.114.159c-.002.007-.248.733-1.274.733-1.027 0-1.272-.726-1.275-.733a.314.314 0 10-.598.19c.016.046.394 1.168 1.873 1.168s1.858-1.12 1.873-1.168a.313.313 0 00-.203-.394zM12.402 7.713a.315.315 0 00-.53.24.313.313 0 00.1.218c.253.248.466.533.632.845.316.61.298 1.118-.056 1.551-.403.493-.865.449-1.104.378-.33-.096-.598-.351-.625-.595-.03-.263.058-.585.318-.71.165-.077.337-.039.486.11a.315.315 0 00.538-.22.313.313 0 00-.092-.222c-.336-.337-.797-.426-1.204-.232-.473.226-.737.752-.671 1.343.055.494.495.957 1.072 1.128.151.045.308.067.465.068.491 0 .958-.228 1.305-.652.514-.63.558-1.402.127-2.234a4.11 4.11 0 00-.761-1.016z"}))},Heart:r,Home:d,Kebab:function(e){var a=e.size,t=void 0===a?20:a,l=E(e,["size"]);return y.createElement("svg",M({xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:"none",viewBox:"0 0 20 20"},l),y.createElement("path",{fill:"#000",fillOpacity:"0.54",fillRule:"evenodd",d:"M10 6.667c.916 0 1.666-.75 1.666-1.666 0-.917-.75-1.667-1.666-1.667-.917 0-1.667.75-1.667 1.667 0 .916.75 1.666 1.667 1.666zm0 1.667c-.917 0-1.667.75-1.667 1.667 0 .916.75 1.666 1.667 1.666.916 0 1.666-.75 1.666-1.666 0-.917-.75-1.667-1.666-1.667zm-1.667 6.667c0-.917.75-1.667 1.667-1.667.916 0 1.666.75 1.666 1.667 0 .916-.75 1.666-1.666 1.666-.917 0-1.667-.75-1.667-1.666z",clipRule:"evenodd"}))},Like:s,MyCommunity:m,PlusSpecial:h,Recalculate:v,Scale:u,Share:f,Stethoscope:p},k=function(e){var a=e.value,t=e.options,l=e.className,n=e.direction,c=void 0===n?"horizontal":n,i=e.onChange,o=e.isDisabled,r=b(a),d=r[0],s=r[1];return y.createElement(z,{className:l,"data-direction":c},t.map((function(e,t){return y.createElement(g,{"data-selected":(a||d)===e.value,"data-disabled":o,key:t,onClick:function(){var a;a=e.value,o||(s(a),i&&i(a))}},y.createElement("div",null,e.content,e.label&&y.createElement(w,{type:"bold",color:(a||d)===e.value?"#2D87F3":"black",className:"radio-group-item-heading",size:"label1"},e.label)))})))},R=function(){document.querySelectorAll('.hhg-modal[data-open="true"]').length<1&&document.body.classList.remove("hhc-modal-show")},D=function(){document.querySelectorAll('.hhg-modal[data-open="true"]').length<1&&(document.body.style.overflow="",document.body.style.paddingRight="",document.body.classList.remove("hhc-disabled-scroll"))},S=function(e){var a=e.type,t=void 0===a?"lead":a,l=e.closeIcon,n=e.isOpen,c=void 0===n||n,i=e.onClose,o=e.children,r=e.className,d=void 0===r?"":r,s=e.animationType,m=void 0===s?"slideTop":s,h=e.isStaticBackdrop,v=void 0!==h&&h,u=b(!1),f=u[0],p=u[1],z=C(null),g=x().width;if(!z.current&&f&&(z.current=document.createElement("div")),H((function(){return p(!0),function(){p(!1),R(),D()}}),[]),H((function(){if(f){var e=((a=document.getElementById("hhg-modals"))||((a=document.createElement("div")).setAttribute("id","hhg-modals"),document.body.append(a)),a);return e.appendChild(z.current),function(){e.removeChild(z.current)}}var a}),[f]),H((function(){c?document.body.classList.add("hhc-modal-show"):R()}),[c]),H((function(){c?(document.body.style.overflow="hidden",document.body.style.paddingRight=g+"px",document.body.classList.add("hhc-disabled-scroll")):D()}),[c,g]),!f)return null;var w=["hhg-modal__wrapper",d,m].filter((function(e){return e})).join(" ");return F(y.createElement(A,{className:w,"data-open":c,"data-type":t},!v&&y.createElement(V,{"data-open":c,onClick:i,"data-type":t}),!v&&"video"===t&&!!l&&y.createElement("div",{className:"hhg-modal__close",onClick:i},l),y.createElement(B,{className:"hhg-modal","data-open":c},y.createElement("div",{className:"video"===t?"hhg-modal__video":"hhg-modal__content"},!!l&&"video"!==t&&y.createElement("div",{className:"hhg-modal__close",onClick:i},l),o))),z.current)};export{_ as I,S as M,k as R};
|
|
1
|
+
import{_ as e,$ as a,a0 as t,a1 as l,a2 as n,a3 as c,a4 as i,a5 as o,a6 as r,a7 as d,a8 as s,a9 as m,aa as h,ab as v,ac as u,ad as f,ae as p,af as z,ag as g,T as w}from"./index.styled-df180c76.js";import{d as E,b as M}from"./tslib.es6-6ae0d506.js";import y,{useRef as C,useState as b,useEffect as H}from"react";import{u as x}from"./useScrollbarSize-99db33e1.js";import{createPortal as F}from"react-dom";import{S as A,a as V,b as B}from"./index.styled-ecba7a5d.js";var _={Ask:e,BarChart:a,Booking:t,Bookmark:l,Boy:function(e){var a=e.size,t=void 0===a?40:a,l=E(e,["size"]);return y.createElement("svg",M({xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:"none",viewBox:"0 0 40 40"},l),y.createElement("circle",{cx:"20",cy:"20",r:"20",fill:"#2D87F3"}),y.createElement("path",{fill:"#fff",d:"M20.002 30.973c-2.616 0-4.945-.607-6.734-1.755-1.82-1.166-3.058-2.884-3.604-4.992-.045 0-.09.003-.136.003-.758 0-1.486-.3-2.023-.834a2.843 2.843 0 010-4.029 2.868 2.868 0 012.194-.83c.577-2.321 1.83-4.42 3.567-5.952C15.16 10.918 17.552 10 20.002 10s4.84.918 6.733 2.587c1.737 1.53 2.99 3.628 3.567 5.952a2.868 2.868 0 012.194.83 2.843 2.843 0 010 4.028 2.868 2.868 0 01-2.16.831c-.546 2.106-1.782 3.826-3.602 4.992-1.79 1.146-4.118 1.753-6.732 1.753z"}),y.createElement("path",{fill:"#2D87F3",d:"M17.95 13.19h-.014a.525.525 0 00-.524.509c0 .015-.059 1.466-2.006 1.927a.525.525 0 00-.389.63.523.523 0 00.633.386c2.18-.516 2.793-2.134 2.812-2.917a.519.519 0 00-.313-.491.527.527 0 00-.2-.044zM20.591 12.874a.524.524 0 00-.326.663c.004.014.455 1.396-1.212 2.5a.521.521 0 00.19.936.526.526 0 00.39-.066c1.866-1.236 1.878-2.966 1.625-3.708a.521.521 0 00-.464-.352.529.529 0 00-.203.027zM23.292 13.4a.525.525 0 00-.735.749c.008.007.787.783.35 2.119a.523.523 0 00.898.508.523.523 0 00.098-.183c.641-1.946-.56-3.142-.611-3.192zM15.977 21.818a1.365 1.365 0 000-1.936 1.38 1.38 0 00-1.945 0 1.365 1.365 0 000 1.936 1.38 1.38 0 001.945 0zM25.445 22.172a1.368 1.368 0 10-.682-2.652 1.369 1.369 0 10.682 2.652zM22.837 22.755a.532.532 0 00-.66.338c-.005.012-.414 1.222-2.124 1.222-1.71 0-2.12-1.21-2.124-1.222a.523.523 0 00-.998.316c.026.08.656 1.947 3.123 1.947s3.097-1.867 3.122-1.947a.52.52 0 00-.339-.654z"}))},Calendar:function(e){var a=e.size,t=void 0===a?20:a,l=e.color,n=void 0===l?"#595959":l,c=E(e,["size","color"]);return y.createElement("svg",M({width:t,height:t,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c),y.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.8337 2.50065H16.667C17.5837 2.50065 18.3337 3.25065 18.3337 4.16732V17.5006C18.3337 18.4173 17.5837 19.1673 16.667 19.1673H3.33366C2.41699 19.1673 1.66699 18.4173 1.66699 17.5006V4.16732C1.66699 3.25065 2.41699 2.50065 3.33366 2.50065H4.16699V1.66732C4.16699 1.20898 4.54199 0.833984 5.00033 0.833984C5.45866 0.833984 5.83366 1.20898 5.83366 1.66732V2.50065H14.167V1.66732C14.167 1.20898 14.542 0.833984 15.0003 0.833984C15.4587 0.833984 15.8337 1.20898 15.8337 1.66732V2.50065ZM4.16699 17.5007H15.8337C16.292 17.5007 16.667 17.1257 16.667 16.6673V6.66732H3.33366V16.6673C3.33366 17.1257 3.70866 17.5007 4.16699 17.5007Z",fill:n}))},Community:n,EditSpecial:c,Family:i,Font:o,GenderBoy:function(e){var a=e.size,t=void 0===a?16:a,l=E(e,["size"]);return y.createElement("svg",M({xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:"none",viewBox:"0 0 16 16"},l),y.createElement("g",{fill:"#595959",clipPath:"url(#clip0_408_8625)"},y.createElement("path",{d:"M15.325 1.199a.602.602 0 00-.038-.151v-.005h-.001a.618.618 0 00-.107-.168.623.623 0 00-.117-.105l-.004-.002a.6.6 0 00-.175-.078.609.609 0 00-.161-.024h-4.278a.611.611 0 000 1.223h2.802L9.6 5.535a5.469 5.469 0 00-3.433-1.203 5.506 5.506 0 00-5.5 5.5c0 3.033 2.468 5.5 5.5 5.5 3.033 0 5.5-2.467 5.5-5.5 0-1.262-.425-2.46-1.203-3.433l3.648-3.647v2.802a.611.611 0 001.222 0V1.277c0-.012-.003-.025-.004-.037a.617.617 0 00-.004-.041zM6.166 14.11A4.282 4.282 0 011.89 9.833a4.282 4.282 0 017.303-3.028 4.282 4.282 0 01-3.026 7.305z"}),y.createElement("path",{fillRule:"evenodd",d:"M15.287 1.048a.602.602 0 01.042.192l.002.016a.156.156 0 01.002.021v4.278a.611.611 0 01-1.222 0V2.753L10.463 6.4a5.469 5.469 0 011.203 3.433c0 3.033-2.467 5.5-5.5 5.5a5.506 5.506 0 01-5.5-5.5c0-3.033 2.468-5.5 5.5-5.5 1.263 0 2.46.425 3.433 1.203l3.647-3.647h-2.802a.611.611 0 010-1.223h4.278a.609.609 0 01.197.036.6.6 0 01.14.067h.003a.623.623 0 01.14.135h.001a.618.618 0 01.083.138v.003l.001.003zm.064-.02c.021.053.033.107.04.162m-.04-.162a.695.695 0 00-.096-.165l-.001-.002c-.008-.009-.016-.02-.026-.03A.69.69 0 0015.1.715m-.2-.089A.675.675 0 0014.722.6h-4.278a.678.678 0 000 1.355h2.641L9.594 5.447a5.535 5.535 0 00-3.428-1.18A5.573 5.573 0 00.6 9.832 5.573 5.573 0 006.166 15.4a5.573 5.573 0 005.567-5.567c0-1.257-.417-2.45-1.18-3.427l3.491-3.492v2.641a.678.678 0 001.356 0V1.277a.202.202 0 00-.003-.027v-.004l-.001-.01a.743.743 0 00-.005-.046M1.955 9.833a4.216 4.216 0 004.211 4.211 4.216 4.216 0 002.979-7.191 4.216 4.216 0 00-7.19 2.98zm7.237-3.028a4.282 4.282 0 00-7.304 3.028 4.282 4.282 0 004.278 4.278 4.282 4.282 0 003.026-7.306z",clipRule:"evenodd"})),y.createElement("defs",null,y.createElement("clipPath",{id:"clip0_408_8625"},y.createElement("path",{fill:"#fff",d:"M0 0H16V16H0z"}))))},GenderChooseBoy:function(e){var a=C("svg-".concat(Math.random()));return y.createElement("svg",M({xmlns:"http://www.w3.org/2000/svg",width:"21",height:"20",fill:"none",viewBox:"0 0 21 20"},e),y.createElement("g",{clipPath:"url(#".concat(a.current,")")},y.createElement("path",{fill:"#45A4FF",d:"M11.203 7.633l1.914 1.914 6.397-6.397L17.6 1.235l-6.397 6.398z"}),y.createElement("path",{fill:"#45A4FF",d:"M8.083 5.334a7.333 7.333 0 100 14.667 7.333 7.333 0 000-14.667zm0 11.96a4.626 4.626 0 110-9.253 4.626 4.626 0 010 9.252z"}),y.createElement("path",{fill:"#2D87F3",d:"M7.508 8.077a4.626 4.626 0 100 9.181 4.627 4.627 0 010-9.181zM8.083 5.334a7.43 7.43 0 00-.575.022 7.334 7.334 0 010 14.622 7.333 7.333 0 10.575-14.644zM19.88 2.785v-.78L18.744.872h-.78l-2.707 2.707h1.55c.2 0 .364.163.364.365v1.55l2.707-2.708z"}),y.createElement("path",{fill:"#45A4FF",d:"M18.043 0h-4.585a.365.365 0 00-.364.365v1.978c0 .201.163.364.364.364h4.22c.201 0 .365.163.365.365v4.22c0 .2.163.364.364.364h1.978a.365.365 0 00.365-.364V.365A.365.365 0 0020.385 0h-2.342z"})),y.createElement("defs",null,y.createElement("clipPath",{id:a.current},y.createElement("path",{fill:"#fff",d:"M0 0H20V20H0z",transform:"translate(.75)"}))))},GenderChooseGirl:function(e){return y.createElement("svg",M({xmlns:"http://www.w3.org/2000/svg",width:"21",height:"20",fill:"none",viewBox:"0 0 21 20"},e),y.createElement("path",{fill:"#FE9DC2",d:"M13.748 15.546h-1.503a.321.321 0 01-.321-.322v-3.7H9.577v3.7a.321.321 0 01-.322.322H7.753a.321.321 0 00-.321.321v1.704c0 .178.144.322.321.322h1.502c.178 0 .322.144.322.321v1.465c0 .178.144.321.321.321h1.704a.321.321 0 00.322-.321v-1.465c0-.177.144-.321.321-.321h1.503a.321.321 0 00.321-.322v-1.704a.322.322 0 00-.321-.321z"}),y.createElement("path",{fill:"#FC488D",d:"M9.576 11.523v2.151a7.466 7.466 0 002.347 0v-2.15H9.576z"}),y.createElement("path",{fill:"#FE9DC2",d:"M10.75 0a6.357 6.357 0 100 12.715A6.357 6.357 0 0010.75 0zm0 10.368a4.01 4.01 0 110-8.021 4.01 4.01 0 010 8.021z"}),y.createElement("path",{fill:"#FC488D",d:"M10.157 2.391a4.01 4.01 0 100 7.934 4.011 4.011 0 010-7.934zM10.75 0c-.2 0-.398.01-.593.028a6.358 6.358 0 010 12.66A6.357 6.357 0 1010.75 0z"}))},GenderGirl:function(e){var a=e.size,t=void 0===a?16:a,l=E(e,["size"]);return y.createElement("svg",M({xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:"none",viewBox:"0 0 16 16"},l),y.createElement("path",{fill:"#595959",d:"M11.445 8.979a4.875 4.875 0 000-6.888 4.879 4.879 0 00-6.89 0 4.875 4.875 0 000 6.888 4.849 4.849 0 002.872 1.39V12H6.28a.573.573 0 100 1.147h1.147v1.614a.573.573 0 001.146 0v-1.614H9.72a.573.573 0 100-1.146H8.573v-1.63a4.849 4.849 0 002.872-1.391zm-6.08-.81a3.728 3.728 0 010-5.268 3.73 3.73 0 015.27 0 3.728 3.728 0 010 5.267 3.73 3.73 0 01-5.27 0z"}),y.createElement("path",{fill:"#595959",fillRule:"evenodd",d:"M5.366 8.168a3.73 3.73 0 005.268 0 3.728 3.728 0 000-5.267 3.73 3.73 0 00-5.268 0 3.728 3.728 0 000 5.267zm6.15-6.148a4.975 4.975 0 010 7.03 4.948 4.948 0 01-2.843 1.407V11.9H9.72a.673.673 0 110 1.346H8.673v1.514a.673.673 0 01-1.346 0v-1.514H6.28a.673.673 0 110-1.346h1.046v-1.443A4.948 4.948 0 014.484 9.05a4.975 4.975 0 010-7.029 4.979 4.979 0 017.032 0zm-4.09 8.35a4.849 4.849 0 01-2.871-1.391 4.875 4.875 0 010-6.888 4.879 4.879 0 016.89 0 4.875 4.875 0 010 6.888 4.849 4.849 0 01-2.872 1.39V12H9.72a.573.573 0 110 1.147H8.573v1.614a.573.573 0 01-1.146 0v-1.614H6.28a.573.573 0 110-1.146h1.147v-1.63zm-1.99-7.398a3.628 3.628 0 000 5.126 3.63 3.63 0 005.128 0 3.628 3.628 0 000-5.126 3.63 3.63 0 00-5.128 0z",clipRule:"evenodd"}))},Girl:function(e){var a=e.size,t=void 0===a?40:a,l=E(e,["size"]);return y.createElement("svg",M({xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:"none",viewBox:"0 0 24 24"},l),y.createElement("circle",{cx:"12",cy:"12",r:"12",fill:"#FC5D9A"}),y.createElement("path",{fill:"#fff",d:"M18.283 11.759c-.034 0-.068 0-.102.003-.346-1.394-1.099-2.652-2.14-3.57a6.132 6.132 0 00-3.726-1.544v-.532a2.062 2.062 0 001.617-.634 1.178 1.178 0 000-1.638 1.13 1.13 0 00-1.626 0c-.116.119-.218.25-.305.392a2.212 2.212 0 00-.308-.393 1.13 1.13 0 00-1.625 0 1.179 1.179 0 000 1.638 2.06 2.06 0 001.5.639c.041 0 .08 0 .117-.004v.533a6.143 6.143 0 00-3.726 1.543c-1.042.918-1.793 2.177-2.14 3.572a1.72 1.72 0 00-1.317.498 1.706 1.706 0 000 2.417c.323.32.76.5 1.215.5.027 0 .054 0 .081-.002a4.968 4.968 0 002.162 2.996c1.073.69 2.47 1.053 4.04 1.053 1.57 0 2.967-.364 4.04-1.053a4.987 4.987 0 002.162-2.998 1.72 1.72 0 001.295-.499 1.705 1.705 0 000-2.417c-.322-.32-.759-.5-1.214-.5zm-5.527-7.477a.5.5 0 01.724 0 .55.55 0 010 .763 1.446 1.446 0 01-1.165.446 1.834 1.834 0 01-.004-.077v-.09c.01-.392.168-.764.445-1.042zm-2.238.762a.55.55 0 010-.763.501.501 0 01.724 0c.276.278.435.65.444 1.042v.09c0 .027-.002.053-.004.078a1.45 1.45 0 01-1.164-.447z"}),y.createElement("path",{fill:"#FC5D9A",d:"M9.586 13.68a.819.819 0 000-1.161.828.828 0 00-1.167 0 .819.819 0 000 1.162c.323.32.845.32 1.167 0zM15.267 13.894a.821.821 0 10-.41-1.592.821.821 0 10.41 1.592zM13.704 14.242a.32.32 0 00-.282.045.314.314 0 00-.114.159c-.002.007-.248.733-1.274.733-1.027 0-1.272-.726-1.275-.733a.314.314 0 10-.598.19c.016.046.394 1.168 1.873 1.168s1.858-1.12 1.873-1.168a.313.313 0 00-.203-.394zM12.402 7.713a.315.315 0 00-.53.24.313.313 0 00.1.218c.253.248.466.533.632.845.316.61.298 1.118-.056 1.551-.403.493-.865.449-1.104.378-.33-.096-.598-.351-.625-.595-.03-.263.058-.585.318-.71.165-.077.337-.039.486.11a.315.315 0 00.538-.22.313.313 0 00-.092-.222c-.336-.337-.797-.426-1.204-.232-.473.226-.737.752-.671 1.343.055.494.495.957 1.072 1.128.151.045.308.067.465.068.491 0 .958-.228 1.305-.652.514-.63.558-1.402.127-2.234a4.11 4.11 0 00-.761-1.016z"}))},Heart:r,Home:d,Kebab:function(e){var a=e.size,t=void 0===a?20:a,l=E(e,["size"]);return y.createElement("svg",M({xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:"none",viewBox:"0 0 20 20"},l),y.createElement("path",{fill:"#000",fillOpacity:"0.54",fillRule:"evenodd",d:"M10 6.667c.916 0 1.666-.75 1.666-1.666 0-.917-.75-1.667-1.666-1.667-.917 0-1.667.75-1.667 1.667 0 .916.75 1.666 1.667 1.666zm0 1.667c-.917 0-1.667.75-1.667 1.667 0 .916.75 1.666 1.667 1.666.916 0 1.666-.75 1.666-1.666 0-.917-.75-1.667-1.666-1.667zm-1.667 6.667c0-.917.75-1.667 1.667-1.667.916 0 1.666.75 1.666 1.667 0 .916-.75 1.666-1.666 1.666-.917 0-1.667-.75-1.667-1.666z",clipRule:"evenodd"}))},Like:s,MyCommunity:m,PlusSpecial:h,Recalculate:v,Scale:u,Share:f,Stethoscope:p},k=function(e){var a=e.value,t=e.options,l=e.className,n=e.direction,c=void 0===n?"horizontal":n,i=e.onChange,o=e.isDisabled,r=b(a),d=r[0],s=r[1];return y.createElement(z,{className:l,"data-direction":c},t.map((function(e,t){return y.createElement(g,{"data-selected":(a||d)===e.value,"data-disabled":o,key:t,onClick:function(){var a;a=e.value,o||(s(a),i&&i(a))}},y.createElement("div",null,e.content,e.label&&y.createElement(w,{type:"bold",color:(a||d)===e.value?"#2D87F3":"black",className:"radio-group-item-heading",size:"label1"},e.label)))})))},R=function(){document.querySelectorAll('.hhg-modal[data-open="true"]').length<1&&document.body.classList.remove("hhc-modal-show")},D=function(){document.querySelectorAll('.hhg-modal[data-open="true"]').length<1&&(document.body.style.overflow="",document.body.style.paddingRight="",document.body.classList.remove("hhc-disabled-scroll"))},S=function(e){var a=e.type,t=void 0===a?"lead":a,l=e.closeIcon,n=e.isOpen,c=void 0===n||n,i=e.onClose,o=e.children,r=e.className,d=void 0===r?"":r,s=e.animationType,m=void 0===s?"slideTop":s,h=e.isStaticBackdrop,v=void 0!==h&&h;e.style;var u=b(!1),f=u[0],p=u[1],z=C(null),g=x().width;if(!z.current&&f&&(z.current=document.createElement("div")),H((function(){return p(!0),function(){p(!1),R(),D()}}),[]),H((function(){if(f){var e=((a=document.getElementById("hhg-modals"))||((a=document.createElement("div")).setAttribute("id","hhg-modals"),document.body.append(a)),a);return e.appendChild(z.current),function(){e.removeChild(z.current)}}var a}),[f]),H((function(){c?document.body.classList.add("hhc-modal-show"):R()}),[c]),H((function(){c?(document.body.style.overflow="hidden",document.body.style.paddingRight=g+"px",document.body.classList.add("hhc-disabled-scroll")):D()}),[c,g]),!f)return null;var w=["hhg-modal__wrapper",d,m].filter((function(e){return e})).join(" ");return F(y.createElement(A,{className:w,"data-open":c,"data-type":t},!v&&y.createElement(V,{"data-open":c,onClick:i,"data-type":t}),!v&&"video"===t&&!!l&&y.createElement("div",{className:"hhg-modal__close",onClick:i},l),y.createElement(B,{className:"hhg-modal","data-open":c},y.createElement("div",{className:"video"===t?"hhg-modal__video":"hhg-modal__content"},!!l&&"video"!==t&&y.createElement("div",{className:"hhg-modal__close",onClick:i},l),o))),z.current)};export{_ as I,S as M,k as R};
|
package/build/esm/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{i as Types,b as ageGenerate,f as formatHealthTool,g as getDynamicHealthTool,c as getDynamicHealthToolWithCache,u as useFbDataLayer,a as useHealthToolsCache}from"./ageGenerate-4eacfb23.js";export{c as Constants,t as theme}from"./theme-82709ce4.js";export{A as Alert,t as AmpNextPage,f as ArticleCard,B as Badge,a as BorderHeading,g as Breadcrumbs,l as Carousel,h as CategoryCard,C as Checkbox,i as CheckboxGroup,r as CookieAcceptConfirm,D as DatePicker,u as DateRangePicker,F as FileDropdown,q as FloatButtonGroup,E as Footer,G as Grid,I as IconText,L as Layout,y as NavigationBar,N as NavigationLayout,P as Pagination,e as Progress,j as ProgressBar,R as RateStars,s as SeoHead,S as Shadow,v as ShareContainer,w as ShareDrawer,k as SideMenu,x as SiteWide,b as Slider,m as StatisticCard,z as StickySponsoredBy,p as SurveyThankyouCard,n as Table,o as Tabs,T as Tag,c as Toggle,U as UnderlinedLink,d as Uploader}from"./index-11ca3854.js";export{A as Avatar,C as CardAuthor,D as DefaultComponentGlobalContextData,G as GlobalData,L as Loading,P as Popup,b as PopupDoctor,a as PopupExpert,e as PopupHospital,T as TogetherComponentGlobalContext,f as TogetherComponentGlobalContextProvider,c as TogetherConstants,d as TogetherDataTransforms,U as UserAvatar}from"./index-73638a82.js";export{B as Button,H as Heading}from"./index-9ee79492.js";export{D as Divider,a as Dropdown}from"./index-f92f5049.js";export{D as DoctorInfo,F as Flag,L as LanguageSwitcher,M as MobileBottomNavigation,c as MobileBottomNavigationIcon,i as NavigationLogoutPopup,j as NavigationProfileButton,N as NavigationV2,P as ProfilePopup,R as Radio,a as RadioGroup,S as ScrollList,b as SurveyQuestionCard,U as UserProfileNavigation,f as UserProfileNavigationHeader,h as UserProfileNavigationStats,e as defaultTranslation,g as getNavMenuContent,d as getNavMenuContentWithCache}from"./index-531e1c32.js";export{I as Input}from"./index-38ea4462.js";export{C as Container,L as Label,a as Logo,M as Menu,P as PureInput,T as Text,b as TextArea,c as TextDivider}from"./index.styled-df180c76.js";export{I as Icon,M as Modal,R as RadioImageGroup}from"./index-
|
|
1
|
+
export{i as Types,b as ageGenerate,f as formatHealthTool,g as getDynamicHealthTool,c as getDynamicHealthToolWithCache,u as useFbDataLayer,a as useHealthToolsCache}from"./ageGenerate-4eacfb23.js";export{c as Constants,t as theme}from"./theme-82709ce4.js";export{A as Alert,t as AmpNextPage,f as ArticleCard,B as Badge,a as BorderHeading,g as Breadcrumbs,l as Carousel,h as CategoryCard,C as Checkbox,i as CheckboxGroup,r as CookieAcceptConfirm,D as DatePicker,u as DateRangePicker,F as FileDropdown,q as FloatButtonGroup,E as Footer,G as Grid,I as IconText,L as Layout,y as NavigationBar,N as NavigationLayout,P as Pagination,e as Progress,j as ProgressBar,R as RateStars,s as SeoHead,S as Shadow,v as ShareContainer,w as ShareDrawer,k as SideMenu,x as SiteWide,b as Slider,m as StatisticCard,z as StickySponsoredBy,p as SurveyThankyouCard,n as Table,o as Tabs,T as Tag,c as Toggle,U as UnderlinedLink,d as Uploader}from"./index-11ca3854.js";export{A as Avatar,C as CardAuthor,D as DefaultComponentGlobalContextData,G as GlobalData,L as Loading,P as Popup,b as PopupDoctor,a as PopupExpert,e as PopupHospital,T as TogetherComponentGlobalContext,f as TogetherComponentGlobalContextProvider,c as TogetherConstants,d as TogetherDataTransforms,U as UserAvatar}from"./index-73638a82.js";export{B as Button,H as Heading}from"./index-9ee79492.js";export{D as Divider,a as Dropdown}from"./index-f92f5049.js";export{D as DoctorInfo,F as Flag,L as LanguageSwitcher,M as MobileBottomNavigation,c as MobileBottomNavigationIcon,i as NavigationLogoutPopup,j as NavigationProfileButton,N as NavigationV2,P as ProfilePopup,R as Radio,a as RadioGroup,S as ScrollList,b as SurveyQuestionCard,U as UserProfileNavigation,f as UserProfileNavigationHeader,h as UserProfileNavigationStats,e as defaultTranslation,g as getNavMenuContent,d as getNavMenuContentWithCache}from"./index-531e1c32.js";export{I as Input}from"./index-38ea4462.js";export{C as Container,L as Label,a as Logo,M as Menu,P as PureInput,T as Text,b as TextArea,c as TextDivider}from"./index.styled-df180c76.js";export{I as Icon,M as Modal,R as RadioImageGroup}from"./index-f32c8c70.js";export{D as Drawer}from"./index.styled-ecba7a5d.js";export{B as Breakpoints,M as MediaQueries,h as fadeIn,i as formatUrlWithPageParam,j as getBoundariesFromMediaQueryKey,k as getPopupWrapperDom,m as makeParams,a as slideInDown,b as slideInLeft,c as slideInRight,s as slideInUp,e as slideOutDown,f as slideOutLeft,g as slideOutRight,d as slideOutUp,l as startCase,t as toggleNoScroll,u as useTranslations}from"./useTranslations-e61cf3ed.js";export{M as MEASURE_ELEMENT_CLASS,u as useScrollbarSize}from"./useScrollbarSize-99db33e1.js";export{T as TranslationsProvider,t as translationsMap}from"./translationsProvider-b1af0026.js";export{T as TranslationsContext,d as defaultTranslations}from"./translationsContext-65bea19b.js";export{C as CardLink,q as CardPost,r as CardPostPopoverMore,b as CardReactions,s as CardReply,v as CardReplyPopover,f as CreateNewPostContent,g as CreatePostDescription,h as CreatePostTitle,n as ImagePreviewPopup,I as InputCommentBar,d as LabelPin,L as LabelSortPin,e as LabelSorting,w as PopoverMenu,P as PopupDanger,j as PopupFrame,m as PostContent,p as PostImagePreview,o as PostSingleImageViewPopup,l as ShareBox,S as SharePopup,k as SubmitReportForm,c as TagTopic,T as TogetherAuthConfigContext,a as TogetherAuthConfigContextProvider,t as TogetherTypes,i as TopicSelectList,u as useTogetherAuthRequiredAction}from"./types-4dc78fab.js";export{B as BookingSearchBar,t as CareTypes}from"./types-1a8aa042.js";export{c as CareConstants}from"./constants-dc22740c.js";export{a as EcomApiTypes,c as EcomConstants,i as EcomDataFormatter,d as EcomDataTypes,t as EcomTypes}from"./types-ec2bbf0d.js";export{d as deleteCookie,g as getCookie,s as setCookie}from"./cookieHelper-0e8521c3.js";export{l as lazyLoadInstance}from"./lazyLoad-d80d3fd1.js";import"react";import"styled-components";export{a as abbreviateNumber}from"./number-3cb24023.js";export{d as getCareApiDomain,g as getCurrentBaseUrl,a as getCurrentSsoUrl,c as getDiscoverApiDomain,b as getTogetherApiDomain}from"./routing-f63546d5.js";export{g as getSocialList}from"./getSocialList-27eabc04.js";import"./tslib.es6-6ae0d506.js";import"./core-286f158c.js";import"date-fns";import"react-range";import"react-id-generator";import"react-day-picker/DayPickerInput";import"lodash";import"keen-slider/react";import"react-dom";import"./useOutsideClick-6004483a.js";import"date-fns/locale/en-US";import"date-fns/locale/id";import"date-fns/locale/vi";import"date-fns/locale/zh-TW";import"lodash/debounce";import"react-loading-skeleton";import"date-fns/locale/hi";import"date-fns/locale/ms";import"date-fns/locale/th";import"slugify";import"string-format";import"smoothscroll-polyfill";import"innertext";import"react-contenteditable";import"lodash/shuffle";import"vanilla-lazyload";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("./index.styled-af1f423b.js"),a=require("./tslib.es6-f7929e76.js"),t=require("react"),l=require("./useScrollbarSize-586f6706.js"),n=require("react-dom"),c=require("./index.styled-a613a33c.js");function d(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var i=d(t),o={Ask:e.Ask,BarChart:e.BarChart,Booking:e.Booking,Bookmark:e.Bookmark,Boy:function(e){var t=e.size,l=void 0===t?40:t,n=a.__rest(e,["size"]);return i.default.createElement("svg",a.__assign({xmlns:"http://www.w3.org/2000/svg",width:l,height:l,fill:"none",viewBox:"0 0 40 40"},n),i.default.createElement("circle",{cx:"20",cy:"20",r:"20",fill:"#2D87F3"}),i.default.createElement("path",{fill:"#fff",d:"M20.002 30.973c-2.616 0-4.945-.607-6.734-1.755-1.82-1.166-3.058-2.884-3.604-4.992-.045 0-.09.003-.136.003-.758 0-1.486-.3-2.023-.834a2.843 2.843 0 010-4.029 2.868 2.868 0 012.194-.83c.577-2.321 1.83-4.42 3.567-5.952C15.16 10.918 17.552 10 20.002 10s4.84.918 6.733 2.587c1.737 1.53 2.99 3.628 3.567 5.952a2.868 2.868 0 012.194.83 2.843 2.843 0 010 4.028 2.868 2.868 0 01-2.16.831c-.546 2.106-1.782 3.826-3.602 4.992-1.79 1.146-4.118 1.753-6.732 1.753z"}),i.default.createElement("path",{fill:"#2D87F3",d:"M17.95 13.19h-.014a.525.525 0 00-.524.509c0 .015-.059 1.466-2.006 1.927a.525.525 0 00-.389.63.523.523 0 00.633.386c2.18-.516 2.793-2.134 2.812-2.917a.519.519 0 00-.313-.491.527.527 0 00-.2-.044zM20.591 12.874a.524.524 0 00-.326.663c.004.014.455 1.396-1.212 2.5a.521.521 0 00.19.936.526.526 0 00.39-.066c1.866-1.236 1.878-2.966 1.625-3.708a.521.521 0 00-.464-.352.529.529 0 00-.203.027zM23.292 13.4a.525.525 0 00-.735.749c.008.007.787.783.35 2.119a.523.523 0 00.898.508.523.523 0 00.098-.183c.641-1.946-.56-3.142-.611-3.192zM15.977 21.818a1.365 1.365 0 000-1.936 1.38 1.38 0 00-1.945 0 1.365 1.365 0 000 1.936 1.38 1.38 0 001.945 0zM25.445 22.172a1.368 1.368 0 10-.682-2.652 1.369 1.369 0 10.682 2.652zM22.837 22.755a.532.532 0 00-.66.338c-.005.012-.414 1.222-2.124 1.222-1.71 0-2.12-1.21-2.124-1.222a.523.523 0 00-.998.316c.026.08.656 1.947 3.123 1.947s3.097-1.867 3.122-1.947a.52.52 0 00-.339-.654z"}))},Calendar:function(e){var t=e.size,l=void 0===t?20:t,n=e.color,c=void 0===n?"#595959":n,d=a.__rest(e,["size","color"]);return i.default.createElement("svg",a.__assign({width:l,height:l,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},d),i.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.8337 2.50065H16.667C17.5837 2.50065 18.3337 3.25065 18.3337 4.16732V17.5006C18.3337 18.4173 17.5837 19.1673 16.667 19.1673H3.33366C2.41699 19.1673 1.66699 18.4173 1.66699 17.5006V4.16732C1.66699 3.25065 2.41699 2.50065 3.33366 2.50065H4.16699V1.66732C4.16699 1.20898 4.54199 0.833984 5.00033 0.833984C5.45866 0.833984 5.83366 1.20898 5.83366 1.66732V2.50065H14.167V1.66732C14.167 1.20898 14.542 0.833984 15.0003 0.833984C15.4587 0.833984 15.8337 1.20898 15.8337 1.66732V2.50065ZM4.16699 17.5007H15.8337C16.292 17.5007 16.667 17.1257 16.667 16.6673V6.66732H3.33366V16.6673C3.33366 17.1257 3.70866 17.5007 4.16699 17.5007Z",fill:c}))},Community:e.Community,EditSpecial:e.EditSpecial,Family:e.Family,Font:e.Font,GenderBoy:function(e){var t=e.size,l=void 0===t?16:t,n=a.__rest(e,["size"]);return i.default.createElement("svg",a.__assign({xmlns:"http://www.w3.org/2000/svg",width:l,height:l,fill:"none",viewBox:"0 0 16 16"},n),i.default.createElement("g",{fill:"#595959",clipPath:"url(#clip0_408_8625)"},i.default.createElement("path",{d:"M15.325 1.199a.602.602 0 00-.038-.151v-.005h-.001a.618.618 0 00-.107-.168.623.623 0 00-.117-.105l-.004-.002a.6.6 0 00-.175-.078.609.609 0 00-.161-.024h-4.278a.611.611 0 000 1.223h2.802L9.6 5.535a5.469 5.469 0 00-3.433-1.203 5.506 5.506 0 00-5.5 5.5c0 3.033 2.468 5.5 5.5 5.5 3.033 0 5.5-2.467 5.5-5.5 0-1.262-.425-2.46-1.203-3.433l3.648-3.647v2.802a.611.611 0 001.222 0V1.277c0-.012-.003-.025-.004-.037a.617.617 0 00-.004-.041zM6.166 14.11A4.282 4.282 0 011.89 9.833a4.282 4.282 0 017.303-3.028 4.282 4.282 0 01-3.026 7.305z"}),i.default.createElement("path",{fillRule:"evenodd",d:"M15.287 1.048a.602.602 0 01.042.192l.002.016a.156.156 0 01.002.021v4.278a.611.611 0 01-1.222 0V2.753L10.463 6.4a5.469 5.469 0 011.203 3.433c0 3.033-2.467 5.5-5.5 5.5a5.506 5.506 0 01-5.5-5.5c0-3.033 2.468-5.5 5.5-5.5 1.263 0 2.46.425 3.433 1.203l3.647-3.647h-2.802a.611.611 0 010-1.223h4.278a.609.609 0 01.197.036.6.6 0 01.14.067h.003a.623.623 0 01.14.135h.001a.618.618 0 01.083.138v.003l.001.003zm.064-.02c.021.053.033.107.04.162m-.04-.162a.695.695 0 00-.096-.165l-.001-.002c-.008-.009-.016-.02-.026-.03A.69.69 0 0015.1.715m-.2-.089A.675.675 0 0014.722.6h-4.278a.678.678 0 000 1.355h2.641L9.594 5.447a5.535 5.535 0 00-3.428-1.18A5.573 5.573 0 00.6 9.832 5.573 5.573 0 006.166 15.4a5.573 5.573 0 005.567-5.567c0-1.257-.417-2.45-1.18-3.427l3.491-3.492v2.641a.678.678 0 001.356 0V1.277a.202.202 0 00-.003-.027v-.004l-.001-.01a.743.743 0 00-.005-.046M1.955 9.833a4.216 4.216 0 004.211 4.211 4.216 4.216 0 002.979-7.191 4.216 4.216 0 00-7.19 2.98zm7.237-3.028a4.282 4.282 0 00-7.304 3.028 4.282 4.282 0 004.278 4.278 4.282 4.282 0 003.026-7.306z",clipRule:"evenodd"})),i.default.createElement("defs",null,i.default.createElement("clipPath",{id:"clip0_408_8625"},i.default.createElement("path",{fill:"#fff",d:"M0 0H16V16H0z"}))))},GenderChooseBoy:function(e){var l=t.useRef("svg-".concat(Math.random()));return i.default.createElement("svg",a.__assign({xmlns:"http://www.w3.org/2000/svg",width:"21",height:"20",fill:"none",viewBox:"0 0 21 20"},e),i.default.createElement("g",{clipPath:"url(#".concat(l.current,")")},i.default.createElement("path",{fill:"#45A4FF",d:"M11.203 7.633l1.914 1.914 6.397-6.397L17.6 1.235l-6.397 6.398z"}),i.default.createElement("path",{fill:"#45A4FF",d:"M8.083 5.334a7.333 7.333 0 100 14.667 7.333 7.333 0 000-14.667zm0 11.96a4.626 4.626 0 110-9.253 4.626 4.626 0 010 9.252z"}),i.default.createElement("path",{fill:"#2D87F3",d:"M7.508 8.077a4.626 4.626 0 100 9.181 4.627 4.627 0 010-9.181zM8.083 5.334a7.43 7.43 0 00-.575.022 7.334 7.334 0 010 14.622 7.333 7.333 0 10.575-14.644zM19.88 2.785v-.78L18.744.872h-.78l-2.707 2.707h1.55c.2 0 .364.163.364.365v1.55l2.707-2.708z"}),i.default.createElement("path",{fill:"#45A4FF",d:"M18.043 0h-4.585a.365.365 0 00-.364.365v1.978c0 .201.163.364.364.364h4.22c.201 0 .365.163.365.365v4.22c0 .2.163.364.364.364h1.978a.365.365 0 00.365-.364V.365A.365.365 0 0020.385 0h-2.342z"})),i.default.createElement("defs",null,i.default.createElement("clipPath",{id:l.current},i.default.createElement("path",{fill:"#fff",d:"M0 0H20V20H0z",transform:"translate(.75)"}))))},GenderChooseGirl:function(e){return i.default.createElement("svg",a.__assign({xmlns:"http://www.w3.org/2000/svg",width:"21",height:"20",fill:"none",viewBox:"0 0 21 20"},e),i.default.createElement("path",{fill:"#FE9DC2",d:"M13.748 15.546h-1.503a.321.321 0 01-.321-.322v-3.7H9.577v3.7a.321.321 0 01-.322.322H7.753a.321.321 0 00-.321.321v1.704c0 .178.144.322.321.322h1.502c.178 0 .322.144.322.321v1.465c0 .178.144.321.321.321h1.704a.321.321 0 00.322-.321v-1.465c0-.177.144-.321.321-.321h1.503a.321.321 0 00.321-.322v-1.704a.322.322 0 00-.321-.321z"}),i.default.createElement("path",{fill:"#FC488D",d:"M9.576 11.523v2.151a7.466 7.466 0 002.347 0v-2.15H9.576z"}),i.default.createElement("path",{fill:"#FE9DC2",d:"M10.75 0a6.357 6.357 0 100 12.715A6.357 6.357 0 0010.75 0zm0 10.368a4.01 4.01 0 110-8.021 4.01 4.01 0 010 8.021z"}),i.default.createElement("path",{fill:"#FC488D",d:"M10.157 2.391a4.01 4.01 0 100 7.934 4.011 4.011 0 010-7.934zM10.75 0c-.2 0-.398.01-.593.028a6.358 6.358 0 010 12.66A6.357 6.357 0 1010.75 0z"}))},GenderGirl:function(e){var t=e.size,l=void 0===t?16:t,n=a.__rest(e,["size"]);return i.default.createElement("svg",a.__assign({xmlns:"http://www.w3.org/2000/svg",width:l,height:l,fill:"none",viewBox:"0 0 16 16"},n),i.default.createElement("path",{fill:"#595959",d:"M11.445 8.979a4.875 4.875 0 000-6.888 4.879 4.879 0 00-6.89 0 4.875 4.875 0 000 6.888 4.849 4.849 0 002.872 1.39V12H6.28a.573.573 0 100 1.147h1.147v1.614a.573.573 0 001.146 0v-1.614H9.72a.573.573 0 100-1.146H8.573v-1.63a4.849 4.849 0 002.872-1.391zm-6.08-.81a3.728 3.728 0 010-5.268 3.73 3.73 0 015.27 0 3.728 3.728 0 010 5.267 3.73 3.73 0 01-5.27 0z"}),i.default.createElement("path",{fill:"#595959",fillRule:"evenodd",d:"M5.366 8.168a3.73 3.73 0 005.268 0 3.728 3.728 0 000-5.267 3.73 3.73 0 00-5.268 0 3.728 3.728 0 000 5.267zm6.15-6.148a4.975 4.975 0 010 7.03 4.948 4.948 0 01-2.843 1.407V11.9H9.72a.673.673 0 110 1.346H8.673v1.514a.673.673 0 01-1.346 0v-1.514H6.28a.673.673 0 110-1.346h1.046v-1.443A4.948 4.948 0 014.484 9.05a4.975 4.975 0 010-7.029 4.979 4.979 0 017.032 0zm-4.09 8.35a4.849 4.849 0 01-2.871-1.391 4.875 4.875 0 010-6.888 4.879 4.879 0 016.89 0 4.875 4.875 0 010 6.888 4.849 4.849 0 01-2.872 1.39V12H9.72a.573.573 0 110 1.147H8.573v1.614a.573.573 0 01-1.146 0v-1.614H6.28a.573.573 0 110-1.146h1.147v-1.63zm-1.99-7.398a3.628 3.628 0 000 5.126 3.63 3.63 0 005.128 0 3.628 3.628 0 000-5.126 3.63 3.63 0 00-5.128 0z",clipRule:"evenodd"}))},Girl:function(e){var t=e.size,l=void 0===t?40:t,n=a.__rest(e,["size"]);return i.default.createElement("svg",a.__assign({xmlns:"http://www.w3.org/2000/svg",width:l,height:l,fill:"none",viewBox:"0 0 24 24"},n),i.default.createElement("circle",{cx:"12",cy:"12",r:"12",fill:"#FC5D9A"}),i.default.createElement("path",{fill:"#fff",d:"M18.283 11.759c-.034 0-.068 0-.102.003-.346-1.394-1.099-2.652-2.14-3.57a6.132 6.132 0 00-3.726-1.544v-.532a2.062 2.062 0 001.617-.634 1.178 1.178 0 000-1.638 1.13 1.13 0 00-1.626 0c-.116.119-.218.25-.305.392a2.212 2.212 0 00-.308-.393 1.13 1.13 0 00-1.625 0 1.179 1.179 0 000 1.638 2.06 2.06 0 001.5.639c.041 0 .08 0 .117-.004v.533a6.143 6.143 0 00-3.726 1.543c-1.042.918-1.793 2.177-2.14 3.572a1.72 1.72 0 00-1.317.498 1.706 1.706 0 000 2.417c.323.32.76.5 1.215.5.027 0 .054 0 .081-.002a4.968 4.968 0 002.162 2.996c1.073.69 2.47 1.053 4.04 1.053 1.57 0 2.967-.364 4.04-1.053a4.987 4.987 0 002.162-2.998 1.72 1.72 0 001.295-.499 1.705 1.705 0 000-2.417c-.322-.32-.759-.5-1.214-.5zm-5.527-7.477a.5.5 0 01.724 0 .55.55 0 010 .763 1.446 1.446 0 01-1.165.446 1.834 1.834 0 01-.004-.077v-.09c.01-.392.168-.764.445-1.042zm-2.238.762a.55.55 0 010-.763.501.501 0 01.724 0c.276.278.435.65.444 1.042v.09c0 .027-.002.053-.004.078a1.45 1.45 0 01-1.164-.447z"}),i.default.createElement("path",{fill:"#FC5D9A",d:"M9.586 13.68a.819.819 0 000-1.161.828.828 0 00-1.167 0 .819.819 0 000 1.162c.323.32.845.32 1.167 0zM15.267 13.894a.821.821 0 10-.41-1.592.821.821 0 10.41 1.592zM13.704 14.242a.32.32 0 00-.282.045.314.314 0 00-.114.159c-.002.007-.248.733-1.274.733-1.027 0-1.272-.726-1.275-.733a.314.314 0 10-.598.19c.016.046.394 1.168 1.873 1.168s1.858-1.12 1.873-1.168a.313.313 0 00-.203-.394zM12.402 7.713a.315.315 0 00-.53.24.313.313 0 00.1.218c.253.248.466.533.632.845.316.61.298 1.118-.056 1.551-.403.493-.865.449-1.104.378-.33-.096-.598-.351-.625-.595-.03-.263.058-.585.318-.71.165-.077.337-.039.486.11a.315.315 0 00.538-.22.313.313 0 00-.092-.222c-.336-.337-.797-.426-1.204-.232-.473.226-.737.752-.671 1.343.055.494.495.957 1.072 1.128.151.045.308.067.465.068.491 0 .958-.228 1.305-.652.514-.63.558-1.402.127-2.234a4.11 4.11 0 00-.761-1.016z"}))},Heart:e.Heart,Home:e.Home,Kebab:function(e){var t=e.size,l=void 0===t?20:t,n=a.__rest(e,["size"]);return i.default.createElement("svg",a.__assign({xmlns:"http://www.w3.org/2000/svg",width:l,height:l,fill:"none",viewBox:"0 0 20 20"},n),i.default.createElement("path",{fill:"#000",fillOpacity:"0.54",fillRule:"evenodd",d:"M10 6.667c.916 0 1.666-.75 1.666-1.666 0-.917-.75-1.667-1.666-1.667-.917 0-1.667.75-1.667 1.667 0 .916.75 1.666 1.667 1.666zm0 1.667c-.917 0-1.667.75-1.667 1.667 0 .916.75 1.666 1.667 1.666.916 0 1.666-.75 1.666-1.666 0-.917-.75-1.667-1.666-1.667zm-1.667 6.667c0-.917.75-1.667 1.667-1.667.916 0 1.666.75 1.666 1.667 0 .916-.75 1.666-1.666 1.666-.917 0-1.667-.75-1.667-1.666z",clipRule:"evenodd"}))},Like:e.Like,MyCommunity:e.MyCommunity,PlusSpecial:e.PlusSpecial,Recalculate:e.Recalculate,Scale:e.Scale,Share:e.Share,Stethoscope:e.Stethoscope},r=function(){document.querySelectorAll('.hhg-modal[data-open="true"]').length<1&&document.body.classList.remove("hhc-modal-show")},u=function(){document.querySelectorAll('.hhg-modal[data-open="true"]').length<1&&(document.body.style.overflow="",document.body.style.paddingRight="",document.body.classList.remove("hhc-disabled-scroll"))};exports.Icon=o,exports.Modal=function(e){var a=e.type,d=void 0===a?"lead":a,o=e.closeIcon,s=e.isOpen,f=void 0===s||s,m=e.onClose,h=e.children,v=e.className,p=void 0===v?"":v,g=e.animationType,z=void 0===g?"slideTop":g,E=e.isStaticBackdrop,w=void 0!==E&&E,y=t.useState(!1),M=y[0],_=y[1],C=t.useRef(null),b=l.useScrollbarSize().width;if(!C.current&&M&&(C.current=document.createElement("div")),t.useEffect((function(){return _(!0),function(){_(!1),r(),u()}}),[]),t.useEffect((function(){if(M){var e=((a=document.getElementById("hhg-modals"))||((a=document.createElement("div")).setAttribute("id","hhg-modals"),document.body.append(a)),a);return e.appendChild(C.current),function(){e.removeChild(C.current)}}var a}),[M]),t.useEffect((function(){f?document.body.classList.add("hhc-modal-show"):r()}),[f]),t.useEffect((function(){f?(document.body.style.overflow="hidden",document.body.style.paddingRight=b+"px",document.body.classList.add("hhc-disabled-scroll")):u()}),[f,b]),!M)return null;var H=["hhg-modal__wrapper",p,z].filter((function(e){return e})).join(" ");return n.createPortal(i.default.createElement(c.StyledModalWrapper,{className:H,"data-open":f,"data-type":d},!w&&i.default.createElement(c.StyledModalMask,{"data-open":f,onClick:m,"data-type":d}),!w&&"video"===d&&!!o&&i.default.createElement("div",{className:"hhg-modal__close",onClick:m},o),i.default.createElement(c.StyledModal,{className:"hhg-modal","data-open":f},i.default.createElement("div",{className:"video"===d?"hhg-modal__video":"hhg-modal__content"},!!o&&"video"!==d&&i.default.createElement("div",{className:"hhg-modal__close",onClick:m},o),h))),C.current)},exports.RadioImageGroup=function(a){var l=a.value,n=a.options,c=a.className,d=a.direction,o=void 0===d?"horizontal":d,r=a.onChange,u=a.isDisabled,s=t.useState(l),f=s[0],m=s[1];return i.default.createElement(e.StyledRadioImageGroup,{className:c,"data-direction":o},n.map((function(a,t){return i.default.createElement(e.StyledRadioImageItem,{"data-selected":(l||f)===a.value,"data-disabled":u,key:t,onClick:function(){var e;e=a.value,u||(m(e),r&&r(e))}},i.default.createElement("div",null,a.content,a.label&&i.default.createElement(e.Text,{type:"bold",color:(l||f)===a.value?"#2D87F3":"black",className:"radio-group-item-heading",size:"label1"},a.label)))})))};
|
|
1
|
+
"use strict";var e=require("./index.styled-af1f423b.js"),a=require("./tslib.es6-f7929e76.js"),t=require("react"),l=require("./useScrollbarSize-586f6706.js"),n=require("react-dom"),c=require("./index.styled-a613a33c.js");function d(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var i=d(t),r={Ask:e.Ask,BarChart:e.BarChart,Booking:e.Booking,Bookmark:e.Bookmark,Boy:function(e){var t=e.size,l=void 0===t?40:t,n=a.__rest(e,["size"]);return i.default.createElement("svg",a.__assign({xmlns:"http://www.w3.org/2000/svg",width:l,height:l,fill:"none",viewBox:"0 0 40 40"},n),i.default.createElement("circle",{cx:"20",cy:"20",r:"20",fill:"#2D87F3"}),i.default.createElement("path",{fill:"#fff",d:"M20.002 30.973c-2.616 0-4.945-.607-6.734-1.755-1.82-1.166-3.058-2.884-3.604-4.992-.045 0-.09.003-.136.003-.758 0-1.486-.3-2.023-.834a2.843 2.843 0 010-4.029 2.868 2.868 0 012.194-.83c.577-2.321 1.83-4.42 3.567-5.952C15.16 10.918 17.552 10 20.002 10s4.84.918 6.733 2.587c1.737 1.53 2.99 3.628 3.567 5.952a2.868 2.868 0 012.194.83 2.843 2.843 0 010 4.028 2.868 2.868 0 01-2.16.831c-.546 2.106-1.782 3.826-3.602 4.992-1.79 1.146-4.118 1.753-6.732 1.753z"}),i.default.createElement("path",{fill:"#2D87F3",d:"M17.95 13.19h-.014a.525.525 0 00-.524.509c0 .015-.059 1.466-2.006 1.927a.525.525 0 00-.389.63.523.523 0 00.633.386c2.18-.516 2.793-2.134 2.812-2.917a.519.519 0 00-.313-.491.527.527 0 00-.2-.044zM20.591 12.874a.524.524 0 00-.326.663c.004.014.455 1.396-1.212 2.5a.521.521 0 00.19.936.526.526 0 00.39-.066c1.866-1.236 1.878-2.966 1.625-3.708a.521.521 0 00-.464-.352.529.529 0 00-.203.027zM23.292 13.4a.525.525 0 00-.735.749c.008.007.787.783.35 2.119a.523.523 0 00.898.508.523.523 0 00.098-.183c.641-1.946-.56-3.142-.611-3.192zM15.977 21.818a1.365 1.365 0 000-1.936 1.38 1.38 0 00-1.945 0 1.365 1.365 0 000 1.936 1.38 1.38 0 001.945 0zM25.445 22.172a1.368 1.368 0 10-.682-2.652 1.369 1.369 0 10.682 2.652zM22.837 22.755a.532.532 0 00-.66.338c-.005.012-.414 1.222-2.124 1.222-1.71 0-2.12-1.21-2.124-1.222a.523.523 0 00-.998.316c.026.08.656 1.947 3.123 1.947s3.097-1.867 3.122-1.947a.52.52 0 00-.339-.654z"}))},Calendar:function(e){var t=e.size,l=void 0===t?20:t,n=e.color,c=void 0===n?"#595959":n,d=a.__rest(e,["size","color"]);return i.default.createElement("svg",a.__assign({width:l,height:l,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},d),i.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.8337 2.50065H16.667C17.5837 2.50065 18.3337 3.25065 18.3337 4.16732V17.5006C18.3337 18.4173 17.5837 19.1673 16.667 19.1673H3.33366C2.41699 19.1673 1.66699 18.4173 1.66699 17.5006V4.16732C1.66699 3.25065 2.41699 2.50065 3.33366 2.50065H4.16699V1.66732C4.16699 1.20898 4.54199 0.833984 5.00033 0.833984C5.45866 0.833984 5.83366 1.20898 5.83366 1.66732V2.50065H14.167V1.66732C14.167 1.20898 14.542 0.833984 15.0003 0.833984C15.4587 0.833984 15.8337 1.20898 15.8337 1.66732V2.50065ZM4.16699 17.5007H15.8337C16.292 17.5007 16.667 17.1257 16.667 16.6673V6.66732H3.33366V16.6673C3.33366 17.1257 3.70866 17.5007 4.16699 17.5007Z",fill:c}))},Community:e.Community,EditSpecial:e.EditSpecial,Family:e.Family,Font:e.Font,GenderBoy:function(e){var t=e.size,l=void 0===t?16:t,n=a.__rest(e,["size"]);return i.default.createElement("svg",a.__assign({xmlns:"http://www.w3.org/2000/svg",width:l,height:l,fill:"none",viewBox:"0 0 16 16"},n),i.default.createElement("g",{fill:"#595959",clipPath:"url(#clip0_408_8625)"},i.default.createElement("path",{d:"M15.325 1.199a.602.602 0 00-.038-.151v-.005h-.001a.618.618 0 00-.107-.168.623.623 0 00-.117-.105l-.004-.002a.6.6 0 00-.175-.078.609.609 0 00-.161-.024h-4.278a.611.611 0 000 1.223h2.802L9.6 5.535a5.469 5.469 0 00-3.433-1.203 5.506 5.506 0 00-5.5 5.5c0 3.033 2.468 5.5 5.5 5.5 3.033 0 5.5-2.467 5.5-5.5 0-1.262-.425-2.46-1.203-3.433l3.648-3.647v2.802a.611.611 0 001.222 0V1.277c0-.012-.003-.025-.004-.037a.617.617 0 00-.004-.041zM6.166 14.11A4.282 4.282 0 011.89 9.833a4.282 4.282 0 017.303-3.028 4.282 4.282 0 01-3.026 7.305z"}),i.default.createElement("path",{fillRule:"evenodd",d:"M15.287 1.048a.602.602 0 01.042.192l.002.016a.156.156 0 01.002.021v4.278a.611.611 0 01-1.222 0V2.753L10.463 6.4a5.469 5.469 0 011.203 3.433c0 3.033-2.467 5.5-5.5 5.5a5.506 5.506 0 01-5.5-5.5c0-3.033 2.468-5.5 5.5-5.5 1.263 0 2.46.425 3.433 1.203l3.647-3.647h-2.802a.611.611 0 010-1.223h4.278a.609.609 0 01.197.036.6.6 0 01.14.067h.003a.623.623 0 01.14.135h.001a.618.618 0 01.083.138v.003l.001.003zm.064-.02c.021.053.033.107.04.162m-.04-.162a.695.695 0 00-.096-.165l-.001-.002c-.008-.009-.016-.02-.026-.03A.69.69 0 0015.1.715m-.2-.089A.675.675 0 0014.722.6h-4.278a.678.678 0 000 1.355h2.641L9.594 5.447a5.535 5.535 0 00-3.428-1.18A5.573 5.573 0 00.6 9.832 5.573 5.573 0 006.166 15.4a5.573 5.573 0 005.567-5.567c0-1.257-.417-2.45-1.18-3.427l3.491-3.492v2.641a.678.678 0 001.356 0V1.277a.202.202 0 00-.003-.027v-.004l-.001-.01a.743.743 0 00-.005-.046M1.955 9.833a4.216 4.216 0 004.211 4.211 4.216 4.216 0 002.979-7.191 4.216 4.216 0 00-7.19 2.98zm7.237-3.028a4.282 4.282 0 00-7.304 3.028 4.282 4.282 0 004.278 4.278 4.282 4.282 0 003.026-7.306z",clipRule:"evenodd"})),i.default.createElement("defs",null,i.default.createElement("clipPath",{id:"clip0_408_8625"},i.default.createElement("path",{fill:"#fff",d:"M0 0H16V16H0z"}))))},GenderChooseBoy:function(e){var l=t.useRef("svg-".concat(Math.random()));return i.default.createElement("svg",a.__assign({xmlns:"http://www.w3.org/2000/svg",width:"21",height:"20",fill:"none",viewBox:"0 0 21 20"},e),i.default.createElement("g",{clipPath:"url(#".concat(l.current,")")},i.default.createElement("path",{fill:"#45A4FF",d:"M11.203 7.633l1.914 1.914 6.397-6.397L17.6 1.235l-6.397 6.398z"}),i.default.createElement("path",{fill:"#45A4FF",d:"M8.083 5.334a7.333 7.333 0 100 14.667 7.333 7.333 0 000-14.667zm0 11.96a4.626 4.626 0 110-9.253 4.626 4.626 0 010 9.252z"}),i.default.createElement("path",{fill:"#2D87F3",d:"M7.508 8.077a4.626 4.626 0 100 9.181 4.627 4.627 0 010-9.181zM8.083 5.334a7.43 7.43 0 00-.575.022 7.334 7.334 0 010 14.622 7.333 7.333 0 10.575-14.644zM19.88 2.785v-.78L18.744.872h-.78l-2.707 2.707h1.55c.2 0 .364.163.364.365v1.55l2.707-2.708z"}),i.default.createElement("path",{fill:"#45A4FF",d:"M18.043 0h-4.585a.365.365 0 00-.364.365v1.978c0 .201.163.364.364.364h4.22c.201 0 .365.163.365.365v4.22c0 .2.163.364.364.364h1.978a.365.365 0 00.365-.364V.365A.365.365 0 0020.385 0h-2.342z"})),i.default.createElement("defs",null,i.default.createElement("clipPath",{id:l.current},i.default.createElement("path",{fill:"#fff",d:"M0 0H20V20H0z",transform:"translate(.75)"}))))},GenderChooseGirl:function(e){return i.default.createElement("svg",a.__assign({xmlns:"http://www.w3.org/2000/svg",width:"21",height:"20",fill:"none",viewBox:"0 0 21 20"},e),i.default.createElement("path",{fill:"#FE9DC2",d:"M13.748 15.546h-1.503a.321.321 0 01-.321-.322v-3.7H9.577v3.7a.321.321 0 01-.322.322H7.753a.321.321 0 00-.321.321v1.704c0 .178.144.322.321.322h1.502c.178 0 .322.144.322.321v1.465c0 .178.144.321.321.321h1.704a.321.321 0 00.322-.321v-1.465c0-.177.144-.321.321-.321h1.503a.321.321 0 00.321-.322v-1.704a.322.322 0 00-.321-.321z"}),i.default.createElement("path",{fill:"#FC488D",d:"M9.576 11.523v2.151a7.466 7.466 0 002.347 0v-2.15H9.576z"}),i.default.createElement("path",{fill:"#FE9DC2",d:"M10.75 0a6.357 6.357 0 100 12.715A6.357 6.357 0 0010.75 0zm0 10.368a4.01 4.01 0 110-8.021 4.01 4.01 0 010 8.021z"}),i.default.createElement("path",{fill:"#FC488D",d:"M10.157 2.391a4.01 4.01 0 100 7.934 4.011 4.011 0 010-7.934zM10.75 0c-.2 0-.398.01-.593.028a6.358 6.358 0 010 12.66A6.357 6.357 0 1010.75 0z"}))},GenderGirl:function(e){var t=e.size,l=void 0===t?16:t,n=a.__rest(e,["size"]);return i.default.createElement("svg",a.__assign({xmlns:"http://www.w3.org/2000/svg",width:l,height:l,fill:"none",viewBox:"0 0 16 16"},n),i.default.createElement("path",{fill:"#595959",d:"M11.445 8.979a4.875 4.875 0 000-6.888 4.879 4.879 0 00-6.89 0 4.875 4.875 0 000 6.888 4.849 4.849 0 002.872 1.39V12H6.28a.573.573 0 100 1.147h1.147v1.614a.573.573 0 001.146 0v-1.614H9.72a.573.573 0 100-1.146H8.573v-1.63a4.849 4.849 0 002.872-1.391zm-6.08-.81a3.728 3.728 0 010-5.268 3.73 3.73 0 015.27 0 3.728 3.728 0 010 5.267 3.73 3.73 0 01-5.27 0z"}),i.default.createElement("path",{fill:"#595959",fillRule:"evenodd",d:"M5.366 8.168a3.73 3.73 0 005.268 0 3.728 3.728 0 000-5.267 3.73 3.73 0 00-5.268 0 3.728 3.728 0 000 5.267zm6.15-6.148a4.975 4.975 0 010 7.03 4.948 4.948 0 01-2.843 1.407V11.9H9.72a.673.673 0 110 1.346H8.673v1.514a.673.673 0 01-1.346 0v-1.514H6.28a.673.673 0 110-1.346h1.046v-1.443A4.948 4.948 0 014.484 9.05a4.975 4.975 0 010-7.029 4.979 4.979 0 017.032 0zm-4.09 8.35a4.849 4.849 0 01-2.871-1.391 4.875 4.875 0 010-6.888 4.879 4.879 0 016.89 0 4.875 4.875 0 010 6.888 4.849 4.849 0 01-2.872 1.39V12H9.72a.573.573 0 110 1.147H8.573v1.614a.573.573 0 01-1.146 0v-1.614H6.28a.573.573 0 110-1.146h1.147v-1.63zm-1.99-7.398a3.628 3.628 0 000 5.126 3.63 3.63 0 005.128 0 3.628 3.628 0 000-5.126 3.63 3.63 0 00-5.128 0z",clipRule:"evenodd"}))},Girl:function(e){var t=e.size,l=void 0===t?40:t,n=a.__rest(e,["size"]);return i.default.createElement("svg",a.__assign({xmlns:"http://www.w3.org/2000/svg",width:l,height:l,fill:"none",viewBox:"0 0 24 24"},n),i.default.createElement("circle",{cx:"12",cy:"12",r:"12",fill:"#FC5D9A"}),i.default.createElement("path",{fill:"#fff",d:"M18.283 11.759c-.034 0-.068 0-.102.003-.346-1.394-1.099-2.652-2.14-3.57a6.132 6.132 0 00-3.726-1.544v-.532a2.062 2.062 0 001.617-.634 1.178 1.178 0 000-1.638 1.13 1.13 0 00-1.626 0c-.116.119-.218.25-.305.392a2.212 2.212 0 00-.308-.393 1.13 1.13 0 00-1.625 0 1.179 1.179 0 000 1.638 2.06 2.06 0 001.5.639c.041 0 .08 0 .117-.004v.533a6.143 6.143 0 00-3.726 1.543c-1.042.918-1.793 2.177-2.14 3.572a1.72 1.72 0 00-1.317.498 1.706 1.706 0 000 2.417c.323.32.76.5 1.215.5.027 0 .054 0 .081-.002a4.968 4.968 0 002.162 2.996c1.073.69 2.47 1.053 4.04 1.053 1.57 0 2.967-.364 4.04-1.053a4.987 4.987 0 002.162-2.998 1.72 1.72 0 001.295-.499 1.705 1.705 0 000-2.417c-.322-.32-.759-.5-1.214-.5zm-5.527-7.477a.5.5 0 01.724 0 .55.55 0 010 .763 1.446 1.446 0 01-1.165.446 1.834 1.834 0 01-.004-.077v-.09c.01-.392.168-.764.445-1.042zm-2.238.762a.55.55 0 010-.763.501.501 0 01.724 0c.276.278.435.65.444 1.042v.09c0 .027-.002.053-.004.078a1.45 1.45 0 01-1.164-.447z"}),i.default.createElement("path",{fill:"#FC5D9A",d:"M9.586 13.68a.819.819 0 000-1.161.828.828 0 00-1.167 0 .819.819 0 000 1.162c.323.32.845.32 1.167 0zM15.267 13.894a.821.821 0 10-.41-1.592.821.821 0 10.41 1.592zM13.704 14.242a.32.32 0 00-.282.045.314.314 0 00-.114.159c-.002.007-.248.733-1.274.733-1.027 0-1.272-.726-1.275-.733a.314.314 0 10-.598.19c.016.046.394 1.168 1.873 1.168s1.858-1.12 1.873-1.168a.313.313 0 00-.203-.394zM12.402 7.713a.315.315 0 00-.53.24.313.313 0 00.1.218c.253.248.466.533.632.845.316.61.298 1.118-.056 1.551-.403.493-.865.449-1.104.378-.33-.096-.598-.351-.625-.595-.03-.263.058-.585.318-.71.165-.077.337-.039.486.11a.315.315 0 00.538-.22.313.313 0 00-.092-.222c-.336-.337-.797-.426-1.204-.232-.473.226-.737.752-.671 1.343.055.494.495.957 1.072 1.128.151.045.308.067.465.068.491 0 .958-.228 1.305-.652.514-.63.558-1.402.127-2.234a4.11 4.11 0 00-.761-1.016z"}))},Heart:e.Heart,Home:e.Home,Kebab:function(e){var t=e.size,l=void 0===t?20:t,n=a.__rest(e,["size"]);return i.default.createElement("svg",a.__assign({xmlns:"http://www.w3.org/2000/svg",width:l,height:l,fill:"none",viewBox:"0 0 20 20"},n),i.default.createElement("path",{fill:"#000",fillOpacity:"0.54",fillRule:"evenodd",d:"M10 6.667c.916 0 1.666-.75 1.666-1.666 0-.917-.75-1.667-1.666-1.667-.917 0-1.667.75-1.667 1.667 0 .916.75 1.666 1.667 1.666zm0 1.667c-.917 0-1.667.75-1.667 1.667 0 .916.75 1.666 1.667 1.666.916 0 1.666-.75 1.666-1.666 0-.917-.75-1.667-1.666-1.667zm-1.667 6.667c0-.917.75-1.667 1.667-1.667.916 0 1.666.75 1.666 1.667 0 .916-.75 1.666-1.666 1.666-.917 0-1.667-.75-1.667-1.666z",clipRule:"evenodd"}))},Like:e.Like,MyCommunity:e.MyCommunity,PlusSpecial:e.PlusSpecial,Recalculate:e.Recalculate,Scale:e.Scale,Share:e.Share,Stethoscope:e.Stethoscope},o=function(){document.querySelectorAll('.hhg-modal[data-open="true"]').length<1&&document.body.classList.remove("hhc-modal-show")},u=function(){document.querySelectorAll('.hhg-modal[data-open="true"]').length<1&&(document.body.style.overflow="",document.body.style.paddingRight="",document.body.classList.remove("hhc-disabled-scroll"))};exports.Icon=r,exports.Modal=function(e){var a=e.type,d=void 0===a?"lead":a,r=e.closeIcon,s=e.isOpen,f=void 0===s||s,m=e.onClose,h=e.children,v=e.className,p=void 0===v?"":v,g=e.animationType,z=void 0===g?"slideTop":g,E=e.isStaticBackdrop,w=void 0!==E&&E;e.style;var y=t.useState(!1),M=y[0],_=y[1],C=t.useRef(null),b=l.useScrollbarSize().width;if(!C.current&&M&&(C.current=document.createElement("div")),t.useEffect((function(){return _(!0),function(){_(!1),o(),u()}}),[]),t.useEffect((function(){if(M){var e=((a=document.getElementById("hhg-modals"))||((a=document.createElement("div")).setAttribute("id","hhg-modals"),document.body.append(a)),a);return e.appendChild(C.current),function(){e.removeChild(C.current)}}var a}),[M]),t.useEffect((function(){f?document.body.classList.add("hhc-modal-show"):o()}),[f]),t.useEffect((function(){f?(document.body.style.overflow="hidden",document.body.style.paddingRight=b+"px",document.body.classList.add("hhc-disabled-scroll")):u()}),[f,b]),!M)return null;var H=["hhg-modal__wrapper",p,z].filter((function(e){return e})).join(" ");return n.createPortal(i.default.createElement(c.StyledModalWrapper,{className:H,"data-open":f,"data-type":d},!w&&i.default.createElement(c.StyledModalMask,{"data-open":f,onClick:m,"data-type":d}),!w&&"video"===d&&!!r&&i.default.createElement("div",{className:"hhg-modal__close",onClick:m},r),i.default.createElement(c.StyledModal,{className:"hhg-modal","data-open":f},i.default.createElement("div",{className:"video"===d?"hhg-modal__video":"hhg-modal__content"},!!r&&"video"!==d&&i.default.createElement("div",{className:"hhg-modal__close",onClick:m},r),h))),C.current)},exports.RadioImageGroup=function(a){var l=a.value,n=a.options,c=a.className,d=a.direction,r=void 0===d?"horizontal":d,o=a.onChange,u=a.isDisabled,s=t.useState(l),f=s[0],m=s[1];return i.default.createElement(e.StyledRadioImageGroup,{className:c,"data-direction":r},n.map((function(a,t){return i.default.createElement(e.StyledRadioImageItem,{"data-selected":(l||f)===a.value,"data-disabled":u,key:t,onClick:function(){var e;e=a.value,u||(m(e),o&&o(e))}},i.default.createElement("div",null,a.content,a.label&&i.default.createElement(e.Text,{type:"bold",color:(l||f)===a.value?"#2D87F3":"black",className:"radio-group-item-heading",size:"label1"},a.label)))})))};
|
package/build/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./ageGenerate-c5698bd6.js"),r=require("./theme-fe7c279c.js"),o=require("./index-3855a71d.js"),t=require("./index-3474408b.js"),a=require("./index-b71b4420.js"),s=require("./index-94e56980.js"),i=require("./index-e05c1de0.js"),p=require("./index-e6f9ac7f.js"),n=require("./index.styled-af1f423b.js"),x=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./ageGenerate-c5698bd6.js"),r=require("./theme-fe7c279c.js"),o=require("./index-3855a71d.js"),t=require("./index-3474408b.js"),a=require("./index-b71b4420.js"),s=require("./index-94e56980.js"),i=require("./index-e05c1de0.js"),p=require("./index-e6f9ac7f.js"),n=require("./index.styled-af1f423b.js"),x=require("./index-3fefcbc5.js"),l=require("./index.styled-a613a33c.js"),u=require("./useTranslations-9e64b19e.js"),d=require("./useScrollbarSize-586f6706.js"),g=require("./translationsProvider-e3bdfdcc.js"),c=require("./translationsContext-e97f3b58.js"),C=require("./types-39b008c8.js"),P=require("./types-fc6dac4f.js"),m=require("./constants-ea7b35a2.js"),h=require("./types-dc5c360a.js"),T=require("./cookieHelper-612b90fa.js"),f=require("./lazyLoad-0454885d.js");require("react"),require("styled-components");var b=require("./number-87b13133.js"),S=require("./routing-9fbc897b.js"),v=require("./getSocialList-ca2a08a9.js");require("./tslib.es6-f7929e76.js"),require("./core-8fcc56eb.js"),require("date-fns"),require("react-range"),require("react-id-generator"),require("react-day-picker/DayPickerInput"),require("lodash"),require("keen-slider/react"),require("react-dom"),require("./useOutsideClick-528bfd6c.js"),require("date-fns/locale/en-US"),require("date-fns/locale/id"),require("date-fns/locale/vi"),require("date-fns/locale/zh-TW"),require("lodash/debounce"),require("react-loading-skeleton"),require("date-fns/locale/hi"),require("date-fns/locale/ms"),require("date-fns/locale/th"),require("slugify"),require("string-format"),require("smoothscroll-polyfill"),require("innertext"),require("react-contenteditable"),require("lodash/shuffle"),require("vanilla-lazyload"),exports.Types=e.index,exports.ageGenerate=e.ageGenerate,exports.formatHealthTool=e.formatHealthTool,exports.getDynamicHealthTool=e.getDynamicHealthTool,exports.getDynamicHealthToolWithCache=e.getDynamicHealthToolWithCache,exports.useFbDataLayer=e.useFbDataLayer,exports.useHealthToolsCache=e.useHealthToolsCache,exports.Constants=r.constants,exports.theme=r.theme,exports.Alert=o.Alert,exports.AmpNextPage=o.AmpNextPage,exports.ArticleCard=o.ArticleCard,exports.Badge=o.Badge,exports.BorderHeading=o.BorderHeading,exports.Breadcrumbs=o.Breadcrumbs,exports.Carousel=o.Carousel,exports.CategoryCard=o.CategoryCard,exports.Checkbox=o.Checkbox,exports.CheckboxGroup=o.CheckboxGroup,exports.CookieAcceptConfirm=o.CookieAcceptConfirm,exports.DatePicker=o.DatePicker,exports.DateRangePicker=o.DateRangePicker,exports.FileDropdown=o.FileDropdown,exports.FloatButtonGroup=o.FloatButtonGroup,exports.Footer=o.Footer,exports.Grid=o.Grid,exports.IconText=o.IconText,exports.Layout=o.Layout,exports.NavigationBar=o.NavigationBar,exports.NavigationLayout=o.NavigationLayout,exports.Pagination=o.Pagination,exports.Progress=o.Progress,exports.ProgressBar=o.ProgressBar,exports.RateStars=o.RateStars,exports.SeoHead=o.SeoHead,exports.Shadow=o.Shadow,exports.ShareContainer=o.ShareContainer,exports.ShareDrawer=o.ShareDrawer,exports.SideMenu=o.index,exports.SiteWide=o.SiteWide,exports.Slider=o.Slider,exports.StatisticCard=o.StatisticCard,exports.StickySponsoredBy=o.StickySponsoredBy,exports.SurveyThankyouCard=o.SurveyThankyouCard,exports.Table=o.index$1,exports.Tabs=o.Tabs,exports.Tag=o.Tag,exports.Toggle=o.Toggle,exports.UnderlinedLink=o.UnderlinedLink,exports.Uploader=o.Uploader,exports.Avatar=t.Avatar,exports.CardAuthor=t.CardAuthor,exports.DefaultComponentGlobalContextData=t.DefaultComponentGlobalContextData,Object.defineProperty(exports,"GlobalData",{enumerable:!0,get:function(){return t.GlobalData}}),exports.Loading=t.Loading,exports.Popup=t.Popup,exports.PopupDoctor=t.PopupDoctor,exports.PopupExpert=t.PopupExpert,exports.PopupHospital=t.PopupHospital,exports.TogetherComponentGlobalContext=t.TogetherComponentGlobalContext,exports.TogetherComponentGlobalContextProvider=t.TogetherComponentGlobalContextProvider,exports.TogetherConstants=t.constants,exports.TogetherDataTransforms=t.dataTransform,exports.UserAvatar=t.UserAvatar,exports.Button=a.Button,exports.Heading=a.Heading,exports.Divider=s.Divider,exports.Dropdown=s.Dropdown,exports.DoctorInfo=i.DoctorInfo,exports.Flag=i.Flag,exports.LanguageSwitcher=i.LanguageSwitcher,exports.MobileBottomNavigation=i.MobileBottomNavigation,exports.MobileBottomNavigationIcon=i.MobileBottomNavigationIcon,exports.NavigationLogoutPopup=i.NavigationLogoutPopup,exports.NavigationProfileButton=i.NavigationProfileButton,exports.NavigationV2=i.NavigationV2,exports.ProfilePopup=i.ProfilePopup,exports.Radio=i.Radio,exports.RadioGroup=i.RadioGroup,exports.ScrollList=i.ScrollList,exports.SurveyQuestionCard=i.SurveyQuestionCard,exports.UserProfileNavigation=i.UserProfileNavigation,exports.UserProfileNavigationHeader=i.NavHeader,exports.UserProfileNavigationStats=i.UserStats,exports.defaultTranslation=i.defaultTranslation,exports.getNavMenuContent=i.getNavMenuContent,exports.getNavMenuContentWithCache=i.getNavMenuContentWithCache,exports.Input=p.Input,exports.Container=n.Container,exports.Label=n.Label,exports.Logo=n.Logo,exports.Menu=n.Menu,exports.PureInput=n.PureInput,exports.Text=n.Text,exports.TextArea=n.TextArea,exports.TextDivider=n.TextDivider,exports.Icon=x.Icon,exports.Modal=x.Modal,exports.RadioImageGroup=x.RadioImageGroup,exports.Drawer=l.Drawer,exports.Breakpoints=u.Breakpoints,exports.MediaQueries=u.MediaQueries,exports.fadeIn=u.fadeIn,exports.formatUrlWithPageParam=u.formatUrlWithPageParam,exports.getBoundariesFromMediaQueryKey=u.getBoundariesFromMediaQueryKey,exports.getPopupWrapperDom=u.getPopupWrapperDom,exports.makeParams=u.makeParams,exports.slideInDown=u.slideInDown,exports.slideInLeft=u.slideInLeft,exports.slideInRight=u.slideInRight,exports.slideInUp=u.slideInUp,exports.slideOutDown=u.slideOutDown,exports.slideOutLeft=u.slideOutLeft,exports.slideOutRight=u.slideOutRight,exports.slideOutUp=u.slideOutUp,exports.startCase=u.startCase,exports.toggleNoScroll=u.toggleNoScroll,exports.useTranslations=u.useTranslations,exports.MEASURE_ELEMENT_CLASS=d.MEASURE_ELEMENT_CLASS,exports.useScrollbarSize=d.useScrollbarSize,exports.TranslationsProvider=g.TranslationsProvider,exports.translationsMap=g.translationsMap,exports.TranslationsContext=c.TranslationsContext,exports.defaultTranslations=c.defaultTranslations,exports.CardLink=C.CardLink,exports.CardPost=C.CardPost,exports.CardPostPopoverMore=C.CardPostPopoverMore,exports.CardReactions=C.CardReactions,exports.CardReply=C.CardReply,exports.CardReplyPopover=C.CardReplyPopover,exports.CreateNewPostContent=C.CreateNewPostContent,exports.CreatePostDescription=C.CreatePostDescription,exports.CreatePostTitle=C.CreatePostTitle,exports.ImagePreviewPopup=C.ImagePreviewPopup,exports.InputCommentBar=C.InputCommentBar,exports.LabelPin=C.LabelPin,exports.LabelSortPin=C.LabelSortPin,exports.LabelSorting=C.LabelSorting,exports.PopoverMenu=C.PopoverMenu,exports.PopupDanger=C.PopupDanger,exports.PopupFrame=C.PopupFrame,exports.PostContent=C.PostContent,exports.PostImagePreview=C.PostImagePreview,exports.PostSingleImageViewPopup=C.PostSingleImageViewPopup,exports.ShareBox=C.ShareBox,exports.SharePopup=C.SharePopup,exports.SubmitReportForm=C.SubmitReportForm,exports.TagTopic=C.TagTopic,exports.TogetherAuthConfigContext=C.TogetherAuthConfigContext,exports.TogetherAuthConfigContextProvider=C.TogetherAuthConfigContextProvider,exports.TogetherTypes=C.types,exports.TopicSelectList=C.TopicSelectList,exports.useTogetherAuthRequiredAction=C.useTogetherAuthRequiredAction,exports.BookingSearchBar=P.BookingSearchBar,exports.CareTypes=P.types,exports.CareConstants=m.constants,exports.EcomApiTypes=h.apiTypes,exports.EcomConstants=h.constants,exports.EcomDataFormatter=h.index,exports.EcomDataTypes=h.dataTypes,exports.EcomTypes=h.types,exports.deleteCookie=T.deleteCookie,exports.getCookie=T.getCookie,exports.setCookie=T.setCookie,Object.defineProperty(exports,"lazyLoadInstance",{enumerable:!0,get:function(){return f.lazyLoadInstance}}),exports.abbreviateNumber=b.abbreviateNumber,exports.getCareApiDomain=S.getCareApiDomain,exports.getCurrentBaseUrl=S.getCurrentBaseUrl,exports.getCurrentSsoUrl=S.getCurrentSsoUrl,exports.getDiscoverApiDomain=S.getDiscoverApiDomain,exports.getTogetherApiDomain=S.getTogetherApiDomain,exports.getSocialList=v.getSocialList;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hhgtech/hhg-components",
|
|
3
|
-
"version": "1.20.
|
|
3
|
+
"version": "1.20.23",
|
|
4
4
|
"main": "build/index.js",
|
|
5
5
|
"module": "build/esm/index.js",
|
|
6
6
|
"files": [
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"lint:fix": "eslint --fix '*/**/*.{ts,tsx}' --ignore-pattern '/build/'",
|
|
26
26
|
"watch": "npx watch -u -d --wait=5 --interval=5 \"npm run build\" src/",
|
|
27
27
|
"watch-copy": "npx watch -u -d --wait=5 --interval=5 \"npm run build-copy\" src/",
|
|
28
|
-
"build-copy": "npm run build && cp -R ./build $PROJECT_PATH/node_modules/@hhgtech/hhg-components && echo 'Ready to test on local'",
|
|
28
|
+
"build-copy": "npm run build && cp -R ./build $PROJECT_PATH/node_modules/@hhgtech/hhg-components && rm -rf $PROJECT_PATH/.next $PROJECT_PATH/node_modules/.cache && echo 'Ready to test on local'",
|
|
29
29
|
"type-check": "tsc",
|
|
30
30
|
"get-translation": "node getTranslationFromFile.js",
|
|
31
31
|
"generate:component": "plop component",
|