@hhgtech/hhg-components 1.21.0 → 1.21.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/babyGrowth.js +1 -1
- package/build/care.js +1 -1
- package/build/components/molecules/embeddedHeathToolCards/index.styled.d.ts +1 -1
- package/build/components/molecules/embeddedHeathToolCards/pwg.d.ts +17 -0
- package/build/components/molecules/index.d.ts +2 -0
- package/build/components/molecules/weightGainForm/index.d.ts +11 -0
- package/build/components/molecules/weightGainForm/index.styled.d.ts +19 -0
- package/build/components/organisms/footer/index.d.ts +2 -10
- package/build/components/organisms/footer/maryBabyFooter/index.d.ts +3 -31
- package/build/components/organisms/footer/maryBabyFooter/index.styled.d.ts +6 -7
- package/build/components.js +1 -1
- package/build/en-PH-bc11cfc2.js +1 -0
- package/build/esm/babyGrowth.js +1 -1
- package/build/esm/care.js +1 -1
- package/build/esm/components.js +1 -1
- package/build/esm/en-PH-71017453.js +1 -0
- package/build/esm/hooks.js +1 -1
- package/build/esm/i18n.js +1 -1
- package/build/esm/index-482348e2.js +1 -0
- package/build/esm/{index-3193cb21.js → index-9bacff82.js} +1 -1
- package/build/esm/{index-364815d1.js → index-c5875449.js} +1 -1
- package/build/esm/{index-2cf5cfbc.js → index-f3a0141e.js} +1 -1
- package/build/esm/index.js +1 -1
- package/build/esm/navigation.js +1 -1
- package/build/esm/together.js +1 -1
- package/build/esm/translationsProvider-cd9f6f24.js +1 -0
- package/build/esm/{types-4863c0a8.js → types-9f13ee08.js} +1 -1
- package/build/esm/{types-39d553b4.js → types-e5491c06.js} +1 -1
- package/build/esm/{useTranslations-ad4d9d26.js → useTranslations-3e47eecc.js} +1 -1
- package/build/hooks.js +1 -1
- package/build/i18n.js +1 -1
- package/build/{index-4b470a77.js → index-18fad696.js} +1 -1
- package/build/{index-da0e2c40.js → index-2555a201.js} +1 -1
- package/build/{index-55767b66.js → index-a8a74936.js} +1 -1
- package/build/index-e6abe98a.js +1 -0
- package/build/index.js +1 -1
- package/build/interfaces/types/index.d.ts +23 -4
- package/build/navigation.js +1 -1
- package/build/together.js +1 -1
- package/build/translationsProvider-25c99317.js +1 -0
- package/build/{types-6439cc4a.js → types-8591cb2a.js} +1 -1
- package/build/{types-422a9b63.js → types-aac7135c.js} +1 -1
- package/build/useTranslations-60d001df.js +1 -0
- package/package.json +1 -1
- package/build/en-PH-7307aee7.js +0 -1
- package/build/esm/en-PH-ca0683d7.js +0 -1
- package/build/esm/index-ea02d1db.js +0 -1
- package/build/esm/translationsProvider-bc47fc67.js +0 -1
- package/build/index-14d933b6.js +0 -1
- package/build/translationsProvider-57deb2ca.js +0 -1
- package/build/useTranslations-a5b5c74c.js +0 -1
package/build/esm/babyGrowth.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import e,{useMemo as n,useRef as t,useState as r,forwardRef as o,useEffect as i}from"react";import{u as l}from"./useTranslations-ad4d9d26.js";import{G as a,L as c,B as s,a as d}from"./Locale-69030fff.js";import{R as m,I as p,M as u,N as f}from"./index-2cf5cfbc.js";import{T as h,M as C}from"./index.styled-faeac279.js";import{e as g,b as y,_ as x,a as b,c as w,d as E}from"./tslib.es6-5532bd7b.js";import{M as v,h as k,n as M}from"./screenSizeContext-12f741e1.js";import L from"styled-components";import{t as I}from"./theme-a50a1aa5.js";import{B as H}from"./index-93d22d63.js";import{format as j}from"date-fns";import"./gAssets.js";import{H as B}from"./index-7a537be1.js";import"react-range";import"@mantine/core";import"lodash/debounce";import"./index-58ae0705.js";import"./translationsContext-d658f58d.js";import"string-format";import{u as S}from"./useOutsideClick-6004483a.js";import{a as G,l as z}from"./localizeNumberFormat-77c129ef.js";import{D as _}from"./index.styled-d8a819ea.js";import{ResponsiveContainer as N,LineChart as A,CartesianGrid as R,Tooltip as W,XAxis as D,YAxis as Y,Line as T,ReferenceDot as O}from"recharts";import{chunk as V}from"lodash";import"./en-PH-ca0683d7.js";import"./index-642d36c8.js";import"./useScrollbarSize-99db33e1.js";import"react-dom";import"vanilla-lazyload";var Z,P,U,F,K,q,J=L.div(Z||(Z=g(["\n & > :not(:last-child) {\n margin-bottom: 8px;\n }\n\n .gender-selector {\n & > :not(:last-child) {\n margin-right: 16px;\n }\n\n & > div {\n width: calc(50% - 8px);\n\n "," {\n max-width: 186px;\n justify-self: left;\n }\n }\n }\n"],["\n & > :not(:last-child) {\n margin-bottom: 8px;\n }\n\n .gender-selector {\n & > :not(:last-child) {\n margin-right: 16px;\n }\n\n & > div {\n width: calc(50% - 8px);\n\n "," {\n max-width: 186px;\n justify-self: left;\n }\n }\n }\n"])),v.mbUp),Q=L(m)(P||(P=g(["\n & > div > div {\n display: flex;\n flex-direction: row;\n justify-content: center;\n align-content: center;\n gap: 8px;\n padding-block: 5px;\n }\n .radio-group-item-heading {\n margin-top: 0;\n }\n"],["\n & > div > div {\n display: flex;\n flex-direction: row;\n justify-content: center;\n align-content: center;\n gap: 8px;\n padding-block: 5px;\n }\n .radio-group-item-heading {\n margin-top: 0;\n }\n"]))),X=function(n){var t=n.value,r=n.onChange,o=l().t;return e.createElement(J,null,e.createElement(h,{size:"label2",type:"bold",style:{marginBottom:"0.5rem"}},o("babyVaccineTool.selectGender")),e.createElement(Q,{options:[{value:a.Girl,label:o("gender.female"),content:e.createElement(p.GenderChooseGirl,null)},{value:a.Boy,label:o("gender.male"),content:e.createElement(p.GenderChooseBoy,null)}],value:t,onChange:r,className:"gender-selector"}))},$=L.div(U||(U=g(["\n display: flex;\n justify-content: center;\n gap: 16px;\n"],["\n display: flex;\n justify-content: center;\n gap: 16px;\n"]))),ee=L.div(F||(F=g(["\n display: flex;\n justify-content: center;\n align-items: center;\n gap: 6px;\n .dot {\n width: 8px;\n height: 8px;\n border-radius: 50%;\n }\n"],["\n display: flex;\n justify-content: center;\n align-items: center;\n gap: 6px;\n .dot {\n width: 8px;\n height: 8px;\n border-radius: 50%;\n }\n"]))),ne=function(n){var t=n.legends,r=n.locale;return e.createElement($,null,t.map((function(n,t){return e.createElement(ee,{key:t},e.createElement("span",{className:"dot",style:{backgroundColor:n.color}}),e.createElement(h,{size:"n1",color:I.colors.gray800},r===c.Indonesia?n["z-score"]:n.text))})))},te=L.div(K||(K=g(["\n display: flex;\n justify-content: center;\n .switch {\n border: 1px solid ",";\n padding: 6px 12px;\n font-weight: 600;\n font-size: 11px;\n &:nth-child(2n + 1) {\n border-radius: 6px 0px 0px 6px;\n border-right: none;\n }\n &:nth-child(2n) {\n border-radius: 0px 6px 6px 0px;\n border-left: none;\n }\n }\n"],["\n display: flex;\n justify-content: center;\n .switch {\n border: 1px solid ",";\n padding: 6px 12px;\n font-weight: 600;\n font-size: 11px;\n &:nth-child(2n + 1) {\n border-radius: 6px 0px 0px 6px;\n border-right: none;\n }\n &:nth-child(2n) {\n border-radius: 0px 6px 6px 0px;\n border-left: none;\n }\n }\n"])),I.colors.neutral200);!function(e){e[e.WHO=0]="WHO",e[e.CDC=1]="CDC"}(q||(q={}));var re,oe,ie,le,ae,ce,se,de,me,pe,ue,fe,he,Ce,ge,ye,xe,be,we,Ee,ve,ke,Me,Le,Ie,He,je,Be,Se,Ge,ze,_e=function(n){var t=n.switchType,r=n.onTypeChange;return e.createElement(te,null,e.createElement(H,{className:"switch",size:"sm",color:t===q.WHO?"primary":"ghost",onClick:function(){return r(q.WHO)}},"WHO"),e.createElement(H,{className:"switch",size:"sm",isDisabled:!0,color:t===q.CDC?"primary":"ghost",onClick:function(){return r(q.CDC)}},"CDC"))},Ne=L.div(re||(re=g(["\n /* position: absolute; */\n display: flex;\n align-items: stretch;\n justify-content: space-around;\n padding: 8px;\n gap: 14px;\n\n min-width: 145px;\n max-width: 220px;\n min-height: 50px;\n border-radius: 4px;\n background: rgba(255, 255, 255, 0.2);\n box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);\n backdrop-filter: blur(5px);\n -webkit-backdrop-filter: blur(5px);\n border: 1px solid rgba(255, 255, 255, 0.3);\n .risk {\n display: flex;\n align-items: center;\n padding: 4px 8px;\n background: ",";\n border-radius: 3px;\n }\n .tooltip {\n text-align: left;\n }\n"],["\n /* position: absolute; */\n display: flex;\n align-items: stretch;\n justify-content: space-around;\n padding: 8px;\n gap: 14px;\n\n min-width: 145px;\n max-width: 220px;\n min-height: 50px;\n border-radius: 4px;\n background: rgba(255, 255, 255, 0.2);\n box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);\n backdrop-filter: blur(5px);\n -webkit-backdrop-filter: blur(5px);\n border: 1px solid rgba(255, 255, 255, 0.3);\n .risk {\n display: flex;\n align-items: center;\n padding: 4px 8px;\n background: ",";\n border-radius: 3px;\n }\n .tooltip {\n text-align: left;\n }\n"])),I.colors.yellow600),Ae=[{name:["3rd","-3SD","97th","3SD"],color:I.colors.red600},{name:["15rd","-2SD","85th","2SD"],color:I.colors.yellow600},{name:["50th","0Median"],color:I.colors.green600}],Re={"3rd":"-3SD","15th":"-2SD","50th":"Median","85th":"2SD","97th":"3SD"},We=function(t){var r,o=t.payload,i=t.locale,l=t.active,a=null===(r=null==o?void 0:o[0])||void 0===r?void 0:r.payload;if(!(a&&a.history&&a.name&&a.risk&&a.toolTipLabel&&l))return null;var s=n((function(){var e;return null===(e=Ae.find((function(e){return e.name.includes(a.risk||"")})))||void 0===e?void 0:e.color}),[a.risk]),d=n((function(){return i===c.Indonesia?a.risk?Re[a.risk]:"":a.risk}),[i,a.risk]);return e.createElement(Ne,null,e.createElement("div",{className:"risk",style:{backgroundColor:s}},e.createElement(h,{size:"s3",color:I.colors.white,type:"semiBold"},d)),e.createElement("div",{className:"tooltip"},(a.toolTipLabel||[]).map((function(n,t){return e.createElement(h,{key:t,size:"n1",color:I.colors.gray600},n)}))))},De=L.div(oe||(oe=g(["\n background: ",";\n border-radius: 6px;\n padding: 16px 20px;\n display: flex;\n justify-content: space-between;\n align-items: center;\n .baby {\n display: flex;\n align-items: center;\n gap: 8px;\n svg {\n min-width: 24px;\n }\n }\n .radio {\n cursor: pointer;\n position: relative;\n min-width: 22px;\n width: 22px;\n height: 22px;\n background: #ffffff;\n border: 2px solid ",";\n border-radius: 50%;\n transition: all "," ease-in-out;\n &.active {\n border-color: ",";\n &::before {\n content: '';\n position: absolute;\n inset: 0;\n width: 100%;\n height: 100%;\n background-color: ",";\n background-clip: content-box;\n padding: 5px;\n border-radius: 50%;\n animation: "," "," ease-in-out forwards;\n }\n }\n }\n"],["\n background: ",";\n border-radius: 6px;\n padding: 16px 20px;\n display: flex;\n justify-content: space-between;\n align-items: center;\n .baby {\n display: flex;\n align-items: center;\n gap: 8px;\n svg {\n min-width: 24px;\n }\n }\n .radio {\n cursor: pointer;\n position: relative;\n min-width: 22px;\n width: 22px;\n height: 22px;\n background: #ffffff;\n border: 2px solid ",";\n border-radius: 50%;\n transition: all "," ease-in-out;\n &.active {\n border-color: ",";\n &::before {\n content: '';\n position: absolute;\n inset: 0;\n width: 100%;\n height: 100%;\n background-color: ",";\n background-clip: content-box;\n padding: 5px;\n border-radius: 50%;\n animation: "," "," ease-in-out forwards;\n }\n }\n }\n"])),I.colors.gray50,I.colors.gray600,"300ms",I.colors.primaryBase,I.colors.primaryBase,k,"300ms"),Ye=function(n){var t=n.profile,r=n.onChange,o=n.isActive;return e.createElement(De,{onClick:function(){return r(t.id)}},e.createElement("div",{className:"baby"},"male"===t.gender?e.createElement(p.Boy,{size:24}):e.createElement(p.Girl,{size:24}),e.createElement(h,{size:"p2",color:I.colors.gray800},t.name)),e.createElement("div",{className:o?"radio active":"radio"}))},Te=L.div(ie||(ie=g(["\n /* Auto layout */\n position: relative;\n display: flex;\n align-items: flex-start;\n padding: 16px;\n gap: 16px;\n background: ",";\n border: 1px solid ",";\n border-radius: 6px;\n .information {\n display: flex;\n flex-direction: column;\n gap: 8px;\n h5:first-letter {\n text-transform: uppercase;\n }\n .detail {\n display: flex;\n gap: 16px;\n div {\n display: flex;\n align-items: center;\n gap: 6px;\n }\n }\n }\n"],["\n /* Auto layout */\n position: relative;\n display: flex;\n align-items: flex-start;\n padding: 16px;\n gap: 16px;\n background: ",";\n border: 1px solid ",";\n border-radius: 6px;\n .information {\n display: flex;\n flex-direction: column;\n gap: 8px;\n h5:first-letter {\n text-transform: uppercase;\n }\n .detail {\n display: flex;\n gap: 16px;\n div {\n display: flex;\n align-items: center;\n gap: 6px;\n }\n }\n }\n"])),I.colors.white,I.colors.gray100),Oe=L.div(le||(le=g(["\n position: absolute;\n top: 18px;\n right: 16px;\n cursor: pointer;\n"],["\n position: absolute;\n top: 18px;\n right: 16px;\n cursor: pointer;\n"]))),Ve=L(C)(ae||(ae=g(["\n position: absolute;\n right: 0;\n z-index: 1;\n"],["\n position: absolute;\n right: 0;\n z-index: 1;\n"]))),Ze=function(n){var r=n.name,o=n.onClose,i=n.onEdit,a=n.onSwitch,c=n.onAdd,s=n.onRemove,d=l().t,m=t();return S(m,o),e.createElement("div",{ref:m},e.createElement(Ve,{width:250},e.createElement(C.Item,{onClick:i,icon:e.createElement("svg",{width:"16",height:"17",viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{d:"M12.7812 1.83301C12.2987 1.83301 11.8162 2.01676 11.4479 2.38509L10.6667 3.16634L13.3333 5.83301L14.1146 5.05176C14.8506 4.31576 14.8506 3.12176 14.1146 2.38509C13.7463 2.01676 13.2638 1.83301 12.7812 1.83301ZM9.66667 4.16634L2 11.833V14.4997H4.66667L12.3333 6.83301L9.66667 4.16634Z",fill:"#595959"}))},e.createElement(h,{size:"p2",color:I.colors.gray800},d("childCard.menu.edit",{name:r}))),e.createElement(C.Item,{onClick:a,icon:e.createElement("svg",{width:"16",height:"17",viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{d:"M8 2.5C4.9478 2.5 2.4204 4.79359 2.05078 7.7513C2.03763 7.83928 2.04222 7.929 2.06428 8.01518C2.08634 8.10136 2.12542 8.18226 2.17922 8.2531C2.23303 8.32394 2.30046 8.3833 2.37756 8.42768C2.45465 8.47206 2.53985 8.50057 2.62813 8.51152C2.71642 8.52247 2.806 8.51564 2.8916 8.49143C2.9772 8.46723 3.05709 8.42614 3.12657 8.37059C3.19605 8.31503 3.2537 8.24613 3.29615 8.16795C3.33859 8.08978 3.36496 8.00389 3.3737 7.91536C3.66141 5.61307 5.61354 3.83333 8 3.83333C9.34288 3.83333 10.5434 4.39987 11.3919 5.30339L10.0977 6.59766C9.96766 6.72766 9.96766 6.93901 10.0977 7.06901C10.1623 7.13434 10.248 7.16667 10.3333 7.16667H13.3333C13.5101 7.16667 13.6797 7.09643 13.8047 6.9714C13.9298 6.84638 14 6.67681 14 6.5V3.5C14 3.41467 13.967 3.32966 13.9023 3.26432C13.7723 3.13432 13.561 3.13432 13.431 3.26432L12.3359 4.35938C11.2437 3.21415 9.7037 2.5 8 2.5ZM13.2943 8.49089C13.1292 8.48959 12.9695 8.54959 12.8461 8.65928C12.7227 8.76896 12.6444 8.92053 12.6263 9.08464C12.3386 11.3869 10.3865 13.1667 8 13.1667C6.65713 13.1667 5.45884 12.5994 4.60938 11.6953L5.90234 10.4023C6.03234 10.2723 6.03234 10.061 5.90234 9.93099C5.83768 9.86566 5.752 9.83333 5.66667 9.83333H2.66667C2.48986 9.83333 2.32029 9.90357 2.19526 10.0286C2.07024 10.1536 2 10.3232 2 10.5V13.5C2 13.5853 2.03299 13.6703 2.09766 13.7357C2.22766 13.8657 2.43901 13.8657 2.56901 13.7357L3.66536 12.6393C4.75711 13.7836 6.29696 14.5 8 14.5C11.0522 14.5 13.5796 12.2064 13.9492 9.2487C13.9622 9.1548 13.955 9.05922 13.928 8.96833C13.9011 8.87745 13.8552 8.79334 13.7932 8.72163C13.7312 8.64991 13.6546 8.59224 13.5686 8.55245C13.4826 8.51266 13.3891 8.49167 13.2943 8.49089Z",fill:"#595959"}))},e.createElement(h,{size:"p2",color:I.colors.gray800},d("childCard.menu.switch"))),e.createElement(C.Item,{onClick:c,icon:e.createElement("svg",{width:"16",height:"17",viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.9564 8.56545C15.7745 7.46727 14.9673 6.57273 13.9127 6.26C13.5273 5.44545 12.9818 4.73273 12.32 4.14364C11.1709 3.11818 9.65818 2.5 8 2.5C6.34182 2.5 4.82909 3.11818 3.68 4.14364C3.01091 4.73273 2.46545 5.45273 2.08727 6.26C1.03273 6.57273 0.225455 7.46 0.0436364 8.56545C0.0145455 8.71818 0 8.87818 0 9.04545C0 9.21273 0.0145455 9.37273 0.0436364 9.52545C0.225455 10.6236 1.03273 11.5182 2.08727 11.8309C2.46545 12.6382 3.01091 13.3509 3.66545 13.9327C4.81455 14.9655 6.33455 15.5909 8 15.5909C9.66545 15.5909 11.1855 14.9655 12.3418 13.9327C12.9964 13.3509 13.5418 12.6309 13.92 11.8309C14.9673 11.5182 15.7745 10.6309 15.9564 9.52545C15.9855 9.37273 16 9.21273 16 9.04545C16 8.87818 15.9855 8.71818 15.9564 8.56545ZM6.18182 7.04545C5.67974 7.04545 5.27273 7.45247 5.27273 7.95455C5.27273 8.45662 5.67974 8.86364 6.18182 8.86364C6.6839 8.86364 7.09091 8.45662 7.09091 7.95455C7.09091 7.45247 6.6839 7.04545 6.18182 7.04545ZM9.81818 7.04545C9.3161 7.04545 8.90909 7.45247 8.90909 7.95455C8.90909 8.45662 9.3161 8.86364 9.81818 8.86364C10.3203 8.86364 10.7273 8.45662 10.7273 7.95455C10.7273 7.45247 10.3203 7.04545 9.81818 7.04545ZM5.01821 10.5H10.9818C11.1128 10.5 11.2073 10.6455 11.1491 10.7691C10.5455 11.9109 9.36002 12.6818 8.00002 12.6818C6.64002 12.6818 5.45457 11.9109 4.85093 10.7691C4.78548 10.6455 4.88002 10.5 5.01821 10.5ZM12.9538 10.4875C12.9991 10.4938 13.0435 10.5 13.0909 10.5C13.8909 10.5 14.5455 9.84545 14.5455 9.04545C14.5455 8.24545 13.8909 7.59091 13.0909 7.59091C13.0435 7.59091 12.9991 7.5971 12.9538 7.60343C12.9297 7.60679 12.9053 7.6102 12.88 7.61273C12.7345 7.12545 12.5236 6.67455 12.2545 6.26C11.3455 4.87091 9.78182 3.95455 8 3.95455C6.21818 3.95455 4.65455 4.87091 3.74545 6.26C3.47636 6.67455 3.26545 7.12545 3.12 7.61273C3.09473 7.6102 3.07033 7.60679 3.0462 7.60343C3.0009 7.5971 2.95654 7.59091 2.90909 7.59091C2.10909 7.59091 1.45455 8.24545 1.45455 9.04545C1.45455 9.84545 2.10909 10.5 2.90909 10.5C2.95654 10.5 3.0009 10.4938 3.0462 10.4875C3.07033 10.4841 3.09473 10.4807 3.12 10.4782C3.26545 10.9655 3.47636 11.4164 3.74545 11.8309C4.65455 13.22 6.21818 14.1364 8 14.1364C9.78182 14.1364 11.3455 13.22 12.2545 11.8309C12.5236 11.4164 12.7345 10.9655 12.88 10.4782C12.9053 10.4807 12.9297 10.4841 12.9538 10.4875Z",fill:"#595959"}),e.createElement("path",{d:"M2.5 2V1C2.5 0.725 2.275 0.5 2 0.5C1.725 0.5 1.5 0.725 1.5 1V2H0.5C0.225 2 0 2.225 0 2.5C0 2.775 0.225 3 0.5 3H1.5V4C1.5 4.275 1.725 4.5 2 4.5C2.275 4.5 2.5 4.275 2.5 4V3H3.5C3.775 3 4 2.775 4 2.5C4 2.225 3.775 2 3.5 2H2.5Z",fill:"#595959"}))},e.createElement(h,{size:"p2",color:I.colors.gray800},d("childCard.menu.add"))),e.createElement(C.Item,{onClick:s,icon:e.createElement("svg",{width:"16",height:"17",viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{d:"M6.66699 1.83301L6.00033 2.49967H3.33366C2.93366 2.49967 2.66699 2.76634 2.66699 3.16634C2.66699 3.56634 2.93366 3.83301 3.33366 3.83301H4.66699H11.3337H12.667C13.067 3.83301 13.3337 3.56634 13.3337 3.16634C13.3337 2.76634 13.067 2.49967 12.667 2.49967H10.0003L9.33366 1.83301H6.66699ZM3.33366 5.16634V13.833C3.33366 14.5663 3.93366 15.1663 4.66699 15.1663H11.3337C12.067 15.1663 12.667 14.5663 12.667 13.833V5.16634H3.33366ZM6.00033 6.49967C6.40033 6.49967 6.66699 6.76634 6.66699 7.16634V13.1663C6.66699 13.5663 6.40033 13.833 6.00033 13.833C5.60033 13.833 5.33366 13.5663 5.33366 13.1663V7.16634C5.33366 6.76634 5.60033 6.49967 6.00033 6.49967ZM10.0003 6.49967C10.4003 6.49967 10.667 6.76634 10.667 7.16634V13.1663C10.667 13.5663 10.4003 13.833 10.0003 13.833C9.60033 13.833 9.33366 13.5663 9.33366 13.1663V7.16634C9.33366 6.76634 9.60033 6.49967 10.0003 6.49967Z",fill:"#F44D2C"}))},e.createElement(h,{size:"p2",color:I.colors.red600},d("childCard.menu.remove",{name:r})))))},Pe=function(e,n){if(e)if(e.year<1){if(0===e.month)switch(e.week){case 0:case 1:return n("childCard.age.oneWeek");default:return n("childCard.age.week",{weeks:e.week})}if(1===e.month)return n("childCard.age.oneMonth");if(e.month>1)return n("childCard.age.months",{month:e.month})}else{if(1===e.year)return n("childCard.age.oneYear");if(0===e.month)return n("childCard.age.yearNoMonth",{year:e.year});if(e.month>0)return n("childCard.age.yearMonth",{year:e.year,month:e.month})}},Ue=function(n){var t=n.name,o=n.gender,i=n.age,c=n.isLoggedIn,s=void 0!==c&&c,d=n.showMenu,m=void 0!==d&&d,u=n.onEdit,f=n.onSwitch,C=n.onAdd,g=n.onRemove,y=n.className,x=l().t,b=r(!1),w=b[0],E=b[1];return e.createElement(Te,{className:y},e.createElement("div",{"data-testid":"gender"},o===a.Boy?e.createElement(p.Boy,{"data-testid":"boy",id:"boy"}):e.createElement(p.Girl,{"data-testid":"girl",id:"girl"})),e.createElement("div",{className:"information"},e.createElement(B,{tag:"h5",fontWeight:"bold",color:I.colors.gray800},M(t)||x("childCard.noName")),e.createElement("div",{className:"detail"},e.createElement("div",null,o===a.Boy?e.createElement(p.GenderBoy,null):e.createElement(p.GenderGirl,null),e.createElement(h,{size:"p3",color:I.colors.gray800,style:{textTransform:"capitalize"}},o)),e.createElement("div",null,e.createElement(p.Calendar,{size:16}),i&&e.createElement(h,{size:"p3",color:I.colors.gray800},Pe(i,x))))),m&&s&&e.createElement(Oe,null,e.createElement(p.Kebab,{onClick:function(){return E((function(e){return!e}))}}),w&&e.createElement(Ze,{name:t,onClose:function(){return E(!1)},onEdit:function(){E(!1),u()},onSwitch:function(){E(!1),f()},onAdd:function(){E(!1),C()},onRemove:function(){E(!1),g()}})))},Fe=L.div(ce||(ce=g(["\n cursor: pointer;\n position: relative;\n padding: 20px 2px;\n border-bottom: 1px solid ",";\n .time {\n display: flex;\n align-items: center;\n gap: 8px;\n margin-bottom: 16px;\n }\n .edit-button {\n margin-left: auto;\n justify-self: end;\n }\n .record {\n display: grid;\n grid-template-columns: repeat(3, 1fr);\n grid-template-rows: 1fr;\n grid-column-gap: 30px;\n grid-row-gap: 0px;\n }\n .record-item {\n display: flex;\n align-items: center;\n gap: 8px;\n }\n"],["\n cursor: pointer;\n position: relative;\n padding: 20px 2px;\n border-bottom: 1px solid ",";\n .time {\n display: flex;\n align-items: center;\n gap: 8px;\n margin-bottom: 16px;\n }\n .edit-button {\n margin-left: auto;\n justify-self: end;\n }\n .record {\n display: grid;\n grid-template-columns: repeat(3, 1fr);\n grid-template-rows: 1fr;\n grid-column-gap: 30px;\n grid-row-gap: 0px;\n }\n .record-item {\n display: flex;\n align-items: center;\n gap: 8px;\n }\n"])),I.colors.gray100),Ke=function(e,n){return e&&"NaN"!==e?e+" "+(n||""):"--"},qe=function(n){var t=n.measurementDate,r=void 0===t?new Date:t,o=n.weight,i=n.height,a=n.head,s=n.onEdit,d=n.birthday,m=n.dateFormat,p=void 0===m?"dd/MM/yyyy":m,u=n.locale;void 0===u&&c.PhilippinesEnglish;var f=l().t;return e.createElement(Fe,{onClick:s},e.createElement("div",{className:"time"},e.createElement("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{d:"M5.64421 0.666016C5.27621 0.666016 4.97754 0.964682 4.97754 1.33268V1.99935H4.31087C3.57754 1.99935 2.97754 2.59935 2.97754 3.33268V12.666C2.97754 13.3993 3.57754 13.9993 4.31087 13.9993H13.6442C14.3775 13.9993 14.9775 13.3993 14.9775 12.666V3.33268C14.9775 2.59935 14.3775 1.99935 13.6442 1.99935H12.9775V1.33268C12.9775 0.964682 12.6789 0.666016 12.3109 0.666016C11.9429 0.666016 11.6442 0.964682 11.6442 1.33268V1.99935H6.31087V1.33268C6.31087 0.964682 6.01221 0.666016 5.64421 0.666016ZM4.31087 5.33268H13.6442V11.9993C13.6442 12.3673 13.3455 12.666 12.9775 12.666H4.97754C4.60954 12.666 4.31087 12.3673 4.31087 11.9993V5.33268Z",fill:"#8C8C8C"})),e.createElement(h,{size:"p3",color:I.colors.gray600},"".concat(j(r,p)," (").concat(Pe(G(d,r),f),")")),e.createElement("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"edit-button"},e.createElement("path",{d:"M12.7721 1.33398C12.2911 1.33398 11.8102 1.51773 11.443 1.88607L10.6643 2.66732L13.3224 5.33398L14.1011 4.55273C14.8348 3.81673 14.8348 2.62273 14.1011 1.88607C13.734 1.51773 13.253 1.33398 12.7721 1.33398ZM9.66748 3.66732L2.02539 11.334V14.0007H4.68351L12.3256 6.33398L9.66748 3.66732Z",fill:"#8C8C8C"}))),e.createElement("div",{className:"record"},e.createElement("div",{className:"record-item"},e.createElement("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{d:"M8.44401 9.86602C8.44401 9.57146 8.68279 9.33268 8.97734 9.33268C9.2719 9.33268 9.51068 9.57146 9.51068 9.86602V11.466C9.51068 11.7606 9.2719 11.9993 8.97734 11.9993C8.68279 11.9993 8.44401 11.7606 8.44401 11.466V9.86602Z",fill:"#8C8C8C"}),e.createElement("path",{d:"M8.17595 3.05319C7.96767 3.26147 7.96767 3.59916 8.17595 3.80744L8.83592 4.46741C9.0442 4.67569 9.38189 4.67569 9.59017 4.46741C9.79844 4.25913 9.79844 3.92144 9.59017 3.71316L8.9302 3.05319C8.72192 2.84491 8.38423 2.84492 8.17595 3.05319Z",fill:"#8C8C8C"}),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.2941 3.66435C12.1261 1.98071 10.7053 0.666016 8.97738 0.666016C7.2495 0.666016 5.82868 1.9807 5.66067 3.66434L3.67054 3.86336C2.92499 3.93791 2.38724 4.61197 2.48017 5.35545L3.498 13.4981C3.5814 14.1653 4.1486 14.666 4.82104 14.666H13.1336C13.806 14.666 14.3732 14.1653 14.4567 13.4981L15.4745 5.35545C15.5674 4.61197 15.0297 3.93791 14.2841 3.86336L12.2941 3.66435ZM12.1607 4.991C11.7386 6.34768 10.473 7.33268 8.97738 7.33268C7.48176 7.33268 6.2162 6.34767 5.79403 4.99099L3.80321 5.19007L4.82104 13.3327L13.1336 13.3327L14.1514 5.19007L12.1607 4.991ZM10.9774 3.99935C10.9774 5.10392 10.0819 5.99935 8.97738 5.99935C7.87281 5.99935 6.97738 5.10392 6.97738 3.99935C6.97738 2.89478 7.87281 1.99935 8.97738 1.99935C10.0819 1.99935 10.9774 2.89478 10.9774 3.99935Z",fill:"#8C8C8C"})),e.createElement(h,{size:"s3",color:I.colors.gray800,type:"semiBold"},Ke(z(o),"kg"))),e.createElement("div",{className:"record-item"},e.createElement("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("g",{clipPath:"url(#clip0_855_82991)"},e.createElement("path",{d:"M12.6055 13.9993L12.6055 1.99935C12.6055 1.26602 12.0055 0.666016 11.2721 0.666016L5.9388 0.666015C5.20547 0.666015 4.60547 1.26602 4.60547 1.99935L4.60547 13.9993C4.60547 14.7327 5.20547 15.3327 5.9388 15.3327L11.2721 15.3327C12.0055 15.3327 12.6055 14.7327 12.6055 13.9993ZM5.9388 13.9993L5.9388 1.99935L11.2721 1.99935L11.2721 3.33268L8.60547 3.33268L8.60547 4.66602L11.2721 4.66602L11.2721 5.99935L8.60547 5.99935L8.60547 7.33268L11.2721 7.33268L11.2721 8.66602L8.60547 8.66601L8.60547 9.99935L11.2721 9.99935L11.2721 11.3327L8.60547 11.3327L8.60547 12.666L11.2721 12.666L11.2721 13.9993L5.9388 13.9993Z",fill:"#8C8C8C"})),e.createElement("defs",null,e.createElement("clipPath",{id:"clip0_855_82991"},e.createElement("rect",{width:"16",height:"16",fill:"white",transform:"translate(16.6055) rotate(90)"})))),e.createElement(h,{size:"s3",color:I.colors.gray800,type:"semiBold"},Ke(z(i),"cm"))),e.createElement("div",{className:"record-item"},e.createElement("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("g",{clipPath:"url(#clip0_855_82994)"},e.createElement("path",{d:"M9.90072 7.83268C10.361 7.83268 10.734 7.45959 10.734 6.99935C10.734 6.53911 10.361 6.16602 9.90072 6.16602C9.44048 6.16602 9.06738 6.53911 9.06738 6.99935C9.06738 7.45959 9.44048 7.83268 9.90072 7.83268Z",fill:"#8C8C8C"}),e.createElement("path",{d:"M6.56771 7.83268C7.02795 7.83268 7.40104 7.45959 7.40104 6.99935C7.40104 6.53911 7.02795 6.16602 6.56771 6.16602C6.10747 6.16602 5.73438 6.53911 5.73438 6.99935C5.73438 7.45959 6.10747 7.83268 6.56771 7.83268Z",fill:"#8C8C8C"}),e.createElement("path",{d:"M15.528 7.56C15.3614 6.55333 14.6214 5.73333 13.6547 5.44667C13.3014 4.7 12.8014 4.04667 12.1947 3.50667C11.1414 2.56667 9.7547 2 8.2347 2C6.7147 2 5.32803 2.56667 4.2747 3.50667C3.66137 4.04667 3.16137 4.70667 2.8147 5.44667C1.84803 5.73333 1.10803 6.54667 0.941367 7.56C0.9147 7.7 0.901367 7.84667 0.901367 8C0.901367 8.15333 0.9147 8.3 0.941367 8.44C1.10803 9.44667 1.84803 10.2667 2.8147 10.5533C3.16137 11.2933 3.66137 11.9467 4.26137 12.48C5.3147 13.4267 6.70803 14 8.2347 14C9.76137 14 11.1547 13.4267 12.2147 12.48C12.8147 11.9467 13.3147 11.2867 13.6614 10.5533C14.6214 10.2667 15.3614 9.45333 15.528 8.44C15.5547 8.3 15.568 8.15333 15.568 8C15.568 7.84667 15.5547 7.7 15.528 7.56ZM12.9014 9.33333C12.8347 9.33333 12.7747 9.32 12.708 9.31333C12.5747 9.76 12.3814 10.1733 12.1347 10.5533C11.3014 11.8267 9.86803 12.6667 8.2347 12.6667C6.60137 12.6667 5.16803 11.8267 4.3347 10.5533C4.08803 10.1733 3.8947 9.76 3.76137 9.31333C3.6947 9.32 3.6347 9.33333 3.56803 9.33333C2.8347 9.33333 2.2347 8.73333 2.2347 8C2.2347 7.26667 2.8347 6.66667 3.56803 6.66667C3.6347 6.66667 3.6947 6.68 3.76137 6.68667C3.8947 6.24 4.08803 5.82667 4.3347 5.44667C5.16803 4.17333 6.60137 3.33333 8.2347 3.33333C9.86803 3.33333 11.3014 4.17333 12.1347 5.44667C12.3814 5.82667 12.5747 6.24 12.708 6.68667C12.7747 6.68 12.8347 6.66667 12.9014 6.66667C13.6347 6.66667 14.2347 7.26667 14.2347 8C14.2347 8.73333 13.6347 9.33333 12.9014 9.33333ZM8.2347 11.3333C9.5747 11.3333 10.728 10.5133 11.2347 9.33333H5.2347C5.74137 10.5133 6.8947 11.3333 8.2347 11.3333Z",fill:"#8C8C8C"})),e.createElement("defs",null,e.createElement("clipPath",{id:"clip0_855_82994"},e.createElement("rect",{width:"16",height:"16",fill:"white",transform:"translate(0.234375)"})))),e.createElement(h,{size:"s3",color:I.colors.gray800,type:"semiBold"},Ke(z(a),"cm")))))},Je=L(_)(se||(se=g(["\n .add-profile-container {\n display: flex;\n flex-direction: column;\n gap: 24px;\n }\n .profile-container {\n display: flex;\n flex-direction: column;\n gap: 8px;\n }\n .button-group {\n display: flex;\n flex-direction: column;\n gap: 8px;\n button {\n width: 100%;\n }\n }\n"],["\n .add-profile-container {\n display: flex;\n flex-direction: column;\n gap: 24px;\n }\n .profile-container {\n display: flex;\n flex-direction: column;\n gap: 8px;\n }\n .button-group {\n display: flex;\n flex-direction: column;\n gap: 8px;\n button {\n width: 100%;\n }\n }\n"]))),Qe=L(u)(de||(de=g(["\n .hhg-modal {\n min-width: 570px;\n }\n\n .title {\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding-bottom: 16px;\n border-bottom: 1px solid ",";\n }\n\n .close-button {\n margin-left: auto;\n }\n\n .profile-container {\n padding-block: 16px;\n display: flex;\n flex-direction: column;\n gap: 8px;\n border-bottom: 1px solid ",";\n max-height: 300px;\n overflow-y: auto;\n }\n\n .button-group {\n display: flex;\n justify-content: flex-end;\n gap: 16px;\n margin-block: 16px;\n }\n"],["\n .hhg-modal {\n min-width: 570px;\n }\n\n .title {\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding-bottom: 16px;\n border-bottom: 1px solid ",";\n }\n\n .close-button {\n margin-left: auto;\n }\n\n .profile-container {\n padding-block: 16px;\n display: flex;\n flex-direction: column;\n gap: 8px;\n border-bottom: 1px solid ",";\n max-height: 300px;\n overflow-y: auto;\n }\n\n .button-group {\n display: flex;\n justify-content: flex-end;\n gap: 16px;\n margin-block: 16px;\n }\n"])),I.colors.neutral100,I.colors.neutral100),Xe=function(n){var t,o,i=n.babyProfiles,a=n.currentProfileId,c=n.onClose,s=n.onCreate,d=n.onAddMeasurement,m=n.onSwitchProfile,p=n.open,u=n.isMobile,C=n.isMyProfile,g=void 0!==C&&C,b=n.buttonGroup,w=n.newBabyValue,E=n.onNewBabyValueChange,v=y(n,["babyProfiles","currentProfileId","onClose","onCreate","onAddMeasurement","onSwitchProfile","open","isMobile","isMyProfile","buttonGroup","newBabyValue","onNewBabyValueChange"]),k=function(n){return g?e.createElement(e.Fragment,null,e.createElement(H,{onClick:function(){null==s||s(),c()},size:"lg",color:"secondary",icon:e.createElement("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{d:"M13.5 9.75H9.75V13.5C9.75 13.9125 9.4125 14.25 9 14.25C8.5875 14.25 8.25 13.9125 8.25 13.5V9.75H4.5C4.0875 9.75 3.75 9.4125 3.75 9C3.75 8.5875 4.0875 8.25 4.5 8.25H8.25V4.5C8.25 4.0875 8.5875 3.75 9 3.75C9.4125 3.75 9.75 4.0875 9.75 4.5V8.25H13.5C13.9125 8.25 14.25 8.5875 14.25 9C14.25 9.4125 13.9125 9.75 13.5 9.75Z",fill:"#2D87F3"}))},j("babyGrowth.drawer.createBaby")),e.createElement(H,{size:"lg",color:"primary",onClick:function(){null==n||n(),g?null==m||m(L):null==d||d(L),c()}},j(g?"babyGrowth.drawer.switchProfile":"babyGrowth.drawer.addMeasurement"))):e.createElement(H,{size:"lg",color:"primary",onClick:function(){null==d||d(L),null==n||n(),c()}},j("chooseBaby.button"))},M=r(a||(null===(t=i[0])||void 0===t?void 0:t.id)),L=M[0],I=M[1],j=l().t;return u?e.createElement(Je,x({title:"Baby profiles",onClose:c,open:p,placement:"bottom"},v),(function(n){var t,r=n.internalClose;return e.createElement("div",{className:"add-profile-container"},e.createElement("div",{className:"profile-container"},null===(t=i||[])||void 0===t?void 0:t.map((function(n){return e.createElement(Ye,{key:n.id,profile:n,isActive:L===n.id,onChange:I})})),!g&&e.createElement(f,{value:w,onInputChange:E,isActive:"new"===L,onChange:I})),e.createElement("div",{className:"button-group"},b||k(r)))})):e.createElement(Qe,{type:"confirm",isOpen:p,onClose:c},e.createElement("div",{className:"header"},e.createElement("div",{className:"title"},e.createElement(h,{size:"s2",type:"semiBold"},j("chooseBaby.title")),e.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"close-button",onClick:c},e.createElement("path",{d:"M5.99007 4.99067C5.79114 4.99072 5.59674 5.0501 5.43173 5.16121C5.26672 5.27233 5.1386 5.43013 5.06374 5.61444C4.98889 5.79875 4.9707 6.0012 5.0115 6.1959C5.05231 6.39061 5.15025 6.56872 5.29281 6.70747L10.5858 12.0004L5.29281 17.2934C5.19684 17.3855 5.12021 17.4959 5.06743 17.618C5.01464 17.7402 4.98676 17.8716 4.9854 18.0046C4.98405 18.1377 5.00926 18.2697 5.05954 18.3928C5.10983 18.516 5.1842 18.6279 5.27827 18.722C5.37235 18.8161 5.48426 18.8904 5.60743 18.9407C5.73061 18.991 5.86259 19.0162 5.99563 19.0149C6.12867 19.0135 6.2601 18.9856 6.38223 18.9328C6.50436 18.8801 6.61473 18.8034 6.70687 18.7075L11.9998 13.4145L17.2928 18.7075C17.385 18.8034 17.4953 18.8801 17.6175 18.9328C17.7396 18.9856 17.871 19.0135 18.0041 19.0149C18.1371 19.0162 18.2691 18.991 18.3922 18.9407C18.5154 18.8904 18.6273 18.8161 18.7214 18.722C18.8155 18.6279 18.8899 18.516 18.9401 18.3928C18.9904 18.2697 19.0156 18.1377 19.0143 18.0047C19.0129 17.8716 18.985 17.7402 18.9323 17.618C18.8795 17.4959 18.8028 17.3855 18.7069 17.2934L13.4139 12.0004L18.7069 6.70747C18.8514 6.567 18.9501 6.38616 18.99 6.18864C19.03 5.99112 19.0093 5.78614 18.9308 5.60055C18.8523 5.41497 18.7195 5.25744 18.5499 5.14861C18.3803 5.03978 18.1817 4.98473 17.9803 4.99067C17.7205 4.99841 17.4739 5.10699 17.2928 5.2934L11.9998 10.5864L6.70687 5.2934C6.61368 5.19761 6.50224 5.12146 6.37912 5.06947C6.25601 5.01747 6.12372 4.99068 5.99007 4.99067Z",fill:"#595959"})))),e.createElement("div",{className:"profile-container"},null===(o=i||[])||void 0===o?void 0:o.map((function(n){return e.createElement(Ye,{key:n.id,profile:n,isActive:L===n.id,onChange:I})})),!g&&e.createElement(f,{value:w,onInputChange:E,isActive:"new"===L,onChange:I})),e.createElement("div",{className:"button-group"},b||k()))},$e=((me={})[a.Boy]=((pe={})[s.Weight]=((ue={})[d.Weekly]=function(){return import("./WEIGHT_BOYS.percentile.weekly-a43c4530.js")},ue[d.Monthly]=function(){return import("./WEIGHT_BOYS.percentile.monthly-9e94fae6.js")},ue[d.Yearly]=function(){return import("./WEIGHT_BOYS.percentile.yearly-23512fa8.js")},ue),pe[s.Height]=((fe={})[d.Weekly]=function(){return import("./HEIGHT_BOYS.percentile.weekly-452b6591.js")},fe[d.Monthly]=function(){return import("./HEIGHT_BOYS.percentile.monthly-46c82cfc.js")},fe[d.Yearly]=function(){return import("./HEIGHT_BOYS.percentile.yearly-b69ee2b1.js")},fe),pe[s.Head]=((he={})[d.Weekly]=function(){return import("./HEAD CIRCUM_BOYS.percentile.weekly-92a20a1c.js")},he[d.Monthly]=function(){return import("./HEAD CIRCUM_BOYS.percentile.monthly-dbb676b7.js")},he[d.Yearly]=function(){return import("./HEAD CIRCUM_BOYS.percentile.yearly-284ffe85.js")},he),pe[s.BMI]=((Ce={})[d.Weekly]=function(){return import("./BMI_BOYS.percentile.weekly-3e59e311.js")},Ce[d.Monthly]=function(){return import("./BMI_BOYS.percentile.monthly-f524741d.js")},Ce[d.Yearly]=function(){return import("./BMI_BOYS.percentile.yearly-6d8de73b.js")},Ce),pe),me[a.Girl]=((ge={})[s.Weight]=((ye={})[d.Weekly]=function(){return import("./WEIGHT_GIRLS.percentile.weekly-3942d908.js")},ye[d.Monthly]=function(){return import("./WEIGHT_GIRLS.percentile.monthly-e5e8908b.js")},ye[d.Yearly]=function(){return import("./WEIGHT_GIRLS.percentile.yearly-18fa4dc9.js")},ye),ge[s.Height]=((xe={})[d.Weekly]=function(){return import("./HEIGHT_GIRLS.percentile.weekly-575d53c8.js")},xe[d.Monthly]=function(){return import("./HEIGHT_GIRLS.percentile.monthly-2954319e.js")},xe[d.Yearly]=function(){return import("./HEIGHT_GIRLS.percentile.yearly-37b9afa9.js")},xe),ge[s.Head]=((be={})[d.Weekly]=function(){return import("./HEAD CIRCUM_GIRLS.percentile.weekly-0a80b339.js")},be[d.Monthly]=function(){return import("./HEAD CIRCUM_GIRLS.percentile.monthly-47ca419d.js")},be[d.Yearly]=function(){return import("./HEAD CIRCUM_GIRLS.percentile.yearly-2a9af33c.js")},be),ge[s.BMI]=((we={})[d.Weekly]=function(){return import("./BMI_GIRLS.percentile.weekly-e48d680c.js")},we[d.Monthly]=function(){return import("./BMI_GIRLS.percentile.monthly-001ea609.js")},we[d.Yearly]=function(){return import("./BMI_GIRLS.percentile.yearly-7df5fcbe.js")},we),ge),me),en=((Ee={})[a.Boy]=((ve={})[s.Weight]=((ke={})[d.Weekly]=function(){return import("./WEIGHT_BOYS.zscore.weekly-7419ed62.js")},ke[d.Monthly]=function(){return import("./WEIGHT_BOYS.zscore.monthly-c1471d63.js")},ke[d.Yearly]=function(){return import("./WEIGHT_BOYS.zscore.yearly-c9e3c050.js")},ke),ve[s.Height]=((Me={})[d.Weekly]=function(){return import("./HEIGHT_BOYS.zscore.weekly-935edd5c.js")},Me[d.Monthly]=function(){return import("./HEIGHT_BOYS.zscore.monthly-9fd9d0b9.js")},Me[d.Yearly]=function(){return import("./HEIGHT_BOYS.zscore.yearly-1feaa056.js")},Me),ve[s.Head]=((Le={})[d.Weekly]=function(){return import("./HEAD CIRCUM_BOYS.zscore.weekly-58c98bc3.js")},Le[d.Monthly]=function(){return import("./HEAD CIRCUM_BOYS.zscore.monthly-0518141a.js")},Le[d.Yearly]=function(){return import("./HEAD CIRCUM_BOYS.zscore.yearly-0ab91f53.js")},Le),ve[s.BMI]=((Ie={})[d.Weekly]=function(){return import("./BMI_BOYS.zscore.weekly-71fe0115.js")},Ie[d.Monthly]=function(){return import("./BMI_BOYS.zscore.monthly-a1e3c494.js")},Ie[d.Yearly]=function(){return import("./BMI_BOYS.zscore.yearly-09f20a36.js")},Ie),ve),Ee[a.Girl]=((He={})[s.Weight]=((je={})[d.Weekly]=function(){return import("./WEIGHT_GIRLS.zscore.weekly-c824c3a7.js")},je[d.Monthly]=function(){return import("./WEIGHT_GIRLS.zscore.monthly-9d865314.js")},je[d.Yearly]=function(){return import("./WEIGHT_GIRLS.zscore.yearly-0409e36d.js")},je),He[s.Height]=((Be={})[d.Weekly]=function(){return import("./HEIGHT_GIRLS.zscore.weekly-7292924a.js")},Be[d.Monthly]=function(){return import("./HEIGHT_GIRLS.zscore.monthly-eb51992f.js")},Be[d.Yearly]=function(){return import("./HEIGHT_GIRLS.zscore.yearly-60c98917.js")},Be),He[s.Head]=((Se={})[d.Weekly]=function(){return import("./HEAD CIRCUM_GIRLS.zscore.weekly-81f96658.js")},Se[d.Monthly]=function(){return import("./HEAD CIRCUM_GIRLS.zscore.monthly-502454c8.js")},Se[d.Yearly]=function(){return import("./HEAD CIRCUM_GIRLS.zscore.yearly-d96c5d22.js")},Se),He[s.BMI]=((Ge={})[d.Weekly]=function(){return import("./BMI_GIRLS.zscore.weekly-82f7aa14.js")},Ge[d.Monthly]=function(){return import("./BMI_GIRLS.zscore.monthly-5802a837.js")},Ge[d.Yearly]=function(){return import("./BMI_GIRLS.zscore.yearly-347ac14e.js")},Ge),He),Ee),nn=function(e,n,t,r,o){var i=e.slice(n-1,t),l=[i[0][r],i[0][r]],a=l[0],c=l[1];return i.forEach((function(e){e[r]>c&&(c=e[r]),e[r]<a&&(a=e[r])})),[(0|a)-o,(0|c)+o]},tn=function(e,n,t,r){return r===c.Indonesia?en[e][n][t]():$e[e][n][t]()},rn=function(e,n){var t=V(n,Math.ceil(n.length/2)),r=t[0],o=t[1],i=r.map((function(e){return e.name})),l=o.map((function(e){return e.name}));return i.includes(e)?{data:r,status:"first-half"}:l.includes(e)?{data:o,status:"second-half"}:{data:n,status:"full"}},on=function(e,n){return b(b([],e,!0),n.map((function(e){return{name:e.name,history:e.history,risk:e.risk,toolTipLabel:e.toolTipLabel}})),!0).sort((function(e,n){return e.name-n.name}))},ln=function(e,n,t,r,o){return b(b([],e,!0),[{name:r,history:o,risk:n,toolTipLabel:t}],!1).sort((function(e,n){return e.name-n.name}))},an=function(e,n){void 0===n&&(n=0);var t=[],r=function(r){e[r].forEach((function(e,o){var i;t[o]?t[o][r]=e:t[o]=((i={name:o+n})[r]=e,i)}))};for(var o in e)r(o);return t},cn=function(e,n){return void 0===n&&(n=0),Array.from({length:e-n+1},(function(e,t){return t+n}))},sn=function(){var e,n=null===(e=document.getElementsByClassName("recharts-cartesian-grid-vertical"))||void 0===e?void 0:e[0];if(console.log(n),n)for(var t=n.getElementsByTagName("line"),r=0;r<t.length;r++){if(r%2!=0){var o=t[r],i=t[r+1],l=o.getAttribute("x1"),a=o.getAttribute("y"),c=o.getAttribute("height"),s=o.getAttribute("x1"),d=i.getAttribute("x1");console.log({oddLine:o,nextLine:i});var m=document.createElementNS("http://www.w3.org/1999/xhtml","rect");m.setAttribute("stroke",I.colors.blue50),m.setAttribute("fill",I.colors.blue50),m.setAttribute("x",l),m.setAttribute("y",a),m.setAttribute("height",c),m.setAttribute("width",String(Number(d)-Number(s))),n.appendChild(o),n.appendChild(m)}else n.appendChild(t[r]);console.log(n)}},dn=L.div(ze||(ze=g(["\n position: relative;\n .custom-chart-label {\n display: flex;\n width: 100%;\n justify-content: space-between;\n align-items: center;\n margin-top: 8px;\n }\n"],["\n position: relative;\n .custom-chart-label {\n display: flex;\n width: 100%;\n justify-content: space-between;\n align-items: center;\n margin-top: 8px;\n }\n"]))),mn=[{name:"-3SD",label:"-3",color:I.colors.red600},{name:"-2SD",label:"-2",color:I.colors.yellow600},{name:"0Median",label:"0",color:I.colors.green600},{name:"2SD",label:"2",color:I.colors.yellow600},{name:"3SD",label:"3",color:I.colors.red600},{name:"history",color:I.colors.primaryBase}],pn=[{name:"3rd",color:I.colors.red600},{name:"15th",color:I.colors.yellow600},{name:"50th",color:I.colors.green600},{name:"85th",color:I.colors.yellow600},{name:"97th",color:I.colors.red600},{name:"history",color:I.colors.primaryBase}],un=o((function(n,t){return e.createElement("circle",x({},n,{ref:t}),e.createElement("animate",{attributeName:"r",values:"4;8;4",dur:"2s",begin:"0s",repeatCount:"indefinite"}))})),fn=function(n){var t=n.x,r=n.y,o=n.last,i=n.index,l=n.name;return o===i?e.createElement("text",{x:t,y:r,dx:16,fill:I.colors.gray500,fontSize:12,textAnchor:"middle"},l):null},hn=function(o){var a=o.gender,m=o.type,p=o.duration,u=o.xLabel,f=o.x,C=o.y,g=o.toolTipLabel,y=void 0===g?[]:g,b=o.isDivide,v=void 0===b||b,k=o.onIsPrevious,M=o.locale,L=o.riskLevel,H=o.withLine,j=void 0!==H&&H,B=o.lineData,G=void 0===B?[]:B,z=r([]),_=z[0],V=z[1],Z=t([]),P=l().t;i((function(){w(void 0,void 0,void 0,(function(){var e,n,t,r;return E(this,(function(o){switch(o.label){case 0:return[4,tn(a,m,p,M)];case 1:if(e=o.sent().default,n=p===d.Weekly?0:1,t=an(e,n),Array.isArray(t)&&0===t.length)return null==k||k(),[2];r={data:t.map((function(e,n){return x(x({},e),{name:n})})),status:"full"};try{r=v?rn(f||n,t):{data:t,status:"full"}}catch(e){}if(v)switch(r.status){case"first-half":Z.current=cn(r.data.length-1+n,n);break;case"second-half":Z.current=cn(e.length,r.data.length);break;default:Z.current=cn(t.length-1+n,n)}else Z.current=cn(t.length-1+n,n);return V(r.data),[2]}}))}))}),[a,m,p,M,k]);var U=r(!1),F=U[0],K=U[1],q=n((function(){return j&&Array.isArray(_)&&_.length>0?on(_,G):ln(_,L,y,f,C)}),[j,G,_]),J=t(null);S(J,(function(){return K(!1)}));return e.createElement(dn,null,e.createElement("div",{className:"custom-chart-label"},e.createElement(h,{size:"n1",color:I.colors.gray500},function(){switch(m){case s.Weight:return P("babyGrowth.weight");case s.Height:return P("babyGrowth.height");case s.Head:return P("babyGrowth.headCircumference");case s.BMI:return"BMI";default:return""}}()),e.createElement(h,{size:"n1",color:I.colors.gray500},M===c.Indonesia?"Z-Score":P("babyGrowth.percentiles"))),Array.isArray(q)&&q.length>0&&e.createElement(N,{height:388,className:"chart"},e.createElement(A,{data:q,margin:{top:16,right:28,bottom:8,left:0}},e.createElement(R,{stroke:I.colors.blue200}),e.createElement(W,{trigger:"click",content:function(n){return e.createElement(We,x({active:!j&&F&&void 0!==f&&void 0!==C,locale:M},n))}}),e.createElement(D,{type:"number",scale:"linear",ticks:Z.current,dataKey:"name",tickLine:!1,tickMargin:12,tick:{fontFamily:"Inter",fontWeight:400,fontSize:12,color:I.colors.gray800},domain:["dataMin","dataMax"],interval:"preserveStartEnd",tickCount:1,tickFormatter:function(e){return String(Math.round(100*(e+Number.EPSILON))/100)},allowDecimals:!0}),e.createElement(Y,{domain:[function(e){return Math.min(e,C||e)},function(e){return Math.max(e,C||e)}],tickLine:!1,tickMargin:7,width:45,tickCount:10,allowDecimals:!0,tickFormatter:function(e){return String(Math.round(100*(e+Number.EPSILON))/100)},tick:{fontFamily:"Inter",fontWeight:400,fontSize:12,color:I.colors.gray800}}),(M===c.Indonesia?mn:pn).map((function(n,t){return e.createElement(e.Fragment,null,"history"===n.name?e.createElement(T,{key:t,connectNulls:!0,type:"linear",dataKey:"history",stroke:n.color,dot:{stroke:n.color,fill:n.color,strokeWidth:1,r:4,strokeDasharray:""},activeDot:!0,color:n.color}):e.createElement(T,{key:n.name,type:"linear",dataKey:n.name,stroke:n.color,dot:!1,activeDot:!1,connectNulls:!0,label:e.createElement(fn,{last:(null==q?void 0:q.length)?q.length-1:0,name:(null==n?void 0:n.label)||n.name}),tooltipType:"none"}))})),void 0!==f&&void 0!==C&&e.createElement(O,{onClick:function(){return K(!0)},x:0===f?1:f,y:C,r:4,shape:e.createElement(un,{ref:J,r:4}),fill:I.colors.primaryBase,stroke:I.colors.primaryBase}))),e.createElement("div",{className:"custom-chart-label"},e.createElement("i",null),e.createElement(h,{size:"n1",color:I.colors.gray500},u)))};export{hn as BabyGrowthChart,$e as BabyGrowthChartPercentile,en as BabyGrowthChartZScore,Xe as BabyGrowthChooseProfileDrawer,X as BabyGrowthGender,ne as BabyGrowthLegend,Ye as BabyGrowthProfileRadio,qe as BabyGrowthRecord,_e as BabyGrowthSwitch,q as BabyGrowthSwitchChart,We as BabyGrowthTooltip,Ue as ChildCard,pn as LABELS_PERCENTILE,mn as LABELS_Z_SCORE,rn as divideChartData,tn as generateGrowthChart,cn as generateXAxisTicks,nn as getAxisYDomain,sn as paintAxis,ln as refineDataWithDot,on as refineDataWithLine,an as transformDataToChart};
|
|
1
|
+
import e,{useMemo as n,useRef as t,useState as r,forwardRef as o,useEffect as i}from"react";import{u as l}from"./useTranslations-3e47eecc.js";import{G as a,L as c,B as s,a as d}from"./Locale-69030fff.js";import{R as m,I as p,M as u,N as f}from"./index-f3a0141e.js";import{T as h,M as C}from"./index.styled-faeac279.js";import{e as g,b as y,_ as x,a as b,c as w,d as E}from"./tslib.es6-5532bd7b.js";import{M as v,h as k,n as M}from"./screenSizeContext-12f741e1.js";import L from"styled-components";import{t as I}from"./theme-a50a1aa5.js";import{B as H}from"./index-93d22d63.js";import{format as j}from"date-fns";import"./gAssets.js";import{H as B}from"./index-7a537be1.js";import"react-range";import"@mantine/core";import"lodash/debounce";import"./index-58ae0705.js";import"./translationsContext-d658f58d.js";import"string-format";import{u as S}from"./useOutsideClick-6004483a.js";import{a as G,l as z}from"./localizeNumberFormat-77c129ef.js";import{D as _}from"./index.styled-d8a819ea.js";import{ResponsiveContainer as N,LineChart as A,CartesianGrid as R,Tooltip as W,XAxis as D,YAxis as Y,Line as T,ReferenceDot as O}from"recharts";import{chunk as V}from"lodash";import"./en-PH-71017453.js";import"./index-642d36c8.js";import"./useScrollbarSize-99db33e1.js";import"react-dom";import"vanilla-lazyload";var Z,P,U,F,K,q,J=L.div(Z||(Z=g(["\n & > :not(:last-child) {\n margin-bottom: 8px;\n }\n\n .gender-selector {\n & > :not(:last-child) {\n margin-right: 16px;\n }\n\n & > div {\n width: calc(50% - 8px);\n\n "," {\n max-width: 186px;\n justify-self: left;\n }\n }\n }\n"],["\n & > :not(:last-child) {\n margin-bottom: 8px;\n }\n\n .gender-selector {\n & > :not(:last-child) {\n margin-right: 16px;\n }\n\n & > div {\n width: calc(50% - 8px);\n\n "," {\n max-width: 186px;\n justify-self: left;\n }\n }\n }\n"])),v.mbUp),Q=L(m)(P||(P=g(["\n & > div > div {\n display: flex;\n flex-direction: row;\n justify-content: center;\n align-content: center;\n gap: 8px;\n padding-block: 5px;\n }\n .radio-group-item-heading {\n margin-top: 0;\n }\n"],["\n & > div > div {\n display: flex;\n flex-direction: row;\n justify-content: center;\n align-content: center;\n gap: 8px;\n padding-block: 5px;\n }\n .radio-group-item-heading {\n margin-top: 0;\n }\n"]))),X=function(n){var t=n.value,r=n.onChange,o=l().t;return e.createElement(J,null,e.createElement(h,{size:"label2",type:"bold",style:{marginBottom:"0.5rem"}},o("babyVaccineTool.selectGender")),e.createElement(Q,{options:[{value:a.Girl,label:o("gender.female"),content:e.createElement(p.GenderChooseGirl,null)},{value:a.Boy,label:o("gender.male"),content:e.createElement(p.GenderChooseBoy,null)}],value:t,onChange:r,className:"gender-selector"}))},$=L.div(U||(U=g(["\n display: flex;\n justify-content: center;\n gap: 16px;\n"],["\n display: flex;\n justify-content: center;\n gap: 16px;\n"]))),ee=L.div(F||(F=g(["\n display: flex;\n justify-content: center;\n align-items: center;\n gap: 6px;\n .dot {\n width: 8px;\n height: 8px;\n border-radius: 50%;\n }\n"],["\n display: flex;\n justify-content: center;\n align-items: center;\n gap: 6px;\n .dot {\n width: 8px;\n height: 8px;\n border-radius: 50%;\n }\n"]))),ne=function(n){var t=n.legends,r=n.locale;return e.createElement($,null,t.map((function(n,t){return e.createElement(ee,{key:t},e.createElement("span",{className:"dot",style:{backgroundColor:n.color}}),e.createElement(h,{size:"n1",color:I.colors.gray800},r===c.Indonesia?n["z-score"]:n.text))})))},te=L.div(K||(K=g(["\n display: flex;\n justify-content: center;\n .switch {\n border: 1px solid ",";\n padding: 6px 12px;\n font-weight: 600;\n font-size: 11px;\n &:nth-child(2n + 1) {\n border-radius: 6px 0px 0px 6px;\n border-right: none;\n }\n &:nth-child(2n) {\n border-radius: 0px 6px 6px 0px;\n border-left: none;\n }\n }\n"],["\n display: flex;\n justify-content: center;\n .switch {\n border: 1px solid ",";\n padding: 6px 12px;\n font-weight: 600;\n font-size: 11px;\n &:nth-child(2n + 1) {\n border-radius: 6px 0px 0px 6px;\n border-right: none;\n }\n &:nth-child(2n) {\n border-radius: 0px 6px 6px 0px;\n border-left: none;\n }\n }\n"])),I.colors.neutral200);!function(e){e[e.WHO=0]="WHO",e[e.CDC=1]="CDC"}(q||(q={}));var re,oe,ie,le,ae,ce,se,de,me,pe,ue,fe,he,Ce,ge,ye,xe,be,we,Ee,ve,ke,Me,Le,Ie,He,je,Be,Se,Ge,ze,_e=function(n){var t=n.switchType,r=n.onTypeChange;return e.createElement(te,null,e.createElement(H,{className:"switch",size:"sm",color:t===q.WHO?"primary":"ghost",onClick:function(){return r(q.WHO)}},"WHO"),e.createElement(H,{className:"switch",size:"sm",isDisabled:!0,color:t===q.CDC?"primary":"ghost",onClick:function(){return r(q.CDC)}},"CDC"))},Ne=L.div(re||(re=g(["\n /* position: absolute; */\n display: flex;\n align-items: stretch;\n justify-content: space-around;\n padding: 8px;\n gap: 14px;\n\n min-width: 145px;\n max-width: 220px;\n min-height: 50px;\n border-radius: 4px;\n background: rgba(255, 255, 255, 0.2);\n box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);\n backdrop-filter: blur(5px);\n -webkit-backdrop-filter: blur(5px);\n border: 1px solid rgba(255, 255, 255, 0.3);\n .risk {\n display: flex;\n align-items: center;\n padding: 4px 8px;\n background: ",";\n border-radius: 3px;\n }\n .tooltip {\n text-align: left;\n }\n"],["\n /* position: absolute; */\n display: flex;\n align-items: stretch;\n justify-content: space-around;\n padding: 8px;\n gap: 14px;\n\n min-width: 145px;\n max-width: 220px;\n min-height: 50px;\n border-radius: 4px;\n background: rgba(255, 255, 255, 0.2);\n box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);\n backdrop-filter: blur(5px);\n -webkit-backdrop-filter: blur(5px);\n border: 1px solid rgba(255, 255, 255, 0.3);\n .risk {\n display: flex;\n align-items: center;\n padding: 4px 8px;\n background: ",";\n border-radius: 3px;\n }\n .tooltip {\n text-align: left;\n }\n"])),I.colors.yellow600),Ae=[{name:["3rd","-3SD","97th","3SD"],color:I.colors.red600},{name:["15rd","-2SD","85th","2SD"],color:I.colors.yellow600},{name:["50th","0Median"],color:I.colors.green600}],Re={"3rd":"-3SD","15th":"-2SD","50th":"Median","85th":"2SD","97th":"3SD"},We=function(t){var r,o=t.payload,i=t.locale,l=t.active,a=null===(r=null==o?void 0:o[0])||void 0===r?void 0:r.payload;if(!(a&&a.history&&a.name&&a.risk&&a.toolTipLabel&&l))return null;var s=n((function(){var e;return null===(e=Ae.find((function(e){return e.name.includes(a.risk||"")})))||void 0===e?void 0:e.color}),[a.risk]),d=n((function(){return i===c.Indonesia?a.risk?Re[a.risk]:"":a.risk}),[i,a.risk]);return e.createElement(Ne,null,e.createElement("div",{className:"risk",style:{backgroundColor:s}},e.createElement(h,{size:"s3",color:I.colors.white,type:"semiBold"},d)),e.createElement("div",{className:"tooltip"},(a.toolTipLabel||[]).map((function(n,t){return e.createElement(h,{key:t,size:"n1",color:I.colors.gray600},n)}))))},De=L.div(oe||(oe=g(["\n background: ",";\n border-radius: 6px;\n padding: 16px 20px;\n display: flex;\n justify-content: space-between;\n align-items: center;\n .baby {\n display: flex;\n align-items: center;\n gap: 8px;\n svg {\n min-width: 24px;\n }\n }\n .radio {\n cursor: pointer;\n position: relative;\n min-width: 22px;\n width: 22px;\n height: 22px;\n background: #ffffff;\n border: 2px solid ",";\n border-radius: 50%;\n transition: all "," ease-in-out;\n &.active {\n border-color: ",";\n &::before {\n content: '';\n position: absolute;\n inset: 0;\n width: 100%;\n height: 100%;\n background-color: ",";\n background-clip: content-box;\n padding: 5px;\n border-radius: 50%;\n animation: "," "," ease-in-out forwards;\n }\n }\n }\n"],["\n background: ",";\n border-radius: 6px;\n padding: 16px 20px;\n display: flex;\n justify-content: space-between;\n align-items: center;\n .baby {\n display: flex;\n align-items: center;\n gap: 8px;\n svg {\n min-width: 24px;\n }\n }\n .radio {\n cursor: pointer;\n position: relative;\n min-width: 22px;\n width: 22px;\n height: 22px;\n background: #ffffff;\n border: 2px solid ",";\n border-radius: 50%;\n transition: all "," ease-in-out;\n &.active {\n border-color: ",";\n &::before {\n content: '';\n position: absolute;\n inset: 0;\n width: 100%;\n height: 100%;\n background-color: ",";\n background-clip: content-box;\n padding: 5px;\n border-radius: 50%;\n animation: "," "," ease-in-out forwards;\n }\n }\n }\n"])),I.colors.gray50,I.colors.gray600,"300ms",I.colors.primaryBase,I.colors.primaryBase,k,"300ms"),Ye=function(n){var t=n.profile,r=n.onChange,o=n.isActive;return e.createElement(De,{onClick:function(){return r(t.id)}},e.createElement("div",{className:"baby"},"male"===t.gender?e.createElement(p.Boy,{size:24}):e.createElement(p.Girl,{size:24}),e.createElement(h,{size:"p2",color:I.colors.gray800},t.name)),e.createElement("div",{className:o?"radio active":"radio"}))},Te=L.div(ie||(ie=g(["\n /* Auto layout */\n position: relative;\n display: flex;\n align-items: flex-start;\n padding: 16px;\n gap: 16px;\n background: ",";\n border: 1px solid ",";\n border-radius: 6px;\n .information {\n display: flex;\n flex-direction: column;\n gap: 8px;\n h5:first-letter {\n text-transform: uppercase;\n }\n .detail {\n display: flex;\n gap: 16px;\n div {\n display: flex;\n align-items: center;\n gap: 6px;\n }\n }\n }\n"],["\n /* Auto layout */\n position: relative;\n display: flex;\n align-items: flex-start;\n padding: 16px;\n gap: 16px;\n background: ",";\n border: 1px solid ",";\n border-radius: 6px;\n .information {\n display: flex;\n flex-direction: column;\n gap: 8px;\n h5:first-letter {\n text-transform: uppercase;\n }\n .detail {\n display: flex;\n gap: 16px;\n div {\n display: flex;\n align-items: center;\n gap: 6px;\n }\n }\n }\n"])),I.colors.white,I.colors.gray100),Oe=L.div(le||(le=g(["\n position: absolute;\n top: 18px;\n right: 16px;\n cursor: pointer;\n"],["\n position: absolute;\n top: 18px;\n right: 16px;\n cursor: pointer;\n"]))),Ve=L(C)(ae||(ae=g(["\n position: absolute;\n right: 0;\n z-index: 1;\n"],["\n position: absolute;\n right: 0;\n z-index: 1;\n"]))),Ze=function(n){var r=n.name,o=n.onClose,i=n.onEdit,a=n.onSwitch,c=n.onAdd,s=n.onRemove,d=l().t,m=t();return S(m,o),e.createElement("div",{ref:m},e.createElement(Ve,{width:250},e.createElement(C.Item,{onClick:i,icon:e.createElement("svg",{width:"16",height:"17",viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{d:"M12.7812 1.83301C12.2987 1.83301 11.8162 2.01676 11.4479 2.38509L10.6667 3.16634L13.3333 5.83301L14.1146 5.05176C14.8506 4.31576 14.8506 3.12176 14.1146 2.38509C13.7463 2.01676 13.2638 1.83301 12.7812 1.83301ZM9.66667 4.16634L2 11.833V14.4997H4.66667L12.3333 6.83301L9.66667 4.16634Z",fill:"#595959"}))},e.createElement(h,{size:"p2",color:I.colors.gray800},d("childCard.menu.edit",{name:r}))),e.createElement(C.Item,{onClick:a,icon:e.createElement("svg",{width:"16",height:"17",viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{d:"M8 2.5C4.9478 2.5 2.4204 4.79359 2.05078 7.7513C2.03763 7.83928 2.04222 7.929 2.06428 8.01518C2.08634 8.10136 2.12542 8.18226 2.17922 8.2531C2.23303 8.32394 2.30046 8.3833 2.37756 8.42768C2.45465 8.47206 2.53985 8.50057 2.62813 8.51152C2.71642 8.52247 2.806 8.51564 2.8916 8.49143C2.9772 8.46723 3.05709 8.42614 3.12657 8.37059C3.19605 8.31503 3.2537 8.24613 3.29615 8.16795C3.33859 8.08978 3.36496 8.00389 3.3737 7.91536C3.66141 5.61307 5.61354 3.83333 8 3.83333C9.34288 3.83333 10.5434 4.39987 11.3919 5.30339L10.0977 6.59766C9.96766 6.72766 9.96766 6.93901 10.0977 7.06901C10.1623 7.13434 10.248 7.16667 10.3333 7.16667H13.3333C13.5101 7.16667 13.6797 7.09643 13.8047 6.9714C13.9298 6.84638 14 6.67681 14 6.5V3.5C14 3.41467 13.967 3.32966 13.9023 3.26432C13.7723 3.13432 13.561 3.13432 13.431 3.26432L12.3359 4.35938C11.2437 3.21415 9.7037 2.5 8 2.5ZM13.2943 8.49089C13.1292 8.48959 12.9695 8.54959 12.8461 8.65928C12.7227 8.76896 12.6444 8.92053 12.6263 9.08464C12.3386 11.3869 10.3865 13.1667 8 13.1667C6.65713 13.1667 5.45884 12.5994 4.60938 11.6953L5.90234 10.4023C6.03234 10.2723 6.03234 10.061 5.90234 9.93099C5.83768 9.86566 5.752 9.83333 5.66667 9.83333H2.66667C2.48986 9.83333 2.32029 9.90357 2.19526 10.0286C2.07024 10.1536 2 10.3232 2 10.5V13.5C2 13.5853 2.03299 13.6703 2.09766 13.7357C2.22766 13.8657 2.43901 13.8657 2.56901 13.7357L3.66536 12.6393C4.75711 13.7836 6.29696 14.5 8 14.5C11.0522 14.5 13.5796 12.2064 13.9492 9.2487C13.9622 9.1548 13.955 9.05922 13.928 8.96833C13.9011 8.87745 13.8552 8.79334 13.7932 8.72163C13.7312 8.64991 13.6546 8.59224 13.5686 8.55245C13.4826 8.51266 13.3891 8.49167 13.2943 8.49089Z",fill:"#595959"}))},e.createElement(h,{size:"p2",color:I.colors.gray800},d("childCard.menu.switch"))),e.createElement(C.Item,{onClick:c,icon:e.createElement("svg",{width:"16",height:"17",viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.9564 8.56545C15.7745 7.46727 14.9673 6.57273 13.9127 6.26C13.5273 5.44545 12.9818 4.73273 12.32 4.14364C11.1709 3.11818 9.65818 2.5 8 2.5C6.34182 2.5 4.82909 3.11818 3.68 4.14364C3.01091 4.73273 2.46545 5.45273 2.08727 6.26C1.03273 6.57273 0.225455 7.46 0.0436364 8.56545C0.0145455 8.71818 0 8.87818 0 9.04545C0 9.21273 0.0145455 9.37273 0.0436364 9.52545C0.225455 10.6236 1.03273 11.5182 2.08727 11.8309C2.46545 12.6382 3.01091 13.3509 3.66545 13.9327C4.81455 14.9655 6.33455 15.5909 8 15.5909C9.66545 15.5909 11.1855 14.9655 12.3418 13.9327C12.9964 13.3509 13.5418 12.6309 13.92 11.8309C14.9673 11.5182 15.7745 10.6309 15.9564 9.52545C15.9855 9.37273 16 9.21273 16 9.04545C16 8.87818 15.9855 8.71818 15.9564 8.56545ZM6.18182 7.04545C5.67974 7.04545 5.27273 7.45247 5.27273 7.95455C5.27273 8.45662 5.67974 8.86364 6.18182 8.86364C6.6839 8.86364 7.09091 8.45662 7.09091 7.95455C7.09091 7.45247 6.6839 7.04545 6.18182 7.04545ZM9.81818 7.04545C9.3161 7.04545 8.90909 7.45247 8.90909 7.95455C8.90909 8.45662 9.3161 8.86364 9.81818 8.86364C10.3203 8.86364 10.7273 8.45662 10.7273 7.95455C10.7273 7.45247 10.3203 7.04545 9.81818 7.04545ZM5.01821 10.5H10.9818C11.1128 10.5 11.2073 10.6455 11.1491 10.7691C10.5455 11.9109 9.36002 12.6818 8.00002 12.6818C6.64002 12.6818 5.45457 11.9109 4.85093 10.7691C4.78548 10.6455 4.88002 10.5 5.01821 10.5ZM12.9538 10.4875C12.9991 10.4938 13.0435 10.5 13.0909 10.5C13.8909 10.5 14.5455 9.84545 14.5455 9.04545C14.5455 8.24545 13.8909 7.59091 13.0909 7.59091C13.0435 7.59091 12.9991 7.5971 12.9538 7.60343C12.9297 7.60679 12.9053 7.6102 12.88 7.61273C12.7345 7.12545 12.5236 6.67455 12.2545 6.26C11.3455 4.87091 9.78182 3.95455 8 3.95455C6.21818 3.95455 4.65455 4.87091 3.74545 6.26C3.47636 6.67455 3.26545 7.12545 3.12 7.61273C3.09473 7.6102 3.07033 7.60679 3.0462 7.60343C3.0009 7.5971 2.95654 7.59091 2.90909 7.59091C2.10909 7.59091 1.45455 8.24545 1.45455 9.04545C1.45455 9.84545 2.10909 10.5 2.90909 10.5C2.95654 10.5 3.0009 10.4938 3.0462 10.4875C3.07033 10.4841 3.09473 10.4807 3.12 10.4782C3.26545 10.9655 3.47636 11.4164 3.74545 11.8309C4.65455 13.22 6.21818 14.1364 8 14.1364C9.78182 14.1364 11.3455 13.22 12.2545 11.8309C12.5236 11.4164 12.7345 10.9655 12.88 10.4782C12.9053 10.4807 12.9297 10.4841 12.9538 10.4875Z",fill:"#595959"}),e.createElement("path",{d:"M2.5 2V1C2.5 0.725 2.275 0.5 2 0.5C1.725 0.5 1.5 0.725 1.5 1V2H0.5C0.225 2 0 2.225 0 2.5C0 2.775 0.225 3 0.5 3H1.5V4C1.5 4.275 1.725 4.5 2 4.5C2.275 4.5 2.5 4.275 2.5 4V3H3.5C3.775 3 4 2.775 4 2.5C4 2.225 3.775 2 3.5 2H2.5Z",fill:"#595959"}))},e.createElement(h,{size:"p2",color:I.colors.gray800},d("childCard.menu.add"))),e.createElement(C.Item,{onClick:s,icon:e.createElement("svg",{width:"16",height:"17",viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{d:"M6.66699 1.83301L6.00033 2.49967H3.33366C2.93366 2.49967 2.66699 2.76634 2.66699 3.16634C2.66699 3.56634 2.93366 3.83301 3.33366 3.83301H4.66699H11.3337H12.667C13.067 3.83301 13.3337 3.56634 13.3337 3.16634C13.3337 2.76634 13.067 2.49967 12.667 2.49967H10.0003L9.33366 1.83301H6.66699ZM3.33366 5.16634V13.833C3.33366 14.5663 3.93366 15.1663 4.66699 15.1663H11.3337C12.067 15.1663 12.667 14.5663 12.667 13.833V5.16634H3.33366ZM6.00033 6.49967C6.40033 6.49967 6.66699 6.76634 6.66699 7.16634V13.1663C6.66699 13.5663 6.40033 13.833 6.00033 13.833C5.60033 13.833 5.33366 13.5663 5.33366 13.1663V7.16634C5.33366 6.76634 5.60033 6.49967 6.00033 6.49967ZM10.0003 6.49967C10.4003 6.49967 10.667 6.76634 10.667 7.16634V13.1663C10.667 13.5663 10.4003 13.833 10.0003 13.833C9.60033 13.833 9.33366 13.5663 9.33366 13.1663V7.16634C9.33366 6.76634 9.60033 6.49967 10.0003 6.49967Z",fill:"#F44D2C"}))},e.createElement(h,{size:"p2",color:I.colors.red600},d("childCard.menu.remove",{name:r})))))},Pe=function(e,n){if(e)if(e.year<1){if(0===e.month)switch(e.week){case 0:case 1:return n("childCard.age.oneWeek");default:return n("childCard.age.week",{weeks:e.week})}if(1===e.month)return n("childCard.age.oneMonth");if(e.month>1)return n("childCard.age.months",{month:e.month})}else{if(1===e.year)return n("childCard.age.oneYear");if(0===e.month)return n("childCard.age.yearNoMonth",{year:e.year});if(e.month>0)return n("childCard.age.yearMonth",{year:e.year,month:e.month})}},Ue=function(n){var t=n.name,o=n.gender,i=n.age,c=n.isLoggedIn,s=void 0!==c&&c,d=n.showMenu,m=void 0!==d&&d,u=n.onEdit,f=n.onSwitch,C=n.onAdd,g=n.onRemove,y=n.className,x=l().t,b=r(!1),w=b[0],E=b[1];return e.createElement(Te,{className:y},e.createElement("div",{"data-testid":"gender"},o===a.Boy?e.createElement(p.Boy,{"data-testid":"boy",id:"boy"}):e.createElement(p.Girl,{"data-testid":"girl",id:"girl"})),e.createElement("div",{className:"information"},e.createElement(B,{tag:"h5",fontWeight:"bold",color:I.colors.gray800},M(t)||x("childCard.noName")),e.createElement("div",{className:"detail"},e.createElement("div",null,o===a.Boy?e.createElement(p.GenderBoy,null):e.createElement(p.GenderGirl,null),e.createElement(h,{size:"p3",color:I.colors.gray800,style:{textTransform:"capitalize"}},o)),e.createElement("div",null,e.createElement(p.Calendar,{size:16}),i&&e.createElement(h,{size:"p3",color:I.colors.gray800},Pe(i,x))))),m&&s&&e.createElement(Oe,null,e.createElement(p.Kebab,{onClick:function(){return E((function(e){return!e}))}}),w&&e.createElement(Ze,{name:t,onClose:function(){return E(!1)},onEdit:function(){E(!1),u()},onSwitch:function(){E(!1),f()},onAdd:function(){E(!1),C()},onRemove:function(){E(!1),g()}})))},Fe=L.div(ce||(ce=g(["\n cursor: pointer;\n position: relative;\n padding: 20px 2px;\n border-bottom: 1px solid ",";\n .time {\n display: flex;\n align-items: center;\n gap: 8px;\n margin-bottom: 16px;\n }\n .edit-button {\n margin-left: auto;\n justify-self: end;\n }\n .record {\n display: grid;\n grid-template-columns: repeat(3, 1fr);\n grid-template-rows: 1fr;\n grid-column-gap: 30px;\n grid-row-gap: 0px;\n }\n .record-item {\n display: flex;\n align-items: center;\n gap: 8px;\n }\n"],["\n cursor: pointer;\n position: relative;\n padding: 20px 2px;\n border-bottom: 1px solid ",";\n .time {\n display: flex;\n align-items: center;\n gap: 8px;\n margin-bottom: 16px;\n }\n .edit-button {\n margin-left: auto;\n justify-self: end;\n }\n .record {\n display: grid;\n grid-template-columns: repeat(3, 1fr);\n grid-template-rows: 1fr;\n grid-column-gap: 30px;\n grid-row-gap: 0px;\n }\n .record-item {\n display: flex;\n align-items: center;\n gap: 8px;\n }\n"])),I.colors.gray100),Ke=function(e,n){return e&&"NaN"!==e?e+" "+(n||""):"--"},qe=function(n){var t=n.measurementDate,r=void 0===t?new Date:t,o=n.weight,i=n.height,a=n.head,s=n.onEdit,d=n.birthday,m=n.dateFormat,p=void 0===m?"dd/MM/yyyy":m,u=n.locale;void 0===u&&c.PhilippinesEnglish;var f=l().t;return e.createElement(Fe,{onClick:s},e.createElement("div",{className:"time"},e.createElement("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{d:"M5.64421 0.666016C5.27621 0.666016 4.97754 0.964682 4.97754 1.33268V1.99935H4.31087C3.57754 1.99935 2.97754 2.59935 2.97754 3.33268V12.666C2.97754 13.3993 3.57754 13.9993 4.31087 13.9993H13.6442C14.3775 13.9993 14.9775 13.3993 14.9775 12.666V3.33268C14.9775 2.59935 14.3775 1.99935 13.6442 1.99935H12.9775V1.33268C12.9775 0.964682 12.6789 0.666016 12.3109 0.666016C11.9429 0.666016 11.6442 0.964682 11.6442 1.33268V1.99935H6.31087V1.33268C6.31087 0.964682 6.01221 0.666016 5.64421 0.666016ZM4.31087 5.33268H13.6442V11.9993C13.6442 12.3673 13.3455 12.666 12.9775 12.666H4.97754C4.60954 12.666 4.31087 12.3673 4.31087 11.9993V5.33268Z",fill:"#8C8C8C"})),e.createElement(h,{size:"p3",color:I.colors.gray600},"".concat(j(r,p)," (").concat(Pe(G(d,r),f),")")),e.createElement("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"edit-button"},e.createElement("path",{d:"M12.7721 1.33398C12.2911 1.33398 11.8102 1.51773 11.443 1.88607L10.6643 2.66732L13.3224 5.33398L14.1011 4.55273C14.8348 3.81673 14.8348 2.62273 14.1011 1.88607C13.734 1.51773 13.253 1.33398 12.7721 1.33398ZM9.66748 3.66732L2.02539 11.334V14.0007H4.68351L12.3256 6.33398L9.66748 3.66732Z",fill:"#8C8C8C"}))),e.createElement("div",{className:"record"},e.createElement("div",{className:"record-item"},e.createElement("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{d:"M8.44401 9.86602C8.44401 9.57146 8.68279 9.33268 8.97734 9.33268C9.2719 9.33268 9.51068 9.57146 9.51068 9.86602V11.466C9.51068 11.7606 9.2719 11.9993 8.97734 11.9993C8.68279 11.9993 8.44401 11.7606 8.44401 11.466V9.86602Z",fill:"#8C8C8C"}),e.createElement("path",{d:"M8.17595 3.05319C7.96767 3.26147 7.96767 3.59916 8.17595 3.80744L8.83592 4.46741C9.0442 4.67569 9.38189 4.67569 9.59017 4.46741C9.79844 4.25913 9.79844 3.92144 9.59017 3.71316L8.9302 3.05319C8.72192 2.84491 8.38423 2.84492 8.17595 3.05319Z",fill:"#8C8C8C"}),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.2941 3.66435C12.1261 1.98071 10.7053 0.666016 8.97738 0.666016C7.2495 0.666016 5.82868 1.9807 5.66067 3.66434L3.67054 3.86336C2.92499 3.93791 2.38724 4.61197 2.48017 5.35545L3.498 13.4981C3.5814 14.1653 4.1486 14.666 4.82104 14.666H13.1336C13.806 14.666 14.3732 14.1653 14.4567 13.4981L15.4745 5.35545C15.5674 4.61197 15.0297 3.93791 14.2841 3.86336L12.2941 3.66435ZM12.1607 4.991C11.7386 6.34768 10.473 7.33268 8.97738 7.33268C7.48176 7.33268 6.2162 6.34767 5.79403 4.99099L3.80321 5.19007L4.82104 13.3327L13.1336 13.3327L14.1514 5.19007L12.1607 4.991ZM10.9774 3.99935C10.9774 5.10392 10.0819 5.99935 8.97738 5.99935C7.87281 5.99935 6.97738 5.10392 6.97738 3.99935C6.97738 2.89478 7.87281 1.99935 8.97738 1.99935C10.0819 1.99935 10.9774 2.89478 10.9774 3.99935Z",fill:"#8C8C8C"})),e.createElement(h,{size:"s3",color:I.colors.gray800,type:"semiBold"},Ke(z(o),"kg"))),e.createElement("div",{className:"record-item"},e.createElement("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("g",{clipPath:"url(#clip0_855_82991)"},e.createElement("path",{d:"M12.6055 13.9993L12.6055 1.99935C12.6055 1.26602 12.0055 0.666016 11.2721 0.666016L5.9388 0.666015C5.20547 0.666015 4.60547 1.26602 4.60547 1.99935L4.60547 13.9993C4.60547 14.7327 5.20547 15.3327 5.9388 15.3327L11.2721 15.3327C12.0055 15.3327 12.6055 14.7327 12.6055 13.9993ZM5.9388 13.9993L5.9388 1.99935L11.2721 1.99935L11.2721 3.33268L8.60547 3.33268L8.60547 4.66602L11.2721 4.66602L11.2721 5.99935L8.60547 5.99935L8.60547 7.33268L11.2721 7.33268L11.2721 8.66602L8.60547 8.66601L8.60547 9.99935L11.2721 9.99935L11.2721 11.3327L8.60547 11.3327L8.60547 12.666L11.2721 12.666L11.2721 13.9993L5.9388 13.9993Z",fill:"#8C8C8C"})),e.createElement("defs",null,e.createElement("clipPath",{id:"clip0_855_82991"},e.createElement("rect",{width:"16",height:"16",fill:"white",transform:"translate(16.6055) rotate(90)"})))),e.createElement(h,{size:"s3",color:I.colors.gray800,type:"semiBold"},Ke(z(i),"cm"))),e.createElement("div",{className:"record-item"},e.createElement("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("g",{clipPath:"url(#clip0_855_82994)"},e.createElement("path",{d:"M9.90072 7.83268C10.361 7.83268 10.734 7.45959 10.734 6.99935C10.734 6.53911 10.361 6.16602 9.90072 6.16602C9.44048 6.16602 9.06738 6.53911 9.06738 6.99935C9.06738 7.45959 9.44048 7.83268 9.90072 7.83268Z",fill:"#8C8C8C"}),e.createElement("path",{d:"M6.56771 7.83268C7.02795 7.83268 7.40104 7.45959 7.40104 6.99935C7.40104 6.53911 7.02795 6.16602 6.56771 6.16602C6.10747 6.16602 5.73438 6.53911 5.73438 6.99935C5.73438 7.45959 6.10747 7.83268 6.56771 7.83268Z",fill:"#8C8C8C"}),e.createElement("path",{d:"M15.528 7.56C15.3614 6.55333 14.6214 5.73333 13.6547 5.44667C13.3014 4.7 12.8014 4.04667 12.1947 3.50667C11.1414 2.56667 9.7547 2 8.2347 2C6.7147 2 5.32803 2.56667 4.2747 3.50667C3.66137 4.04667 3.16137 4.70667 2.8147 5.44667C1.84803 5.73333 1.10803 6.54667 0.941367 7.56C0.9147 7.7 0.901367 7.84667 0.901367 8C0.901367 8.15333 0.9147 8.3 0.941367 8.44C1.10803 9.44667 1.84803 10.2667 2.8147 10.5533C3.16137 11.2933 3.66137 11.9467 4.26137 12.48C5.3147 13.4267 6.70803 14 8.2347 14C9.76137 14 11.1547 13.4267 12.2147 12.48C12.8147 11.9467 13.3147 11.2867 13.6614 10.5533C14.6214 10.2667 15.3614 9.45333 15.528 8.44C15.5547 8.3 15.568 8.15333 15.568 8C15.568 7.84667 15.5547 7.7 15.528 7.56ZM12.9014 9.33333C12.8347 9.33333 12.7747 9.32 12.708 9.31333C12.5747 9.76 12.3814 10.1733 12.1347 10.5533C11.3014 11.8267 9.86803 12.6667 8.2347 12.6667C6.60137 12.6667 5.16803 11.8267 4.3347 10.5533C4.08803 10.1733 3.8947 9.76 3.76137 9.31333C3.6947 9.32 3.6347 9.33333 3.56803 9.33333C2.8347 9.33333 2.2347 8.73333 2.2347 8C2.2347 7.26667 2.8347 6.66667 3.56803 6.66667C3.6347 6.66667 3.6947 6.68 3.76137 6.68667C3.8947 6.24 4.08803 5.82667 4.3347 5.44667C5.16803 4.17333 6.60137 3.33333 8.2347 3.33333C9.86803 3.33333 11.3014 4.17333 12.1347 5.44667C12.3814 5.82667 12.5747 6.24 12.708 6.68667C12.7747 6.68 12.8347 6.66667 12.9014 6.66667C13.6347 6.66667 14.2347 7.26667 14.2347 8C14.2347 8.73333 13.6347 9.33333 12.9014 9.33333ZM8.2347 11.3333C9.5747 11.3333 10.728 10.5133 11.2347 9.33333H5.2347C5.74137 10.5133 6.8947 11.3333 8.2347 11.3333Z",fill:"#8C8C8C"})),e.createElement("defs",null,e.createElement("clipPath",{id:"clip0_855_82994"},e.createElement("rect",{width:"16",height:"16",fill:"white",transform:"translate(0.234375)"})))),e.createElement(h,{size:"s3",color:I.colors.gray800,type:"semiBold"},Ke(z(a),"cm")))))},Je=L(_)(se||(se=g(["\n .add-profile-container {\n display: flex;\n flex-direction: column;\n gap: 24px;\n }\n .profile-container {\n display: flex;\n flex-direction: column;\n gap: 8px;\n }\n .button-group {\n display: flex;\n flex-direction: column;\n gap: 8px;\n button {\n width: 100%;\n }\n }\n"],["\n .add-profile-container {\n display: flex;\n flex-direction: column;\n gap: 24px;\n }\n .profile-container {\n display: flex;\n flex-direction: column;\n gap: 8px;\n }\n .button-group {\n display: flex;\n flex-direction: column;\n gap: 8px;\n button {\n width: 100%;\n }\n }\n"]))),Qe=L(u)(de||(de=g(["\n .hhg-modal {\n min-width: 570px;\n }\n\n .title {\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding-bottom: 16px;\n border-bottom: 1px solid ",";\n }\n\n .close-button {\n margin-left: auto;\n }\n\n .profile-container {\n padding-block: 16px;\n display: flex;\n flex-direction: column;\n gap: 8px;\n border-bottom: 1px solid ",";\n max-height: 300px;\n overflow-y: auto;\n }\n\n .button-group {\n display: flex;\n justify-content: flex-end;\n gap: 16px;\n margin-block: 16px;\n }\n"],["\n .hhg-modal {\n min-width: 570px;\n }\n\n .title {\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding-bottom: 16px;\n border-bottom: 1px solid ",";\n }\n\n .close-button {\n margin-left: auto;\n }\n\n .profile-container {\n padding-block: 16px;\n display: flex;\n flex-direction: column;\n gap: 8px;\n border-bottom: 1px solid ",";\n max-height: 300px;\n overflow-y: auto;\n }\n\n .button-group {\n display: flex;\n justify-content: flex-end;\n gap: 16px;\n margin-block: 16px;\n }\n"])),I.colors.neutral100,I.colors.neutral100),Xe=function(n){var t,o,i=n.babyProfiles,a=n.currentProfileId,c=n.onClose,s=n.onCreate,d=n.onAddMeasurement,m=n.onSwitchProfile,p=n.open,u=n.isMobile,C=n.isMyProfile,g=void 0!==C&&C,b=n.buttonGroup,w=n.newBabyValue,E=n.onNewBabyValueChange,v=y(n,["babyProfiles","currentProfileId","onClose","onCreate","onAddMeasurement","onSwitchProfile","open","isMobile","isMyProfile","buttonGroup","newBabyValue","onNewBabyValueChange"]),k=function(n){return g?e.createElement(e.Fragment,null,e.createElement(H,{onClick:function(){null==s||s(),c()},size:"lg",color:"secondary",icon:e.createElement("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{d:"M13.5 9.75H9.75V13.5C9.75 13.9125 9.4125 14.25 9 14.25C8.5875 14.25 8.25 13.9125 8.25 13.5V9.75H4.5C4.0875 9.75 3.75 9.4125 3.75 9C3.75 8.5875 4.0875 8.25 4.5 8.25H8.25V4.5C8.25 4.0875 8.5875 3.75 9 3.75C9.4125 3.75 9.75 4.0875 9.75 4.5V8.25H13.5C13.9125 8.25 14.25 8.5875 14.25 9C14.25 9.4125 13.9125 9.75 13.5 9.75Z",fill:"#2D87F3"}))},j("babyGrowth.drawer.createBaby")),e.createElement(H,{size:"lg",color:"primary",onClick:function(){null==n||n(),g?null==m||m(L):null==d||d(L),c()}},j(g?"babyGrowth.drawer.switchProfile":"babyGrowth.drawer.addMeasurement"))):e.createElement(H,{size:"lg",color:"primary",onClick:function(){null==d||d(L),null==n||n(),c()}},j("chooseBaby.button"))},M=r(a||(null===(t=i[0])||void 0===t?void 0:t.id)),L=M[0],I=M[1],j=l().t;return u?e.createElement(Je,x({title:"Baby profiles",onClose:c,open:p,placement:"bottom"},v),(function(n){var t,r=n.internalClose;return e.createElement("div",{className:"add-profile-container"},e.createElement("div",{className:"profile-container"},null===(t=i||[])||void 0===t?void 0:t.map((function(n){return e.createElement(Ye,{key:n.id,profile:n,isActive:L===n.id,onChange:I})})),!g&&e.createElement(f,{value:w,onInputChange:E,isActive:"new"===L,onChange:I})),e.createElement("div",{className:"button-group"},b||k(r)))})):e.createElement(Qe,{type:"confirm",isOpen:p,onClose:c},e.createElement("div",{className:"header"},e.createElement("div",{className:"title"},e.createElement(h,{size:"s2",type:"semiBold"},j("chooseBaby.title")),e.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"close-button",onClick:c},e.createElement("path",{d:"M5.99007 4.99067C5.79114 4.99072 5.59674 5.0501 5.43173 5.16121C5.26672 5.27233 5.1386 5.43013 5.06374 5.61444C4.98889 5.79875 4.9707 6.0012 5.0115 6.1959C5.05231 6.39061 5.15025 6.56872 5.29281 6.70747L10.5858 12.0004L5.29281 17.2934C5.19684 17.3855 5.12021 17.4959 5.06743 17.618C5.01464 17.7402 4.98676 17.8716 4.9854 18.0046C4.98405 18.1377 5.00926 18.2697 5.05954 18.3928C5.10983 18.516 5.1842 18.6279 5.27827 18.722C5.37235 18.8161 5.48426 18.8904 5.60743 18.9407C5.73061 18.991 5.86259 19.0162 5.99563 19.0149C6.12867 19.0135 6.2601 18.9856 6.38223 18.9328C6.50436 18.8801 6.61473 18.8034 6.70687 18.7075L11.9998 13.4145L17.2928 18.7075C17.385 18.8034 17.4953 18.8801 17.6175 18.9328C17.7396 18.9856 17.871 19.0135 18.0041 19.0149C18.1371 19.0162 18.2691 18.991 18.3922 18.9407C18.5154 18.8904 18.6273 18.8161 18.7214 18.722C18.8155 18.6279 18.8899 18.516 18.9401 18.3928C18.9904 18.2697 19.0156 18.1377 19.0143 18.0047C19.0129 17.8716 18.985 17.7402 18.9323 17.618C18.8795 17.4959 18.8028 17.3855 18.7069 17.2934L13.4139 12.0004L18.7069 6.70747C18.8514 6.567 18.9501 6.38616 18.99 6.18864C19.03 5.99112 19.0093 5.78614 18.9308 5.60055C18.8523 5.41497 18.7195 5.25744 18.5499 5.14861C18.3803 5.03978 18.1817 4.98473 17.9803 4.99067C17.7205 4.99841 17.4739 5.10699 17.2928 5.2934L11.9998 10.5864L6.70687 5.2934C6.61368 5.19761 6.50224 5.12146 6.37912 5.06947C6.25601 5.01747 6.12372 4.99068 5.99007 4.99067Z",fill:"#595959"})))),e.createElement("div",{className:"profile-container"},null===(o=i||[])||void 0===o?void 0:o.map((function(n){return e.createElement(Ye,{key:n.id,profile:n,isActive:L===n.id,onChange:I})})),!g&&e.createElement(f,{value:w,onInputChange:E,isActive:"new"===L,onChange:I})),e.createElement("div",{className:"button-group"},b||k()))},$e=((me={})[a.Boy]=((pe={})[s.Weight]=((ue={})[d.Weekly]=function(){return import("./WEIGHT_BOYS.percentile.weekly-a43c4530.js")},ue[d.Monthly]=function(){return import("./WEIGHT_BOYS.percentile.monthly-9e94fae6.js")},ue[d.Yearly]=function(){return import("./WEIGHT_BOYS.percentile.yearly-23512fa8.js")},ue),pe[s.Height]=((fe={})[d.Weekly]=function(){return import("./HEIGHT_BOYS.percentile.weekly-452b6591.js")},fe[d.Monthly]=function(){return import("./HEIGHT_BOYS.percentile.monthly-46c82cfc.js")},fe[d.Yearly]=function(){return import("./HEIGHT_BOYS.percentile.yearly-b69ee2b1.js")},fe),pe[s.Head]=((he={})[d.Weekly]=function(){return import("./HEAD CIRCUM_BOYS.percentile.weekly-92a20a1c.js")},he[d.Monthly]=function(){return import("./HEAD CIRCUM_BOYS.percentile.monthly-dbb676b7.js")},he[d.Yearly]=function(){return import("./HEAD CIRCUM_BOYS.percentile.yearly-284ffe85.js")},he),pe[s.BMI]=((Ce={})[d.Weekly]=function(){return import("./BMI_BOYS.percentile.weekly-3e59e311.js")},Ce[d.Monthly]=function(){return import("./BMI_BOYS.percentile.monthly-f524741d.js")},Ce[d.Yearly]=function(){return import("./BMI_BOYS.percentile.yearly-6d8de73b.js")},Ce),pe),me[a.Girl]=((ge={})[s.Weight]=((ye={})[d.Weekly]=function(){return import("./WEIGHT_GIRLS.percentile.weekly-3942d908.js")},ye[d.Monthly]=function(){return import("./WEIGHT_GIRLS.percentile.monthly-e5e8908b.js")},ye[d.Yearly]=function(){return import("./WEIGHT_GIRLS.percentile.yearly-18fa4dc9.js")},ye),ge[s.Height]=((xe={})[d.Weekly]=function(){return import("./HEIGHT_GIRLS.percentile.weekly-575d53c8.js")},xe[d.Monthly]=function(){return import("./HEIGHT_GIRLS.percentile.monthly-2954319e.js")},xe[d.Yearly]=function(){return import("./HEIGHT_GIRLS.percentile.yearly-37b9afa9.js")},xe),ge[s.Head]=((be={})[d.Weekly]=function(){return import("./HEAD CIRCUM_GIRLS.percentile.weekly-0a80b339.js")},be[d.Monthly]=function(){return import("./HEAD CIRCUM_GIRLS.percentile.monthly-47ca419d.js")},be[d.Yearly]=function(){return import("./HEAD CIRCUM_GIRLS.percentile.yearly-2a9af33c.js")},be),ge[s.BMI]=((we={})[d.Weekly]=function(){return import("./BMI_GIRLS.percentile.weekly-e48d680c.js")},we[d.Monthly]=function(){return import("./BMI_GIRLS.percentile.monthly-001ea609.js")},we[d.Yearly]=function(){return import("./BMI_GIRLS.percentile.yearly-7df5fcbe.js")},we),ge),me),en=((Ee={})[a.Boy]=((ve={})[s.Weight]=((ke={})[d.Weekly]=function(){return import("./WEIGHT_BOYS.zscore.weekly-7419ed62.js")},ke[d.Monthly]=function(){return import("./WEIGHT_BOYS.zscore.monthly-c1471d63.js")},ke[d.Yearly]=function(){return import("./WEIGHT_BOYS.zscore.yearly-c9e3c050.js")},ke),ve[s.Height]=((Me={})[d.Weekly]=function(){return import("./HEIGHT_BOYS.zscore.weekly-935edd5c.js")},Me[d.Monthly]=function(){return import("./HEIGHT_BOYS.zscore.monthly-9fd9d0b9.js")},Me[d.Yearly]=function(){return import("./HEIGHT_BOYS.zscore.yearly-1feaa056.js")},Me),ve[s.Head]=((Le={})[d.Weekly]=function(){return import("./HEAD CIRCUM_BOYS.zscore.weekly-58c98bc3.js")},Le[d.Monthly]=function(){return import("./HEAD CIRCUM_BOYS.zscore.monthly-0518141a.js")},Le[d.Yearly]=function(){return import("./HEAD CIRCUM_BOYS.zscore.yearly-0ab91f53.js")},Le),ve[s.BMI]=((Ie={})[d.Weekly]=function(){return import("./BMI_BOYS.zscore.weekly-71fe0115.js")},Ie[d.Monthly]=function(){return import("./BMI_BOYS.zscore.monthly-a1e3c494.js")},Ie[d.Yearly]=function(){return import("./BMI_BOYS.zscore.yearly-09f20a36.js")},Ie),ve),Ee[a.Girl]=((He={})[s.Weight]=((je={})[d.Weekly]=function(){return import("./WEIGHT_GIRLS.zscore.weekly-c824c3a7.js")},je[d.Monthly]=function(){return import("./WEIGHT_GIRLS.zscore.monthly-9d865314.js")},je[d.Yearly]=function(){return import("./WEIGHT_GIRLS.zscore.yearly-0409e36d.js")},je),He[s.Height]=((Be={})[d.Weekly]=function(){return import("./HEIGHT_GIRLS.zscore.weekly-7292924a.js")},Be[d.Monthly]=function(){return import("./HEIGHT_GIRLS.zscore.monthly-eb51992f.js")},Be[d.Yearly]=function(){return import("./HEIGHT_GIRLS.zscore.yearly-60c98917.js")},Be),He[s.Head]=((Se={})[d.Weekly]=function(){return import("./HEAD CIRCUM_GIRLS.zscore.weekly-81f96658.js")},Se[d.Monthly]=function(){return import("./HEAD CIRCUM_GIRLS.zscore.monthly-502454c8.js")},Se[d.Yearly]=function(){return import("./HEAD CIRCUM_GIRLS.zscore.yearly-d96c5d22.js")},Se),He[s.BMI]=((Ge={})[d.Weekly]=function(){return import("./BMI_GIRLS.zscore.weekly-82f7aa14.js")},Ge[d.Monthly]=function(){return import("./BMI_GIRLS.zscore.monthly-5802a837.js")},Ge[d.Yearly]=function(){return import("./BMI_GIRLS.zscore.yearly-347ac14e.js")},Ge),He),Ee),nn=function(e,n,t,r,o){var i=e.slice(n-1,t),l=[i[0][r],i[0][r]],a=l[0],c=l[1];return i.forEach((function(e){e[r]>c&&(c=e[r]),e[r]<a&&(a=e[r])})),[(0|a)-o,(0|c)+o]},tn=function(e,n,t,r){return r===c.Indonesia?en[e][n][t]():$e[e][n][t]()},rn=function(e,n){var t=V(n,Math.ceil(n.length/2)),r=t[0],o=t[1],i=r.map((function(e){return e.name})),l=o.map((function(e){return e.name}));return i.includes(e)?{data:r,status:"first-half"}:l.includes(e)?{data:o,status:"second-half"}:{data:n,status:"full"}},on=function(e,n){return b(b([],e,!0),n.map((function(e){return{name:e.name,history:e.history,risk:e.risk,toolTipLabel:e.toolTipLabel}})),!0).sort((function(e,n){return e.name-n.name}))},ln=function(e,n,t,r,o){return b(b([],e,!0),[{name:r,history:o,risk:n,toolTipLabel:t}],!1).sort((function(e,n){return e.name-n.name}))},an=function(e,n){void 0===n&&(n=0);var t=[],r=function(r){e[r].forEach((function(e,o){var i;t[o]?t[o][r]=e:t[o]=((i={name:o+n})[r]=e,i)}))};for(var o in e)r(o);return t},cn=function(e,n){return void 0===n&&(n=0),Array.from({length:e-n+1},(function(e,t){return t+n}))},sn=function(){var e,n=null===(e=document.getElementsByClassName("recharts-cartesian-grid-vertical"))||void 0===e?void 0:e[0];if(console.log(n),n)for(var t=n.getElementsByTagName("line"),r=0;r<t.length;r++){if(r%2!=0){var o=t[r],i=t[r+1],l=o.getAttribute("x1"),a=o.getAttribute("y"),c=o.getAttribute("height"),s=o.getAttribute("x1"),d=i.getAttribute("x1");console.log({oddLine:o,nextLine:i});var m=document.createElementNS("http://www.w3.org/1999/xhtml","rect");m.setAttribute("stroke",I.colors.blue50),m.setAttribute("fill",I.colors.blue50),m.setAttribute("x",l),m.setAttribute("y",a),m.setAttribute("height",c),m.setAttribute("width",String(Number(d)-Number(s))),n.appendChild(o),n.appendChild(m)}else n.appendChild(t[r]);console.log(n)}},dn=L.div(ze||(ze=g(["\n position: relative;\n .custom-chart-label {\n display: flex;\n width: 100%;\n justify-content: space-between;\n align-items: center;\n margin-top: 8px;\n }\n"],["\n position: relative;\n .custom-chart-label {\n display: flex;\n width: 100%;\n justify-content: space-between;\n align-items: center;\n margin-top: 8px;\n }\n"]))),mn=[{name:"-3SD",label:"-3",color:I.colors.red600},{name:"-2SD",label:"-2",color:I.colors.yellow600},{name:"0Median",label:"0",color:I.colors.green600},{name:"2SD",label:"2",color:I.colors.yellow600},{name:"3SD",label:"3",color:I.colors.red600},{name:"history",color:I.colors.primaryBase}],pn=[{name:"3rd",color:I.colors.red600},{name:"15th",color:I.colors.yellow600},{name:"50th",color:I.colors.green600},{name:"85th",color:I.colors.yellow600},{name:"97th",color:I.colors.red600},{name:"history",color:I.colors.primaryBase}],un=o((function(n,t){return e.createElement("circle",x({},n,{ref:t}),e.createElement("animate",{attributeName:"r",values:"4;8;4",dur:"2s",begin:"0s",repeatCount:"indefinite"}))})),fn=function(n){var t=n.x,r=n.y,o=n.last,i=n.index,l=n.name;return o===i?e.createElement("text",{x:t,y:r,dx:16,fill:I.colors.gray500,fontSize:12,textAnchor:"middle"},l):null},hn=function(o){var a=o.gender,m=o.type,p=o.duration,u=o.xLabel,f=o.x,C=o.y,g=o.toolTipLabel,y=void 0===g?[]:g,b=o.isDivide,v=void 0===b||b,k=o.onIsPrevious,M=o.locale,L=o.riskLevel,H=o.withLine,j=void 0!==H&&H,B=o.lineData,G=void 0===B?[]:B,z=r([]),_=z[0],V=z[1],Z=t([]),P=l().t;i((function(){w(void 0,void 0,void 0,(function(){var e,n,t,r;return E(this,(function(o){switch(o.label){case 0:return[4,tn(a,m,p,M)];case 1:if(e=o.sent().default,n=p===d.Weekly?0:1,t=an(e,n),Array.isArray(t)&&0===t.length)return null==k||k(),[2];r={data:t.map((function(e,n){return x(x({},e),{name:n})})),status:"full"};try{r=v?rn(f||n,t):{data:t,status:"full"}}catch(e){}if(v)switch(r.status){case"first-half":Z.current=cn(r.data.length-1+n,n);break;case"second-half":Z.current=cn(e.length,r.data.length);break;default:Z.current=cn(t.length-1+n,n)}else Z.current=cn(t.length-1+n,n);return V(r.data),[2]}}))}))}),[a,m,p,M,k]);var U=r(!1),F=U[0],K=U[1],q=n((function(){return j&&Array.isArray(_)&&_.length>0?on(_,G):ln(_,L,y,f,C)}),[j,G,_]),J=t(null);S(J,(function(){return K(!1)}));return e.createElement(dn,null,e.createElement("div",{className:"custom-chart-label"},e.createElement(h,{size:"n1",color:I.colors.gray500},function(){switch(m){case s.Weight:return P("babyGrowth.weight");case s.Height:return P("babyGrowth.height");case s.Head:return P("babyGrowth.headCircumference");case s.BMI:return"BMI";default:return""}}()),e.createElement(h,{size:"n1",color:I.colors.gray500},M===c.Indonesia?"Z-Score":P("babyGrowth.percentiles"))),Array.isArray(q)&&q.length>0&&e.createElement(N,{height:388,className:"chart"},e.createElement(A,{data:q,margin:{top:16,right:28,bottom:8,left:0}},e.createElement(R,{stroke:I.colors.blue200}),e.createElement(W,{trigger:"click",content:function(n){return e.createElement(We,x({active:!j&&F&&void 0!==f&&void 0!==C,locale:M},n))}}),e.createElement(D,{type:"number",scale:"linear",ticks:Z.current,dataKey:"name",tickLine:!1,tickMargin:12,tick:{fontFamily:"Inter",fontWeight:400,fontSize:12,color:I.colors.gray800},domain:["dataMin","dataMax"],interval:"preserveStartEnd",tickCount:1,tickFormatter:function(e){return String(Math.round(100*(e+Number.EPSILON))/100)},allowDecimals:!0}),e.createElement(Y,{domain:[function(e){return Math.min(e,C||e)},function(e){return Math.max(e,C||e)}],tickLine:!1,tickMargin:7,width:45,tickCount:10,allowDecimals:!0,tickFormatter:function(e){return String(Math.round(100*(e+Number.EPSILON))/100)},tick:{fontFamily:"Inter",fontWeight:400,fontSize:12,color:I.colors.gray800}}),(M===c.Indonesia?mn:pn).map((function(n,t){return e.createElement(e.Fragment,null,"history"===n.name?e.createElement(T,{key:t,connectNulls:!0,type:"linear",dataKey:"history",stroke:n.color,dot:{stroke:n.color,fill:n.color,strokeWidth:1,r:4,strokeDasharray:""},activeDot:!0,color:n.color}):e.createElement(T,{key:n.name,type:"linear",dataKey:n.name,stroke:n.color,dot:!1,activeDot:!1,connectNulls:!0,label:e.createElement(fn,{last:(null==q?void 0:q.length)?q.length-1:0,name:(null==n?void 0:n.label)||n.name}),tooltipType:"none"}))})),void 0!==f&&void 0!==C&&e.createElement(O,{onClick:function(){return K(!0)},x:0===f?1:f,y:C,r:4,shape:e.createElement(un,{ref:J,r:4}),fill:I.colors.primaryBase,stroke:I.colors.primaryBase}))),e.createElement("div",{className:"custom-chart-label"},e.createElement("i",null),e.createElement(h,{size:"n1",color:I.colors.gray500},u)))};export{hn as BabyGrowthChart,$e as BabyGrowthChartPercentile,en as BabyGrowthChartZScore,Xe as BabyGrowthChooseProfileDrawer,X as BabyGrowthGender,ne as BabyGrowthLegend,Ye as BabyGrowthProfileRadio,qe as BabyGrowthRecord,_e as BabyGrowthSwitch,q as BabyGrowthSwitchChart,We as BabyGrowthTooltip,Ue as ChildCard,pn as LABELS_PERCENTILE,mn as LABELS_Z_SCORE,rn as divideChartData,tn as generateGrowthChart,cn as generateXAxisTicks,nn as getAxisYDomain,sn as paintAxis,ln as refineDataWithDot,on as refineDataWithLine,an as transformDataToChart};
|
package/build/esm/care.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{B as BookingSearchBar,t as CareTypes}from"./types-
|
|
1
|
+
export{B as BookingSearchBar,t as CareTypes}from"./types-e5491c06.js";export{c as CareConstants}from"./constants-a0a981fa.js";import"./tslib.es6-5532bd7b.js";import"react";import"./index-58ae0705.js";import"./cookieHelper-0e8521c3.js";import"./useTranslations-3e47eecc.js";import"./en-PH-71017453.js";import"./translationsContext-d658f58d.js";import"string-format";import"lodash/debounce";import"./index.styled-faeac279.js";import"styled-components";import"./theme-a50a1aa5.js";import"./screenSizeContext-12f741e1.js";import"vanilla-lazyload";import"lodash";import"./gAssets.js";import"./index-642d36c8.js";import"react-range";import"date-fns";import"./Locale-69030fff.js";import"@mantine/core";import"react-loading-skeleton";import"react-id-generator";import"lodash/shuffle";import"./useOutsideClick-6004483a.js";
|
package/build/esm/components.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{A as Alert,
|
|
1
|
+
export{A as Alert,t as AmpNextPage,e as ArticleCard,B as Badge,a as BorderHeading,f as Breadcrumbs,j as Carousel,C as Checkbox,g as CheckboxGroup,p as CookieAcceptConfirm,u as DateRangePicker,D as DueDateCardEmbed,F as FileDropdown,o as FloatButtonGroup,x as Footer,G as Grid,I as IconText,O as OvulationCardEmbed,s as PWGCardEmbed,P as Pagination,d as Progress,h as ProgressBar,R as RateStars,q as SeoHead,S as Shadow,v as ShareContainer,w as ShareDrawer,i as SideMenu,k as StatisticCard,n as SurveyThankyouCard,l as Table,m as Tabs,T as Tag,b as Toggle,r as ToolsBannerCard,U as UnderlinedLink,c as Uploader}from"./index-482348e2.js";export{A as Avatar,D as Dropdown,P as Popup}from"./index-9bacff82.js";export{B as Button}from"./index-93d22d63.js";export{D as Divider}from"./index-f8e043bf.js";export{C as CategoryCard,D as DatePicker,c as DoctorInfo,F as Flag,L as LanguageSwitcher,M as MobileBottomNavigation,e as MobileBottomNavigationIcon,j as NavigationLogoutPopup,k as NavigationProfileButton,N as NavigationV2,P as ProfilePopup,R as Radio,a as RadioGroup,b as ScrollList,S as Slider,d as SurveyQuestionCard,U as UserProfileNavigation,h as UserProfileNavigationHeader,i as UserProfileNavigationStats,g as getNavMenuContent,f as getNavMenuContentWithCache}from"./index-c5875449.js";export{H as Heading}from"./index-7a537be1.js";export{I as Input}from"./index-642d36c8.js";export{C as Container,L as Label,a as Logo,M as Menu,P as PureInput,T as Text,b as TextArea,c as TextDivider}from"./index.styled-faeac279.js";export{I as Icon,M as Modal,N as NewBabyProfileRadio,R as RadioImageGroup}from"./index-f3a0141e.js";export{D as Drawer}from"./index.styled-d8a819ea.js";import"react";import"./tslib.es6-5532bd7b.js";import"./screenSizeContext-12f741e1.js";import"styled-components";import"vanilla-lazyload";import"lodash";import"./theme-a50a1aa5.js";import"react-id-generator";import"keen-slider/react";import"./gAssets.js";import"./index-58ae0705.js";import"react-range";import"date-fns";import"./Locale-69030fff.js";import"@mantine/core";import"./translationsContext-d658f58d.js";import"string-format";import"lodash/debounce";import"./useTranslations-3e47eecc.js";import"./en-PH-71017453.js";import"./useHealthToolCache-e4e2778a.js";import"./getDynamicHealthTool-f43c2db2.js";import"./core-d22826b4.js";import"./useOutsideClick-6004483a.js";import"date-fns/locale/en-US";import"date-fns/locale/id";import"date-fns/locale/vi";import"date-fns/locale/zh-TW";import"./getSocialList-2f760404.js";import"date-fns/locale/hi";import"date-fns/locale/ms";import"date-fns/locale/th";import"./cookieHelper-0e8521c3.js";import"slugify";import"react-day-picker/DayPickerInput";import"react-dom";import"smoothscroll-polyfill";import"./types-f57c9932.js";import"./constants-a0a981fa.js";import"./useScrollbarSize-99db33e1.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e={"actionPopover.delete":"Delete","actionPopover.deleteNotification":"Delete this notification","actionPopover.edit":"Edit","actionPopover.inviteShareCommunity":"Invite / Share community","actionPopover.joinCommunity":"Join Community","actionPopover.leaveCommunit":"Leave Community","actionPopover.leaveCommunity":"Leave Community","actionPopover.leaveCommunity.accept":"Leave","actionPopover.leaveCommunity.cancel":"Cancel","actionPopover.leaveCommunity.description":"Are you sure you want to leave this community?","actionPopover.leaveCommunity.title":"Leave Community","actionPopover.report":"Report","actionPopover.turnOffNotification":"Turn off notification","actionPopover.turnOffNotificationAbout":"Turn off notification about {label}","actionPopover.turnOnNotification":"Turn on notification","admin.comments":"Comments","admin.communities":"Communities","admin.community":"Community","article.shareOn":"Share on","articlePage.articleReviewerBy":"Medically reviewed by {name}","babyGrowth.alert.bmi":"There is no BMI measurements to display for {name} in WHO data range of 0 to 5 years. Use <a>BMI calculator tool</a> above 5 year old","babyGrowth.alert.head":"There is no head circumference measurements to display for {name} in WHO data range of 0 to 5 years","babyGrowth.alert.weight":"There is no Weight measurements to display for {name} in WHO data range of 0 to 10 years ","babyGrowth.drawer.addMeasurement":"Add a Measurement","babyGrowth.drawer.createBaby":"Create a baby profile","babyGrowth.drawer.switchProfile":"Switch profile","babyGrowth.head":"Head","babyGrowth.headCircumference":"Head Circumference","babyGrowth.height":"Height","babyGrowth.percentiles":"Percentiles","babyGrowth.weight":"Weight","babyVaccineTool.selectGender":"What is your child's gender?","bmi.heightInput.desc":"(cm)","booking.searchBar.currentLocation":"Current location","booking.searchBar.grantLocation":"Please grant location permission to search by current location","booking.searchBar.locationPlaceholder":"Enter city","booking.searchBar.noResults":"No Results","booking.searchBar.placeholder.doctor":"Search by doctor name","booking.searchBar.placeholder.hospital":"Search by hospital name","booking.searchBar.placeholder.service":"Search by service","booking.searchBar.placeholder.specialty":"Search by specialty","booking.searchBar.searchButton":"Search","booking.searchBar.searchInput.placeholder":"Search by Specialty or Clinic...","booking.searchBar.useCurrentLocation":"Use my current location","booking.searchPopup.doctors":"Doctors","booking.searchPopup.hospitals":"Hospitals & Clinics","booking.searchPopup.searchIn.doctors":'Search "{name}" in Doctors',"booking.searchPopup.searchIn.hospitals":'Search "{name}" in Hospitals',"booking.searchPopup.searchIn.services":'See "{name}" in Services',"booking.searchPopup.searchIn.specialties":'Search "{name}" in Specialties',"booking.searchPopup.seeAll":"See All","booking.searchPopup.seeLessSpecialties":"See less specialties","booking.searchPopup.seeMoreSpecialties":"See more specialties","booking.searchPopup.services":"Services","booking.searchPopup.specialties":"Specialties","bottomBar.share":"Share","cardAuthor.admin":"Admin","cardAuthor.ambassador":"Ambassador","cardAuthor.expert":"Expert","cardAuthor.guide":"Guide","cardAuthor.influencer":"Influencer","cardAuthor.localAdmin":"Local Admin","cardAuthor.moderator":"Moderator","cardAuthor.sponsor":"Sponsor","cardReactions.comment":"Comment","cardReactions.repliesCount":"{count} replies","cardReactions.reply":"Reply","careBooking.bookAnAppointment":"Book an appoinment",character:"Characters","childCard.age.months":"{month} months","childCard.age.oneMonth":"1 month","childCard.age.oneWeek":"1 week","childCard.age.oneYear":"1 year","childCard.age.oneYearMonth":"1 year {month} months","childCard.age.oneYearOneMonth":"1 year 1 month","childCard.age.week":"{weeks} weeks","childCard.age.yearMonth":"{year} years {month} months","childCard.age.yearNoMonth":"{year} years","childCard.age.yearOneMonth":"{year} years 1 month","childCard.boy":"Boy","childCard.girl":"Girl","childCard.menu.add":"Add a child profile","childCard.menu.edit":"Edit {name}’s profile","childCard.menu.remove":"Remove {name}’s profile","childCard.menu.switch":"Switch child's profile","childCard.noName":"Child's Name","choicePopover.ambassadorPosts":"Ambassador posts","choicePopover.expertPosts":"Expert posts","choicePopover.lastestPost":"Latest posts","choicePopover.latest":"Latest","choicePopover.newest":"Newest","choicePopover.oldest":"Oldest","choicePopover.popular":"Popular","choicePopover.popularPost":"Popular posts","choicePopover.sort":"Sort","chooseBaby.button":"View your Child Growth Chart","chooseBaby.new":"or Add new child profile","chooseBaby.placeholder":"Please give child's name","chooseBaby.title":"Choose Child's Profile","comment.count":"{count} comments","comment.seeMoreComments":"See {count} more comments","comment.seeMoreReplies":"See {count} more replies","commentPopup.warning.newPost":"Your question will be public","community.choose":"Choose a community","community.notification.joined":"You joined {name} community","community.notification.left":"You left {name} community",copied:"Copied",copy:"Copy","createPost.popup.description":"Description","createPost.popup.primary":"Tap to select/ unselect topics","createPost.popup.submit":"Post","createPost.popup.success":"New Post Created","createPost.popup.warning":"Select a community to see your following topics","createPost.popup.warningImage":"Maximum 20 images allow, please remove some item below","createPost.popup.wordCount":"{count}/{max} words","createPost.title":"Title","createPost.urlText":"Text","dueDatePage.calculationMethod":"Calculation Method","dueDatePage.conceptionDate":"Conception Date","dueDatePage.daysText":"{number} days","dueDatePage.ivf":"IVF","dueDatePage.ivf.transferDate":"IVF Transfer Date","dueDatePage.ivf.transferDateRadio":"{number}-Day Transfer","dueDatePage.lastPeriod":"Last Period","dueDatePage.lastPeriod.calculate":"Calculate","dueDatePage.lastPeriod.lastPeriodLabel":"The first day of your last period","dueDatePage.lastPeriod.periodLengthLabel":"Cycle Length","expert.content.description":"Expert's Profile","expert.content.experiences":"Experiences","footer.signUp":"Sign Up Now","gender.female":"Female","gender.male":"Male","healthTools.dueDateCalculator":"Due Date Calculator","healthTools.ovulationCalculator":"Ovulation Calculator","home.menu.category.view":"View {category}","home.navigator.menu.care.noDatas.cta":"Book a Doctor","home.navigator.menu.care.noDatas.description":"HelloCare helps patients to find the right medical doctors and service treatment for their needs, in their vicinity.","home.navigator.menu.care.noDatas.title":"Make an appointment with doctors easily","home.navigator.menu.category.noDatas.cta":"Discover now","home.navigator.menu.category.noDatas.description":"Hello Doctor wants to be your most trusted ally to make more informed decisions and to live healthier and happier lives.","home.navigator.menu.category.noDatas.title":"Welcome to Hello Doctor","home.navigator.menu.healthTools.noDatas.cta":"Discover more","home.navigator.menu.healthTools.noDatas.description":"These easy-to-use health assessment tools will help you gauge vital parts of your overall health and wellness.","home.navigator.menu.healthTools.noDatas.title":"Health Tools","home.navigator.menu.spotlightHospitals":"Popular Hospitals","home.navigator.menu.spotlightTools":"Favorite Tools","home.navigator.menu.spotlights":"All In Focus","home.navigator.menu.spotlights.seeAll":"See All In Focus","home.navigator.menu.together.noPosts.cta":"Join Our Communities","home.navigator.menu.together.noPosts.description":"Community is a safe space where you can connect with other members, comment on topics you care about, and receive trusted advice from medical experts on the health issues that matter most.","home.navigator.menu.together.noPosts.title":"Welcome to Community","home.navigator.menu.trendingPosts":"Highlight Posts","home.navigator.menu.trendingPosts.seeMore":"See more","home.navigator.menuItem.allCategories":"See All Categories","home.navigator.menuItem.allCommunities":"See all communities","home.navigator.menuItem.allCommunitiesheadingTitle":"Find your communities","home.navigator.menuItem.allHealthTools":"See All Health Tools","home.navigator.menuItem.allSpecialties":"All specialties","home.navigator.menuItem.allSpotlight":"See All In Focus","home.navigator.menuItem.discover":"Discover","home.navigator.menuItem.healthCategories":"Health Categories","home.navigator.menuItem.healthTools":"Health Tools","home.navigator.menuItem.healthToolsList":"Health Tools","home.navigator.menuItem.helloCare":"Book a Doctor","home.navigator.menuItem.helloEcom":"Pharmacy","home.navigator.menuItem.helloTogether":"Communities","home.navigator.menuItem.language":"Language","home.navigator.menuItem.specialties":"Specialties","home.navigator.menuItem.spotlights":"All In Focus","home.search":"Search {site}","home.seeAll":"See All","home.seeAllCategories":"See All Topics","home.seeExpert":"View Full Expert's Profile","home.seeHospital":"View Full Hospital's Profile","home.seeMore":"See More","home.seeMoreExperts":"See More Experts","hospital.content.description":"Hospital Details","inputComment.replyTo":"Reply to {name}",insert:"Insert","label.latestPost":"Latest Post","label.pinnedPost":"Pinned Post",loading:"loading","login.booking":"Booking with doctor","logout.popup.ask.mb":"Logout of Marry Baby","logout.popup.ask1":"Log Out of Hello Doctor?","logout.popup.ask2":"Are you sure you want to log out?","logout.popup.button.cancel":"Cancel","logout.popup.button.logout":"Log Out","menu.care.searchBySpecialties":"Search by specialty","morePopover.report":"Report","morePopover.report.description":"Help us understand what’s happening with this post. How would you describe it?","morePopover.report.falseNews":"False news","morePopover.report.offensive":"Offensive","morePopover.report.other":"Other","morePopover.report.prohibited":"Prohibited content","morePopover.report.scam":"Misleading or scam","morePopover.report.sex":"Sexually inappropriate","morePopover.report.spam":"Spam","morePopover.report.title":"Report this post","morePopover.report.violence":"Violence","morePopover.reportSubmit.description":"We won’t tell them who reported it. Please check these details:","morePopover.reportSubmit.title":"Submit report?","morePopover.savePost":"Save post","morePopover.share":"Share","morePopover.shareOn":"Share on","morePopover.turnOffNotifications":"Turn off notifications","morePopover.turnOnNotifications":"Turn on notifications","morePopover.unsavePost":"Remove Saved post","navigation.loginJoin":"Log in","navigation.search.input.placeholder":"Search","notification.comment.blocked.message":"This comment contains banned words or phrases and won’t be published","notification.comment.blocked.title":"Blocked comment","notification.comment.premod":"Your comment needs to be reviewed.","notification.comment.rejected":"Your comment contain words that are not allowed.","notification.comment.reportFailed":"Failed!","notification.comment.reportSuccess":"You have successfully reported a comment.","notification.comment.somethingWrong":"Something went wrong.","notification.comment.suspect.message":"This comment contains suspected words or phrases and won’t be published","notification.comment.suspect.title":"Pending comment","notification.comment.systemWithheld":"Your comment needs to be reviewed.","notification.failure":"Something wrong. Try again later!","notification.limitUrlDomain":"Cannot post link outside of Hello Health Group.","notification.post.blocked.message":"This post contains banned words or phrases and won’t be published","notification.post.blocked.title":"Blocked post","notification.post.delete":"Post Deleted","notification.post.suspect.message":"This post contains suspected words or phrases, and is placed for moderator review","notification.post.suspect.title":"Pending post","notification.success":"Success","notification.suspend.message":"Your account has been suspended for violating our terms of service","notification.urlWrongFormat":"Incorrect URL format",orCopyLink:"Or copy link","ovulationPage.avoidPregnancy":"Avoid pregnancy","ovulationPage.conceive":"Trying to conceive","ovulationPage.cycleLength":"Cycle Length","ovulationPage.dayUnit":"(days)","ovulationPage.objectives":"Objectives","ovulationPage.periodDuration":"Period Duration","ovulationPage.trackPeriod":"Track period cycle","placeholder.enterTitleHere":"Enter title here","placeholder.enterUrlHere":"Enter URL here","placeholder.enterUrlTextHere":"Enter URL Text here","placeholder.newCmt":"Write a comment","placeholder.newPost":"Start a new post","popup.allTopics":"All Topics","popup.createPost.confirmCloseDescription":"If you discard now, you’ll lose this post","popup.createPost.confirmCloseTitle":"Are you sure?","popup.deleteComment.description":"Delete your comment cannot be undone","popup.deleteComment.title":"Delete comment?","popup.deletePost.accept":"Delete","popup.deletePost.cancel":"Cancel","popup.deletePost.description":"Delete your post cannot be undone","popup.deletePost.title":"Delete post?","popup.discardPost":"Discard post","popup.discardPostEdit":"Discard changes","popup.editPost":"Edit post","popup.keepEditing":"Keep editing","popup.startANewPost":"Start a new post","post.commentCount":"{count} comments","post.likesCount":"{count} likes","post.seeMore":"See More","post.shareCount":"{count} shares","pregnancyWeightGain.havingTwins":"Are you having twins?","pregnancyWeightGain.heading":"Pregnancy Weight Gain","pregnancyWeightGain.heightInput":"What is your height?","pregnancyWeightGain.weekInput":"How many weeks pregnant are you?","pregnancyWeightGain.weightBeforeInput":"What was your weight before pregnancy?","pregnancyWeightGain.weightInput":"How much do you weigh now?","pregnancyWeightGain.weightInput.desc":" (kg)","previewPhotos.title":"{name}'s Post","sensitiveMask.blur":"Blur","sensitiveMask.contentWarningDescription":"Warning: The following picture may be disturbing to some viewers. Viewer discretion is advised","sensitiveMask.contentWarningMessage":"These images may be disturbing...","sensitiveMask.unblur":"Show","share.copyLink":"Or copy link","share.letsJoinCommunity":"Let's join {name} community!","share.letsJoinTopic":"Let's join {name} topic!","share.linkCopied":"Link Copied","share.linkShared":"Link Shared Successfully","share.title":"Share","shareContainer.title":"Share the results",submit:"Submit","switchBtn.no":"No","switchBtn.yes":"Yes","tab.about":"About","tab.discussion":"Discussions","tab.topic":"Topics","tool.askChecking":"I’m checking for other","tool.selectPerson":"Are you checking for?","tool.selectPerson.other":"Other","tool.selectPerson.yourSelf":"Your self","toolPage.toolReviewer":"Medically Reviewed by {expert_name} on {date}","tools.heading.on":"on","userProfile.nav.card.eCom":"E-commerce","userProfile.nav.card.myBooking":"My Booking","userProfile.nav.card.myCommunity":"My Community","userProfile.nav.card.myFamily":"Family Profiles","userProfile.nav.card.myHealth":"My Health","userProfile.nav.card.mySaved":"Saved","userProfile.nav.header.count.comments":"Comments","userProfile.nav.header.count.posts":"Posts","userProfile.nav.header.count.tools":"Tools","userProfile.nav.header.points":"Points","userProfile.nav.header.viewProfile":"View My Profile","userProfile.nav.menu.accountSettings":"Account Settings","userProfile.nav.menu.disableAccount":"Disable Account","userProfile.nav.menu.help":"Help","userProfile.nav.menu.logout":"Log out","userProfile.nav.menu.password":"Password","userProfile.userRank.ambassador":"Ambassador","userProfile.userRank.doctor":"Doctor","userProfile.userRank.expert":"Expert","userProfile.userRank.influencer":"Influencer","userProfile.userRank.member":"Member"};export{e as d};
|
package/build/esm/hooks.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{u as useTranslations}from"./useTranslations-
|
|
1
|
+
export{u as useTranslations}from"./useTranslations-3e47eecc.js";export{M as MEASURE_ELEMENT_CLASS,u as useScrollbarSize}from"./useScrollbarSize-99db33e1.js";export{u as useFbDataLayer}from"./useFbDataLayer-5016df43.js";export{u as useHealthToolsCache}from"./useHealthToolCache-e4e2778a.js";import"react";import"./en-PH-71017453.js";import"./translationsContext-d658f58d.js";import"string-format";import"lodash/debounce";import"./tslib.es6-5532bd7b.js";import"./cookieHelper-0e8521c3.js";import"./getDynamicHealthTool-f43c2db2.js";import"./core-d22826b4.js";import"./index-58ae0705.js";
|
package/build/esm/i18n.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{T as TranslationsProvider,t as translationsMap}from"./translationsProvider-
|
|
1
|
+
export{T as TranslationsProvider,t as translationsMap}from"./translationsProvider-cd9f6f24.js";export{T as TranslationsContext}from"./translationsContext-d658f58d.js";export{d as defaultTranslations}from"./en-PH-71017453.js";import"./tslib.es6-5532bd7b.js";import"react";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import e,{useState as t,useRef as n,useMemo as a,useEffect as l,Fragment as o,useCallback as r}from"react";import{S as i,d as c,T as s,e as m,f as d,g as u,h as p,i as g,j as v,k as h,l as f,m as E,n as y,o as b,p as w,q as x,r as k,s as C,t as N,u as L,v as z,w as _,x as M,y as B,z as F,A as D,B as S,D as A,C as T,P as j,L as I,a as H}from"./index.styled-faeac279.js";import{_ as P,a as W,b as O,c as V,d as G,e as U}from"./tslib.es6-5532bd7b.js";import{i as Z,B as R,M as q,l as K}from"./screenSizeContext-12f741e1.js";import{B as X}from"./index-93d22d63.js";import{t as J}from"./theme-a50a1aa5.js";import{H as Y}from"./index-7a537be1.js";import{l as Q,m as $,n as ee,o as te,p as ne,q as ae,r as le,s as oe,t as re,u as ie,v as ce,w as se,x as me,y as de,z as ue,A as pe,B as ge,E as ve,G as he,H as fe,I as Ee,J as ye,K as be,O as we,Q as xe,T as ke,V as Ce,W as Ne,X as Le,Y as ze,Z as _e,_ as Me,$ as Be,a0 as Fe,a1 as De,a2 as Se,a3 as Ae,a4 as Te,a5 as je,a6 as Ie,a7 as He,a8 as Pe,a9 as We,aa as Oe,ab as Ve,ac as Ge,ad as Ue,ae as Ze,af as Re,ag as qe,ah as Ke,ai as Xe,aj as Je,ak as Ye,al as Qe,am as $e,an as et,ao as tt,ap as nt,aq as at,ar as lt,as as ot,at as rt,au as it,av as ct,aw as st,ax as mt,ay as dt,az as ut,aA as pt,aB as gt,aC as vt,aD as ht,aE as ft,aF as Et,aG as yt,aH as bt,aI as wt,aJ as xt,aK as kt,aL as Ct,aM as Nt,aN as Lt,aO as zt,aP as _t,aQ as Mt,aR as Bt,aS as Ft,aT as Dt,aU as St,aV as At,aW as Tt,aX as jt,aY as It,aZ as Ht,a_ as Pt,a$ as Wt,b0 as Ot,b1 as Vt}from"./index-c5875449.js";import{useId as Gt}from"react-id-generator";import{D as Ut,h as Zt,i as Rt,j as qt,k as Kt,l as Xt,m as Jt,H as Yt}from"./index-9bacff82.js";import{throttle as Qt}from"lodash";import{useKeenSlider as $t}from"keen-slider/react";import{CommonGAssets as en}from"./gAssets.js";import"react-range";import{isBefore as tn,startOfMonth as nn,addMonths as an,format as ln,subMonths as on,getDaysInMonth as rn,isToday as cn,isSameDay as sn,isWithinInterval as mn,isAfter as dn,isPast as un}from"date-fns";import pn from"styled-components";import{d as gn,L as vn,F as hn,a as fn}from"./index-58ae0705.js";import"./Locale-69030fff.js";import{Container as En,Checkbox as yn}from"@mantine/core";import"./translationsContext-d658f58d.js";import"string-format";import"lodash/debounce";import{u as bn}from"./useTranslations-3e47eecc.js";import{u as wn}from"./useHealthToolCache-e4e2778a.js";import{u as xn}from"./useOutsideClick-6004483a.js";import kn from"date-fns/locale/en-US";import Cn from"date-fns/locale/id";import Nn from"date-fns/locale/vi";import Ln from"date-fns/locale/zh-TW";import{g as zn}from"./getSocialList-2f760404.js";import{I as _n}from"./index-642d36c8.js";var Mn=function(t){var n=t.style,a=t.onClose,l=t.text,o=t.type,r=t.contentIcon,d=t.closeIcon,u=t.className,p=t.description;return e.createElement(i,{style:n,"data-alert-type":o,className:u},e.createElement(c,null,e.createElement("div",{className:"icon-title"},r,e.createElement(s,{type:"bold",size:"label1"},l)),e.createElement(s,{type:"regular",size:"p3"},p)),e.createElement(m,{onClick:a},d))},Bn=function(t){var n=t.amount,a=t.type,l=t.size,o=void 0===l?"medium":l,r=t.color,i=void 0===r?"primary":r,c=t.icon,s=t.className;return e.createElement(d,{"data-notification-type":a,"data-notification-size":o,"data-notification-color":i,"data-has-icon":!!c||void 0,notificationType:a,notificationSize:o,notificationColor:i,hasIcon:!!c,className:s},e.createElement("div",null,n&&e.createElement("span",null,n)," ",c&&e.createElement("div",null,c)))},Fn=function(t){var n=t.style,a=t.children,l=t.className,o=t.size,r=void 0===o?"lg":o,i=t.type,c=void 0===i?"bold":i,s=t.upperCase,m=t.as,d=void 0===m?"h4":m,p=t.color;return e.createElement(u,{style:P({color:p},n),className:l,"data-size":r,"data-type":c,"data-uppercase":s,as:d},a)},Dn=function(a){var l=a.className,o=a.value,r=a.options,i=a.onUploadSelected,c=a.id,s=a.placeholderIcon,m=a.placeholder,d=a.style,u=t(!1),E=u[0],y=u[1],b=function(){return y(!E)},w=n(r.map((function(t){return"upload"===t.type&&e.createElement("input",{id:"uploader-dropdown-input-"+c+"-"+t.value,key:"uploader-dropdown-input-"+c+"-"+t.value,accept:t.fileAcceptedType,multiple:t.multiple,type:"file",style:{display:"none"},onChange:function(e){console.log("change"),i(e.target.files)}})}))),x=e.createElement("svg",{id:"prefix__Layer_1","data-name":"Layer 1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 12.17 14.83"},e.createElement("defs",null,e.createElement("clipPath",{id:"prefix__clip-path",transform:"translate(-1.92 -1.54)"},e.createElement("path",{fill:"none",d:"M0 .96h16v16H0z"})),e.createElement("style",null,".prefix__cls-3{fill:none;stroke:#595959;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.5px}")),e.createElement("title",null,"File"),e.createElement("g",{clipPath:"url(#prefix__clip-path)"},e.createElement("path",{className:"prefix__cls-3",d:"M8.67 2.29H4a1.33 1.33 0 00-1.33 1.33v10.67A1.33 1.33 0 004 15.62h8a1.33 1.33 0 001.33-1.33V7z",transform:"translate(-1.92 -1.54)"}),e.createElement("path",{className:"prefix__cls-3",d:"M8.67 2.29V7h4.66",transform:"translate(-1.92 -1.54)"}))),k=e.createElement("svg",{id:"prefix__Layer_1","data-name":"Layer 1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 13.5 13.5"},e.createElement("defs",null,e.createElement("style",null,".prefix__cls-1{fill:none;stroke:#595959;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.5px}")),e.createElement("title",null,"download"),e.createElement("path",{className:"prefix__cls-1",d:"M14 11v2.66A1.33 1.33 0 0112.67 15H3.33A1.33 1.33 0 012 13.62V11M4.67 7.62L8 11l3.33-3.34M8 11V3",transform:"translate(-1.25 -2.21)"})),C=e.createElement("svg",{id:"prefix__Layer_1","data-name":"Layer 1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 13.5 13.5"},e.createElement("defs",null,e.createElement("style",null,".prefix__cls-1{fill:none;stroke:#595959;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.5px}")),e.createElement("title",null,"upload"),e.createElement("path",{className:"prefix__cls-1",d:"M14 11v2.66A1.33 1.33 0 0112.67 15H3.33A1.33 1.33 0 012 13.62V11M11.33 6.29L8 3 4.67 6.29M8 3v8",transform:"translate(-1.25 -2.21)"}));return e.createElement(p,{className:l,"data-dropdown-open":!!E,id:c,"data-has-icons":!0,style:d,onBlur:function(){return y(!1)},tabIndex:0},e.createElement(g,{onClick:b},s||x," ",e.createElement("span",null,o&&o.value?o.label:m)),E&&e.createElement(v,{onClick:b,"data-has-icons":!0},r.map((function(t){return e.createElement(h,{key:"".concat(c,"-").concat(t.value),"data-selected":o&&o.value===t.value||void 0,onClick:function(){return"upload"===t.type?function(e){var t;null===(t=document.querySelector(e))||void 0===t||t.click()}("#uploader-dropdown-input-"+c+"-"+t.value):void((e=t.url)&&window.open(e,"_blank"));var e}},e.createElement(f,null,t.icon||"download"===t.type?k:C),t.label)}))),e.createElement(e.Fragment,null,w.current))},Sn=function(t){var n=t.className,a=t.columns,l=t.columnsDesktop,o=t.gridTemplateColumns,r=t.gridTemplateColumnsDesktop,i=t.gap,c=t.children,s=t.justifyChildren,m=t.style,d=t.alignItems;return e.createElement(E,{className:n,style:m,theme:{columns:a,columnsDesktop:l,gap:i,justifyChildren:s,gridTemplateColumns:o,gridTemplateColumnsDesktop:r,alignItems:d}},c)},An=function(n){var a=n.pagesAmount,r=n.activePage,i=n.handlePageChange,c=n.handleClick,s=n.href,m=n.queryPageName,d=void 0===m?"page":m,u=W([],Array(a),!0).map((function(e,t){return t+1})),p=t(r<=4?u.slice(0,5):r>=u.length-3?u.slice(u.length-5,u.length):u.slice(r-2,r+1)),g=p[0],v=p[1];return l((function(){r<=4?v(u.slice(0,5)):r>=u.length-3?v(u.slice(u.length-5,u.length)):v(u.slice(r-2,r+1))}),[r]),e.createElement(o,null,r>4&&e.createElement(o,null,e.createElement(w,{onClick:function(){return i(1)}},s?e.createElement("a",{href:s,onClick:c},1):1),e.createElement(w,null,"...")),g.map((function(t){return e.createElement(w,{key:"".concat("pagination","+").concat(t),"data-page-active":t===r||void 0,onClick:function(){return i(t)}},s?e.createElement("a",{href:Z(s,t,d),onClick:c},t):t)})),r<u.length-3&&e.createElement(o,null,e.createElement(w,null,"..."),e.createElement(w,{onClick:function(){return i(u.length)}},s?e.createElement("a",{href:Z(s,u.length,d),onClick:c},u.length):u.length)))},Tn=function(n){var o=n.className,r=n.pagesAmount,i=n.currentPage,c=n.onChange,s=n.onClick,m=n.style,d=n.href,u=n.queryPageName,p=void 0===u?"page":u,g=W([],Array(r),!0).map((function(e,t){return t+1})),v=t(i),h=v[0],f=v[1],E=a((function(){return d&&d.endsWith("&page=")?d.replace("&page=",""):d}),[d]),x=r-1,k=function(e){e<=r&&e>0&&(f(e),c(e))},C=function(e){s&&s(e)};return l((function(){f(i)}),[i]),e.createElement(y,{className:o,style:m},e.createElement(b,{className:"prev-page",onClick:function(){return k(h-1)},"data-last-page":1===h||void 0},E?e.createElement("a",{href:Z(E,h,p),onClick:C},e.createElement("svg",{width:"7",height:"10",viewBox:"0 0 7 10",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{d:"M5.5 9L1.5 5L5.5 1",stroke:"#2D87F3",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}))):e.createElement("svg",{width:"7",height:"10",viewBox:"0 0 7 10",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{d:"M5.5 9L1.5 5L5.5 1",stroke:"#2D87F3",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}))),g.length>8?e.createElement(An,{pagesAmount:r,activePage:h,handlePageChange:k,handleClick:C,href:E,queryPageName:p}):g.map((function(t){return e.createElement(w,{key:"".concat("pagination","+").concat(t),"data-page-active":t===h||void 0,onClick:function(){return k(t)}},E?e.createElement("a",{href:Z(E,t,p),onClick:C},t):t)})),e.createElement(b,{className:"next-page",onClick:function(){return k(h+1)},"data-last-page":h===x+1||void 0},E?e.createElement("a",{href:Z(E,h,p),onClick:C},e.createElement("svg",{width:"7",height:"10",viewBox:"0 0 7 10",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{d:"M1.5 9L5.5 5L1.5 1",stroke:"#2D87F3",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}))):e.createElement("svg",{width:"7",height:"10",viewBox:"0 0 7 10",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{d:"M1.5 9L5.5 5L1.5 1",stroke:"#2D87F3",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}))))},jn=function(t){var n=t.size,a=t.children,l=t.style,o=t.className;return e.createElement(x,{style:l,className:o,"data-shadow-size":n},a)},In=function(t){var n=t.type,a=t.children,l=t.style,o=t.isInline,r=t.isSquared,i=void 0!==r&&r,c=t.className,m=t.isLight,d=t.hasMorePadding,u=t.isLink,p=t.isSelected,g=t.textProps,v=void 0===g?{size:"sm"}:g,h=v.color?{"--text-props-color":v.color}:{};return e.createElement(k,{"data-is-squared":i||void 0,"data-tag-type":n,"data-is-light":m||void 0,"data-has-more-padding":d||void 0,"data-is-inline":o||void 0,style:P(P({},l),h),className:c,"data-is-selected":p||void 0,"data-is-link":u||void 0,tagType:n,isInline:o,tagHasMorePadding:d,tagIsLight:m,tagIsSquared:i,tagIsALink:u},e.createElement(s,P({},v),a))},Hn=function(t){var n=t.className,a=t.id,l=t.onChange,o=t.checked,r=t.style,i=t.label;return e.createElement(C,{className:n,style:r},e.createElement("input",{type:"checkbox",id:a,onChange:l,checked:o}),e.createElement("label",{htmlFor:a},e.createElement(N,null),i&&e.createElement(L,null,i)))},Pn=function(t){var n=t.size,a=t.isDisabled,l=t.className,o=t.link,r=t.style;return e.createElement(z,{className:l,"data-size":n,style:r,"data-disabled":a||void 0},o)},Wn=function(t){var n=t.type,a=t.withIcon,l=t.onFileSelected,o=t.inputId,r=t.withElement,i=t.fileAcceptType,c=t.multiple,s=t.value,m=t.className,d=function(){var e;null===(e=document.querySelector("#uploader-input-"+o))||void 0===e||e.click()};return e.createElement(_,{className:m},"badge"===n?e.createElement(M,{onClick:d,"data-is-attached-to-element":!!r},r,e.createElement(B,{"data-is-attached-to-element":!!r},a)):r?e.createElement("div",{onClick:d},r):e.createElement(X,{size:"md",color:"secondary",className:"default-button",icon:a,onClick:d},e.createElement(F,null,e.createElement("svg",{id:"prefix__Layer_1","data-name":"Layer 1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 13.5 13.5"},e.createElement("defs",null,e.createElement("style",null,".prefix__cls-1{fill:none;stroke:#000;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.5px}")),e.createElement("title",null,"upload"),e.createElement("path",{className:"prefix__cls-1",d:"M14 10v2.67A1.33 1.33 0 0112.67 14H3.33A1.33 1.33 0 012 12.67V10M11.33 5.33L8 2 4.67 5.33M8 2v8",transform:"translate(-1.25 -1.25)"})),"Upload Image")),e.createElement("input",{id:"uploader-input-"+o,accept:i,multiple:c,type:"file",style:{display:"none"},onChange:function(e){l(e.target.files)},value:s}))},On=function(t){var n=t.label,a=t.name,l=t.checked,o=t.className,r=t.isDisabled,i=t.onChange,c=t.value,s=t.isRectangle;return e.createElement(D,{className:o,"data-disabled":r||void 0,"data-is-rectangle":s||void 0,"data-label-text":n},e.createElement("input",{type:"checkbox",checked:l,name:a,onChange:function(){return i(c,!l)},disabled:r,value:c,id:"".concat(a,"-").concat(c),"data-label-text":n}),!s&&e.createElement("label",{htmlFor:"".concat(a,"-").concat(c)},n))},Vn=function(t){return e.createElement("svg",P({},t,{viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),e.createElement("path",{d:"M16.0002 23.0266L22.8935 27.1866C23.4002 27.4933 24.0268 27.04 23.8935 26.4666L22.0668 18.6266L28.1468 13.36C28.5868 12.9733 28.3602 12.24 27.7602 12.1866L19.7468 11.5066L16.6135 4.11996C16.3868 3.57329 15.6135 3.57329 15.3868 4.11996L12.2535 11.5066L4.24016 12.1866C3.65349 12.24 3.41349 12.9733 3.86682 13.36L9.94682 18.6266L8.12016 26.4666C7.98682 27.04 8.61349 27.4933 9.12016 27.1866L16.0002 23.0266Z",fill:"#D2D6DC"}))},Gn=function(t){return e.createElement("svg",P({},t,{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),e.createElement("path",{d:"M16.0002 23.0266L22.8935 27.1866C23.4002 27.4933 24.0268 27.04 23.8935 26.4666L22.0668 18.6266L28.1468 13.36C28.5868 12.9733 28.3602 12.24 27.7602 12.1866L19.7468 11.5066L16.6135 4.11996C16.3868 3.57329 15.6135 3.57329 15.3868 4.11996L12.2535 11.5066L4.24016 12.1866C3.65349 12.24 3.41349 12.9733 3.86682 13.36L9.94682 18.6266L8.12016 26.4666C7.98682 27.04 8.61349 27.4933 9.12016 27.1866L16.0002 23.0266Z",fill:"#FFC326"}))},Un=function(n){var a=t((function(){return"star-half-mask-".concat(Math.random())}))[0];return e.createElement("svg",P({},n,{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),e.createElement("path",{d:"M12.0001 17.2697L17.1701 20.3897C17.5501 20.6197 18.0201 20.2797 17.9201 19.8497L16.5501 13.9697L21.1101 10.0197C21.4401 9.72973 21.2701 9.17973 20.8201 9.13973L14.8101 8.62973L12.4601 3.08973C12.2901 2.67973 11.7101 2.67973 11.5401 3.08973L9.19006 8.62973L3.18006 9.13973C2.74006 9.17973 2.56006 9.72973 2.90006 10.0197L7.46006 13.9697L6.09006 19.8497C5.99006 20.2797 6.46006 20.6197 6.84006 20.3897L12.0001 17.2697Z",fill:"#E4E8EC"}),e.createElement("mask",{id:a,maskUnits:"userSpaceOnUse",x:"2",y:"0",width:"10",height:"24"},e.createElement("rect",{x:"2",width:"10",height:"24",fill:"#C4C4C4"})),e.createElement("g",{mask:"url(#".concat(a,")")},e.createElement("path",{d:"M11.9998 17.2697L17.1698 20.3897C17.5498 20.6197 18.0198 20.2797 17.9198 19.8497L16.5498 13.9697L21.1098 10.0197C21.4398 9.72973 21.2698 9.17973 20.8198 9.13973L14.8098 8.62973L12.4598 3.08973C12.2898 2.67973 11.7098 2.67973 11.5398 3.08973L9.18981 8.62973L3.17981 9.13973C2.73981 9.17973 2.55981 9.72973 2.89981 10.0197L7.45981 13.9697L6.08981 19.8497C5.98981 20.2797 6.45981 20.6197 6.83981 20.3897L11.9998 17.2697Z",fill:"#FFC326"})))},Zn=function(n){var a=n.gap,l=void 0===a?2:a,o=n.size,r=void 0===o?24:o,i=n.star,c=n.totalStars,s=void 0===c?5:c,m=n.onSelect,d=n.hideEmptyStars,u=n.style,p=n.className,g=Math.floor(i),v=i-g>=.5?1:0,h=t(null),f=h[0],E=h[1],y=f||g,b=f?0:v;return e.createElement(S,{"data-selectable":!!m,style:P({"--gap":l,"--star-size":r},u),className:p},Array.from({length:d?g+v:s}).map((function(t,n){var a=function(){return!!m&&E(n+1)},l=function(){return!!m&&E(null)};return n+1<=y?e.createElement(Gn,{key:n,onClick:function(){return null==m?void 0:m(n+1)},onMouseOver:a,onMouseLeave:l}):n+1===y+b?e.createElement(Un,{key:n,onClick:function(){return null==m?void 0:m(n+1)},onMouseOver:a,onMouseLeave:l}):e.createElement(Vn,{key:n,onClick:function(){return null==m?void 0:m(n+1)},onMouseOver:a,onMouseLeave:l})})))},Rn=function(t){var n=t.percent,a=t.style;return e.createElement(A,{style:P({"--progress":n},a)})},qn=function(t){var n=t.avatarImg,a=t.authorName,l=t.authorLink,o=t.uploadTime,r=t.size;return e.createElement(ee,null,e.createElement("div",{className:"author"},e.createElement("div",{className:"avatar","data-size":r},n),e.createElement("div",{className:"poster","data-is-disabled-url":!l},e.createElement(s,{size:"lg"===r?"p3":"p4"},e.createElement("a",{href:l},e.createElement("span",{className:"name"},a),"•"," "),e.createElement("span",null,o)))))},Kn=function(t){var n=t.isMobile,a=t.avatarImg,l=t.name,o=t.link,r=t.size,i=void 0===r?"lg":r,c=t.specialty;return t.handleClick,t.isBookmarked,t.dataEventCategoryForBookmark,t.dataEventActionForBookmark,t.dataEventLabelForBookmark,e.createElement(ee,null,e.createElement("div",{className:"author"},e.createElement("div",{className:"expert-avatar","data-size":i},a),e.createElement("div",{className:"expert","data-is-disabled-url":!o},n?e.createElement("a",{href:o},"lg"===i?e.createElement(e.Fragment,null,e.createElement(Y,{tag:"h6",className:"expert__name",color:J.colors.gray600},l),e.createElement(s,{color:J.colors.gray500,size:"p3",className:"specialty"},c)):e.createElement(e.Fragment,null,e.createElement(Y,{tag:"h6",className:"expert__name",color:J.colors.gray600},l))):e.createElement("a",{href:o},"lg"===i?e.createElement(e.Fragment,null,e.createElement(Y,{tag:"h6",className:"expert__name",color:J.colors.gray600},l),e.createElement(s,{color:J.colors.gray500,size:"p3",className:"specialty"},c)):e.createElement(e.Fragment,null,e.createElement(te,{color:J.colors.gray600,className:"expert__name"},l),e.createElement(s,{color:J.colors.gray500,size:"p4",className:"specialty"},c))))))},Xn=function(t){var n=t.articleLink,a=t.authorLink,l=t.authorName,o=t.avatarImg,r=t.banner,i=t.categoryLink,c=t.categoryName,m=t.className,d=t.dataEventActionForBanner,u=t.dataEventActionForBookmark,p=t.dataEventActionForCategory,g=t.dataEventActionForTitle,v=t.dataEventCategoryForBanner,h=t.dataEventCategoryForBookmark,f=t.dataEventCategoryForCategory,E=t.dataEventCategoryForTitle,y=t.dataEventLabelForBanner,b=t.dataEventLabelForBookmark,w=t.dataEventLabelForCategory,x=t.dataEventLabelForTitle,k=t.direction,C=void 0===k?"horizontal":k,N=t.hasAffiliate,L=t.isBookmark,z=void 0!==L&&L,_=t.isBookmarkDisplayed,M=void 0===_||_,B=t.isMobile,F=void 0===B||B,D=t.onBookmark,S=t.onClickCategoryName,A=t.section,T=void 0===A?"normal":A,j=t.size,I=void 0===j?"md":j,H=t.specialty,P=t.style,W=t.styleBanner,O=t.styleLabel,V=t.styleTitle,G=t.text,U=t.title,Z=t.type,R=void 0===Z?"author":Z,q=t.uploadTime,K=t.articleLinkTarget,X=function(e){e.stopPropagation(),D&&D()},J="lg"===I&&"expert"===R?"h4":"lg"===I&&"home"===T?F?"h4":"h3":"lg"===I?"h4":"h5",ee="lg"===I?"p3":"p4",te=F||"home"!==T||"lg"!==I||"author"!==R?"c2":"c1";return e.createElement(Q,{className:m,"data-size":I,style:P,"data-direction":C,"data-is-expert":"expert"===R||void 0},e.createElement("div",{className:"banner",style:W},e.createElement($,{"data-event-category":v,"data-event-action":d,"data-event-label":y,href:n||"#",target:K},r),N&&e.createElement("div",{className:"shoppable"},e.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("rect",{width:"24",height:"24",rx:"12",fill:"#1B3250"}),e.createElement("path",{d:"M16.6667 8.00033H15.3333C15.3333 6.16033 13.84 4.66699 12 4.66699C10.16 4.66699 8.66667 6.16033 8.66667 8.00033H7.33333C6.6 8.00033 6 8.60033 6 9.33366V17.3337C6 18.067 6.6 18.667 7.33333 18.667H16.6667C17.4 18.667 18 18.067 18 17.3337V9.33366C18 8.60033 17.4 8.00033 16.6667 8.00033ZM12 6.00033C13.1067 6.00033 14 6.89366 14 8.00033H10C10 6.89366 10.8933 6.00033 12 6.00033ZM12 12.667C10.4467 12.667 9.14 11.607 8.77333 10.167C8.66 9.74699 8.98667 9.33366 9.42 9.33366C9.73333 9.33366 9.98667 9.56033 10.0733 9.86699C10.3067 10.7137 11.08 11.3337 12 11.3337C12.92 11.3337 13.6933 10.7137 13.9267 9.86699C14.0133 9.56033 14.2667 9.33366 14.58 9.33366C15.0133 9.33366 15.3333 9.74699 15.2267 10.167C14.86 11.607 13.5533 12.667 12 12.667Z",fill:"white"})))),e.createElement("div",{className:"content"},e.createElement("div",{className:"inner-content"},e.createElement(s,{style:O,className:"label",size:te,type:"caption"},e.createElement($,{"data-event-category":f,"data-event-action":p,"data-event-label":w,href:i||"#",onClick:S},c),M&&e.createElement("a",{className:"bookmark",onClick:X},z?e.createElement("svg",{"data-event-category":h,"data-event-action":u,"data-event-label":b,width:"14",height:"16",viewBox:"0 0 14 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{d:"M13 15L7 11.1111L1 15V2.55556C1 2.143 1.18061 1.74733 1.5021 1.45561C1.82359 1.16389 2.25963 1 2.71429 1H11.2857C11.7404 1 12.1764 1.16389 12.4979 1.45561C12.8194 1.74733 13 2.143 13 2.55556V15Z",fill:"#2ED69E",stroke:"#2ED69E",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})):e.createElement("svg",{"data-event-category":h,"data-event-action":u,"data-event-label":b,width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{d:"M12.75 2.25H5.25C4.425 2.25 3.75 2.925 3.75 3.75V15.75L9 13.5L14.25 15.75V3.75C14.25 2.925 13.575 2.25 12.75 2.25Z",fill:"#D2D6DC"})))),e.createElement(Y,{tag:J,style:V,className:"title",as:"lg"===I?"h2":"h3"},e.createElement($,{"data-event-category":E,"data-event-action":g,"data-event-label":x,href:n||"#",target:K},U)),G&&e.createElement("a",{href:n||"#",target:K},e.createElement(s,{size:ee,className:"text"},G))),e.createElement("div",{className:"footer"},"author"===R?e.createElement(qn,{size:I,avatarImg:o,authorName:l,authorLink:a,uploadTime:q,handleClick:X,isBookmarked:z,dataEventCategoryForBookmark:h,dataEventActionForBookmark:u,dataEventLabelForBookmark:b}):e.createElement(Kn,{size:I,isMobile:F,avatarImg:o,specialty:H,name:l,link:a,handleClick:X,isBookmarked:z,dataEventCategoryForBookmark:h,dataEventActionForBookmark:u,dataEventLabelForBookmark:b}))))},Jn=function(t){var n=t.LinkComponent,a=t.page,l=t.isLast,o=t.onChangePage,r=a.label,i=a.value,c=a.isDropdown,s=a.dropdownItems,m=a.dataEventCategory,d=a.dataEventAction,u=a.dataEventLabel;return c?e.createElement(Ut,{options:s,placeholder:"...",id:"",placeholderIcon:null,onChange:o,className:"collapsed-breadcrumb"}):e.createElement(le,{title:"string"!=typeof r?i:r,"data-last":l},n&&e.createElement(n,{"data-event-category":m,"data-event-action":d,"data-event-label":u,href:i||"#"},r))},Yn=function(t){var n=t.className,l=t.pages,r=t.size,i=t.LinkComponent,c=void 0===i?"a":i,s=t.onChangePage,m=t.separator,d=a((function(){return l.map((function(e,t){return l.length>4?t>1&&t<l.length-2?null:1===t?P(P({},e),{isDropdown:1===t,dropdownItems:l.slice(1,l.length-2)}):e:e})).filter(Boolean)}),[l]),u=Gt(d.length);return e.createElement(ne,{"data-size":r,className:n},d.map((function(t,n){var a=n+1===d.length;return e.createElement(o,{key:u[n]},e.createElement(Jn,{LinkComponent:c,page:t,isLast:a,onChangePage:s}),!a&&(m||e.createElement(ae,{"data-size":r})))})))},Qn=function(t){var n=t.name,a=t.values,l=void 0===a?[]:a,o=t.onChanges,r=t.options,i=void 0===r?[]:r,c=t.className,s=t.type,m=void 0===s?"vertical":s,d=t.isDisabled,u=t.isRectangle,p=function(e,t){var n=l.slice();if(t)n.push(e);else{var a=n.findIndex((function(t){return t===e}));n.splice(a,1)}o&&o(n)};return e.createElement(oe,{className:c,"data-type":m,"data-is-rectangle":u||void 0},i.map((function(t,a){return e.createElement(On,{label:t.label,name:n,key:"".concat(a,"-").concat(t.value),checked:l.includes(t.value),value:t.value,isDisabled:d||t.disabled,onChange:!d&&p,isRectangle:u})})))},$n=function(t){var n=t.size,a=t.iconPosition,l=t.className,o=t.children,r=t.icon;return e.createElement(re,{className:l,"data-size":n,"data-icon-position":a},"left"===a&&r,o,"right"===a&&r)},ea=function(n){var a=n.type,o=n.numberOfStep,i=n.activeStep,c=n.labelPrefix,s=n.detailSteps,m=n.className,d=n.onChange,u=t(0),p=u[0],g=u[1],v=function(t){var n=t.trackClassName,a=O(t,["trackClassName"]);return e.createElement(me,P({},a,{className:n}),e.createElement(de,null))},h=e.createElement(ie,{className:m+" progress-bar"},e.createElement(v,null),e.createElement((function(t){var n=t.trackLength,a=t.activeStep,l=t.labelPrefix,r=void 0===l?"Step":l,i=t.onChange;return e.createElement(e.Fragment,null,Array.from({length:o},(function(e,t){return t})).map((function(t,l){return e.createElement(ue,{"data-is-active":l===a,"data-label":l,style:{left:l*n/(o-1)},onClick:function(){i&&i(l)},key:l},l+1,e.createElement(pe,{"data-step-passed":l<=a},r+" "+(l+1)))})))}),{trackLength:p,activeStep:i,labelPrefix:c,onChange:d})),f=e.createElement("svg",{"data-name":"Layer 1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 5.5 9.5"},e.createElement("title",null,"chevron-right"),e.createElement("path",{d:"M.75 8.75l4-4-4-4",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5})),E=e.createElement(ce,null,s&&Array.from({length:s.length},(function(e,t){return t})).map((function(t,n){var a;return e.createElement(se,{key:n,"data-selected":n===i,onClick:function(){d&&d(n)}},null===(a=s[n])||void 0===a?void 0:a.text," ",n<s.length-1&&f)}))),y=e.createElement(ie,{className:m+" progress-bar"},e.createElement((function(t){var n=t.detailSteps,a=t.activeStep,l=t.onChange,o=Gt(n.length);return e.createElement(e.Fragment,null,Array.from({length:n.length},(function(e,t){return t})).map((function(t,r){return e.createElement(ge,{key:o[r],style:{left:100/n.length*r+"%",width:100/n.length+"%"},onClick:function(){l&&l(r)}},n[r].icon?e.createElement(ve,{onClick:function(){l&&l(r)}},n[r].icon):e.createElement(he,{"data-is-active":r===a,"data-label":t,onClick:function(){l&&l(r)},key:r},r+1),e.createElement(fe,{"data-step-passed":r<a+1},n[r].text,e.createElement(Ee,null,n[r].description)),r<n.length-1&&e.createElement(v,{"data-step-passed":r<a,trackClassName:"progress-track","data-track-type":"detail"}))})))}),{activeStep:i,detailSteps:s,onChange:d})),b=r(Qt((function(){var e=document.querySelector(".progress-bar");e&&g(e.offsetWidth)}),1e3),[]);return l((function(){var e=document.querySelector(".progress-bar");return g(null==e?void 0:e.offsetWidth),window.addEventListener("resize",b),function(){window.removeEventListener("resize",b)}}),[]),"step-track"===a&&h||"breadcrumb"===a&&E||"detail-track"===a&&y},ta=Object.freeze({__proto__:null,SideMenu:ye,SideHeader:be,UserInfo:we,MenuLink:xe}),na=function(t){var n=t.isDisabled,a=t.isLeft,l=t.onClick,o=t.className,r=t.scheme,i=void 0===r?"hellosites":r;return e.createElement(Ne,{onClick:l,"data-is-disabled":n,"data-is-left":a,className:o},e.createElement("svg",{width:"8",height:"12",viewBox:"0 0 8 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a?e.createElement("path",{d:"M2.92902 6.00015L6.75002 2.17915C7.16402 1.76515 7.16402 1.09315 6.75002 0.679152C6.33602 0.265152 5.66402 0.265152 5.25002 0.679152L0.636023 5.29315C0.245023 5.68415 0.245023 6.31715 0.636023 6.70715L5.25002 11.3212C5.66402 11.7352 6.33602 11.7352 6.75002 11.3212C7.16402 10.9072 7.16402 10.2352 6.75002 9.82115L2.92902 6.00015Z",fill:"hellosites"===i?"#595959":"#E55C8A"}):e.createElement("path",{d:"M5.07095 6.00015L1.24995 2.17915C0.835953 1.76515 0.835953 1.09315 1.24995 0.679152C1.66395 0.265152 2.33595 0.265152 2.74995 0.679152L7.36395 5.29315C7.75495 5.68415 7.75495 6.31715 7.36395 6.70715L2.74995 11.3212C2.33595 11.7352 1.66395 11.7352 1.24995 11.3212C0.835953 10.9072 0.835953 10.2352 1.24995 9.82115L5.07095 6.00015Z",fill:"hellosites"===i?"#595959":"#E55C8A"})))},aa=function(n){for(var a=n.row,l=n.column,o=n.children,r=n.scheme,i=void 0===r?"hellosites":r,c=n.classNameLeftArrow,s=void 0===c?"":c,m=n.classNameRightArrow,d=void 0===m?"":m,u=n.mode,p=void 0===u?"snap":u,g=n.isDotsShown,v=void 0===g||g,h=n.isArrowShown,f=void 0!==h&&h,E=n.dataEventCategory,y=n.dataEventAction,b=n.dataEventLabel,w=n.onChangePage,x=e.useState(0),k=x[0],C=x[1],N=t(!1),L=N[0],z=N[1],_=$t({defaultAnimation:{duration:1e3},initial:0,slideChanged:function(e){C(e.track.details.rel),w&&w(e.track.details.rel)},created:function(){z(!0)},drag:!0,mode:p,slides:{spacing:12}}),M=_[0],B=_[1],F=[],D=a*l,S=0;S<o.length;S+=D){var A=o.slice(S,S+D);F.push(A)}return e.createElement(ke,{row:a,column:l},e.createElement("div",{className:"navigation-wrapper"},e.createElement("div",{ref:M,className:"keen-slider slides-wrapper"},F.map((function(t,n){return e.createElement("div",{key:n,className:"keen-slider__slide page-items"},t.map((function(t,n){return e.createElement("div",{key:n},t)})))}))),L&&B.current&&f&&e.createElement(e.Fragment,null,e.createElement(na,{isLeft:!0,onClick:function(e){var t;return e.stopPropagation()||(null===(t=B.current)||void 0===t?void 0:t.prev())},isDisabled:0===k,scheme:i,className:"left-arrow ".concat(s),"data-event-category":E,"data-event-action":y,"data-event-label":b}),e.createElement(na,{isLeft:!1,onClick:function(e){var t;return e.stopPropagation()||(null===(t=B.current)||void 0===t?void 0:t.next())},isDisabled:k===B.current.track.details.slides.length-1,scheme:i,className:"right-arrow ".concat(d),"data-event-category":E,"data-event-action":y,"data-event-label":b}))),L&&B.current&&v&&e.createElement("div",{className:"dots"},W([],Array(B.current.track.details.slides.length),!0).map((function(t,n){return e.createElement(Ce,{key:n,onClick:function(){var e;null===(e=B.current)||void 0===e||e.moveToIdx(n)},"data-is-active":k===n,"data-is-hellosites":"hellosites"===i})}))))},la=function(t){var n=t.type,a=t.description,l=t.value,o=t.withIcon,r=t.isInACard,i=t.cardColor,c=t.className;return e.createElement(Le,{className:c,"data-size":n,"data-is-in-card":"big"===n&&r,"data-card-color":i},e.createElement(ze,null,"small"===n&&e.createElement(_e,{"data-color":i}),a),e.createElement(Me,{"data-size":n},"small"!==n&&o,l))},oa=Object.freeze({__proto__:null,Table:Be,Cell:Fe,Head:De,Row:Se,Body:Ae}),ra=function(n){var a=n.style,o=n.initialTab,r=n.tabContent,i=n.onChange,c=n.className,m=n.dataEventCategory,d=n.dataEventAction,u=n.dataEventLabel,p=n.id,g=t(o||0),v=g[0],h=g[1],f=Gt(r.length);return l((function(){h(o)}),[o]),e.createElement(Te,{style:a,className:c,role:"tablist",id:p},r.map((function(t,n){return e.createElement(je,{"data-is-tab-active":v===n||void 0,"aria-selected":v===n,role:"tab",onClick:function(){h(n),i&&i(n)},onKeyDown:function(e){"Enter"===e.key&&(h(n),i&&i(n))},key:f[n],"data-event-category":m,"data-event-action":d,"data-event-label":u,tabIndex:0},e.createElement(Ie,null,t.icon&&e.createElement(He,null,t.icon),e.createElement(s,{size:t.textSize||"sm",type:t.textType||"bold",color:t.textColor||J.colors.gray800,dataEventCategory:t.dataEventCategory,dataEventAction:t.dataEventAction,dataEventLabel:t.dataEventLabel},t.name)))})))},ia=function(t){var n=t.thankyou,a=t.thankyouSubtitle,l=t.className,o=t.style;return e.createElement(Pe,{className:l,style:o},e.createElement("div",{className:"survey-inner-wrapper"},e.createElement(We,null,e.createElement("div",{className:"survey-thankyou-wrapper-inner"},e.createElement("svg",{viewBox:"0 0 122 122",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"survey-thankyou-icon"},e.createElement("path",{d:"M61.5 122C94.6371 122 121.5 95.1371 121.5 62C121.5 28.8629 94.6371 2 61.5 2C28.3629 2 1.5 28.8629 1.5 62C1.5 95.1371 28.3629 122 61.5 122Z",fill:"#E3F2FF"}),e.createElement("ellipse",{cx:"61.5",cy:"110.36",rx:"48",ry:"3.36",fill:"#91CAFF"}),e.createElement("path",{d:"M82.9048 72.6663H101.5L87.597 40H35.403L21.5 72.6663H40.0952V91H83.0786L82.9048 72.6663Z",fill:"#2C74DF"}),e.createElement("path",{d:"M74.4004 15.0005H39.863C36.9017 15.0005 34.5 17.4022 34.5 20.3635V72.5769C34.5 75.5383 36.9017 77.9399 39.863 77.9399H83.1357C86.097 77.9399 88.4987 75.5383 88.4987 72.5769V29.0988L88.4987 21.0005C88.4987 17.6868 85.8124 15.0005 82.4987 15.0005H74.4004Z",fill:"white"}),e.createElement("path",{d:"M88.8529 80.1077H34.1469C31.8699 80.1077 30.06 78.3036 30.06 76.0338V65.3837C30.06 63.1139 31.8699 61.3098 34.1469 61.3098H88.8529C91.1299 61.3098 92.9398 63.1139 92.9398 65.3837V76.0338C92.9398 78.3036 91.1299 80.1077 88.8529 80.1077Z",fill:"#E4E8EC"}),e.createElement("path",{d:"M90.838 85.4512H32.1618C29.8849 85.4512 28.075 83.6471 28.075 81.3774V70.7272C28.075 68.4575 29.8849 66.6533 32.1618 66.6533H90.7796C93.0566 66.6533 94.8665 68.4575 94.8665 70.7272V81.3774C94.9249 83.6471 93.0566 85.4512 90.838 85.4512Z",fill:"white"}),e.createElement("path",{d:"M103.748 75.4919V105.755C103.748 107.675 102.172 109.247 100.245 109.247H23.0031C21.0764 109.247 19.5 107.675 19.5 105.755V75.4919C19.5 73.5713 21.0764 72 23.0031 72H42.3866C44.3133 72 45.8897 73.5713 45.8897 75.4919V80.8461C45.8897 81.1952 46.1232 81.428 46.4735 81.428H76.7749C77.1253 81.428 77.3588 81.1952 77.3588 80.8461V75.4919C77.3588 73.5713 78.9352 72 80.8618 72H100.245C102.172 72 103.748 73.5713 103.748 75.4919Z",fill:"#45A4FF"}),e.createElement("path",{d:"M51.9541 91.3767V94.4612C51.9541 96.0907 53.2386 97.3711 54.8733 97.3711H67.7179C69.3526 97.3711 70.6371 96.0907 70.6371 94.4612V91.3767",stroke:"#2C74DF",strokeWidth:"3",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M120.5 38.0251C118.5 37.7793 117.25 39.3768 118.125 41.22L118.375 41.9573C119.125 43.8006 118 45.398 116 45.1523L115.25 45.0294C113.25 44.7836 112 46.3811 112.875 48.2244L113.25 48.9616C114 50.8049 112.875 52.4025 110.875 52.1567L110.125 52.0337C108.625 51.9109 107.5 52.7712 107.5 54",stroke:"#FE921D",strokeWidth:"1.9096",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M1.53299 62C1.2644 63.413 2.6745 64.337 4.35323 63.8478L5.02472 63.6304C6.70346 63.087 8.11356 64.0109 7.84496 65.4783L7.7107 66.0217C7.4421 67.4348 8.8522 68.3587 10.5309 67.8696L11.2024 67.6522C12.8812 67.1087 14.2913 68.0326 14.0227 69.5L13.8884 70.0435C13.687 71.1304 14.4256 71.8913 15.5 72",stroke:"#00B16A",strokeWidth:"2.8751",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M118 92C119.381 92 120.5 90.8807 120.5 89.5C120.5 88.1193 119.381 87 118 87C116.619 87 115.5 88.1193 115.5 89.5C115.5 90.8807 116.619 92 118 92Z",stroke:"#00B16A",strokeWidth:"2.8751",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M82.0001 3.18747L83.1875 7.53467L87.5347 6.34727L86.3473 2.00007L82.0001 3.18747Z",stroke:"#00B16A",strokeWidth:"2.1628",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M17.0001 28C18.1046 28 19 27.1045 19 25.9999C19 24.8954 18.1046 24 17.0001 24C15.8955 24 15 24.8954 15 25.9999C15 27.1045 15.8955 28 17.0001 28Z",stroke:"#FE921D",strokeWidth:"2.3278",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M61.5 26.6667C54.136 26.6667 48.1667 32.6361 48.1667 40.0001C48.1667 47.3641 54.136 53.3334 61.5 53.3334C68.864 53.3334 74.8334 47.3641 74.8334 40.0001C74.8334 32.6361 68.864 26.6667 61.5 26.6667ZM69.1094 36.9427L59.776 46.2761C59.516 46.5361 59.1747 46.6667 58.8334 46.6667C58.492 46.6667 58.1507 46.5361 57.8907 46.2761L53.8907 42.2761C53.3694 41.7547 53.3694 40.9121 53.8907 40.3907C54.412 39.8694 55.2547 39.8694 55.776 40.3907L58.8334 43.4481L67.224 35.0574C67.7454 34.5361 68.588 34.5361 69.1094 35.0574C69.6307 35.5787 69.6307 36.4214 69.1094 36.9427Z",fill:"#00CB8A"})),n&&e.createElement(Y,{className:"survey-thankyou-title",tag:"h3"},n),a&&e.createElement(s,{className:"survey-thankyou-subtitle",size:"p3"},a)))))},ca=function(n){var a=n.items,o=n.className,r=n.style,i=n.backgroundPanelStyle,c=n.isOpen,s=n.onOpen,m=n.onClose,d=n.disableBackdropClick,u=n.siteType,p=void 0===u?"hb":u,g=n.animationType,v=void 0===g?"zoom":g,h=n.zIndex,f=void 0===h?300:h,E=t(!!c),y=E[0],b=E[1];l((function(){b(!!c)}),[c]);var w=function(){b(!1),m&&m()};return e.createElement(Oe,{style:r,className:o,"data-floatmenu-open":y,"data-site-type":p,"data-animation-type":v},e.createElement(Ve,{className:"float-button-group__panel",style:P({zIndex:f},i),onClick:d?void 0:w}),e.createElement(Ge,{className:"float-button-group___content",style:{zIndex:f}},e.createElement(Ue,null,a.map((function(t,n){return e.createElement(Ze,{className:"float-item-button-".concat(n),style:P(P({},"zoom"===v&&{bottom:64*(a.length-1-n),transitionDelay:"".concat(Re/a.length*(y?a.length-1-n:n),"ms")}),"slide"===v&&{bottom:64*(a.length-1-n),transitionDelay:"".concat(Re/a.length*(y?n:a.length-1-n),"ms")}),key:n,onClick:function(){t.onClick(),t.keepMenuOnClick||b(!1)}},e.createElement(qe,{style:P({},"zoom"===v&&{transitionDelay:"".concat(Re/a.length*(y?a.length-1-n:n),"ms")})},t.label),e.createElement(Ke,{className:"float-item-button__icon-wrapper",style:P({},("zoom"===v||"slide"===v)&&{transitionDelay:"".concat(Re/a.length*(y?a.length-1-n:n),"ms")})},t.icon))}))),e.createElement(Xe,{onClick:y?w:function(){b(!0),s&&s()}})))},sa=function(t){var n=t.className,a=t.policiesUrl,l=t.onAcceptClick,o=t.translations,r=void 0===o?{acceptButton:"Accept",policiesButton:"Our Policies"}:o,i=t.title,c=void 0===i?"":i,s=t.description,m=void 0===s?"":s,d=t.theme,u=void 0===d?"helloSites":d,p=t.isOpen,g=void 0===p||p,v=t.useDefaultPosition,h=void 0===v||v,f=t.trackingAttributes;return e.createElement(Je,{className:n,"data-theme":u,"data-is-open":g,"data-default-position":h},e.createElement(Ye,{"data-has-content":!!c},c),e.createElement(Qe,{dangerouslySetInnerHTML:{__html:m}}),e.createElement($e,null,e.createElement(et,{role:"button",tabIndex:0,on:"tap:consent-element.accept",onClick:l,"data-event-category":null==f?void 0:f.dataEventCategory,"data-event-action":null==f?void 0:f.dataEventAction,"data-event-label":null==f?void 0:f.dataEventLabel},r.acceptButton),e.createElement(tt,{href:a},r.policiesButton)))},ma=function(t){var n,a,l,o,r,i,c,s,m,d,u,p,g,v,h,f,E,y,b,w=t.SEOData,x=void 0===w?{}:w,k=t.isAmp,C=void 0!==k&&k,N=t.locale,L=void 0===N?"vi-VN":N,z=t.routerPathname,_=t.routerQuery,M=t.nextHead,B=t.siteType,F=t.seoCustom,D=t.userId,S=t.forcedCanonicalUrl,A=x.totalPages,T=x.currentPage,j=x.SEOTitle,I=void 0===j?"":j,H=x.SEODescription,O=void 0===H?"":H,V=x.SEOImage,G=x.seoType,U=x.SEOImageWidth,Z=x.SEOImageHeight,R=x.customMetaData,q=void 0===R?[]:R,K=x.isIndexable,X=void 0===K||K,J=x.hasNoCanonical,Y=void 0!==J&&J,Q=X&&fn?"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1":"noindex",$=process.env.NEXT_PUBLIC_BASE_API_URL,ee=x.canonicalUrl||z;Object.keys(_).forEach((function(e){var t=_[e];t&&Array.isArray(t)&&(ee=ee.replace("[...".concat(e,"]"),t.join("/")))}));var te,ne=L||"en-PH",ae="helloSites"===B?gn[ne]:"www.marrybaby.vn",le=ee.endsWith("/")?"":"/";if(x.apiMetaData&&"string"==typeof x.apiMetaData){var oe=null===(n=x.apiMetaData)||void 0===n?void 0:n.match(/<title.*?>(.*)<\/title>/),re=" - Page ".concat(T," of ").concat(A),ie=T&&1!==T&&oe?x.apiMetaData.replace(oe[0],oe[0].includes("-")?oe[0].replace("-",re+" - "):"<title>".concat(oe[1].concat(re),"</title>")).replace('<link rel="canonical" href="https://'.concat(ae).concat(ee).concat(le,'" />'),'<link rel="canonical" href="https://'.concat(ae).concat(ee).concat(le,"?page=").concat(T,'" />')):x.apiMetaData,ce=(te=nt(ie,{trim:!0})).find((function(e){var t,n;return"og:image"===(null===(t=e.props)||void 0===t?void 0:t.property)||"og:image:secure_url"===(null===(n=e.props)||void 0===n?void 0:n.property)}));if(!ce){var se="https://".concat(ae,"/images/").concat(L,".png");te=W(W([],te,!0),[e.createElement("meta",{key:"og:image",property:"og:image",content:(null===(a=x.openGraph)||void 0===a?void 0:a.image)||se||""}),e.createElement("meta",{key:"og:image:secure_url",property:"og:image:secure_url",content:(null===(l=x.openGraph)||void 0===l?void 0:l.image)||se}),e.createElement("meta",{key:"og:image:width",property:"og:image:width",content:(null===(o=x.openGraph)||void 0===o?void 0:o.imageWidth)&&String(null===(r=x.openGraph)||void 0===r?void 0:r.imageWidth)||"1200"}),e.createElement("meta",{key:"og:image:height",property:"og:image:height",content:(null===(i=x.openGraph)||void 0===i?void 0:i.imageHeight)&&String(null===(c=x.openGraph)||void 0===c?void 0:c.imageHeight)||"630"})],!1)}}var me="https://".concat(ae,"/images/").concat(L,".png");return e.createElement(M,null,e.createElement("link",{rel:"preconnect",href:"https://fonts.gstatic.com"}),"marryBaby"===B&&e.createElement("link",{href:"https://fonts.googleapis.com/css2?family=Inter&family=Krub:wght@600&display=swap",rel:"stylesheet"}),"km-KH"===L?e.createElement("link",{href:"https://fonts.googleapis.com/css2?family=Battambang:wght@400;700&display=swap",rel:"stylesheet"}):"id-ID"===L||"ms-MY"===L?e.createElement(e.Fragment,null):e.createElement("link",{href:"https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300;0,400;0,600;0,700;0,800;1,300;1,400;1,600;1,700;1,800&display=swap",rel:"preload",as:"style"}),e.createElement("link",{rel:"preconnect",href:$}),e.createElement("meta",{charSet:"UTF-8"}),!C&&e.createElement("meta",{name:"viewport",content:"width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, viewport-fit=cover"}),e.createElement("meta",{name:"google",content:"notranslate"}),e.createElement("meta",{name:"robots",content:Q}),e.createElement("meta",{property:"fb:app_id",content:"653713035016537"}),q.map((function(t,n){return e.createElement("meta",P({key:n},t))})),e.createElement("meta",{name:"theme-color",content:"helloSites"===B?"#2c87f3":"#e85388"}),e.createElement("meta",{name:"page_type",content:"Home"}),e.createElement("meta",{name:"page_platform",content:"WEB"}),e.createElement("meta",{name:"page_language",content:ne}),e.createElement("meta",{name:"ahrefs-site-verification",content:"46e7521a2b89a1013149c4685bbe02a1d36a4732fef98655142b829bc87cba4d"}),C&&e.createElement(e.Fragment,null,e.createElement("script",{async:!0,"custom-element":"amp-analytics",src:"https://cdn.ampproject.org/v0/amp-analytics-0.1.js"}),e.createElement("script",{async:!0,"custom-element":"amp-fx-collection",src:"https://cdn.ampproject.org/v0/amp-fx-collection-0.1.js"}),e.createElement("script",{async:!0,"custom-element":"amp-ad",src:"https://cdn.ampproject.org/v0/amp-ad-0.1.js"}),e.createElement("script",{async:!0,"custom-element":"amp-next-page",src:"https://cdn.ampproject.org/v0/amp-next-page-1.0.js"}),e.createElement("script",{async:!0,"custom-element":"amp-sticky-ad",src:"https://cdn.ampproject.org/v0/amp-sticky-ad-1.0.js"}),e.createElement("script",{async:!0,"custom-element":"amp-social-share",src:"https://cdn.ampproject.org/v0/amp-social-share-0.1.js"}),e.createElement("script",{async:!0,"custom-element":"amp-bind",src:"https://cdn.ampproject.org/v0/amp-bind-0.1.js"})),!te&&e.createElement(e.Fragment,null,"helloSites"===B?e.createElement("title",null,F?I:I+" - "+(null===(s=vn[L])||void 0===s?void 0:s.SITE_NAME)):e.createElement("title",null,I),!Y&&e.createElement("link",{rel:"canonical",href:"https://".concat(ae).concat(ee)}),e.createElement("meta",{name:"description",content:O||(null===(m=x.openGraph)||void 0===m?void 0:m.description)}),x.schemaData&&e.createElement("script",{type:"application/ld+json",className:"yoast-schema-graph",dangerouslySetInnerHTML:{__html:x.schemaData}}),e.createElement("meta",{property:"og:locale",content:L}),e.createElement("meta",{property:"og:type",content:G||"website"}),e.createElement("meta",{property:"og:title",content:(null===(d=x.openGraph)||void 0===d?void 0:d.title)||I}),e.createElement("meta",{property:"og:description",content:(null===(u=x.openGraph)||void 0===u?void 0:u.description)||O}),e.createElement("meta",{property:"og:url",content:"https://".concat(ae).concat(ee)}),e.createElement("meta",{property:"og:site_name",content:"https://".concat(ae)}),e.createElement("meta",{property:"og:image",content:(null===(p=x.openGraph)||void 0===p?void 0:p.image)||V||me||""}),e.createElement("meta",{property:"og:image:secure_url",content:(null===(g=x.openGraph)||void 0===g?void 0:g.image)||V||me}),e.createElement("meta",{property:"og:image:width",content:(null===(v=x.openGraph)||void 0===v?void 0:v.imageWidth)&&String(null===(h=x.openGraph)||void 0===h?void 0:h.imageWidth)||U&&String(U)||"1200"}),e.createElement("meta",{property:"og:image:height",content:(null===(f=x.openGraph)||void 0===f?void 0:f.imageHeight)&&String(null===(E=x.openGraph)||void 0===E?void 0:E.imageHeight)||Z&&String(Z)||"630"}),e.createElement("meta",{name:"twitter:card",content:"summary_large_image"}),e.createElement("meta",{name:"twitter:title",content:(null===(y=x.twitter)||void 0===y?void 0:y.title)||I}),e.createElement("meta",{name:"twitter:description",content:O}),e.createElement("meta",{name:"twitter:image",content:(null===(b=x.twitter)||void 0===b?void 0:b.image)||V})),("helloSites"===B?hn[ne]||[]:hn.marryBaby).map((function(t,n){return"link"===t.type?e.createElement("link",{key:"favicon-".concat(n),rel:t.rel,href:t.href,sizes:t.sizes}):"meta"===t.type?e.createElement("meta",{key:n,name:t.name,content:t.content}):null})),Array.isArray(te)&&S?te.filter((function(e){return"canonical"!==e.props.name&&"canonical"!==e.props.rel})):te,S&&e.createElement("link",{rel:"canonical",href:S}),!x.hasNoAmp&&"vi-VN"!==L&&e.createElement("link",{rel:"amphtml",href:"https://".concat(ae).concat(ee).concat(le,"?amp=1")}),D&&"undefined"!=typeof window?e.createElement("script",{dangerouslySetInnerHTML:{__html:"window.dataLayer = window.dataLayer || []; window.dataLayer.push({'userID': '".concat(D,"'});")}}):null)},da=function(t){var n=t.className,a=t.heading,l=t.isMobile,o=t.bannerUrl,r=t.bannerUrlLarge,i=t.medicalReview,c=t.icon,s=(t.isHomePage,t.style),m=l?"h5":"h4",d=l?o:r||o;return e.createElement(at,{"data-is-mobile":l,style:s},e.createElement(lt,{className:n,"data-banner-url":d,"data-is-mobile":l},e.createElement(T,{className:"container"},e.createElement(ot,null,e.createElement(rt,{"data-is-mobile":l},e.createElement(it,{"data-is-mobile":l},e.createElement(Y,{color:J.colors.white,tag:m,as:"h2"},a)),i&&e.createElement(ct,{"data-is-mobile":l},i)),e.createElement(st,{"data-is-mobile":l},c)))))},ua=function(n){var a,o=n.isMobile,r=n.locale,i=n.onSubmitDueDate,c=bn().t,m=t({}),d=m[0],u=m[1],p=t(""),g=p[0],v=p[1];return l((function(){V(void 0,void 0,void 0,(function(){var e,t;return G(this,(function(n){switch(n.label){case 0:return[4,Rt(qt(Kt.GET_DUE_DATE_INFO),"GET")];case 1:return e=n.sent(),u(null==e?void 0:e.data),v(Zt(null===(t=null==e?void 0:e.data)||void 0===t?void 0:t.reviewd_by)||""),[2]}}))}))}),[]),e.createElement(mt,null,e.createElement(da,{isEmbed:!0,bannerUrl:en.getAssetPath("embedToolBannerPink.svg"),icon:e.createElement("img",{alt:"health-tool-icon",src:"https://hellobacsi.com/images/due-date-icon.svg",style:{objectFit:"contain"}}),heading:c("healthTools.dueDateCalculator"),medicalReview:(null===(a=null==d?void 0:d.reviewed_by)||void 0===a?void 0:a.display_name)?e.createElement(s,{size:"n1",color:J.colors.white},e.createElement("span",{dangerouslySetInnerHTML:{__html:c("toolPage.toolReviewer",{expert_name:'<a\n style="color: white"\n href="'.concat(g,'"\n >\n ').concat(null==d?void 0:d.reviewed_by.display_name,"\n </a>"),date:null==d?void 0:d.reviewed_date})}}),e.createElement("span",null)):void 0,isMobile:o}),e.createElement(T,null,e.createElement(dt,{className:"due-date-cal"},e.createElement(ut,{locale:r,onSubmitDueDate:i}))))},pa=function(t){var n=t.src,a=t.title,l=t.backgroundSrc,o=t.className,r=t.reviewedSection,i=t.isAmp;return e.createElement(pt,{className:o},e.createElement(gt,{style:{backgroundImage:'url("'.concat(l,'")')}},e.createElement(vt,null,e.createElement(ht,null,e.createElement(Y,{tag:"h5",color:"white"},a),r),e.createElement(ft,null,i?e.createElement("amp-img",{src:n||"",alt:a,width:"140",height:"140"}):e.createElement("img",{src:n||"",style:{objectFit:"contain"},alt:a})))))},ga=function(n){var a,o,r,i=n.backgroundDesktopSrc,c=n.backgroundMobileSrc,m=n.title,d=n.iconSrc,u=n.className,p=n.isEmbed,g=void 0!==p&&p,v=n.isAmp,h=bn().t,f=t({}),E=f[0],y=f[1],b=Zt(null==E?void 0:E.reviewed_by);return l((function(){V(void 0,void 0,void 0,(function(){var e;return G(this,(function(t){switch(t.label){case 0:return[4,Rt(qt(Xt.GET_HEALTH_TOOL_OVULATION_INFO),"GET")];case 1:return e=t.sent(),y(null==e?void 0:e.data),[2]}}))}))}),[]),e.createElement(Et,{className:u},e.createElement(yt,{style:{backgroundImage:"url('".concat(c||i,"')")}},e.createElement(bt,null,e.createElement(Y,{tag:"h5",color:"white"},m),(null===(a=null==E?void 0:E.reviewed_by)||void 0===a?void 0:a.display_name)?e.createElement(s,{size:"n1",color:"white",style:{marginTop:"0.3rem"}},e.createElement("span",{dangerouslySetInnerHTML:{__html:h("articlePage.articleReviewerBy",{name:'<a\n style="color: white"\n href="'.concat(b,'"\n >\n ').concat(E.reviewed_by.display_name,"\n </a>")})}}),e.createElement("span",null,h("tools.heading.on")),e.createElement("span",null,null==E?void 0:E.reviewed_date)):null),e.createElement(wt,null,v?e.createElement("amp-img",{src:d||"",alt:m,width:"100%",height:"100%"}):e.createElement("img",{src:d||"",style:{width:"100%",objectFit:"contain",marginTop:"30px"},alt:m}))),e.createElement(pa,{isEmbed:g,className:"desktop-only",src:d,backgroundSrc:i||c||"",title:m,reviewedSection:(null===(o=null==E?void 0:E.reviewed_by)||void 0===o?void 0:o.display_name)&&""!==(null===(r=null==E?void 0:E.reviewed_by)||void 0===r?void 0:r.display_name)&&e.createElement(s,{size:"n1",color:J.colors.white,style:{marginTop:12}},e.createElement("span",{dangerouslySetInnerHTML:{__html:h("toolPage.toolReviewer",{expert_name:'<a\n style="color: white"\n href="'.concat(b,'"\n >\n ').concat(E.reviewed_by.display_name,"\n </a>"),date:null==E?void 0:E.reviewed_date})}}),e.createElement("span",null)),isMobile:!0}))},va=function(t){var n=t.onSubmitOvulation,a=t.locale,l=t.ovulationPageInfo,o=bn().t,r=Jt(l||null);return e.createElement(mt,null,e.createElement(ga,{backgroundDesktopSrc:en.getAssetPath("embedToolBannerPink.svg"),backgroundMobileSrc:en.getAssetPath("embedToolBannerPink.svg"),title:o("healthTools.ovulationCalculator"),iconSrc:"https://hellobacsi.com/images/ovulation-icon.svg",reviewedBy:r.reviewedBy,reviewedDate:r.reviewedDate,isEmbed:!0}),e.createElement(En,null,e.createElement(dt,{className:"ovulation-cal"},e.createElement(xt,{locale:a,onSubmitOvulation:n}))))},ha=function(n){var a=n.info,o=n.onChange,r=n.errorMessage,i=void 0===r?{}:r,c=bn().t,s=t({weightBefore:!1,height:!1,weight:!1}),m=s[0],d=s[1],u=function(e,t){""!==e&&(isNaN(e)||isNaN(parseFloat(e)))||t(e)};return l((function(){o&&o(P({},a))}),[]),l((function(){d({weightBefore:!1,height:!1,weight:!1})}),[i]),e.createElement(e.Fragment,null,e.createElement("div",{className:"input-form"},e.createElement(j,{label:e.createElement("span",{style:{display:"inline-block",color:J.colors.gray600,fontWeight:"bold",marginBottom:"5px"}},c("pregnancyWeightGain.weightBeforeInput")," ",e.createElement("span",{style:{color:"".concat(J.colors.gray300)}},c("pregnancyWeightGain.weightInput.desc"))),errorMessage:m.weightBefore?"":null==i?void 0:i.weightBefore,size:"sm",isNumerousKeyboard:!0,name:"pwg-weightBefore",onChange:function(e){u(e,(function(e){d((function(e){return P(P({},e),{weightBefore:!0})}));var t=P(P({},a),{weightBefore:e});o&&o(t)}))},value:null==a?void 0:a.weightBefore})),e.createElement("div",{className:"input-form"},e.createElement(j,{label:e.createElement("span",{style:{display:"inline-block",color:J.colors.gray600,fontWeight:"bold",marginBottom:"5px"}},c("pregnancyWeightGain.heightInput")," ",e.createElement("span",{style:{color:"".concat(J.colors.gray300)}},c("bmi.heightInput.desc"))),errorMessage:m.height?"":null==i?void 0:i.height,size:"sm",isNumerousKeyboard:!0,name:"pwg-height",value:null==a?void 0:a.height,onChange:function(e){u(e,(function(e){d((function(e){return P(P({},e),{height:!0})}));var t=P(P({},a),{height:e});o&&o(t)}))}})),e.createElement("div",{className:"input-form"},e.createElement(j,{label:e.createElement("span",{style:{display:"inline-block",color:J.colors.gray600,fontWeight:"bold",marginBottom:"5px"}},c("pregnancyWeightGain.weightInput")," ",e.createElement("span",{style:{color:"".concat(J.colors.gray300)}},c("pregnancyWeightGain.weightInput.desc"))),errorMessage:m.weight?"":null==i?void 0:i.weight,size:"sm",isNumerousKeyboard:!0,name:"pwg-weight",value:null==a?void 0:a.weight,onChange:function(e){u(e,(function(e){d((function(e){return P(P({},e),{weight:!0})}));var t=P(P({},a),{weight:e});o&&o(t)}))}})))},fa=function(n){var l,o,r=n.locale,i=n.onClick,c=n.inputErrorMessage,m=n.pwgContent,d=n.onFormChange,u=n.info,p=bn().t,g=t(!1),v=g[0],h=g[1],f=t("notwins"),E=f[0],y=f[1],b=t({label:p("childCard.age.week",{weeks:0}),value:0}),w=b[0],x=b[1],k=a((function(){return W([],Array(41),!0).map((function(e,t){return{label:p("childCard.age.week",{weeks:t}),value:"".concat(t)}}))}),[]),C=wn(r).getHealthToolLink,N=a((function(){return C(Yt.PWG)}),[C]);return e.createElement(mt,null,e.createElement(da,{bannerUrl:en.getAssetPath("embedToolBannerPink.svg"),icon:e.createElement("img",{alt:"health-tool-icon",src:"https://hellobacsi.com/images/pwg-icon.svg",style:{objectFit:"contain",marginLeft:"auto"}}),heading:p("pregnancyWeightGain.heading"),medicalReview:(null===(l=null==m?void 0:m.reviewedBy)||void 0===l?void 0:l.display_name)?e.createElement(s,{size:"p4",color:J.colors.white},e.createElement("span",{dangerouslySetInnerHTML:{__html:p("toolPage.toolReviewer",{expert_name:'<a\n style="color: white"\n href="'.concat(Zt(null==m?void 0:m.reviewedBy),'"\n >\n ').concat(null===(o=null==m?void 0:m.reviewedBy)||void 0===o?void 0:o.display_name,"\n </a>"),date:null==m?void 0:m.reviewedDate})}}),e.createElement("span",null)):void 0}),e.createElement(En,null,e.createElement(dt,{className:"pwg-view-mobile"},e.createElement(kt,null,e.createElement(I,{size:"label2",style:{display:"block",fontWeight:"bold",color:J.colors.gray600},className:"label",htmlFor:"gender-selector"},p("pregnancyWeightGain.havingTwins")),e.createElement(Ct,{options:[{value:"twins",label:p("switchBtn.yes")},{value:"notwins",label:p("switchBtn.no")}],value:E,onChange:function(e){return y(e)},className:"gender-selector",id:"bmi-objective",type:"circle",direction:"horizontal",size:"small",group:"group1"})),e.createElement(Nt,{className:"hide-asking-mobile"},e.createElement(yn,{checked:v,onChange:function(){return h(!v)}}),e.createElement(I,{size:"label2",style:{display:"inline-block",color:J.colors.gray600,fontWeight:"bold",fontSize:"13px"},htmlFor:"gender-selector"},p("tool.askChecking"))),e.createElement(Lt,null,e.createElement(I,{size:"label2",style:{display:"inline-block",marginBottom:"9px",color:J.colors.gray600,fontWeight:"bold",fontSize:"13px",minHeight:"38px"},htmlFor:"gender-selector"},p("pregnancyWeightGain.weekInput")),e.createElement(Ut,{options:k,placeholder:w.label,id:"weight-gain-dropdown",size:"lg",value:w,onChange:function(e){return x({label:e.label,value:e.value})}})),e.createElement(ha,{info:u,errorMessage:c,onChange:d}),e.createElement(Nt,{className:"hide-asking-desk"},e.createElement(yn,{checked:v,onChange:function(){return h(!v)}}),e.createElement(I,{size:"label2",style:{display:"inline-block",marginBottom:"9px",color:J.colors.gray600,fontWeight:"bold",fontSize:"13px"},htmlFor:"gender-selector"},p("tool.askChecking"))),e.createElement(zt,null,e.createElement(X,{dataEventCategory:"Health Tool",dataEventAction:"Due Date",dataEventLabel:"https://".concat(gn[r],"/").concat(N),className:"due-date-calculate-button",size:"lg",color:"primary",onClick:function(){return i(E,w.value)}},p("dueDatePage.lastPeriod.calculate"))))))},Ea=function(t){var n=t.ampNextArticles,a=(null==n?void 0:n.filter(Boolean))||[];if(!(null==a?void 0:a.length))return null;return e.createElement("amp-next-page",null,e.createElement("script",{type:"application/json",dangerouslySetInnerHTML:{__html:JSON.stringify(a.map((function(e){return{image:e.image||"",title:e.title?JSON.stringify(e.title):"",url:e.link||""}})))}}),e.createElement("div",P({},{separator:""},{className:"amp-page-seperator",style:{color:"#8C8C8C",textTransform:"uppercase",fontSize:11,fontWeight:700,marginLeft:16}}),"Next article:"))},ya=function(){return"undefined"!=typeof window&&window.innerWidth<R.BREAK_POINT_MOBILE},ba=function(){return"undefined"!=typeof window&&window.innerWidth>=R.BREAK_POINT_MOBILE&&window.innerWidth<R.BREAK_POINT_PC};var wa={"en-PH":kn,"vi-VN":Nn,"zh-TW":Ln,"id-ID":Cn};function xa(n){var o=n.value,r=void 0===o?{from:null,to:null}:o,i=t(null),c=i[0],s=i[1],m=function(){var e=t(ya()),n=e[0],a=e[1],o=t(ba()),r=o[0],i=o[1];return l((function(){var e=function(){a(ya()),i(ba())};return window.addEventListener("resize",e),function(){window.removeEventListener("resize",e)}}),[]),{isMobile:n,isLargeMobile:r}}().isMobile,d=t((function(){return r})),u=d[0],p=d[1],g=t((function(){var e;return nn(null!==(e=r.from)&&void 0!==e?e:new Date)})),v=g[0],h=g[1],f=a((function(){return an(v,1)}),[v]);var E=P(P({},n),{goToNextMonth:function(){h((function(e){return an(e,1)}))},goToPreviousMonth:function(){h((function(e){return on(e,1)}))},range:u,setRange:p,hoverDay:c,setHoverDay:s});return e.createElement(e.Fragment,null,e.createElement(ka,P({},E,{date:v})),!m&&e.createElement(_t,null),!m&&e.createElement(ka,P({},E,{date:f})))}function ka(t){var n=t.date,o=t.range,r=t.setRange,i=t.onChange,c=t.goToPreviousMonth,s=t.goToNextMonth,m=t.minDate,d=t.maxDate,u=t.close,p=void 0===u?function(){}:u,g=t.autoClose,v=void 0!==g&&g,h=t.hoverDay,f=t.setHoverDay,E=bn().locale,y=a((function(){var e;return null!==(e=wa[E])&&void 0!==e?e:wa["en-PH"]}),[E]),b=a((function(){return ln(n,"MMMM",{locale:y})}),[n,y]),w=a((function(){return y?[1,2,3,4,5,6,0].map((function(e){return y.localize.day(e,{width:"narrow"})})):[]}),[y]);function x(t,n){if(null===t)return e.createElement(It,{key:"idx-".concat(n),"data-empty":"true"});var a=t.getDate(),l=cn(t),i=!!o.from&&sn(o.from,t),c=!!o.to&&sn(o.to,t),s=i||c,u=!1;null!==h&&o.from&&tn(o.from,h)&&!o.to?u=mn(t,{start:o.from,end:h}):o.from&&o.to&&(u=mn(t,{start:o.from,end:o.to}));var g=!1;return m&&d?g=!mn(t,{start:m,end:d}):m?g=tn(t,m):d&&(g=dn(t,d)),e.createElement(It,{key:a,"data-is-today":l,"data-is-past":!l&&un(t),"data-is-selected":s,"data-is-disabled":g,"data-in-range":u,"data-is-from":i,"data-is-to":c,onMouseEnter:function(){f(t)},onMouseLeave:function(){return f(null)},onClick:function(){g||r((function(e){return v&&o.from&&!o.to&&p(),function(e,t){return t.from||t.to?t.from&&t.to?{from:e,to:null}:t.from?tn(e,t.from)?P(P({},t),{from:e}):P(P({},t),{to:e}):t:P(P({},t),{from:e})}(t,e)}))}},e.createElement(Ht,{onClick:function(){}},e.createElement("p",null,a)))}return l((function(){o.from&&o.to&&i(o)}),[o]),e.createElement(Mt,{className:"calendar-wrapper"},e.createElement(Bt,null,e.createElement(X,{onClick:c,size:"md",color:"ghost",icon:e.createElement("img",{src:en.getAssetPath("calendarArrowLeft.svg")})}),e.createElement("div",{className:"calendar-month"},b,e.createElement("strong",null,ln(n,"yyyy"))),e.createElement(X,{onClick:s,size:"md",color:"ghost",icon:e.createElement("img",{src:en.getAssetPath("calendarArrowRight.svg")})})),e.createElement(Ft,null,e.createElement("div",null,e.createElement(Dt,null,w.map((function(t,n){return e.createElement(St,{key:"".concat(t,"-").concat(n)},t)})))),e.createElement("div",null,function(){for(var t=n.getFullYear(),a=n.getMonth(),l=rn(n),r=[],i=1;i<=l;i++)r.push(new Date(t,a,i));var c=r[0]?r[0].getDay():0;if(1!==c){var s=0===c?6:c-1;for(i=0;i<s;i++)r.unshift(null)}return e.createElement(At,{key:"month-".concat(a),"data-month-index":a,"data-has-range":Boolean(o.from&&o.to)},e.createElement(Tt,null,e.createElement(jt,null,r.map(x))))}())))}function Ca(l){var o=l.inputSize,r=void 0===o?"md":o,i=l.name,c=void 0===i?"date-range-picker":i,s=l.value,m=l.minDate,d=l.maxDate,u=l.onChange,p=l.className,g=l.autoClose,v=void 0!==g&&g;s||(s={from:null,to:null});var h=t(!1),f=h[0],E=h[1];function y(){E(!1)}var b=n(null);function w(e){u&&u(e)}function x(e){return ln(e,"dd/MM/yyyy")}xn(b,(function(){y()}));var k=a((function(){return s.from&&s.to?sn(s.from,s.to)?x(s.from):"".concat(x(s.from)," - ").concat(x(s.to)):""}),[s.from,s.to]);return e.createElement(Pt,{className:[p,f&&"focused"].filter(Boolean).join(" "),ref:b},e.createElement("label",{htmlFor:c},e.createElement(j,{size:r,value:k,name:c,actionIcon:e.createElement("img",{src:en.getAssetPath("calendar.svg")}),onFocus:function(){return E(!0)}})),f?e.createElement(Wt,{onMouseDown:function(e){e.stopPropagation()}},e.createElement(xa,{value:s,onChange:w,minDate:m,maxDate:d,close:y,autoClose:v})):null)}var Na,La,za,_a,Ma,Ba,Fa,Da,Sa,Aa=function(){return e.createElement("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{d:"M6.86364 10.6666H5.22727C4.86912 10.6666 4.51448 10.5977 4.18359 10.4637C3.8527 10.3296 3.55205 10.1332 3.2988 9.8856C2.78734 9.3855 2.5 8.70722 2.5 7.99998C2.5 7.29274 2.78734 6.61446 3.2988 6.11436C3.81026 5.61426 4.50396 5.33331 5.22727 5.33331H6.86364M9.78374 5.33331H11.7727C12.1309 5.33331 12.4855 5.40229 12.8164 5.5363C13.1473 5.67031 13.4479 5.86674 13.7012 6.11436C13.9545 6.36198 14.1553 6.65596 14.2924 6.97949C14.4295 7.30303 14.5 7.64979 14.5 7.99998C14.5 8.35017 14.4295 8.69693 14.2924 9.02047C14.1553 9.344 13.9545 9.63798 13.7012 9.8856C13.4479 10.1332 13.1473 10.3296 12.8164 10.4637C12.4855 10.5977 12.1309 10.6666 11.7727 10.6666H9.78374",stroke:"#595959",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M6.5 8H10.5",stroke:"#595959",strokeLinecap:"round",strokeLinejoin:"round"}))},Ta=function(t){var n=t.url,a=t.onCopied,l=t.locale,o=bn().t,r=zn(n||"").filter((function(e){return!e.allowedLocales||e.allowedLocales.includes(l)}));return e.createElement(Ot,null,e.createElement(s,{size:"p3",color:J.colors.gray800},o("shareContainer.title")),e.createElement("div",{className:"icon-group"},r.map((function(t,n){return e.createElement("a",{key:n,href:t.href,target:"_blank",rel:"noreferrer"},t.icon)})),e.createElement(X,{size:"sm",type:"button",color:"tertiary",className:"share",style:{},icon:e.createElement(Aa,null),onClick:function(){return V(void 0,void 0,void 0,(function(){var e;return G(this,(function(t){switch(t.label){case 0:return[4,null===(e=null===navigator||void 0===navigator?void 0:navigator.clipboard)||void 0===e?void 0:e.writeText(n)];case 1:return t.sent(),null==a||a(),[2]}}))}))}})))},ja=function(){return e.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"copy"},e.createElement("path",{d:"M4 2.5C3.17125 2.5 2.5 3.17125 2.5 4V13.75C2.5 14.164 2.836 14.5 3.25 14.5C3.664 14.5 4 14.164 4 13.75V4H13.75C14.164 4 14.5 3.664 14.5 3.25C14.5 2.836 14.164 2.5 13.75 2.5H4ZM7 5.5C6.17125 5.5 5.5 6.17125 5.5 7V16C5.5 16.8287 6.17125 17.5 7 17.5H16C16.8287 17.5 17.5 16.8287 17.5 16V7C17.5 6.17125 16.8287 5.5 16 5.5H7ZM7 7H16V16H7V7Z",fill:"#595959"}))},Ia=function(t){var n=t.open,a=t.title,o=t.onClose,i=t.onCopied,c=t.onShared,m=t.url,d=t.locale,u=O(t,["open","title","onClose","onCopied","onShared","url","locale"]),p=bn().t,g=r((function(){return V(void 0,void 0,void 0,(function(){var e;return G(this,(function(t){switch(t.label){case 0:return[4,null===(e=null===navigator||void 0===navigator?void 0:navigator.clipboard)||void 0===e?void 0:e.writeText(m)];case 1:return t.sent(),null==i||i(),[2]}}))}))}),[m,i]),v=zn(m||"").filter((function(e){return!e.allowedLocales||e.allowedLocales.includes(d)}));return l((function(){n&&navigator.share&&navigator.share({title:null!=a?a:"Read This Post",url:m}).then((function(){null==c||c()})).catch((function(){null==o||o()}))}),[m,a,c,n]),"undefined"!=typeof navigator&&navigator.share?null:e.createElement(Vt,P({title:p("share.title"),onClose:o,open:n,placement:"bottom"},u),e.createElement("div",{className:"share-container"},e.createElement("div",{className:"icon-container"},e.createElement(s,{type:"semiBold",size:"s3",color:J.colors.gray600},p("share.title")),e.createElement("div",{className:"icon-group"},v.map((function(t,n){return e.createElement("a",{key:n,href:t.href,target:"_blank",rel:"noreferrer"},t.icon)})))),e.createElement("div",{className:"link-container"},e.createElement(s,{type:"semiBold",size:"s3",color:J.colors.gray600},p("share.copyLink")),e.createElement("div",{className:"input-group"},e.createElement(_n,{name:"link",size:"md",value:m,isDisabled:!0}),e.createElement(X,{size:"md",type:"button",color:"tertiary",icon:e.createElement(ja,null),onClick:g})))))},Ha=pn.footer(Na||(Na=U(["\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 {\n width: 10%;\n align-self: flex-start;\n\n img {\n max-width: 100px;\n margin-bottom: 16px;\n\n "," {\n margin-bottom: 0px;\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 {\n width: 10%;\n align-self: flex-start;\n\n img {\n max-width: 100px;\n margin-bottom: 16px;\n\n "," {\n margin-bottom: 0px;\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"])),q.mbDown,q.mbDown,q.mbUp,(function(e){return e.theme.colors.neutral500}),(function(e){return e.theme.colors.neutral500}),q.mbUp,q.mbDown,(function(e){return e.theme.colors.neutral500}),q.mbUp,q.mbUp,(function(e){return e.theme.colors.neutral500}),q.mbUp,(function(e){return e.theme.colors.neutral500}),q.mbDown,q.mbUp,(function(e){return e.theme.colors.white}),(function(e){return e.theme.sizes.fwBold}),q.mbDown,(function(e){return e.theme.colors.neutral500}),q.mbDown,q.mbUp,(function(e){return e.theme.colors.neutral500}),q.mbDown,q.mbUp,(function(e){return e.theme.colors.white}),(function(e){return e.theme.sizes.fwBold}),q.mbUp),Pa=pn.div(La||(La=U(["\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"]))),Wa=function(t){var n=t.url,a=t.isMobile,l=t.dataEventCategory,o=t.dataEventAction,r=t.dataEventLabel,i=t.isAmp;return e.createElement(Pa,{"data-is-mobile":a},i?e.createElement("amp-img",{className:"country-flag",src:n,alt:"Country Flag","data-event-category":l,"data-event-action":o,"data-content-label":r}):e.createElement("img",{loading:"lazy",className:"country-flag lazy","data-src":n,alt:"Country Flag","data-event-category":l,"data-event-action":o,"data-content-label":r}))},Oa=function(t){var n,a,o,r,i,c,m,d,u,p,g,v,h,f,E,y,b,w,x,k,C,N,L,z,_,M,B,F,D,S,A,j,I,H,P,W=t.className,O=t.type,V=void 0===O?"main":O,G=t.footerInfo,U=t.isMobile,Z=t.locale,R=t.isAmp,q=bn().t,Y=null==G?void 0:G.menu;return l((function(){setTimeout((function(){return null==K?void 0:K.update()}),100)}),[]),e.createElement(Ha,{as:R&&"mini"===V?"div":"footer",className:W,style:"mini"===V?{backgroundColor:J.colors.neutral50}:{},"next-page-hide":!0},e.createElement(T,null,e.createElement("div",{className:"inner","data-type":V,"next-page-hide":""},"main"===V?e.createElement(e.Fragment,null,e.createElement("a",{href:"/"},R?(null===(a=null==G?void 0:G.general)||void 0===a?void 0:a.logo)?e.createElement("amp-img",{src:null===(o=null==G?void 0:G.general)||void 0===o?void 0:o.logo,alt:"Site logo",width:"132",height:"32",style:{marginBottom:24}}):null:e.createElement("img",{loading:"lazy",className:"footer-logo lazy","data-src":null===(n=null==G?void 0:G.general)||void 0===n?void 0:n.logo,alt:"Logo","data-is-sehat":"id-ID"===Z})),e.createElement("div",{className:"columns"},e.createElement("div",{className:"newsletter"},e.createElement(s,{size:"p1",type:"bold"},null===(r=null==G?void 0:G.general)||void 0===r?void 0:r.content),e.createElement(X,{className:"signupButton",color:"primary",size:"lg"},q("footer.signUp")),e.createElement("div",{className:"social"},e.createElement(s,{size:"sm",type:"regular"},null===(i=null==G?void 0:G.social)||void 0===i?void 0:i.title),e.createElement("div",{className:"icons"},null===(m=null===(c=null==G?void 0:G.social)||void 0===c?void 0:c.socials)||void 0===m?void 0:m.map((function(t,n){return e.createElement("a",{key:n,"data-event-category":"Footer","data-event-action":"Follow us - ".concat(t.name),"data-content-label":t.url,href:t.url},R?e.createElement("amp-img",{"data-event-category":"Footer","data-event-action":"Follow us - ".concat(t.name),"data-content-label":t.url,src:t.icon,alt:"Logo Social",width:"32",height:"32"}):e.createElement("img",{loading:"lazy","data-event-category":"Footer","data-event-action":"Follow us - ".concat(t.name),"data-content-label":t.url,"data-src":t.icon,alt:"Logo Social",className:"social-icon lazy"}))}))),e.createElement("hr",{className:"hrMobile"}))),e.createElement("div",null,Y&&e.createElement(e.Fragment,null,e.createElement("div",{className:"biglinks"},null===(u=null===(d=Y[0])||void 0===d?void 0:d.items)||void 0===u?void 0:u.map((function(t,n){return e.createElement("a",{"data-event-category":"Footer","data-event-action":t.title,"data-event-label":"https://".concat(gn[Z]).concat(t.url),className:"bigLink",key:n,href:t.url},t.title)}))),e.createElement("hr",{className:"hrMobile"}),e.createElement("div",{className:"mHalf"},e.createElement(s,{type:"regular",size:"sm",className:"linkTitle"},null===(p=Y[1])||void 0===p?void 0:p.menu_title),null===(v=null===(g=Y[1])||void 0===g?void 0:g.items)||void 0===v?void 0:v.map((function(t,n){return e.createElement("a",{"data-event-category":"Footer","data-event-action":t.title,"data-event-label":"https://".concat(gn[Z]).concat(t.url),className:"link",href:t.url,key:n},e.createElement(s,{size:"sm",type:"regular",dataEventCategory:"Footer",dataEventAction:t.title,dataEventLabel:"https://".concat(gn[Z]).concat(t.url)},t.title))}))),e.createElement("div",{className:"mHalf"},e.createElement(s,{type:"regular",size:"sm",className:"linkTitle"},null===(h=Y[2])||void 0===h?void 0:h.menu_title),null===(E=null===(f=Y[2])||void 0===f?void 0:f.items)||void 0===E?void 0:E.map((function(t,n){return t.url&&e.createElement("a",{"data-event-category":"Footer","data-event-action":t.title,"data-event-label":t.url,className:"link",href:t.url,key:n},e.createElement(s,{size:"sm",type:"regular",dataEventCategory:"Footer",dataEventAction:t.title,dataEventLabel:t.url},t.title))})))),!R&&e.createElement(e.Fragment,null,e.createElement("hr",{className:"hrMobile"}),e.createElement("div",{className:"otherSites"},e.createElement(s,{type:"regular",size:"sm",className:"linkTitle"},null===(y=null==G?void 0:G.branch)||void 0===y?void 0:y.title),e.createElement("div",{className:"flags"},null===(w=null===(b=null==G?void 0:G.branch)||void 0===b?void 0:b.branch)||void 0===w?void 0:w.map((function(t,n){return e.createElement("a",{className:"link",href:t.url,key:n,"data-event-category":"Footer","data-event-action":t.name,"data-event-label":t.url},e.createElement(Wa,{url:t.flag,isMobile:U,dataEventCategory:"Footer",dataEventAction:t.name,dataEventLabel:t.url,isAmp:R}))}))))))),e.createElement("hr",null),e.createElement("div",{className:"copyright","data-is-amp":R||void 0},(null===(x=null==G?void 0:G.general)||void 0===x?void 0:x.verified)&&e.createElement("a",{href:null===(C=null===(k=null==G?void 0:G.general)||void 0===k?void 0:k.verified[0])||void 0===C?void 0:C.url,className:"copyright-image"},R?e.createElement("amp-img",{src:null===(L=null===(N=null==G?void 0:G.general)||void 0===N?void 0:N.verified[0])||void 0===L?void 0:L.image,alt:"DMCA Icon",width:"100",height:"36"}):e.createElement("img",{loading:"lazy",className:"lazy","data-src":null===(_=null===(z=null==G?void 0:G.general)||void 0===z?void 0:z.verified[0])||void 0===_?void 0:_.image,alt:"DMCA Icon"})),e.createElement(s,{size:"xs",type:"regular",className:"copyright-content"},null===(M=null==G?void 0:G.general)||void 0===M?void 0:M.copyright)),"vi-VN"===Z&&e.createElement(s,{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")):e.createElement(e.Fragment,null,(null==G?void 0:G.menu)&&e.createElement("div",{className:"columns"},e.createElement("div",{className:"mHalf"},e.createElement(s,{type:"regular",size:"sm",className:"linkTitle"},null===(B=null==G?void 0:G.menu[1])||void 0===B?void 0:B.menu_title),null===(D=null===(F=null==G?void 0:G.menu[1])||void 0===F?void 0:F.items)||void 0===D?void 0:D.map((function(t){return e.createElement("a",{className:"link",href:t.url,key:t.title,"data-list-type":"Footer","data-content-type":"Navigate","data-content-topic":"Information","data-content-title":t.title,"data-content-id":"https://".concat(gn[Z]).concat(t.url),"data-event-category":"Footer","data-event-action":t.title,"data-event-label":"https://".concat(gn[Z]).concat(t.url)},e.createElement(s,{dataEventCategory:"Footer",dataEventAction:t.title,dataEventLabel:"https://".concat(gn[Z]).concat(t.url),size:"sm",type:"regular",style:{color:J.colors.gray800}},t.title))}))),e.createElement("div",{className:"mHalf"},e.createElement(s,{type:"regular",size:"sm",className:"linkTitle"},null===(S=null==G?void 0:G.menu[2])||void 0===S?void 0:S.menu_title),null===(j=null===(A=null==G?void 0:G.menu[2])||void 0===A?void 0:A.items)||void 0===j?void 0:j.map((function(t,n){return e.createElement("a",{className:"link",href:t.url,key:n,"data-list-type":"Footer","data-content-type":"Navigate","data-content-topic":"Hello Health","data-content-title":t.title,"data-content-id":t.url,"data-event-category":"Footer","data-event-action":t.title,"data-event-label":t.url},e.createElement(s,{size:"sm",type:"regular",style:{color:J.colors.gray800},dataEventCategory:"Footer",dataEventAction:t.title,dataEventLabel:t.url},t.title))}))),!R&&"mini"!==V&&e.createElement("hr",{className:"hrMobile"}),e.createElement("div",{className:"newsletter"},e.createElement("div",{className:"social"},e.createElement(s,{size:"sm",type:"regular"},null===(I=null==G?void 0:G.social)||void 0===I?void 0:I.title),e.createElement("div",{className:"icons"},null===(P=null===(H=null==G?void 0:G.social)||void 0===H?void 0:H.socials)||void 0===P?void 0:P.map((function(t,n){return e.createElement("a",{key:n,"data-event-category":"Footer","data-event-action":"Follow us - ".concat(t.name),"data-content-label":t.url,href:t.url},R?e.createElement("amp-img",{"data-event-category":"Footer","data-event-action":"Follow us - ".concat(t.name),"data-content-label":t.url,src:t.icon,alt:"Logo Social",width:"32",height:"32"}):e.createElement("img",{loading:"lazy","data-event-category":"Footer","data-event-action":"Follow us - ".concat(t.name),"data-content-label":t.url,"data-src":t.icon,alt:"Logo Social",className:"social-icon lazy"}))}))))))))))},Va=pn.footer(za||(za=U(["\n position: relative;\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\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(e){return e.theme.mbColors.blue})),Ga=pn.div(_a||(_a=U(["\n position: relative;\n padding: 80px 0 40px;\n display: flex;\n justify-content: space-between;\n align-items: flex-start;\n\n border-bottom: 1px solid\n ",";\n\n "," {\n padding: 32px 0 32px;\n flex-wrap: wrap;\n row-gap: 32px;\n column-gap: 16px;\n }\n"],["\n position: relative;\n padding: 80px 0 40px;\n display: flex;\n justify-content: space-between;\n align-items: flex-start;\n\n border-bottom: 1px solid\n ",";\n\n "," {\n padding: 32px 0 32px;\n flex-wrap: wrap;\n row-gap: 32px;\n column-gap: 16px;\n }\n"])),(function(e){return e.theme.colors.neutral200}),q.mbDown),Ua=pn.div(Ma||(Ma=U(["\n display: flex;\n justify-content: space-between;\n gap: 16px;\n flex-direction: column;\n\n "," {\n flex: 1 1 160px;\n }\n"],["\n display: flex;\n justify-content: space-between;\n gap: 16px;\n flex-direction: column;\n\n "," {\n flex: 1 1 160px;\n }\n"])),q.mbDown),Za=pn.div(Ba||(Ba=U(["\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"]))),Ra=pn.div(Fa||(Fa=U(["\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"])),q.mbDown),qa=pn.div(Da||(Da=U(["\n background-color: ",";\n padding: 14px 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\n "," {\n flex-direction: column-reverse;\n gap: 16px;\n align-items: flex-start;\n }\n }\n"],["\n background-color: ",";\n padding: 14px 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\n "," {\n flex-direction: column-reverse;\n gap: 16px;\n align-items: flex-start;\n }\n }\n"])),(function(e){return e.theme.mbColors.dark}),q.mbDown),Ka=pn.div(Sa||(Sa=U(["\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(e){return e.theme.mbColors.lightGray}),q.mbDown),Xa=function(t){var n=t.logoType,a=void 0===n?"marryBaby":n,l=t.footerMenu,o=l.general,r=l.menu,i=l.socials;return e.createElement(Va,{className:"footer-container"},e.createElement(Ka,null,e.createElement(T,{type:"marryBaby"},e.createElement(Ga,null,null==r?void 0:r.map((function(t,n){var a=t.menu_title,l=t.items;return e.createElement(Ua,{key:"mbf".concat(n)},e.createElement(s,{size:"s1",type:"semiBold",color:J.mbColors.pink},a),null==l?void 0:l.map((function(t,n){var a=t.title,l=t.url;return e.createElement("a",{"data-event-category":"Footer","data-event-action":a,"data-event-label":"".concat(l),className:"link",href:l,key:"footer-links-".concat(n)},e.createElement(Za,{key:"mbitem".concat(n)},e.createElement(s,{size:"p2",type:"regular",color:J.mbColors.gray},a)))})))})))),e.createElement(T,null,e.createElement(Ra,null,e.createElement(H,{className:"logo",type:a,width:"127px"}),e.createElement("div",{className:"content"},e.createElement(s,{size:"p2",type:"regular",color:J.mbColors.gray},o.content)),e.createElement("div",{className:"social-link"},null==i?void 0:i.map((function(t,n){var a=t.icon,l=t.name,o=t.url;return e.createElement("a",{key:"social".concat(n),target:"_blank",rel:"noreferrer","data-event-category":"Footer","data-event-action":"Follow us - Facebook","data-content-label":l,href:o},e.createElement("img",{src:a,alt:l}))}))))),e.createElement(qa,null,e.createElement(T,{type:"marryBaby"},e.createElement("div",{className:"content"},e.createElement(s,{size:"p3",type:"regular",color:J.colors.white},o.copyright),e.createElement("img",{src:o.verified.image,alt:o.verified.url}))))))},Ja=function(t){var n=t.type,a=t.isMobile,o=void 0===a||a,r=t.locale,i=t.footerInfo,c=t.isAmp,s=t.siteType;return l((function(){setTimeout((function(){return null==K?void 0:K.update()}),100)}),[]),"helloSites"===s?e.createElement(Oa,{isAmp:c,isMobile:o,type:n,locale:r,footerInfo:i||{}}):e.createElement(Xa,{footerMenu:i})};export{Mn as A,Bn as B,On as C,ua as D,Dn as F,Sn as G,$n as I,va as O,Tn as P,Zn as R,jn as S,In as T,Pn as U,Fn as a,Hn as b,Wn as c,Rn as d,Xn as e,Yn as f,Qn as g,ea as h,ta as i,aa as j,la as k,oa as l,ra as m,ia as n,ca as o,sa as p,ma as q,da as r,fa as s,Ea as t,Ca as u,Ta as v,Ia as w,Ja as x};
|