@hhgtech/hhg-components 1.21.83 → 1.21.84
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/atoms/logo/index.d.ts +1 -1
- package/build/components/organisms/footer/discoverFooter/index.d.ts +1 -1
- package/build/components/organisms/footer/index.d.ts +1 -1
- package/build/components.js +1 -1
- package/build/defaultClassWrapper-0eac7dff.js +1 -0
- package/build/esm/babyGrowth.js +1 -1
- package/build/esm/components.js +1 -1
- package/build/esm/defaultClassWrapper-4144361d.js +1 -0
- package/build/esm/footer.js +1 -0
- package/build/esm/index-1f8da9eb.js +1 -0
- package/build/esm/index-34929038.js +1 -0
- package/build/esm/index-77ba5666.js +1 -0
- package/build/esm/index-c4be547e.js +1 -0
- package/build/esm/index-eced25ed.js +1 -0
- package/build/esm/index-fdce1dc1.js +1 -0
- package/build/esm/index.js +1 -1
- package/build/esm/mantine.js +1 -1
- package/build/esm/navigation.js +1 -1
- package/build/esm/together.js +1 -1
- package/build/esm/types-c751a7fb.js +1 -0
- package/build/footer.js +1 -0
- package/build/{index-ffea3551.js → index-26ab3cb0.js} +1 -1
- package/build/index-46eab25f.js +1 -0
- package/build/index-7d3b086d.js +1 -0
- package/build/{defaultClassWrapper-68462614.js → index-8ebed99b.js} +1 -1
- package/build/index-9766e52b.js +1 -0
- package/build/index-aae60289.js +1 -0
- package/build/index.js +1 -1
- package/build/mantine.js +1 -1
- package/build/navigation.js +1 -1
- package/build/together.js +1 -1
- package/build/types-a556493e.js +1 -0
- package/package.json +3 -3
- package/build/esm/defaultClassWrapper-d19e31e4.js +0 -1
- package/build/esm/imgHHG.js +0 -1
- package/build/esm/index-1adcd5bd.js +0 -1
- package/build/esm/index-d3a86a58.js +0 -1
- package/build/esm/index-fba7cd68.js +0 -1
- package/build/esm/types-43617e4c.js +0 -1
- package/build/imgHHG.js +0 -1
- package/build/index-9a25c714.js +0 -1
- package/build/index-a8498b05.js +0 -1
- package/build/modules/imgHHG/index.d.ts +0 -22
- package/build/types-1f45f6c4.js +0 -1
package/build/babyGrowth.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./index-a8498b05.js"),t=require("react"),a=require("./Locale-11b51016.js"),r=require("./theme-696d81a9.js"),l=require("./index-12476f9c.js"),n=require("dayjs"),o=require("./useTranslations-00120db0.js"),i=require("./index-0ecbbfbd.js"),d=require("./utils-df758048.js"),C=require("./useOutsideClick-528bfd6c.js");require("lodash/debounce"),require("./isProduction-32e6a55a.js"),require("./index-d28c27ca.js");var c=require("./localizeNumberFormat-155e5aec.js");function s(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}require("./tslib.es6-e6f346c4.js"),require("styled-components"),require("./defaultClassWrapper-68462614.js"),require("./FullScreen-8225ba88.js"),require("./animation-197e5762.js"),require("./index-f1d22aeb.js"),require("./index-6193a08c.js"),require("@mantine/core"),require("./useScrollbarSize-586f6706.js"),require("react-dom"),require("recharts"),require("./index-76dc603c.js"),require("lodash/chunk"),require("./translationsContext-9e231a88.js"),require("string-format");var u=s(t),m=s(n),f=function(a){var n=a.name,i=a.onClose,d=a.onEdit,c=a.onSwitch,s=a.onAdd,m=a.onRemove,f=o.useTranslations().t,h=t.useRef();return C.useOutsideClick(h,i),u.default.createElement("div",{ref:h},u.default.createElement(e.StyledChildCardMenu,{width:250},u.default.createElement(e.Menu.Item,{onClick:d,icon:u.default.createElement("svg",{width:"16",height:"17",viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u.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"}))},u.default.createElement(l.Text,{size:"p2",color:r.theme.colors.gray800},f("childCard.menu.edit",{name:n}))),u.default.createElement(e.Menu.Item,{onClick:c,icon:u.default.createElement("svg",{width:"16",height:"17",viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u.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"}))},u.default.createElement(l.Text,{size:"p2",color:r.theme.colors.gray800},f("childCard.menu.switch"))),u.default.createElement(e.Menu.Item,{onClick:s,icon:u.default.createElement("svg",{width:"16",height:"17",viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u.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"}),u.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"}))},u.default.createElement(l.Text,{size:"p2",color:r.theme.colors.gray800},f("childCard.menu.add"))),u.default.createElement(e.Menu.Item,{onClick:m,icon:u.default.createElement("svg",{width:"16",height:"17",viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u.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"}))},u.default.createElement(l.Text,{size:"p2",color:r.theme.colors.red600},f("childCard.menu.remove",{name:n})))))},h=function(e,t){if(e)if(e.year<1){if(0===e.month)switch(e.week){case 0:case 1:return t("childCard.age.oneWeek");default:return t("childCard.age.week",{weeks:e.week})}if(1===e.month)return t("childCard.age.oneMonth");if(e.month>1)return t("childCard.age.months",{month:e.month})}else{if(1===e.year)return t("childCard.age.oneYear");if(0===e.month)return t("childCard.age.yearNoMonth",{year:e.year});if(e.month>0)return t("childCard.age.yearMonth",{year:e.year,month:e.month})}},E=function(e,t){return e&&"NaN"!==e?e+" "+(t||""):"--"};exports.BabyGrowthChart=e.BabyGrowthChart,exports.BabyGrowthChartPercentile=e.BabyGrowthChartPercentile,exports.BabyGrowthChartZScore=e.BabyGrowthChartZScore,exports.BabyGrowthChooseProfileDrawer=e.BabyGrowthChooseProfileDrawer,exports.BabyGrowthGender=e.BabyGrowthGender,exports.BabyGrowthProfileRadio=e.BabyGrowthProfileRadio,exports.BabyGrowthSwitch=e.BabyGrowthSwitch,Object.defineProperty(exports,"BabyGrowthSwitchChart",{enumerable:!0,get:function(){return e.BabyGrowthSwitchChart}}),exports.BabyGrowthTooltip=e.BabyGrowthTooltip,exports.LABELS_PERCENTILE=e.LABELS_PERCENTILE,exports.LABELS_Z_SCORE=e.LABELS_Z_SCORE,exports.divideChartData=e.divideChartData,exports.generateGrowthChart=e.generateGrowthChart,exports.generateXAxisTicks=e.generateXAxisTicks,exports.getAxisYDomain=e.getAxisYDomain,exports.paintAxis=e.paintAxis,exports.refineDataWithDot=e.refineDataWithDot,exports.refineDataWithLine=e.refineDataWithLine,exports.transformDataToChart=e.transformDataToChart,exports.BabyGrowthLegend=function(t){var n=t.legends,o=t.locale;return u.default.createElement(e.StyledBabyGrowthLegend,null,n.map((function(t,n){return u.default.createElement(e.StyledLegend,{key:n},u.default.createElement("span",{className:"dot",style:{backgroundColor:t.color}}),u.default.createElement(l.Text,{size:"n1",color:r.theme.colors.gray800},o===a.LOCALE.Indonesia?t["z-score"]:t.text))})))},exports.BabyGrowthRecord=function(t){var n=t.measurementDate,i=void 0===n?new Date:n,d=t.weight,C=t.height,s=t.head,f=t.onEdit,w=t.birthday,g=t.dateFormat,y=void 0===g?"DD/MM/YYYY":g,p=t.locale;void 0===p&&a.LOCALE.PhilippinesEnglish;var L=o.useTranslations().t;return u.default.createElement(e.StyledBabyGrowthRecord,{onClick:f},u.default.createElement("div",{className:"time"},u.default.createElement("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u.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"})),u.default.createElement(l.Text,{size:"p3",color:r.theme.colors.gray600},"".concat(m.default(i).format(y)," (").concat(h(c.ageGenerate(w,i),L),")")),u.default.createElement("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"edit-button"},u.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"}))),u.default.createElement("div",{className:"record"},u.default.createElement("div",{className:"record-item"},u.default.createElement("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u.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"}),u.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"}),u.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"})),u.default.createElement(l.Text,{size:"s3",color:r.theme.colors.gray800,type:"semiBold"},E(c.localizeNumberFormat(d),"kg"))),u.default.createElement("div",{className:"record-item"},u.default.createElement("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u.default.createElement("g",{clipPath:"url(#clip0_855_82991)"},u.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"})),u.default.createElement("defs",null,u.default.createElement("clipPath",{id:"clip0_855_82991"},u.default.createElement("rect",{width:"16",height:"16",fill:"white",transform:"translate(16.6055) rotate(90)"})))),u.default.createElement(l.Text,{size:"s3",color:r.theme.colors.gray800,type:"semiBold"},E(c.localizeNumberFormat(C),"cm"))),u.default.createElement("div",{className:"record-item"},u.default.createElement("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u.default.createElement("g",{clipPath:"url(#clip0_855_82994)"},u.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"}),u.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"}),u.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"})),u.default.createElement("defs",null,u.default.createElement("clipPath",{id:"clip0_855_82994"},u.default.createElement("rect",{width:"16",height:"16",fill:"white",transform:"translate(0.234375)"})))),u.default.createElement(l.Text,{size:"s3",color:r.theme.colors.gray800,type:"semiBold"},E(c.localizeNumberFormat(s),"cm")))))},exports.ChildCard=function(n){var C=n.name,c=n.gender,s=n.age,m=n.isLoggedIn,E=void 0!==m&&m,w=n.showMenu,g=void 0!==w&&w,y=n.onEdit,p=n.onSwitch,L=n.onAdd,x=n.onRemove,v=n.className,b=n.siteType,B=o.useTranslations().t,M=t.useState(!1),G=M[0],Z=M[1],q="marryBaby"===b;return u.default.createElement(e.StyledChildCard,{className:v,"data-theme":b},q?u.default.createElement(u.default.Fragment,null,u.default.createElement("div",{"data-testid":"gender"},c===a.Gender.Boy?u.default.createElement(e.Icon.BabyBoyMB,{"data-testid":"boy",id:"boy"}):u.default.createElement(e.Icon.BabyGirlMB,{"data-testid":"girl",id:"girl"})),u.default.createElement("div",{className:"information"},u.default.createElement(e.MarryBabyText,{type:"subtitle-1",color:r.theme.mbColors.dark},d.startCase(C)||B("childCard.noName")),u.default.createElement("div",{className:"detail"},u.default.createElement("div",null,c===a.Gender.Boy?u.default.createElement(e.Icon.GenderBoy,null):u.default.createElement(e.Icon.GenderGirl,null),u.default.createElement(e.MarryBabyText,{type:"bodytext-2",color:r.theme.mbColors.gray},c)),u.default.createElement("div",null,u.default.createElement(e.Icon.Calendar,{size:16}),s&&u.default.createElement(e.MarryBabyText,{type:"bodytext-2",color:r.theme.mbColors.gray},h(s,B)))))):u.default.createElement(u.default.Fragment,null,u.default.createElement("div",{"data-testid":"gender"},c===a.Gender.Boy?u.default.createElement(e.Icon.Boy,{"data-testid":"boy",id:"boy"}):u.default.createElement(e.Icon.Girl,{"data-testid":"girl",id:"girl"})),u.default.createElement("div",{className:"information"},u.default.createElement(i.Heading,{tag:"h5",fontWeight:"bold",color:r.theme.colors.gray800},d.startCase(C)||B("childCard.noName")),u.default.createElement("div",{className:"detail"},u.default.createElement("div",null,c===a.Gender.Boy?u.default.createElement(e.Icon.GenderBoy,null):u.default.createElement(e.Icon.GenderGirl,null),u.default.createElement(l.Text,{size:"p3",color:r.theme.colors.gray800,style:{textTransform:"capitalize"}},c)),u.default.createElement("div",null,u.default.createElement(e.Icon.Calendar,{size:16}),s&&u.default.createElement(l.Text,{size:"p3",color:r.theme.colors.gray800},h(s,B)))))),g&&E&&u.default.createElement(e.StyledOption,null,u.default.createElement(e.Icon.Kebab,{onClick:function(){return Z((function(e){return!e}))}}),G&&u.default.createElement(f,{name:C,onClose:function(){return Z(!1)},onEdit:function(){Z(!1),y()},onSwitch:function(){Z(!1),p()},onAdd:function(){Z(!1),L()},onRemove:function(){Z(!1),x()}})))};
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./index-46eab25f.js"),t=require("react"),a=require("./Locale-11b51016.js"),r=require("./theme-696d81a9.js"),l=require("./index-12476f9c.js"),n=require("dayjs"),o=require("./useTranslations-00120db0.js"),i=require("./index-0ecbbfbd.js"),d=require("./index-7d3b086d.js"),C=require("./utils-df758048.js"),c=require("./useOutsideClick-528bfd6c.js");require("lodash/debounce"),require("./isProduction-32e6a55a.js"),require("./index-d28c27ca.js");var s=require("./localizeNumberFormat-155e5aec.js");function u(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}require("./tslib.es6-e6f346c4.js"),require("styled-components"),require("./index-8ebed99b.js"),require("./FullScreen-8225ba88.js"),require("./animation-197e5762.js"),require("./index-f1d22aeb.js"),require("./index-6193a08c.js"),require("@mantine/core"),require("./useScrollbarSize-586f6706.js"),require("react-dom"),require("./defaultClassWrapper-0eac7dff.js"),require("recharts"),require("./index-76dc603c.js"),require("lodash/chunk"),require("./translationsContext-9e231a88.js"),require("string-format");var m=u(t),f=u(n),h=function(a){var n=a.name,i=a.onClose,d=a.onEdit,C=a.onSwitch,s=a.onAdd,u=a.onRemove,f=o.useTranslations().t,h=t.useRef();return c.useOutsideClick(h,i),m.default.createElement("div",{ref:h},m.default.createElement(e.StyledChildCardMenu,{width:250},m.default.createElement(e.Menu.Item,{onClick:d,icon:m.default.createElement("svg",{width:"16",height:"17",viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},m.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"}))},m.default.createElement(l.Text,{size:"p2",color:r.theme.colors.gray800},f("childCard.menu.edit",{name:n}))),m.default.createElement(e.Menu.Item,{onClick:C,icon:m.default.createElement("svg",{width:"16",height:"17",viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},m.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"}))},m.default.createElement(l.Text,{size:"p2",color:r.theme.colors.gray800},f("childCard.menu.switch"))),m.default.createElement(e.Menu.Item,{onClick:s,icon:m.default.createElement("svg",{width:"16",height:"17",viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},m.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"}),m.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"}))},m.default.createElement(l.Text,{size:"p2",color:r.theme.colors.gray800},f("childCard.menu.add"))),m.default.createElement(e.Menu.Item,{onClick:u,icon:m.default.createElement("svg",{width:"16",height:"17",viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},m.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"}))},m.default.createElement(l.Text,{size:"p2",color:r.theme.colors.red600},f("childCard.menu.remove",{name:n})))))},E=function(e,t){if(e)if(e.year<1){if(0===e.month)switch(e.week){case 0:case 1:return t("childCard.age.oneWeek");default:return t("childCard.age.week",{weeks:e.week})}if(1===e.month)return t("childCard.age.oneMonth");if(e.month>1)return t("childCard.age.months",{month:e.month})}else{if(1===e.year)return t("childCard.age.oneYear");if(0===e.month)return t("childCard.age.yearNoMonth",{year:e.year});if(e.month>0)return t("childCard.age.yearMonth",{year:e.year,month:e.month})}},w=function(e,t){return e&&"NaN"!==e?e+" "+(t||""):"--"};exports.BabyGrowthChart=e.BabyGrowthChart,exports.BabyGrowthChartPercentile=e.BabyGrowthChartPercentile,exports.BabyGrowthChartZScore=e.BabyGrowthChartZScore,exports.BabyGrowthChooseProfileDrawer=e.BabyGrowthChooseProfileDrawer,exports.BabyGrowthGender=e.BabyGrowthGender,exports.BabyGrowthProfileRadio=e.BabyGrowthProfileRadio,exports.BabyGrowthSwitch=e.BabyGrowthSwitch,Object.defineProperty(exports,"BabyGrowthSwitchChart",{enumerable:!0,get:function(){return e.BabyGrowthSwitchChart}}),exports.BabyGrowthTooltip=e.BabyGrowthTooltip,exports.LABELS_PERCENTILE=e.LABELS_PERCENTILE,exports.LABELS_Z_SCORE=e.LABELS_Z_SCORE,exports.divideChartData=e.divideChartData,exports.generateGrowthChart=e.generateGrowthChart,exports.generateXAxisTicks=e.generateXAxisTicks,exports.getAxisYDomain=e.getAxisYDomain,exports.paintAxis=e.paintAxis,exports.refineDataWithDot=e.refineDataWithDot,exports.refineDataWithLine=e.refineDataWithLine,exports.transformDataToChart=e.transformDataToChart,exports.BabyGrowthLegend=function(t){var n=t.legends,o=t.locale;return m.default.createElement(e.StyledBabyGrowthLegend,null,n.map((function(t,n){return m.default.createElement(e.StyledLegend,{key:n},m.default.createElement("span",{className:"dot",style:{backgroundColor:t.color}}),m.default.createElement(l.Text,{size:"n1",color:r.theme.colors.gray800},o===a.LOCALE.Indonesia?t["z-score"]:t.text))})))},exports.BabyGrowthRecord=function(t){var n=t.measurementDate,i=void 0===n?new Date:n,d=t.weight,C=t.height,c=t.head,u=t.onEdit,h=t.birthday,g=t.dateFormat,y=void 0===g?"DD/MM/YYYY":g,p=t.locale;void 0===p&&a.LOCALE.PhilippinesEnglish;var x=o.useTranslations().t;return m.default.createElement(e.StyledBabyGrowthRecord,{onClick:u},m.default.createElement("div",{className:"time"},m.default.createElement("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},m.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"})),m.default.createElement(l.Text,{size:"p3",color:r.theme.colors.gray600},"".concat(f.default(i).format(y)," (").concat(E(s.ageGenerate(h,i),x),")")),m.default.createElement("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"edit-button"},m.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"}))),m.default.createElement("div",{className:"record"},m.default.createElement("div",{className:"record-item"},m.default.createElement("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},m.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"}),m.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"}),m.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"})),m.default.createElement(l.Text,{size:"s3",color:r.theme.colors.gray800,type:"semiBold"},w(s.localizeNumberFormat(d),"kg"))),m.default.createElement("div",{className:"record-item"},m.default.createElement("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},m.default.createElement("g",{clipPath:"url(#clip0_855_82991)"},m.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"})),m.default.createElement("defs",null,m.default.createElement("clipPath",{id:"clip0_855_82991"},m.default.createElement("rect",{width:"16",height:"16",fill:"white",transform:"translate(16.6055) rotate(90)"})))),m.default.createElement(l.Text,{size:"s3",color:r.theme.colors.gray800,type:"semiBold"},w(s.localizeNumberFormat(C),"cm"))),m.default.createElement("div",{className:"record-item"},m.default.createElement("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},m.default.createElement("g",{clipPath:"url(#clip0_855_82994)"},m.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"}),m.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"}),m.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"})),m.default.createElement("defs",null,m.default.createElement("clipPath",{id:"clip0_855_82994"},m.default.createElement("rect",{width:"16",height:"16",fill:"white",transform:"translate(0.234375)"})))),m.default.createElement(l.Text,{size:"s3",color:r.theme.colors.gray800,type:"semiBold"},w(s.localizeNumberFormat(c),"cm")))))},exports.ChildCard=function(n){var c=n.name,s=n.gender,u=n.age,f=n.isLoggedIn,w=void 0!==f&&f,g=n.showMenu,y=void 0!==g&&g,p=n.onEdit,x=n.onSwitch,L=n.onAdd,b=n.onRemove,v=n.className,B=n.siteType,M=o.useTranslations().t,G=t.useState(!1),Z=G[0],q=G[1],T="marryBaby"===B;return m.default.createElement(e.StyledChildCard,{className:v,"data-theme":B},T?m.default.createElement(m.default.Fragment,null,m.default.createElement("div",{"data-testid":"gender"},s===a.Gender.Boy?m.default.createElement(e.Icon.BabyBoyMB,{"data-testid":"boy",id:"boy"}):m.default.createElement(e.Icon.BabyGirlMB,{"data-testid":"girl",id:"girl"})),m.default.createElement("div",{className:"information"},m.default.createElement(d.MarryBabyText,{type:"subtitle-1",color:r.theme.mbColors.dark},C.startCase(c)||M("childCard.noName")),m.default.createElement("div",{className:"detail"},m.default.createElement("div",null,s===a.Gender.Boy?m.default.createElement(e.Icon.GenderBoy,null):m.default.createElement(e.Icon.GenderGirl,null),m.default.createElement(d.MarryBabyText,{type:"bodytext-2",color:r.theme.mbColors.gray},s)),m.default.createElement("div",null,m.default.createElement(e.Icon.Calendar,{size:16}),u&&m.default.createElement(d.MarryBabyText,{type:"bodytext-2",color:r.theme.mbColors.gray},E(u,M)))))):m.default.createElement(m.default.Fragment,null,m.default.createElement("div",{"data-testid":"gender"},s===a.Gender.Boy?m.default.createElement(e.Icon.Boy,{"data-testid":"boy",id:"boy"}):m.default.createElement(e.Icon.Girl,{"data-testid":"girl",id:"girl"})),m.default.createElement("div",{className:"information"},m.default.createElement(i.Heading,{tag:"h5",fontWeight:"bold",color:r.theme.colors.gray800},C.startCase(c)||M("childCard.noName")),m.default.createElement("div",{className:"detail"},m.default.createElement("div",null,s===a.Gender.Boy?m.default.createElement(e.Icon.GenderBoy,null):m.default.createElement(e.Icon.GenderGirl,null),m.default.createElement(l.Text,{size:"p3",color:r.theme.colors.gray800,style:{textTransform:"capitalize"}},s)),m.default.createElement("div",null,m.default.createElement(e.Icon.Calendar,{size:16}),u&&m.default.createElement(l.Text,{size:"p3",color:r.theme.colors.gray800},E(u,M)))))),y&&w&&m.default.createElement(e.StyledOption,null,m.default.createElement(e.Icon.Kebab,{onClick:function(){return q((function(e){return!e}))}}),Z&&m.default.createElement(h,{name:c,onClose:function(){return q(!1)},onEdit:function(){q(!1),p()},onSwitch:function(){q(!1),x()},onAdd:function(){q(!1),L()},onRemove:function(){q(!1),b()}})))};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CSSProperties } from 'react';
|
|
2
|
-
import { LOCALE } from 'src/interfaces/types';
|
|
2
|
+
import { LOCALE } from 'src/interfaces/types/Locale';
|
|
3
3
|
export type TypeProps = 'hellobacsi' | 'hellosehat' | 'hellohealth' | 'hellotogether' | 'hellocare' | 'logomark' | 'hellodoctor' | 'hellokrupet' | 'helloswasthya' | 'hellosayarwon' | 'helloyishi' | 'hellokhunmor' | 'hellodoktor' | 'marryBaby';
|
|
4
4
|
export type SeasonalProp = {
|
|
5
5
|
isChristmas: boolean;
|
|
@@ -18,5 +18,5 @@ export type Flag = {
|
|
|
18
18
|
link: string;
|
|
19
19
|
};
|
|
20
20
|
export type CountryInitial = 'VN' | 'ID' | 'TH' | 'KH' | 'MY' | 'MM' | 'PH' | 'IN' | 'TW';
|
|
21
|
-
declare const Footer: (
|
|
21
|
+
declare const Footer: ({ type, isMobile, locale, footerInfo, isAmp, siteType, background, }: Props) => JSX.Element;
|
|
22
22
|
export { Footer };
|
package/build/components.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./index-26ab3cb0.js"),r=require("./index-ebcffc91.js"),o=require("./index-8ebed99b.js"),t=require("./index-0db09db1.js"),a=require("./index-aae60289.js"),i=require("./index-0ecbbfbd.js"),s=require("./index-f1d22aeb.js"),d=require("./index-6193a08c.js"),n=require("./index-9766e52b.js"),u=require("./index-12476f9c.js"),p=require("./index-46eab25f.js"),x=require("./index-76dc603c.js"),l=require("./footer.js");require("react"),require("./tslib.es6-e6f346c4.js"),require("styled-components"),require("./theme-696d81a9.js"),require("./utils-df758048.js"),require("./defaultClassWrapper-0eac7dff.js"),require("lodash/throttle"),require("keen-slider/react"),require("./index-d28c27ca.js"),require("./isProduction-32e6a55a.js"),require("./useTranslations-00120db0.js"),require("./translationsContext-9e231a88.js"),require("string-format"),require("./gAssets.js"),require("react-hook-form"),require("./index-a8d5c663.js"),require("@mantine/core"),require("@mantine/hooks"),require("./Locale-11b51016.js"),require("@mantine/carousel"),require("./useHealthToolCache-8b136374.js"),require("./getDynamicHealthTool-13ad1a92.js"),require("./core-97cd306c.js"),require("./routing-5f59e486.js"),require("@hookform/resolvers/yup"),require("dayjs"),require("./index-7d3b086d.js"),require("lodash/debounce"),require("date-fns"),require("react-range"),require("./types-2b3bdf79.js"),require("react-day-picker/DayPickerInput"),require("./useOutsideClick-528bfd6c.js"),require("date-fns/locale/en-US"),require("date-fns/locale/id"),require("date-fns/locale/vi"),require("date-fns/locale/zh-TW"),require("./getSocialList-d9421b94.js"),require("./cookieHelper-612b90fa.js"),require("slugify"),require("./constants-ca5ea110.js"),require("dayjs/plugin/relativeTime"),require("./lazyLoad-f5c59bb0.js"),require("vanilla-lazyload"),require("./FullScreen-8225ba88.js"),require("./animation-197e5762.js"),require("./useScrollbarSize-586f6706.js"),require("react-dom"),require("recharts"),require("lodash/chunk"),exports.Alert=e.Alert,exports.AmpNextPage=e.AmpNextPage,exports.ArticleCard=e.ArticleCard,exports.BMICardEmbed=e.BMICardEmbed,exports.BMRCardEmbed=e.BMRCardEmbed,exports.BabyGrowthCardEmbed=e.BabyGrowthCardEmbed,exports.BabyPoopEmbed=e.BabyPoopEmbed,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.DoctorInfo=e.DoctorInfo,exports.DueDateCardEmbed=e.DueDateCardEmbed,exports.FileDropdown=e.FileDropdown,exports.FloatButtonGroup=e.FloatButtonGroup,exports.Grid=e.Grid,exports.IconText=e.IconText,exports.MobileBottomNavigation=e.MobileBottomNavigation,exports.MobileBottomNavigationIcon=e.MobileBottomNavigationIcon,exports.OvulationCardEmbed=e.OvulationCardEmbed,exports.PWGCardEmbed=e.PWGCardEmbed,exports.Pagination=e.Pagination,exports.PillCarousel=e.PillCarousel,exports.Progress=e.Progress,exports.ProgressBar=e.ProgressBar,exports.Radio=e.Radio,exports.RadioGroup=e.RadioGroup,exports.RateStars=e.RateStars,exports.ScrollList=e.ScrollList,exports.SeoHead=e.SeoHead,exports.Shadow=e.Shadow,exports.ShareContainer=e.ShareContainer,exports.ShareDrawer=e.ShareDrawer,exports.SideMenu=e.index,exports.Slider=e.Slider,exports.StatisticCard=e.StatisticCard,exports.SurveyQuestionCard=e.SurveyQuestionCard,exports.SurveyThankyouCard=e.SurveyThankyouCard,exports.THRCardEmbed=e.THRCardEmbed,exports.Table=e.index$1,exports.Tabs=e.Tabs,exports.Tag=e.Tag,exports.TextArea=e.TextArea,exports.TextDivider=e.TextDivider,exports.Toggle=e.Toggle,exports.ToolsBannerCard=e.ToolsBannerCard,exports.UnderlinedLink=e.UnderlinedLink,exports.Uploader=e.Uploader,exports.Avatar=r.Avatar,exports.Popup=r.Popup,exports.Button=o.Button,exports.AuthorBadge=t.AuthorBadge,exports.Divider=t.Divider,exports.Dropdown=t.Dropdown,exports.Flag=a.Flag,exports.LanguageSwitcher=a.LanguageSwitcher,exports.NavigationLogoutPopup=a.NavigationLogoutPopup,exports.NavigationProfileButton=a.NavigationProfileButton,exports.NavigationV2=a.NavigationV2,exports.ProfilePopup=a.ProfilePopup,exports.PureInput=a.PureInput,exports.UserProfileNavigation=a.UserProfileNavigation,exports.UserProfileNavigationHeader=a.NavHeader,exports.UserProfileNavigationStats=a.UserStats,exports.getNavMenuContent=a.getNavMenuContent,exports.getNavMenuContentWithCache=a.getNavMenuContentWithCache,exports.Heading=i.Heading,exports.Input=s.Input,exports.Label=d.Label,exports.Container=n.Container,exports.Logo=n.Logo,exports.Text=u.Text,exports.Drawer=p.Drawer,exports.Icon=p.Icon,exports.Menu=p.Menu,exports.Modal=p.Modal,exports.NewBabyProfileRadio=p.NewBabyProfileRadio,exports.RadioImageGroup=p.RadioImageGroup,exports.CustomReferenceDot=x.CustomReferenceDot,exports.Footer=l.Footer;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var e=require("./tslib.es6-e6f346c4.js"),r=require("react");function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var a=t(r);exports.getDefaultClassWrapper=function(t,s){return r.forwardRef((function(r,c){var n=r.className,u=e.__rest(r,["className"]);return a.default.createElement(t,e.__assign({ref:c,className:"".concat(s," ").concat(n||"")},u))}))};
|
package/build/esm/babyGrowth.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{S as e,d as a,e as C,M as c,f as d,I as h,c as E,g as f,h as g}from"./index-fba7cd68.js";export{m as BabyGrowthChart,o as BabyGrowthChartPercentile,p as BabyGrowthChartZScore,B as BabyGrowthChooseProfileDrawer,b as BabyGrowthGender,l as BabyGrowthProfileRadio,i as BabyGrowthSwitch,j as BabyGrowthSwitchChart,k as BabyGrowthTooltip,L as LABELS_PERCENTILE,n as LABELS_Z_SCORE,s as divideChartData,r as generateGrowthChart,w as generateXAxisTicks,q as getAxisYDomain,x as paintAxis,u as refineDataWithDot,t as refineDataWithLine,v as transformDataToChart}from"./index-fba7cd68.js";import y,{useRef as M,useState as Z}from"react";import{L as H,G as V}from"./Locale-69030fff.js";import{t as G}from"./theme-a50a1aa5.js";import{T as N}from"./index-db100bfe.js";import z from"dayjs";import{u as S}from"./useTranslations-b3eb31ef.js";import{H as D}from"./index-6ebadd9f.js";import{s as _}from"./utils-11febb09.js";import{u as P}from"./useOutsideClick-6004483a.js";import"lodash/debounce";import"./isProduction-6fc0946c.js";import"./index-9dd60ba6.js";import{a as R,l as A}from"./localizeNumberFormat-ec8c08da.js";import"./tslib.es6-44f7e5ec.js";import"styled-components";import"./defaultClassWrapper-d19e31e4.js";import"./FullScreen-7153b23e.js";import"./animation-1f84197a.js";import"./index-fac4e2c1.js";import"./index-64080428.js";import"@mantine/core";import"./useScrollbarSize-99db33e1.js";import"react-dom";import"recharts";import"./index-182c57d1.js";import"lodash/chunk";import"./translationsContext-e7808c8f.js";import"string-format";var I=function(t){var r=t.legends,l=t.locale;return y.createElement(e,null,r.map((function(e,t){return y.createElement(a,{key:t},y.createElement("span",{className:"dot",style:{backgroundColor:e.color}}),y.createElement(N,{size:"n1",color:G.colors.gray800},l===H.Indonesia?e["z-score"]:e.text))})))},T=function(e){var t=e.name,a=e.onClose,r=e.onEdit,l=e.onSwitch,n=e.onAdd,o=e.onRemove,i=S().t,m=M();return P(m,a),y.createElement("div",{ref:m},y.createElement(C,{width:250},y.createElement(c.Item,{onClick:r,icon:y.createElement("svg",{width:"16",height:"17",viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},y.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"}))},y.createElement(N,{size:"p2",color:G.colors.gray800},i("childCard.menu.edit",{name:t}))),y.createElement(c.Item,{onClick:l,icon:y.createElement("svg",{width:"16",height:"17",viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},y.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"}))},y.createElement(N,{size:"p2",color:G.colors.gray800},i("childCard.menu.switch"))),y.createElement(c.Item,{onClick:n,icon:y.createElement("svg",{width:"16",height:"17",viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},y.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"}),y.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"}))},y.createElement(N,{size:"p2",color:G.colors.gray800},i("childCard.menu.add"))),y.createElement(c.Item,{onClick:o,icon:y.createElement("svg",{width:"16",height:"17",viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},y.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"}))},y.createElement(N,{size:"p2",color:G.colors.red600},i("childCard.menu.remove",{name:t})))))},F=function(e,t){if(e)if(e.year<1){if(0===e.month)switch(e.week){case 0:case 1:return t("childCard.age.oneWeek");default:return t("childCard.age.week",{weeks:e.week})}if(1===e.month)return t("childCard.age.oneMonth");if(e.month>1)return t("childCard.age.months",{month:e.month})}else{if(1===e.year)return t("childCard.age.oneYear");if(0===e.month)return t("childCard.age.yearNoMonth",{year:e.year});if(e.month>0)return t("childCard.age.yearMonth",{year:e.year,month:e.month})}},Y=function(e){var t=e.name,a=e.gender,r=e.age,l=e.isLoggedIn,n=void 0!==l&&l,o=e.showMenu,i=void 0!==o&&o,C=e.onEdit,c=e.onSwitch,m=e.onAdd,s=e.onRemove,p=e.className,g=e.siteType,w=S().t,u=Z(!1),v=u[0],L=u[1],b="marryBaby"===g;return y.createElement(d,{className:p,"data-theme":g},b?y.createElement(y.Fragment,null,y.createElement("div",{"data-testid":"gender"},a===V.Boy?y.createElement(h.BabyBoyMB,{"data-testid":"boy",id:"boy"}):y.createElement(h.BabyGirlMB,{"data-testid":"girl",id:"girl"})),y.createElement("div",{className:"information"},y.createElement(E,{type:"subtitle-1",color:G.mbColors.dark},_(t)||w("childCard.noName")),y.createElement("div",{className:"detail"},y.createElement("div",null,a===V.Boy?y.createElement(h.GenderBoy,null):y.createElement(h.GenderGirl,null),y.createElement(E,{type:"bodytext-2",color:G.mbColors.gray},a)),y.createElement("div",null,y.createElement(h.Calendar,{size:16}),r&&y.createElement(E,{type:"bodytext-2",color:G.mbColors.gray},F(r,w)))))):y.createElement(y.Fragment,null,y.createElement("div",{"data-testid":"gender"},a===V.Boy?y.createElement(h.Boy,{"data-testid":"boy",id:"boy"}):y.createElement(h.Girl,{"data-testid":"girl",id:"girl"})),y.createElement("div",{className:"information"},y.createElement(D,{tag:"h5",fontWeight:"bold",color:G.colors.gray800},_(t)||w("childCard.noName")),y.createElement("div",{className:"detail"},y.createElement("div",null,a===V.Boy?y.createElement(h.GenderBoy,null):y.createElement(h.GenderGirl,null),y.createElement(N,{size:"p3",color:G.colors.gray800,style:{textTransform:"capitalize"}},a)),y.createElement("div",null,y.createElement(h.Calendar,{size:16}),r&&y.createElement(N,{size:"p3",color:G.colors.gray800},F(r,w)))))),i&&n&&y.createElement(f,null,y.createElement(h.Kebab,{onClick:function(){return L((function(e){return!e}))}}),v&&y.createElement(T,{name:t,onClose:function(){return L(!1)},onEdit:function(){L(!1),C()},onSwitch:function(){L(!1),c()},onAdd:function(){L(!1),m()},onRemove:function(){L(!1),s()}})))},W=function(e,t){return e&&"NaN"!==e?e+" "+(t||""):"--"},O=function(e){var t=e.measurementDate,a=void 0===t?new Date:t,r=e.weight,l=e.height,n=e.head,o=e.onEdit,i=e.birthday,C=e.dateFormat,c=void 0===C?"DD/MM/YYYY":C,m=e.locale;void 0===m&&H.PhilippinesEnglish;var s=S().t;return y.createElement(g,{onClick:o},y.createElement("div",{className:"time"},y.createElement("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},y.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"})),y.createElement(N,{size:"p3",color:G.colors.gray600},"".concat(z(a).format(c)," (").concat(F(R(i,a),s),")")),y.createElement("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"edit-button"},y.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"}))),y.createElement("div",{className:"record"},y.createElement("div",{className:"record-item"},y.createElement("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},y.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"}),y.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"}),y.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"})),y.createElement(N,{size:"s3",color:G.colors.gray800,type:"semiBold"},W(A(r),"kg"))),y.createElement("div",{className:"record-item"},y.createElement("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},y.createElement("g",{clipPath:"url(#clip0_855_82991)"},y.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"})),y.createElement("defs",null,y.createElement("clipPath",{id:"clip0_855_82991"},y.createElement("rect",{width:"16",height:"16",fill:"white",transform:"translate(16.6055) rotate(90)"})))),y.createElement(N,{size:"s3",color:G.colors.gray800,type:"semiBold"},W(A(l),"cm"))),y.createElement("div",{className:"record-item"},y.createElement("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},y.createElement("g",{clipPath:"url(#clip0_855_82994)"},y.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"}),y.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"}),y.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"})),y.createElement("defs",null,y.createElement("clipPath",{id:"clip0_855_82994"},y.createElement("rect",{width:"16",height:"16",fill:"white",transform:"translate(0.234375)"})))),y.createElement(N,{size:"s3",color:G.colors.gray800,type:"semiBold"},W(A(n),"cm")))))};export{I as BabyGrowthLegend,O as BabyGrowthRecord,Y as ChildCard};
|
|
1
|
+
import{S as e,c as a,d as C,M as c,e as d,I as E,f,g}from"./index-eced25ed.js";export{l as BabyGrowthChart,n as BabyGrowthChartPercentile,o as BabyGrowthChartZScore,B as BabyGrowthChooseProfileDrawer,b as BabyGrowthGender,k as BabyGrowthProfileRadio,h as BabyGrowthSwitch,i as BabyGrowthSwitchChart,j as BabyGrowthTooltip,L as LABELS_PERCENTILE,m as LABELS_Z_SCORE,r as divideChartData,q as generateGrowthChart,v as generateXAxisTicks,p as getAxisYDomain,w as paintAxis,t as refineDataWithDot,s as refineDataWithLine,u as transformDataToChart}from"./index-eced25ed.js";import y,{useRef as M,useState as x}from"react";import{L as Z,G as H}from"./Locale-69030fff.js";import{t as V}from"./theme-a50a1aa5.js";import{T as G}from"./index-db100bfe.js";import N from"dayjs";import{u as z}from"./useTranslations-b3eb31ef.js";import{H as S}from"./index-6ebadd9f.js";import{M as D}from"./index-1f8da9eb.js";import{s as _}from"./utils-11febb09.js";import{u as P}from"./useOutsideClick-6004483a.js";import"lodash/debounce";import"./isProduction-6fc0946c.js";import"./index-9dd60ba6.js";import{a as R,l as A}from"./localizeNumberFormat-ec8c08da.js";import"./tslib.es6-44f7e5ec.js";import"styled-components";import"./index-c4be547e.js";import"./FullScreen-7153b23e.js";import"./animation-1f84197a.js";import"./index-fac4e2c1.js";import"./index-64080428.js";import"@mantine/core";import"./useScrollbarSize-99db33e1.js";import"react-dom";import"./defaultClassWrapper-4144361d.js";import"recharts";import"./index-182c57d1.js";import"lodash/chunk";import"./translationsContext-e7808c8f.js";import"string-format";var I=function(t){var r=t.legends,l=t.locale;return y.createElement(e,null,r.map((function(e,t){return y.createElement(a,{key:t},y.createElement("span",{className:"dot",style:{backgroundColor:e.color}}),y.createElement(G,{size:"n1",color:V.colors.gray800},l===Z.Indonesia?e["z-score"]:e.text))})))},T=function(e){var t=e.name,a=e.onClose,r=e.onEdit,l=e.onSwitch,n=e.onAdd,o=e.onRemove,i=z().t,m=M();return P(m,a),y.createElement("div",{ref:m},y.createElement(C,{width:250},y.createElement(c.Item,{onClick:r,icon:y.createElement("svg",{width:"16",height:"17",viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},y.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"}))},y.createElement(G,{size:"p2",color:V.colors.gray800},i("childCard.menu.edit",{name:t}))),y.createElement(c.Item,{onClick:l,icon:y.createElement("svg",{width:"16",height:"17",viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},y.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"}))},y.createElement(G,{size:"p2",color:V.colors.gray800},i("childCard.menu.switch"))),y.createElement(c.Item,{onClick:n,icon:y.createElement("svg",{width:"16",height:"17",viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},y.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"}),y.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"}))},y.createElement(G,{size:"p2",color:V.colors.gray800},i("childCard.menu.add"))),y.createElement(c.Item,{onClick:o,icon:y.createElement("svg",{width:"16",height:"17",viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},y.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"}))},y.createElement(G,{size:"p2",color:V.colors.red600},i("childCard.menu.remove",{name:t})))))},F=function(e,t){if(e)if(e.year<1){if(0===e.month)switch(e.week){case 0:case 1:return t("childCard.age.oneWeek");default:return t("childCard.age.week",{weeks:e.week})}if(1===e.month)return t("childCard.age.oneMonth");if(e.month>1)return t("childCard.age.months",{month:e.month})}else{if(1===e.year)return t("childCard.age.oneYear");if(0===e.month)return t("childCard.age.yearNoMonth",{year:e.year});if(e.month>0)return t("childCard.age.yearMonth",{year:e.year,month:e.month})}},Y=function(e){var t=e.name,a=e.gender,r=e.age,l=e.isLoggedIn,n=void 0!==l&&l,o=e.showMenu,i=void 0!==o&&o,C=e.onEdit,c=e.onSwitch,m=e.onAdd,s=e.onRemove,h=e.className,p=e.siteType,g=z().t,w=x(!1),u=w[0],v=w[1],L="marryBaby"===p;return y.createElement(d,{className:h,"data-theme":p},L?y.createElement(y.Fragment,null,y.createElement("div",{"data-testid":"gender"},a===H.Boy?y.createElement(E.BabyBoyMB,{"data-testid":"boy",id:"boy"}):y.createElement(E.BabyGirlMB,{"data-testid":"girl",id:"girl"})),y.createElement("div",{className:"information"},y.createElement(D,{type:"subtitle-1",color:V.mbColors.dark},_(t)||g("childCard.noName")),y.createElement("div",{className:"detail"},y.createElement("div",null,a===H.Boy?y.createElement(E.GenderBoy,null):y.createElement(E.GenderGirl,null),y.createElement(D,{type:"bodytext-2",color:V.mbColors.gray},a)),y.createElement("div",null,y.createElement(E.Calendar,{size:16}),r&&y.createElement(D,{type:"bodytext-2",color:V.mbColors.gray},F(r,g)))))):y.createElement(y.Fragment,null,y.createElement("div",{"data-testid":"gender"},a===H.Boy?y.createElement(E.Boy,{"data-testid":"boy",id:"boy"}):y.createElement(E.Girl,{"data-testid":"girl",id:"girl"})),y.createElement("div",{className:"information"},y.createElement(S,{tag:"h5",fontWeight:"bold",color:V.colors.gray800},_(t)||g("childCard.noName")),y.createElement("div",{className:"detail"},y.createElement("div",null,a===H.Boy?y.createElement(E.GenderBoy,null):y.createElement(E.GenderGirl,null),y.createElement(G,{size:"p3",color:V.colors.gray800,style:{textTransform:"capitalize"}},a)),y.createElement("div",null,y.createElement(E.Calendar,{size:16}),r&&y.createElement(G,{size:"p3",color:V.colors.gray800},F(r,g)))))),i&&n&&y.createElement(f,null,y.createElement(E.Kebab,{onClick:function(){return v((function(e){return!e}))}}),u&&y.createElement(T,{name:t,onClose:function(){return v(!1)},onEdit:function(){v(!1),C()},onSwitch:function(){v(!1),c()},onAdd:function(){v(!1),m()},onRemove:function(){v(!1),s()}})))},W=function(e,t){return e&&"NaN"!==e?e+" "+(t||""):"--"},O=function(e){var t=e.measurementDate,a=void 0===t?new Date:t,r=e.weight,l=e.height,n=e.head,o=e.onEdit,i=e.birthday,C=e.dateFormat,c=void 0===C?"DD/MM/YYYY":C,m=e.locale;void 0===m&&Z.PhilippinesEnglish;var s=z().t;return y.createElement(g,{onClick:o},y.createElement("div",{className:"time"},y.createElement("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},y.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"})),y.createElement(G,{size:"p3",color:V.colors.gray600},"".concat(N(a).format(c)," (").concat(F(R(i,a),s),")")),y.createElement("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"edit-button"},y.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"}))),y.createElement("div",{className:"record"},y.createElement("div",{className:"record-item"},y.createElement("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},y.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"}),y.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"}),y.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"})),y.createElement(G,{size:"s3",color:V.colors.gray800,type:"semiBold"},W(A(r),"kg"))),y.createElement("div",{className:"record-item"},y.createElement("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},y.createElement("g",{clipPath:"url(#clip0_855_82991)"},y.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"})),y.createElement("defs",null,y.createElement("clipPath",{id:"clip0_855_82991"},y.createElement("rect",{width:"16",height:"16",fill:"white",transform:"translate(16.6055) rotate(90)"})))),y.createElement(G,{size:"s3",color:V.colors.gray800,type:"semiBold"},W(A(l),"cm"))),y.createElement("div",{className:"record-item"},y.createElement("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},y.createElement("g",{clipPath:"url(#clip0_855_82994)"},y.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"}),y.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"}),y.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"})),y.createElement("defs",null,y.createElement("clipPath",{id:"clip0_855_82994"},y.createElement("rect",{width:"16",height:"16",fill:"white",transform:"translate(0.234375)"})))),y.createElement(G,{size:"s3",color:V.colors.gray800,type:"semiBold"},W(A(n),"cm")))))};export{I as BabyGrowthLegend,O as BabyGrowthRecord,Y as ChildCard};
|
package/build/esm/components.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{A as Alert,X as AmpNextPage,i as ArticleCard,K as BMICardEmbed,Q as BMRCardEmbed,L as BabyGrowthCardEmbed,N as BabyPoopEmbed,B as Badge,a as BorderHeading,j as Breadcrumbs,q as Carousel,k as CategoryCard,C as Checkbox,l as CheckboxGroup,y as CookieAcceptConfirm,D as DatePicker,Y as DateRangePicker,u as DoctorInfo,J as DueDateCardEmbed,F as FileDropdown,x as FloatButtonGroup,
|
|
1
|
+
export{A as Alert,X as AmpNextPage,i as ArticleCard,K as BMICardEmbed,Q as BMRCardEmbed,L as BabyGrowthCardEmbed,N as BabyPoopEmbed,B as Badge,a as BorderHeading,j as Breadcrumbs,q as Carousel,k as CategoryCard,C as Checkbox,l as CheckboxGroup,y as CookieAcceptConfirm,D as DatePicker,Y as DateRangePicker,u as DoctorInfo,J as DueDateCardEmbed,F as FileDropdown,x as FloatButtonGroup,G as Grid,I as IconText,M as MobileBottomNavigation,z as MobileBottomNavigationIcon,V as OvulationCardEmbed,W as PWGCardEmbed,P as Pagination,$ as PillCarousel,h as Progress,m as ProgressBar,R as Radio,n as RadioGroup,g as RateStars,p as ScrollList,E as SeoHead,S as Shadow,Z as ShareContainer,_ as ShareDrawer,o as SideMenu,b as Slider,r as StatisticCard,v as SurveyQuestionCard,w as SurveyThankyouCard,O as THRCardEmbed,s as Table,t as Tabs,T as Tag,e as TextArea,f as TextDivider,c as Toggle,H as ToolsBannerCard,U as UnderlinedLink,d as Uploader}from"./index-77ba5666.js";export{A as Avatar,P as Popup}from"./index-ab34085c.js";export{B as Button}from"./index-c4be547e.js";export{A as AuthorBadge,D as Divider,a as Dropdown}from"./index-2058993e.js";export{F as Flag,L as LanguageSwitcher,d as NavigationLogoutPopup,f as NavigationProfileButton,N as NavigationV2,e as ProfilePopup,P as PureInput,U as UserProfileNavigation,b as UserProfileNavigationHeader,c as UserProfileNavigationStats,g as getNavMenuContent,a as getNavMenuContentWithCache}from"./index-fdce1dc1.js";export{H as Heading}from"./index-6ebadd9f.js";export{I as Input}from"./index-fac4e2c1.js";export{L as Label}from"./index-64080428.js";export{C as Container,L as Logo}from"./index-34929038.js";export{T as Text}from"./index-db100bfe.js";export{D as Drawer,I as Icon,M as Menu,a as Modal,N as NewBabyProfileRadio,R as RadioImageGroup}from"./index-eced25ed.js";export{C as CustomReferenceDot}from"./index-182c57d1.js";export{Footer}from"./footer.js";import"react";import"./tslib.es6-44f7e5ec.js";import"styled-components";import"./theme-a50a1aa5.js";import"./utils-11febb09.js";import"./defaultClassWrapper-4144361d.js";import"lodash/throttle";import"keen-slider/react";import"./index-9dd60ba6.js";import"./isProduction-6fc0946c.js";import"./useTranslations-b3eb31ef.js";import"./translationsContext-e7808c8f.js";import"string-format";import"./gAssets.js";import"react-hook-form";import"./index-0f2ac9f2.js";import"@mantine/core";import"@mantine/hooks";import"./Locale-69030fff.js";import"@mantine/carousel";import"./useHealthToolCache-9718433c.js";import"./getDynamicHealthTool-896e1eee.js";import"./core-341c626a.js";import"./routing-2d333f69.js";import"@hookform/resolvers/yup";import"dayjs";import"./index-1f8da9eb.js";import"lodash/debounce";import"date-fns";import"react-range";import"./types-f57c9932.js";import"react-day-picker/DayPickerInput";import"./useOutsideClick-6004483a.js";import"date-fns/locale/en-US";import"date-fns/locale/id";import"date-fns/locale/vi";import"date-fns/locale/zh-TW";import"./getSocialList-8f93036b.js";import"./cookieHelper-0e8521c3.js";import"slugify";import"./constants-a0a981fa.js";import"dayjs/plugin/relativeTime";import"./lazyLoad-59e8ff6d.js";import"vanilla-lazyload";import"./FullScreen-7153b23e.js";import"./animation-1f84197a.js";import"./useScrollbarSize-99db33e1.js";import"react-dom";import"recharts";import"lodash/chunk";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as a,a as e}from"./tslib.es6-44f7e5ec.js";import r,{forwardRef as c}from"react";var t=function(t,s){return c((function(c,n){var o=c.className,m=a(c,["className"]);return r.createElement(t,e({ref:n,className:"".concat(s," ").concat(o||"")},m))}))};export{t as g};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import n from"react";import{B as e}from"./index-c4be547e.js";import{C as t,L as a}from"./index-34929038.js";import{T as i}from"./index-db100bfe.js";import{d as o}from"./index-9dd60ba6.js";import{t as l}from"./theme-a50a1aa5.js";import{u as r}from"./useTranslations-b3eb31ef.js";import{_ as c}from"./tslib.es6-44f7e5ec.js";import{M as s}from"./utils-11febb09.js";import m from"styled-components";import{M as d}from"./index-1f8da9eb.js";import"./gAssets.js";import"./isProduction-6fc0946c.js";import"./Locale-69030fff.js";import"./translationsContext-e7808c8f.js";import"string-format";var p,g,u,x,f,h,v,b,y,w=m.footer(p||(p=c(["\n background-color: #1b3250;\n\n .inner {\n padding: 64px 24px 98px 24px;\n "," {\n padding: 64px 0;\n }\n margin: 0 auto;\n //max-width: 1168px;\n\n &[data-type='mini'] {\n padding: 24px 0;\n }\n }\n\n .footer-logo {\n max-width: 132px;\n max-height: 32px;\n margin-bottom: 24px;\n &[data-is-sehat='true'] {\n max-width: 250px;\n }\n\n img {\n object-fit: contain;\n }\n }\n\n .social {\n margin-top: 24px;\n\n "," {\n margin-top: 32px;\n p {\n font-size: 13px;\n }\n }\n\n "," {\n p {\n font-size: 12px;\n }\n }\n\n p {\n color: ",";\n }\n }\n\n .icons {\n margin-top: 12px;\n margin-bottom: 20px;\n > a:not(:last-child) {\n margin-right: 16px;\n }\n\n .social-icon {\n width: 32px;\n height: 32px;\n }\n }\n\n .newsletter {\n > p {\n color: ",";\n\n font-size: 14px;\n line-height: 22px;\n\n "," {\n max-width: 380px;\n line-height: 28.5px;\n }\n }\n }\n\n hr {\n height: 1px;\n border: none;\n margin: 16px 0 16px 0;\n "," {\n margin-top: 0px;\n }\n background: ",";\n opacity: 0.1;\n outline: none;\n }\n\n .hrMobile {\n "," {\n display: none;\n }\n }\n\n .copyright {\n padding-top: 8px;\n\n "," {\n display: flex;\n flex-direction: row-reverse;\n align-items: center;\n justify-content: space-between;\n }\n\n .copyright-content {\n width: 90%;\n color: ",";\n font-size: 12px;\n }\n\n .copyright-image-wrapper {\n flex-shrink: 0;\n flex-wrap: wrap;\n display: flex;\n max-width: 35%;\n justify-content: flex-end;\n "," {\n justify-content: flex-start;\n max-width: unset;\n }\n .copyright-image {\n &:not(:last-child) {\n margin-right: 0.5rem;\n }\n align-self: flex-start;\n\n img {\n max-width: 100px;\n margin-bottom: 16px;\n }\n }\n }\n\n &[data-is-amp='true'] {\n img {\n margin-bottom: 0;\n }\n }\n }\n\n .copyright-certificate {\n color: ",";\n "," {\n font-size: 11px;\n }\n "," {\n font-size: 12px;\n }\n }\n\n .biglinks {\n margin-bottom: 12px;\n }\n\n .bigLink {\n display: block;\n color: ",";\n font-size: 14px;\n font-weight: ",";\n text-decoration: none;\n word-break: break-word;\n\n &:not(:last-child) {\n margin-bottom: 12px;\n }\n\n "," {\n display: inline-block;\n width: 50%;\n font-size: 16px;\n }\n }\n\n .mHalf {\n display: inline-block;\n width: 50%;\n padding-right: 24px;\n margin-bottom: 24px;\n vertical-align: top;\n\n p {\n color: ",";\n\n "," {\n margin-bottom: 8px;\n font-size: 13px;\n line-height: 20px;\n }\n "," {\n margin-bottom: 12px;\n font-size: 14px;\n }\n }\n }\n\n .otherSites {\n p {\n margin-bottom: 12px;\n color: ",";\n font-size: 12px;\n "," {\n font-size: 13px;\n }\n "," {\n font-size: 13px;\n }\n }\n\n .flags {\n display: flex;\n margin-bottom: 8px;\n\n div {\n margin-right: 10px;\n }\n }\n }\n\n .link {\n display: block;\n text-decoration: none;\n\n p {\n color: ",";\n font-weight: ",";\n word-break: break-word;\n }\n\n &:not(:last-child) {\n margin-bottom: 12px;\n }\n }\n\n .columns {\n "," {\n display: flex;\n flex-direction: row;\n width: 100%;\n\n > div:nth-child(1) {\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n flex-basis: 40%;\n }\n\n > div:nth-child(2) {\n display: flex;\n flex-direction: row;\n flex-wrap: wrap;\n flex-basis: 60%;\n\n > div:nth-child(1) {\n flex-basis: 45%;\n }\n\n > div:not(:last-child) {\n flex-basis: 27.5%;\n }\n\n > div:last-child() {\n flex-basis: 0;\n }\n }\n }\n }\n\n .signupButton {\n display: none;\n border: none;\n margin-top: 16px;\n outline: none;\n text-transform: uppercase;\n }\n"],["\n background-color: #1b3250;\n\n .inner {\n padding: 64px 24px 98px 24px;\n "," {\n padding: 64px 0;\n }\n margin: 0 auto;\n //max-width: 1168px;\n\n &[data-type='mini'] {\n padding: 24px 0;\n }\n }\n\n .footer-logo {\n max-width: 132px;\n max-height: 32px;\n margin-bottom: 24px;\n &[data-is-sehat='true'] {\n max-width: 250px;\n }\n\n img {\n object-fit: contain;\n }\n }\n\n .social {\n margin-top: 24px;\n\n "," {\n margin-top: 32px;\n p {\n font-size: 13px;\n }\n }\n\n "," {\n p {\n font-size: 12px;\n }\n }\n\n p {\n color: ",";\n }\n }\n\n .icons {\n margin-top: 12px;\n margin-bottom: 20px;\n > a:not(:last-child) {\n margin-right: 16px;\n }\n\n .social-icon {\n width: 32px;\n height: 32px;\n }\n }\n\n .newsletter {\n > p {\n color: ",";\n\n font-size: 14px;\n line-height: 22px;\n\n "," {\n max-width: 380px;\n line-height: 28.5px;\n }\n }\n }\n\n hr {\n height: 1px;\n border: none;\n margin: 16px 0 16px 0;\n "," {\n margin-top: 0px;\n }\n background: ",";\n opacity: 0.1;\n outline: none;\n }\n\n .hrMobile {\n "," {\n display: none;\n }\n }\n\n .copyright {\n padding-top: 8px;\n\n "," {\n display: flex;\n flex-direction: row-reverse;\n align-items: center;\n justify-content: space-between;\n }\n\n .copyright-content {\n width: 90%;\n color: ",";\n font-size: 12px;\n }\n\n .copyright-image-wrapper {\n flex-shrink: 0;\n flex-wrap: wrap;\n display: flex;\n max-width: 35%;\n justify-content: flex-end;\n "," {\n justify-content: flex-start;\n max-width: unset;\n }\n .copyright-image {\n &:not(:last-child) {\n margin-right: 0.5rem;\n }\n align-self: flex-start;\n\n img {\n max-width: 100px;\n margin-bottom: 16px;\n }\n }\n }\n\n &[data-is-amp='true'] {\n img {\n margin-bottom: 0;\n }\n }\n }\n\n .copyright-certificate {\n color: ",";\n "," {\n font-size: 11px;\n }\n "," {\n font-size: 12px;\n }\n }\n\n .biglinks {\n margin-bottom: 12px;\n }\n\n .bigLink {\n display: block;\n color: ",";\n font-size: 14px;\n font-weight: ",";\n text-decoration: none;\n word-break: break-word;\n\n &:not(:last-child) {\n margin-bottom: 12px;\n }\n\n "," {\n display: inline-block;\n width: 50%;\n font-size: 16px;\n }\n }\n\n .mHalf {\n display: inline-block;\n width: 50%;\n padding-right: 24px;\n margin-bottom: 24px;\n vertical-align: top;\n\n p {\n color: ",";\n\n "," {\n margin-bottom: 8px;\n font-size: 13px;\n line-height: 20px;\n }\n "," {\n margin-bottom: 12px;\n font-size: 14px;\n }\n }\n }\n\n .otherSites {\n p {\n margin-bottom: 12px;\n color: ",";\n font-size: 12px;\n "," {\n font-size: 13px;\n }\n "," {\n font-size: 13px;\n }\n }\n\n .flags {\n display: flex;\n margin-bottom: 8px;\n\n div {\n margin-right: 10px;\n }\n }\n }\n\n .link {\n display: block;\n text-decoration: none;\n\n p {\n color: ",";\n font-weight: ",";\n word-break: break-word;\n }\n\n &:not(:last-child) {\n margin-bottom: 12px;\n }\n }\n\n .columns {\n "," {\n display: flex;\n flex-direction: row;\n width: 100%;\n\n > div:nth-child(1) {\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n flex-basis: 40%;\n }\n\n > div:nth-child(2) {\n display: flex;\n flex-direction: row;\n flex-wrap: wrap;\n flex-basis: 60%;\n\n > div:nth-child(1) {\n flex-basis: 45%;\n }\n\n > div:not(:last-child) {\n flex-basis: 27.5%;\n }\n\n > div:last-child() {\n flex-basis: 0;\n }\n }\n }\n }\n\n .signupButton {\n display: none;\n border: none;\n margin-top: 16px;\n outline: none;\n text-transform: uppercase;\n }\n"])),s.mbDown,s.mbDown,s.mbUp,(function(n){return n.theme.colors.neutral500}),(function(n){return n.theme.colors.neutral500}),s.mbUp,s.mbDown,(function(n){return n.theme.colors.neutral500}),s.mbUp,s.mbUp,(function(n){return n.theme.colors.neutral500}),s.mbDown,(function(n){return n.theme.colors.neutral500}),s.mbDown,s.mbUp,(function(n){return n.theme.colors.white}),(function(n){return n.theme.sizes.fwBold}),s.mbDown,(function(n){return n.theme.colors.neutral500}),s.mbDown,s.mbUp,(function(n){return n.theme.colors.neutral500}),s.mbDown,s.mbUp,(function(n){return n.theme.colors.white}),(function(n){return n.theme.sizes.fwBold}),s.mbUp),E=m.div(g||(g=c(["\n width: 32px;\n height: 32px;\n margin-right: 10px;\n\n &[data-is-mobile='true'] {\n width: 24px;\n height: 24px;\n }\n\n .country-flag {\n width: 100%;\n height: 100%;\n }\n"],["\n width: 32px;\n height: 32px;\n margin-right: 10px;\n\n &[data-is-mobile='true'] {\n width: 24px;\n height: 24px;\n }\n\n .country-flag {\n width: 100%;\n height: 100%;\n }\n"]))),k=function(e){var t=e.url,a=e.isMobile,i=e.dataEventCategory,o=e.dataEventAction,l=e.dataEventLabel,r=e.isAmp;return n.createElement(E,{"data-is-mobile":a},r?n.createElement("amp-img",{className:"country-flag",src:t,alt:"Country Flag","data-event-category":i,"data-event-action":o,"data-content-label":l}):n.createElement("img",{loading:"lazy",className:"country-flag",src:t,alt:"Country Flag","data-event-category":i,"data-event-action":o,"data-content-label":l}))},N=function(a){var c,s,m,d,p,g,u,x,f,h,v,b,y,E,N,z,j,F,C,D,M,L,A,T,B,H,S,U,I,_,G=a.className,P=a.type,X=void 0===P?"main":P,V=a.footerInfo,q=a.isMobile,J=a.locale,K=a.isAmp,O=r().t,Q=null==V?void 0:V.menu,R=(null===(s=null===(c=null==V?void 0:V.general)||void 0===c?void 0:c.verified)||void 0===s?void 0:s.filter(Boolean))||[];return n.createElement(w,{as:K&&"mini"===X?"div":"footer",className:G,style:"mini"===X?{backgroundColor:l.colors.neutral50}:{},"next-page-hide":!0},n.createElement(t,null,n.createElement("div",{className:"inner","data-type":X,"next-page-hide":""},"main"===X?n.createElement(n.Fragment,null,n.createElement("a",{href:"/"},K?(null===(d=null==V?void 0:V.general)||void 0===d?void 0:d.logo)?n.createElement("amp-img",{src:null===(p=null==V?void 0:V.general)||void 0===p?void 0:p.logo,alt:"Site logo",width:"132",height:"32",style:{marginBottom:24}}):null:n.createElement("img",{loading:"lazy",className:"footer-logo",src:null===(m=null==V?void 0:V.general)||void 0===m?void 0:m.logo,alt:"Logo","data-is-sehat":"id-ID"===J})),n.createElement("div",{className:"columns"},n.createElement("div",{className:"newsletter"},n.createElement(i,{size:"p1",type:"bold"},null===(g=null==V?void 0:V.general)||void 0===g?void 0:g.content),n.createElement(e,{className:"signupButton",color:"primary",size:"lg"},O("footer.signUp")),n.createElement("div",{className:"social"},n.createElement(i,{size:"sm",type:"regular"},null===(u=null==V?void 0:V.social)||void 0===u?void 0:u.title),n.createElement("div",{className:"icons"},null===(f=null===(x=null==V?void 0:V.social)||void 0===x?void 0:x.socials)||void 0===f?void 0:f.map((function(e,t){return n.createElement("a",{key:t,"data-event-category":"Footer","data-event-action":"Follow us - ".concat(e.name),"data-content-label":e.url,href:e.url},K?n.createElement("amp-img",{"data-event-category":"Footer","data-event-action":"Follow us - ".concat(e.name),"data-content-label":e.url,src:e.icon,alt:"Logo Social",width:"32",height:"32"}):n.createElement("img",{loading:"lazy","data-event-category":"Footer","data-event-action":"Follow us - ".concat(e.name),"data-content-label":e.url,src:e.icon,alt:"Logo Social",className:"social-icon"}))}))),n.createElement("hr",{className:"hrMobile"}))),n.createElement("div",null,Q&&n.createElement(n.Fragment,null,n.createElement("div",{className:"biglinks"},null===(v=null===(h=Q[0])||void 0===h?void 0:h.items)||void 0===v?void 0:v.map((function(e,t){return n.createElement("a",{"data-event-category":"Footer","data-event-action":e.title,"data-event-label":"https://".concat(o[J]).concat(e.url),className:"bigLink",key:t,href:e.url},e.title)}))),n.createElement("hr",{className:"hrMobile"}),n.createElement("div",{className:"mHalf"},n.createElement(i,{type:"regular",size:"sm",className:"linkTitle"},null===(b=Q[1])||void 0===b?void 0:b.menu_title),null===(E=null===(y=Q[1])||void 0===y?void 0:y.items)||void 0===E?void 0:E.map((function(e,t){return n.createElement("a",{"data-event-category":"Footer","data-event-action":e.title,"data-event-label":"https://".concat(o[J]).concat(e.url),className:"link",href:e.url,key:t},n.createElement(i,{size:"sm",type:"regular",dataEventCategory:"Footer",dataEventAction:e.title,dataEventLabel:"https://".concat(o[J]).concat(e.url)},e.title))}))),n.createElement("div",{className:"mHalf"},n.createElement(i,{type:"regular",size:"sm",className:"linkTitle"},null===(N=Q[2])||void 0===N?void 0:N.menu_title),null===(j=null===(z=Q[2])||void 0===z?void 0:z.items)||void 0===j?void 0:j.map((function(e,t){return e.url&&n.createElement("a",{"data-event-category":"Footer","data-event-action":e.title,"data-event-label":e.url,className:"link",href:e.url,key:t},n.createElement(i,{size:"sm",type:"regular",dataEventCategory:"Footer",dataEventAction:e.title,dataEventLabel:e.url},e.title))})))),!K&&n.createElement(n.Fragment,null,n.createElement("hr",{className:"hrMobile"}),n.createElement("div",{className:"otherSites"},n.createElement(i,{type:"regular",size:"sm",className:"linkTitle"},null===(F=null==V?void 0:V.branch)||void 0===F?void 0:F.title),n.createElement("div",{className:"flags"},null===(D=null===(C=null==V?void 0:V.branch)||void 0===C?void 0:C.branch)||void 0===D?void 0:D.map((function(e,t){return n.createElement("a",{className:"link",href:e.url,key:t,"data-event-category":"Footer","data-event-action":e.name,"data-event-label":e.url},n.createElement(k,{url:e.flag,isMobile:q,dataEventCategory:"Footer",dataEventAction:e.name,dataEventLabel:e.url,isAmp:K}))}))))))),n.createElement("hr",null),n.createElement("div",{className:"copyright","data-is-amp":K||void 0},n.createElement("div",{className:"copyright-image-wrapper"},R.length?R.map((function(e,t){return n.createElement("a",{href:e.url,key:t,className:"copyright-image"},K?n.createElement("amp-img",{src:e.image,alt:"DMCA Icon",width:"100",height:"36"}):n.createElement("img",{loading:"lazy",src:e.image,alt:"DMCA Icon"}))})):null),n.createElement(i,{size:"xs",type:"regular",className:"copyright-content"},null===(M=null==V?void 0:V.general)||void 0===M?void 0:M.copyright)),"vi-VN"===J&&n.createElement(i,{className:"copyright-certificate",size:"xs",type:"regular",color:"white"},"Giấy xác nhận cung cấp dịch vụ mạng xã hội trực tuyến số 529/GP-BTTTT, HN ngày 03/12/2019")):n.createElement(n.Fragment,null,(null==V?void 0:V.menu)&&n.createElement("div",{className:"columns"},n.createElement("div",{className:"mHalf"},n.createElement(i,{type:"regular",size:"sm",className:"linkTitle"},null===(L=null==V?void 0:V.menu[1])||void 0===L?void 0:L.menu_title),null===(T=null===(A=null==V?void 0:V.menu[1])||void 0===A?void 0:A.items)||void 0===T?void 0:T.map((function(e){return n.createElement("a",{className:"link",href:e.url,key:e.title,"data-list-type":"Footer","data-content-type":"Navigate","data-content-topic":"Information","data-content-title":e.title,"data-content-id":"https://".concat(o[J]).concat(e.url),"data-event-category":"Footer","data-event-action":e.title,"data-event-label":"https://".concat(o[J]).concat(e.url)},n.createElement(i,{dataEventCategory:"Footer",dataEventAction:e.title,dataEventLabel:"https://".concat(o[J]).concat(e.url),size:"sm",type:"regular",style:{color:l.colors.gray800}},e.title))}))),n.createElement("div",{className:"mHalf"},n.createElement(i,{type:"regular",size:"sm",className:"linkTitle"},null===(B=null==V?void 0:V.menu[2])||void 0===B?void 0:B.menu_title),null===(S=null===(H=null==V?void 0:V.menu[2])||void 0===H?void 0:H.items)||void 0===S?void 0:S.map((function(e,t){return n.createElement("a",{className:"link",href:e.url,key:t,"data-list-type":"Footer","data-content-type":"Navigate","data-content-topic":"Hello Health","data-content-title":e.title,"data-content-id":e.url,"data-event-category":"Footer","data-event-action":e.title,"data-event-label":e.url},n.createElement(i,{size:"sm",type:"regular",style:{color:l.colors.gray800},dataEventCategory:"Footer",dataEventAction:e.title,dataEventLabel:e.url},e.title))}))),!K&&"mini"!==X&&n.createElement("hr",{className:"hrMobile"}),n.createElement("div",{className:"newsletter"},n.createElement("div",{className:"social"},n.createElement(i,{size:"sm",type:"regular"},null===(U=null==V?void 0:V.social)||void 0===U?void 0:U.title),n.createElement("div",{className:"icons"},null===(_=null===(I=null==V?void 0:V.social)||void 0===I?void 0:I.socials)||void 0===_?void 0:_.map((function(e,t){return n.createElement("a",{key:t,"data-event-category":"Footer","data-event-action":"Follow us - ".concat(e.name),"data-content-label":e.url,href:e.url},K?n.createElement("amp-img",{"data-event-category":"Footer","data-event-action":"Follow us - ".concat(e.name),"data-content-label":e.url,src:e.icon,alt:"Logo Social",width:"32",height:"32"}):n.createElement("img",{"data-event-category":"Footer","data-event-action":"Follow us - ".concat(e.name),"data-content-label":e.url,src:e.icon,alt:"Logo Social",loading:"lazy",className:"social-icon"}))}))))))))))},z=m.footer(u||(u=c(["\n position: relative;\n overflow: hidden;\n\n .icons {\n margin-top: 12px;\n margin-bottom: 20px;\n > a:not(:last-child) {\n margin-right: 16px;\n }\n }\n\n a {\n text-decoration: none;\n }\n a :hover {\n color: ",";\n }\n"],["\n position: relative;\n overflow: hidden;\n\n .icons {\n margin-top: 12px;\n margin-bottom: 20px;\n > a:not(:last-child) {\n margin-right: 16px;\n }\n }\n\n a {\n text-decoration: none;\n }\n a :hover {\n color: ",";\n }\n"])),(function(n){return n.theme.mbColors.cobalt})),j=m.div(x||(x=c(["\n position: relative;\n padding: 80px 0 40px;\n margin: auto 68px;\n display: flex;\n justify-content: space-between;\n align-items: flex-start;\n\n border-bottom: 1px solid ",";\n\n "," {\n margin: auto 16px;\n flex-wrap: wrap;\n row-gap: 32px;\n column-gap: 16px;\n }\n\n "," {\n margin: auto 0;\n }\n"],["\n position: relative;\n padding: 80px 0 40px;\n margin: auto 68px;\n display: flex;\n justify-content: space-between;\n align-items: flex-start;\n\n border-bottom: 1px solid ",";\n\n "," {\n margin: auto 16px;\n flex-wrap: wrap;\n row-gap: 32px;\n column-gap: 16px;\n }\n\n "," {\n margin: auto 0;\n }\n"])),(function(n){return n.theme.colors.neutral200}),s.tdDown,s.mbDown),F=m.div(f||(f=c(["\n display: flex;\n justify-content: space-between;\n gap: 12px;\n flex-direction: column;\n\n "," {\n flex: 1 1 160px;\n }\n .title {\n padding-bottom: 4px;\n }\n"],["\n display: flex;\n justify-content: space-between;\n gap: 12px;\n flex-direction: column;\n\n "," {\n flex: 1 1 160px;\n }\n .title {\n padding-bottom: 4px;\n }\n"])),s.mbDown),C=m.div(h||(h=c(["\n display: flex;\n justify-content: space-between;\n gap: 12px;\n flex-direction: column;\n"],["\n display: flex;\n justify-content: space-between;\n gap: 12px;\n flex-direction: column;\n"]))),D=m.div(v||(v=c(["\n padding: 40px 0;\n position: relative;\n\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 24px;\n flex-direction: column;\n text-align: center;\n\n .content {\n max-width: 680px;\n width: 100%;\n }\n .social-link {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 4px;\n\n img {\n width: 32px;\n height: 32px;\n }\n }\n\n "," {\n padding: 32px 0;\n }\n"],["\n padding: 40px 0;\n position: relative;\n\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 24px;\n flex-direction: column;\n text-align: center;\n\n .content {\n max-width: 680px;\n width: 100%;\n }\n .social-link {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 4px;\n\n img {\n width: 32px;\n height: 32px;\n }\n }\n\n "," {\n padding: 32px 0;\n }\n"])),s.mbDown),M=m.div(b||(b=c(["\n background-color: ",";\n padding: 16px 0;\n position: relative;\n\n img {\n width: 89px;\n height: 32px;\n }\n .content {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 174px;\n margin: auto 68px;\n\n "," {\n margin: auto 16px;\n }\n\n "," {\n flex-direction: column-reverse;\n gap: 16px;\n align-items: flex-start;\n margin: auto 0;\n }\n }\n\n .verify {\n display: flex;\n align-items: flex-start;\n gap: 8px;\n }\n"],["\n background-color: ",";\n padding: 16px 0;\n position: relative;\n\n img {\n width: 89px;\n height: 32px;\n }\n .content {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 174px;\n margin: auto 68px;\n\n "," {\n margin: auto 16px;\n }\n\n "," {\n flex-direction: column-reverse;\n gap: 16px;\n align-items: flex-start;\n margin: auto 0;\n }\n }\n\n .verify {\n display: flex;\n align-items: flex-start;\n gap: 8px;\n }\n"])),(function(n){return n.theme.mbColors.dark}),s.tdDown,s.mbDown),L=m.div(y||(y=c(["\n overflow: hidden;\n &:before {\n position: absolute;\n top: 0;\n left: 50%;\n display: block;\n width: 150%;\n height: 100%;\n background-color: ",";\n border-radius: 2150px 2150px 0 0 / 200px 200px 0 0;\n content: '';\n transform: translateX(-50%);\n }\n\n "," {\n &:before {\n width: 100%;\n }\n }\n"],["\n overflow: hidden;\n &:before {\n position: absolute;\n top: 0;\n left: 50%;\n display: block;\n width: 150%;\n height: 100%;\n background-color: ",";\n border-radius: 2150px 2150px 0 0 / 200px 200px 0 0;\n content: '';\n transform: translateX(-50%);\n }\n\n "," {\n &:before {\n width: 100%;\n }\n }\n"])),(function(n){return n.theme.mbColors.lightGray}),s.mbDown),A=function(e){var i,o=e.logoType,r=void 0===o?"marryBaby":o,c=e.footerMenu,s=e.background;if(!c)return null;var m=c.general,p=c.menu,g=c.socials;return n.createElement(z,{style:{backgroundColor:s||"none"}},n.createElement(L,null,n.createElement(t,null,n.createElement(j,null,null==p?void 0:p.map((function(e,t){var a=e.menu_title,i=e.items;return n.createElement(F,{key:"mbf".concat(t)},n.createElement(d,{className:"title",type:"subtitle-1",color:l.mbColors.pink},a),null==i?void 0:i.map((function(e,t){var a=e.title,i=e.url;return n.createElement("a",{"data-event-category":"Footer","data-event-action":"Click","data-event-label":"".concat(i),className:"link",href:i,key:"footer-links-".concat(t)},n.createElement(C,{key:"mbitem".concat(t)},n.createElement(d,{type:"bodytext-2",color:l.mbColors.gray},a)))})))})))),n.createElement(t,null,n.createElement(D,null,n.createElement(a,{className:"logo",type:r}),n.createElement("div",{className:"content"},n.createElement(d,{type:"bodytext-2",color:l.mbColors.gray},null==m?void 0:m.content)),n.createElement("div",{className:"social-link"},null==g?void 0:g.map((function(e,t){var a=e.icon,i=e.name,o=e.url;return n.createElement("a",{key:"social".concat(t),target:"_blank",rel:"noreferrer","data-event-category":"Footer","data-event-action":"Follow us - ".concat(i),"data-content-label":i,href:o},n.createElement("img",{loading:"lazy",src:a,alt:i}))}))))),n.createElement(M,null,n.createElement(t,null,n.createElement("div",{className:"content"},n.createElement(d,{type:"bodytext-3",color:l.colors.white},null==m?void 0:m.copyright),n.createElement("div",{className:"verify"},null===(i=null==m?void 0:m.verified)||void 0===i?void 0:i.map((function(e,t){var a=e.image,i=e.url;return n.createElement("img",{loading:"lazy",key:"imgMbFt".concat(t),src:a,alt:i})}))))))))},T=function(e){var t=e.type,a=e.isMobile,i=void 0===a||a,o=e.locale,l=e.footerInfo,r=e.isAmp,c=e.siteType,s=e.background;return"helloSites"===c?n.createElement(N,{isAmp:r,isMobile:i,type:t,locale:o,footerInfo:l||{}}):n.createElement(A,{footerMenu:l,background:s})};export{T as Footer};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{_ as n,c as t,a as e}from"./tslib.es6-44f7e5ec.js";import i from"react";import p from"styled-components";var o,a,h=p((function(n){var e=n.type,p=t(n,["type"]);return i.createElement(e,p)}))(o||(o=n(["\n color: var(--text-color, ",");\n font-family: Krub;\n font-weight: 600;\n letter-spacing: -0.2px;\n\n &[data-type='headline-1'] {\n font-size: 40px;\n line-height: 60px;\n }\n &[data-type='headline-2'] {\n font-size: 32px;\n line-height: 48px;\n }\n &[data-type='headline-3'] {\n font-size: 24px;\n line-height: 40px;\n }\n &[data-type='headline-4'] {\n font-size: 18px;\n line-height: 32px;\n }\n"],["\n color: var(--text-color, ",");\n font-family: Krub;\n font-weight: 600;\n letter-spacing: -0.2px;\n\n &[data-type='headline-1'] {\n font-size: 40px;\n line-height: 60px;\n }\n &[data-type='headline-2'] {\n font-size: 32px;\n line-height: 48px;\n }\n &[data-type='headline-3'] {\n font-size: 24px;\n line-height: 40px;\n }\n &[data-type='headline-4'] {\n font-size: 18px;\n line-height: 32px;\n }\n"])),(function(n){return n.theme.mbColors.dark})),l=p.p(a||(a=n(["\n color: var(--text-color, ",");\n letter-spacing: -0.2px;\n\n &[data-type='subtitle-1'] {\n font-size: 16px;\n font-weight: 600;\n line-height: 26px;\n }\n &[data-type='subtitle-2'] {\n font-size: 14px;\n font-weight: 500;\n line-height: 24px;\n }\n &[data-type='subtitle-3'] {\n font-size: 12px;\n font-weight: 500;\n line-height: 20px;\n }\n &[data-type='bodytext-1'] {\n font-size: 16px;\n font-weight: 400;\n line-height: 28px;\n }\n &[data-type='bodytext-2'] {\n font-size: 14px;\n font-weight: 400;\n line-height: 24px;\n }\n &[data-type='bodytext-3'] {\n font-size: 12px;\n font-weight: 400;\n line-height: 20px;\n }\n &[data-type='caption-1'] {\n font-size: 10px;\n font-weight: 500;\n letter-spacing: -0.1px;\n line-height: 14px;\n }\n &[data-type='caption-2'] {\n font-size: 10px;\n font-weight: 400;\n letter-spacing: -0.1px;\n line-height: 14px;\n }\n"],["\n color: var(--text-color, ",");\n letter-spacing: -0.2px;\n\n &[data-type='subtitle-1'] {\n font-size: 16px;\n font-weight: 600;\n line-height: 26px;\n }\n &[data-type='subtitle-2'] {\n font-size: 14px;\n font-weight: 500;\n line-height: 24px;\n }\n &[data-type='subtitle-3'] {\n font-size: 12px;\n font-weight: 500;\n line-height: 20px;\n }\n &[data-type='bodytext-1'] {\n font-size: 16px;\n font-weight: 400;\n line-height: 28px;\n }\n &[data-type='bodytext-2'] {\n font-size: 14px;\n font-weight: 400;\n line-height: 24px;\n }\n &[data-type='bodytext-3'] {\n font-size: 12px;\n font-weight: 400;\n line-height: 20px;\n }\n &[data-type='caption-1'] {\n font-size: 10px;\n font-weight: 500;\n letter-spacing: -0.1px;\n line-height: 14px;\n }\n &[data-type='caption-2'] {\n font-size: 10px;\n font-weight: 400;\n letter-spacing: -0.1px;\n line-height: 14px;\n }\n"])),(function(n){return n.theme.mbColors.dark})),x=function(n){var p=n.type,o=n.color,a=n.style,l=t(n,["type","color","style"]);return i.createElement(h,e({type:p,"data-type":{h1:"headline-1",h2:"headline-2",h3:"headline-3",h4:"headline-4"}[p],style:e(e({},o&&{"--text-color":o}),a)},l))},r=function(n){var p=n.type,o=n.color,a=n.style,h=t(n,["type","color","style"]);return i.createElement(l,e({"data-type":p,style:e(e({},a),o&&{"--text-color":o})},h))};export{r as M,x as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import n,{memo as e,useMemo as t}from"react";import{CommonGAssets as a}from"./gAssets.js";import{_ as o}from"./tslib.es6-44f7e5ec.js";import{M as s}from"./utils-11febb09.js";import l from"styled-components";import{L as i}from"./Locale-69030fff.js";var g,r,h,m=l.div(g||(g=o(["\n position: relative;\n display: inline-flex;\n align-items: center;\n z-index: 1;\n .main-logo-icon {\n object-fit: contain;\n }\n &[data-logo-is-light] {\n > svg path {\n fill: #fff;\n }\n }\n\n &[data-has-badge] {\n @supports (display: flex) and (gap: 1em) {\n gap: 0.5rem;\n }\n\n @supports not ((display: flex) and (gap: 1em)) {\n > img,\n amp-image {\n margin-left: 0.25rem;\n }\n }\n }\n\n .amp-logo img {\n object-fit: contain;\n }\n .common-logo-seasonal-left,\n .common-logo-seasonal-right {\n z-index: -1;\n }\n .common-logo-seasonal-left {\n position: absolute;\n top: 50%;\n left: 0;\n transform: translateY(-50%);\n }\n .common-logo-seasonal-right {\n position: absolute;\n top: 50%;\n right: 0;\n transform: translateY(-50%);\n }\n &[data-christmas='true'] {\n padding-left: 37px;\n padding-right: 22px;\n .common-logo-seasonal-left {\n width: 125px;\n height: 56px;\n }\n .common-logo-seasonal-right {\n width: 23px;\n height: 17px;\n }\n }\n &[data-new-year='true'] {\n padding-right: 85px;\n .common-logo-seasonal-left {\n top: 35%;\n width: 100px;\n height: 56px;\n }\n .common-logo-seasonal-right {\n width: 85px;\n height: 54px;\n }\n "," {\n padding-right: 0;\n .common-logo-seasonal-right {\n display: none;\n }\n }\n }\n &[data-lunar-new-year='true'] {\n padding-left: 30px;\n padding-right: 35px;\n .common-logo-seasonal-left {\n width: 33px;\n height: 41px;\n }\n .common-logo-seasonal-right {\n width: 37px;\n height: 54px;\n }\n }\n"],["\n position: relative;\n display: inline-flex;\n align-items: center;\n z-index: 1;\n .main-logo-icon {\n object-fit: contain;\n }\n &[data-logo-is-light] {\n > svg path {\n fill: #fff;\n }\n }\n\n &[data-has-badge] {\n @supports (display: flex) and (gap: 1em) {\n gap: 0.5rem;\n }\n\n @supports not ((display: flex) and (gap: 1em)) {\n > img,\n amp-image {\n margin-left: 0.25rem;\n }\n }\n }\n\n .amp-logo img {\n object-fit: contain;\n }\n .common-logo-seasonal-left,\n .common-logo-seasonal-right {\n z-index: -1;\n }\n .common-logo-seasonal-left {\n position: absolute;\n top: 50%;\n left: 0;\n transform: translateY(-50%);\n }\n .common-logo-seasonal-right {\n position: absolute;\n top: 50%;\n right: 0;\n transform: translateY(-50%);\n }\n &[data-christmas='true'] {\n padding-left: 37px;\n padding-right: 22px;\n .common-logo-seasonal-left {\n width: 125px;\n height: 56px;\n }\n .common-logo-seasonal-right {\n width: 23px;\n height: 17px;\n }\n }\n &[data-new-year='true'] {\n padding-right: 85px;\n .common-logo-seasonal-left {\n top: 35%;\n width: 100px;\n height: 56px;\n }\n .common-logo-seasonal-right {\n width: 85px;\n height: 54px;\n }\n "," {\n padding-right: 0;\n .common-logo-seasonal-right {\n display: none;\n }\n }\n }\n &[data-lunar-new-year='true'] {\n padding-left: 30px;\n padding-right: 35px;\n .common-logo-seasonal-left {\n width: 33px;\n height: 41px;\n }\n .common-logo-seasonal-right {\n width: 37px;\n height: 54px;\n }\n }\n"])),s.mbDown),p=l.img(r||(r=o(["\n height: 16px;\n width: unset;\n margin-bottom: 4px;\n margin-left: -3px;\n"],["\n height: 16px;\n width: unset;\n margin-bottom: 4px;\n margin-left: -3px;\n"]))),c=e((function(e){var o=e.type,s=e.width,l=e.height,i=t((function(){switch(o){case"hellobacsi":return{width:s||"107px",height:l||"24px",src:a.getAssetPath("logo/hellobacsi.png")};case"hellodoktor":return{width:s||"127px",height:l||"24px",src:a.getAssetPath("logo/hellodoktor.png")};case"hellosehat":return{width:s||"121px",height:l||"27px",src:a.getAssetPath("logo/hellosehat.png")};case"hellohealth":return{width:s||"123px",height:l||"24px",src:a.getAssetPath("logo/hellohealth.png")};case"hellotogether":return{width:s||"150px",height:l||"24px",src:a.getAssetPath("logo/hellotogether.png")};case"hellocare":return{width:s||"99px",height:l||"24px",src:a.getAssetPath("logo/hellocare.png")};case"hellodoctor":return{width:s||"127px",height:l||"24px",src:a.getAssetPath("logo/hellodoctor.png")};case"hellokrupet":return{width:s||"101px",height:l||"24px",src:a.getAssetPath("logo/hellokrupet.png")};case"hellosayarwon":return{width:s||"111px",height:l||"24px",src:a.getAssetPath("logo/hellosayarwon.png")};case"helloyishi":return{width:s||"89px",height:l||"24px",src:a.getAssetPath("logo/helloyishi.png")};case"hellokhunmor":return{width:s||"123px",height:l||"24px",src:a.getAssetPath("logo/hellokhunmor.png")};case"helloswasthya":return{width:s||"105px",height:l||"24px",src:a.getAssetPath("logo/helloswasthya.png")};case"logomark":return{width:s||"60px",height:l||"57px",src:a.getAssetPath("logo/logomark.png")};case"marryBaby":return{width:s||"145px",height:l||"28px",src:a.getAssetPath("logo/marrybaby.png")};default:return null}}),[o,s,l])||{},g=i.src,r=i.width,h=i.height;return n.createElement("img",{className:"main-logo-icon",src:g,style:{width:r,height:h}})})),d={2023:[22,0],2024:[10,1],2025:[29,0],2026:[17,1],2027:[6,1],2028:[26,0],2029:[13,1],2030:[3,1],2031:[23,0],2032:[11,1],2033:[31,0],2034:[19,1],2035:[8,1],2036:[28,0],2037:[15,1],2038:[4,1],2039:[24,0],2040:[12,1]},x=[i.Vietnam,i.Taiwan,i.Indonesia,i.Malaysia],u=function(e){var o=e.type,s=e.className,l=e.style,i=e.isLightLogo,g=e.customSize,r=e.badge,h=e.locale,u=e.dateForSeasonal,f=e.isPro,w=t((function(){if(!u||isNaN(new Date(u).getTime()))return{isChristmas:!1,isLunarNewYear:!1,isNewYear:!1};var n,e,t=new Date(u),a=(e=(n=t).getDate(),11===n.getMonth()&&e>=16&&e<=25),o=x.includes(h)&&function(n){var e=n.getFullYear(),t=d[e];if(!t)return!1;var a=new Date(e,t[1],t[0]),o=new Date(a);o.setDate(a.getDate()-7);var s=new Date(a);return s.setDate(a.getDate()+5),o<=n&&n<=s}(t),s=!o&&function(n){var e=n.getDate(),t=n.getMonth();return 11===t&&e>=26||0===t&&e<=15}(t);return{isChristmas:a,isLunarNewYear:o,isNewYear:s}}),[h,new Date(u).getDate()]);return n.createElement(m,{className:s,style:l,"data-logo-is-light":i||void 0,"data-has-badge":!!r,"data-christmas":w.isChristmas,"data-new-year":w.isNewYear,"data-lunar-new-year":w.isLunarNewYear},w.isChristmas?n.createElement(n.Fragment,null,n.createElement("img",{loading:"lazy",src:a.getAssetPath("logo/xmas-left.png"),className:"common-logo-seasonal-left"}),n.createElement("img",{loading:"lazy",src:a.getAssetPath("logo/xmas-right.png"),className:"common-logo-seasonal-right"})):w.isNewYear?n.createElement(n.Fragment,null,n.createElement("img",{loading:"lazy",src:a.getAssetPath("logo/new-year-left.png"),className:"common-logo-seasonal-left"}),n.createElement("img",{loading:"lazy",src:a.getAssetPath("logo/new-year-right.png"),className:"common-logo-seasonal-right"})):w.isLunarNewYear?n.createElement(n.Fragment,null,n.createElement("img",{loading:"lazy",src:a.getAssetPath("logo/lunar-new-year-left.png"),className:"common-logo-seasonal-left"}),n.createElement("img",{loading:"lazy",src:a.getAssetPath("logo/lunar-new-year-right.png"),className:"common-logo-seasonal-right"})):null,n.createElement(c,{type:o,width:null==g?void 0:g.width,height:null==g?void 0:g.height}),f?n.createElement(p,{src:a.getAssetPath("logo/pro-suffix.svg")}):null,r)},f=l.div(h||(h=o(["\n width: 100%;\n margin: 0 auto;\n "," {\n padding: 0 16px;\n }\n "," {\n max-width: 1170px;\n &[data-type='marryBaby'] {\n max-width: 1064px;\n }\n }\n"],["\n width: 100%;\n margin: 0 auto;\n "," {\n padding: 0 16px;\n }\n "," {\n max-width: 1170px;\n &[data-type='marryBaby'] {\n max-width: 1064px;\n }\n }\n"])),s.mbDown,s.tdUp),w=function(e){var t=e.children,a=e.className,o=e.style,s=e.type;return n.createElement(f,{className:a,style:o,"data-type":s},t)};export{w as C,u as L};
|