"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[137],{Lrsm:function(e,t,a){a.d(t,{C:function(){return g},I:function(){return ImagePreviewPopup},P:function(){return PostSingleImageViewPopup},a:function(){return PostImagePreview},b:function(){return d}});var n=a("q1tI"),r=a("D9+h"),o=a("q+5q"),l=a("Frmf"),i=a("ejmp"),c=a("t/pd"),s=a("V50O"),u=a("rBCA"),p=a("otAR"),h=a("iBNF"),m=a("gEnE"),g="data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none'%3e%3cpath stroke='%23262626' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M18 6 6 18M6 6l12 12'/%3e%3c/svg%3e",d="data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='24' height='25' fill='none'%3e%3cpath stroke='%23262626' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.75' d='M10.05 18.06 4 12.038l6.05-6.025M4.002 12.035h15'/%3e%3c/svg%3e";let E=u.Z.div` padding: 14px 16px 14px 17px; background: ${e=>e.bgColor}; border-left: 3px solid ${e=>e.highlight}; ${o.M.mbUp} { padding: 12px 12px 12px 17px; } `,b=u.Z.div` display: flex; `,I=u.Z.div` font-size: 12px; line-height: 18px; &[data-has-icon='true'] { margin-left: 10px; } `,v=u.Z.div` flex-shrink: 0; `,O=u.Z.div` display: grid; grid-gap: 3px; grid-template-columns: 1fr 1fr; grid-template-rows: auto; .img-wrapper { position: relative; overflow: hidden; width: 100%; padding-top: 56.25%; grid-column: auto; & > img { cursor: zoom-in; } .img-preview-blur { position: absolute; top: 50%; left: 50%; width: 110%; height: 110%; /* Add the blur effect */ -webkit-filter: blur(8px); filter: blur(8px); object-fit: cover; object-position: center; opacity: 0.8; transform: translate(-50%, -50%); } .img-preview { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: contain; object-position: center; } .img-more-overlay { position: absolute; top: 0; left: 0; display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; background: rgba(0, 0, 0, 0.5); z-index: 4; } } &[data-image-count='1'] { .img-wrapper { /* padding-top: 100%; */ grid-column: 1/3; } } &[data-image-count='2'] { .img-wrapper { /* padding-top: 100%; */ } } &[data-image-count='3'] { .img-wrapper { &:first-child { grid-column: 1/3; } } } &[data-image-count='4'] { .img-wrapper { /* padding-top: 100%; */ } } &[data-image-count='5'] { grid-template-columns: repeat(6, 1fr); .img-wrapper { /* padding-top: 100%; */ grid-column: auto/ span 2; &:first-child { padding-top: 56.25%; grid-column: 1/4; } &:nth-child(2) { padding-top: 56.25%; grid-column: 4/7; } } } &[data-is-marrybaby='true'] { grid-gap: 8px; .img-wrapper { padding-top: 66.66%; border-radius: 1rem; .img-preview { object-fit: cover; } } &[data-image-count='3'] { grid-template-columns: 1fr 1fr 1fr; .img-wrapper { &:first-child { padding-top: 100%; grid-column: 1/3; grid-row: 1/3; } } } } `,y=u.Z.div` position: fixed; z-index: 999; top: 0; left: 0; display: flex; overflow: hidden; width: 100vw; height: 100vh; flex-direction: column; background: white; opacity: 0; pointer-events: none; transition: opacity 0.2s linear; &[data-open='true'] { opacity: 1; pointer-events: auto; } .top-bar { position: relative; padding: 20px 40px; .icon-arrow-left { position: absolute; top: 50%; left: 20px; height: 24px; width: 24px; cursor: pointer; transform: translateY(-50%); } } .container { flex: 1; overflow-y: auto; .img-preview { width: 100%; min-width: 100%; margin-bottom: 0.5rem; cursor: pointer; max-height: 100%; object-fit: cover; } } `,T=(0,u.Z)(e=>{var{icon:t,bgColor:a=h.r.colors.yellow50,highlightColor:r=h.r.colors.yellow800,message:o}=e,l=(0,p.a)(e,["icon","bgColor","highlightColor","message"]);return n.createElement(E,Object.assign({bgColor:a,highlight:r},l),n.createElement(b,null,t&&n.createElement(v,null,t),n.createElement(I,{"data-has-icon":!!t},o)))})` margin-bottom: 16px; &.noti-bottom { border-left: none; margin-top: 4px; padding: 4px 8px; margin-left: 16px; margin-right: 16px; border-radius: 4px; } `,ImagePreviewPopup=({className:e,style:t,authorName:a,images:r,onClose:o,onOpenSingleView:i,alt:u})=>{let{t:p}=(0,l.u)(),[h,m]=(0,n.useState)(!1);return(0,n.useEffect)(()=>{setTimeout(()=>{m(!0)},0)},[]),n.createElement(c.h,null,n.createElement(y,{className:e,style:t,"data-open":h},n.createElement("div",{className:"top-bar"},n.createElement("img",{className:"icon-arrow-left",src:d,onClick:o,alt:"go back",loading:"lazy"}),n.createElement(s.T,{size:"p2",weight:"bold",style:{textAlign:"center"}},p("previewPhotos.title",{name:a}))),n.createElement("div",{className:"container"},r.map((e,t)=>n.createElement("img",{className:"img-preview",key:t,src:e,onClick:()=>null==i?void 0:i(t),alt:u,loading:"lazy"})))),",")},f=u.Z.div` position: fixed; z-index: 999; top: 0; left: 0; display: flex; width: 100%; height: 100%; flex-direction: column; background: black; opacity: 0; pointer-events: none; transition: opacity 0.2s linear; &[data-open='true'] { opacity: 1; pointer-events: auto; } `,C=u.Z.div` padding: 1rem; background: white; .icon-close { width: 26px; height: 26px; cursor: pointer; } `,w=u.Z.div` position: relative; flex: 1; overflow: hidden; > img { height: 100%; width: 100%; object-fit: contain; object-position: center; } `,x=u.Z.div` --inner-padding: max(16px, 20%); height: 100%; position: absolute; left: 0; padding: 8px; padding-right: var(--inner-padding); display: flex; align-items: center; top: 0; cursor: pointer; &[data-right] { padding-right: 8px; padding-left: var(--inner-padding); left: unset; right: 0; } &[data-disabled='true'] { cursor: not-allowed; } `,N=u.Z.div` border-radius: 50%; background: rgba(0, 0, 0, 0.3); display: flex; align-items: center; justify-content: center; padding: 4px; > img { width: 16px; height: 16px; &[data-disabled='true'] { opacity: 0.5; } } ${o.M.tdUp} { padding: 8px; > img { width: 30px; height: 30px; } } `;var A="data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='17' fill='none'%3e%3cpath stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.75' d='m6 12.813 4-4-4-4'/%3e%3c/svg%3e";let PostSingleImageViewPopup=({initialViewIndex:e,images:t,onClose:a,alt:r})=>{let[o,l]=(0,n.useState)(e),[i,s]=(0,n.useState)(!1);(0,n.useEffect)(()=>{setTimeout(()=>{s(!0)},0)},[]);let u=null==t?void 0:t[o],p=0===o,h=!(null==t?void 0:t.length)||o===(null==t?void 0:t.length)-1;return n.createElement(c.h,null,n.createElement(f,{"data-open":i&&!!u},n.createElement(C,null,n.createElement("img",{src:g,className:"icon-close",onClick:a,alt:"close",loading:"lazy"})),u&&o>=0&&n.createElement(n.Fragment,null,n.createElement(w,null,n.createElement("img",{className:"img-preview",src:u,alt:r,loading:"lazy"}),n.createElement(x,{"data-disabled":p,onClick:()=>!p&&l(o-1)},n.createElement(N,null,n.createElement("img",{src:A,style:{transform:"rotate(180deg)"},alt:"left arrow","data-disabled":p,loading:"lazy"}))),n.createElement(x,{"data-right":!0,"data-disabled":h,onClick:()=>!h&&l(o+1)},n.createElement(N,null,n.createElement("img",{src:A,alt:"right arrow","data-disabled":h,loading:"lazy"})))))))},_=(0,m.Z)(u.Z.div` position: absolute; top: 0; right: 0; left: 0; bottom: 0; background: rgba(0, 0, 0, 0.4); color: white; display: flex; align-items: center; justify-content: center; cursor: pointer; `,"hhgcomp-sensitivemask-inner"),P=u.Z.div``,S=u.Z.div` position: absolute; bottom: 0; left: 0; width: 100%; height: 100%; z-index: 3; background: white; cursor: pointer; &, * { // transition: all 300ms; transform-origin: bottom left; } img { transition: none; } .img-preview { width: 100%; } &[data-is-blurred='true'] { .img-preview { /* Add the blur effect */ -webkit-filter: blur(24px); filter: blur(24px); } } &[data-is-blurred='false'] { background: transparent; cursor: zoom-in; ${_.classSelector} { top: auto; right: auto; left: 8px; bottom: 8px; background: rgba(0, 0, 0, 0); align-items: flex-end; justify-content: flex-start; } } `,SensitiveMask=({image:e,showIcon:t=!0})=>{let[a,r]=(0,n.useState)(!0);return n.createElement(S,{"data-is-blurred":a,onClick:e=>a&&e.stopPropagation()},n.createElement("img",{loading:"lazy",className:"img-preview",src:e}),n.createElement(_,{onClick:e=>{e.stopPropagation(),r(!a)}},t&&n.createElement(P,null,a?n.createElement("svg",{width:"22",height:"20",viewBox:"0 0 22 20",fill:"none"},n.createElement("path",{d:"M1.71 2.54a.996.996 0 0 1 0-1.41c.39-.39 1.03-.39 1.42 0l16.31 16.33a.996.996 0 1 1-1.41 1.41l-2.72-2.72c-1.34.52-2.79.82-4.31.82-5 0-9.27-3.11-11-7.5C.77 7.5 2.06 5.8 3.68 4.51zM16 9.47c0-2.76-2.24-5-5-5-.51 0-1 .1-1.47.24L7.36 2.54c1.15-.37 2.37-.57 3.64-.57 5 0 9.27 3.11 11 7.49-.69 1.76-1.79 3.3-3.18 4.53l-3.06-3.06c.14-.46.24-.95.24-1.46m-5 5c-2.76 0-5-2.24-5-5 0-.77.18-1.5.49-2.14L8.06 8.9c-.03.18-.06.37-.06.57 0 1.66 1.34 3 3 3 .2 0 .38-.03.57-.07l1.57 1.57c-.65.32-1.37.5-2.14.5m2.97-5.33a2.97 2.97 0 0 0-2.64-2.64z",fill:"#fff"})):n.createElement("svg",{width:"23",height:"16",viewBox:"0 0 23 16",fill:"none"},n.createElement("path",{d:"M12 0C5.142 0 1.886 5.879 1.096 7.557c-.132.28-.132.604 0 .884C1.886 10.121 5.142 16 12 16c6.834 0 10.092-5.837 10.896-7.54a1.08 1.08 0 0 0 0-.92C22.092 5.836 18.834 0 12 0m0 3a5 5 0 1 1-.001 10.001 5 5 0 0 1 0-10.001m0 2a3 3 0 1 0 0 6 3 3 0 0 0 0-6",fill:"#2D87F3"})))))},PostImagePreview=({className:e,images:t=[],style:a,authorName:c,isSensitive:s=!1,alt:u,positionAlert:p="top"})=>{let{data:{env:{isMarryBaby:h}}}=(0,n.useContext)(i.T),{t:m}=(0,l.u)(),g=`+ ${(t.length||0)-4}`,[d,E]=(0,n.useState)(!1),[b,I]=(0,n.useState)(-1),v=t.length>5,y=(0,n.useRef)(!1);return(0,n.useEffect)(()=>()=>{y.current&&(0,o.t)(!1)},[]),(0,n.useEffect)(()=>{d||b>=0?((0,o.t)(!0),y.current=!0):((0,o.t)(!1),y.current=!1)},[d,b]),n.createElement(n.Fragment,null,s&&"top"===p&&n.createElement(T,{message:m("sensitiveMask.contentWarningDescription"),icon:n.createElement("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none"},n.createElement("path",{d:"M9 .667A8.336 8.336 0 0 0 .667 9c0 4.6 3.733 8.333 8.333 8.333S17.333 13.6 17.333 9 13.6.667 9 .667m0 9.166A.836.836 0 0 1 8.167 9V5.667c0-.459.375-.834.833-.834s.833.375.833.834V9A.836.836 0 0 1 9 9.833M8.167 11.5v1.667h1.666V11.5z",fill:"#FE921D"}))}),n.createElement(O,{className:e,style:a,"data-image-count":v?5:t.length||0,"data-is-marrybaby":h,"data-cursor-pointer":!s},null==t?void 0:t.slice(0,5).map((e,t)=>{let a=4===t&&v;return n.createElement("div",{className:"img-wrapper",key:t,onClick:()=>{t>=4&&v?E(!0):I(t)}},s&&n.createElement(SensitiveMask,{image:e,showIcon:!a}),!h&&n.createElement("img",{loading:"lazy",className:"img-preview-blur",src:e,alt:u}),n.createElement("img",{loading:"lazy",className:"img-preview",src:e,alt:u}),a&&n.createElement("div",{className:"img-more-overlay"},n.createElement(r.H,{tag:"h1",as:"h2",color:"white"},g)))})),d&&n.createElement(ImagePreviewPopup,{authorName:c||"",images:t,onClose:()=>E(!1),onOpenSingleView:I,alt:u}),b>=0&&n.createElement(PostSingleImageViewPopup,{images:t,initialViewIndex:b,onClose:()=>I(-1),alt:u}),s&&"bottom"===p&&n.createElement(T,{message:m("sensitiveMask.contentWarningDescription.community"),className:"noti-bottom",icon:n.createElement("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none"},n.createElement("path",{d:"M9 .667A8.336 8.336 0 0 0 .667 9c0 4.6 3.733 8.333 8.333 8.333S17.333 13.6 17.333 9 13.6.667 9 .667m0 9.166A.836.836 0 0 1 8.167 9V5.667c0-.459.375-.834.833-.834s.833.375.833.834V9A.836.836 0 0 1 9 9.833M8.167 11.5v1.667h1.666V11.5z",fill:"#FE921D"}))}))}},"2Qp+":function(e,t,a){a.d(t,{B:function(){return m}});var n=a("otAR"),r=a("q1tI"),o=a("/npG"),l=a("HC7W"),i=a("8vDj"),c=a("mAfZ"),s=a("yeZw"),u=a("1WmY"),p=(0,o.k)((e,t)=>{var a,n,r,o,i,c;let{other:p}=e,{template:h}=p,{size:m,variant:g,skipHover:d,withColorHover:E,isError:b,isSuccess:I,color:v,gradient:O,children:y,theme:T,customStylesType:f}=t,C="mb"===h||"marryBaby"===T,w=v||(T&&C?"mb":e.primaryColor),x=w.startsWith("#"),N=x?e.fn.lighten(v,.9):(null===(n=null===(a=e.colors)||void 0===a?void 0:a[w])||void 0===n?void 0:n[0])||"",A=x?w:null===(o=null===(r=e.colors)||void 0===r?void 0:r[w])||void 0===o?void 0:o[e.fn.primaryShade()],_=x?e.fn.darken(v,.05):null===(c=null===(i=e.colors)||void 0===i?void 0:i[w])||void 0===c?void 0:c[e.fn.primaryShade()+1],P=f===u.C.LEADGEN;return{root:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({transition:`all ${s.A} ease-in-out`},O&&Object.assign({border:0,position:"relative"},"secondary"===g&&{"&:before":{content:'""',position:"absolute",top:0,left:0,right:0,bottom:0,backgroundColor:"#fff",borderRadius:"inherit"}})),{"&:focus":{outline:"none"}}),P&&{borderRadius:12}),!y&&{paddingLeft:"10px",paddingRight:"10px",".mantine-Button-icon":{margin:0}}),(()=>{switch(m){case"xl":return Object.assign({height:56,fontWeight:P?u.F.halfBold:u.F.semiBold,fontSize:P?"15px":C?"14px":"16px",lineHeight:"24px"},P&&{letterSpacing:"-0.3px"});case"lg":return Object.assign({height:48,fontWeight:P?u.F.halfBold:u.F.semiBold,fontSize:P?"15px":C?"14px":"16px",lineHeight:"24px"},P&&{letterSpacing:"-0.3px"});case"md":return Object.assign({height:40,fontWeight:P?u.F.halfBold:u.F.semiBold,fontSize:P?"13px":"14px",lineHeight:P?"20px":"22px"},P&&{letterSpacing:"-0.3px"});case"sm":return Object.assign(Object.assign({height:32,fontWeight:P?u.F.halfBold:u.F.semiBold,fontSize:P?"11px":C?"12px":"14px",lineHeight:P?"16px":"22px"},P&&{letterSpacing:"-0.2px"}),{paddingLeft:"16px",paddingRight:"16px"});case"xs":return Object.assign({height:24,fontWeight:P?u.F.halfBold:u.F.semiBold,fontSize:P?"11px":"12px",lineHeight:P?"16px":"18px",paddingLeft:"8px",paddingRight:"8px"},P&&{letterSpacing:"-0.2px"})}})()),(()=>{switch(g){case"primary":return Object.assign(Object.assign({color:e.white},O?{backgroundImage:O,backgroundColor:"initial"}:{backgroundColor:A}),!d&&{"&:hover":{backgroundColor:O?"initial":_}});case"secondary":return Object.assign(Object.assign(Object.assign({color:A,backgroundColor:"transparent",border:`1px solid ${A}`},O&&{backgroundImage:O,borderColor:"transparent"}),!d&&!O&&{"&:hover":{backgroundColor:N,border:`1px solid ${A}`}}),E&&!O&&{"&:hover":{backgroundColor:A,border:`1px solid ${A}`,color:"#fff"}});case"white":return{color:A,backgroundColor:"transparent",border:"1px solid transparent","&:hover":{backgroundColor:"transparent",borderColor:"transparent"}};case"tertiary":return{color:e.colors.gray[8],backgroundColor:e.white,border:`1px solid ${e.colors.neutral[2]}`,"&:hover":Object.assign({},d?{backgroundColor:e.white,border:`1px solid ${e.colors.neutral[2]}`}:{backgroundColor:e.colors.neutral[0],border:`1px solid ${e.colors.neutral[0]}`})};case"light":return{color:A,backgroundColor:N,border:"1px solid transparent","&:hover":Object.assign({},d?{backgroundColor:N,border:"1px solid transparent"}:{backgroundColor:e.white,border:`1px solid ${N}`})};case"ghost":return Object.assign({color:A,backgroundColor:"transparent",border:"1px solid transparent"},!d&&{"&:hover":{backgroundColor:N,border:"1px solid transparent"}})}})()),{"&[data-disabled]":{backgroundColor:e.colors.gray[1],color:e.colors.gray[4]}}),b?Object.assign({color:e.colors.red[6],backgroundColor:e.white,border:`1px solid ${e.colors.red[6]}`},!d&&{"&:hover":{backgroundColor:e.colors.red[0],border:`1px solid ${e.colors.red[6]}`}}):{}),I?Object.assign({color:e.colors.green[8],backgroundColor:e.colors.green[0]},!d&&{"&:hover":{backgroundColor:e.colors.green[0]}}):{}),inner:Object.assign({ref:(0,l.A)("inner")},O&&{position:"relative"}),leftIcon:{marginRight:8},rightIcon:{},label:Object.assign({},O&&"secondary"===g&&{background:O,"-webkit-background-clip":"text","-webkit-text-fill-color":"transparent"})}});let h={primary:"filled",secondary:"outline",tertiary:"default",light:"light",ghost:"subtle",error:"outline",white:"white",success:"subtle"},m=(0,r.forwardRef)((e,t)=>{var a,o;let l=(0,i.rZ)(),s=Object.assign(Object.assign({},null===(o=null===(a=l.components)||void 0===a?void 0:a.Button)||void 0===o?void 0:o.defaultProps),function(e){let t={};return Object.keys(e).filter(t=>void 0!==e[t]).forEach(a=>t[a]=e[a]),t}(e)),{variant:m,size:g,color:d,gradient:E,skipHover:b,withColorHover:I,className:v,dataEventCategory:O,dataEventAction:y,dataEventLabel:T,children:f,theme:C,component:w,styles:x,classNames:N}=s,A=(0,n.a)(s,["variant","size","color","gradient","skipHover","withColorHover","className","dataEventCategory","dataEventAction","dataEventLabel","children","theme","component","styles","classNames"]),_="error"===m,P=(0,u.u)(),{classes:S,cx:L}=p({variant:m,size:g,color:d,gradient:E,skipHover:b,withColorHover:I,isError:_,isSuccess:"success"===m,children:f,theme:C,customStylesType:P},{name:"ButtonMantine",styles:x,classNames:N});return r.createElement(c.z,Object.assign({component:w,className:L(v,m),classNames:{root:S.root,inner:S.inner,leftIcon:S.leftIcon,rightIcon:S.rightIcon,label:S.label},variant:h[m],"data-variant":m,"data-event-category":O,"data-event-action":y,"data-event-label":T,ref:t,loaderProps:A.disabled?{color:"currentColor"}:void 0},A),f)})},tYXV:function(e,t,a){a.d(t,{D:function(){return DatePicker}});var n=a("otAR"),r=a("q1tI"),o=a("8vDj"),l=a("gHhT"),i=a("catb"),c=a("WsKU"),s=a("38FU"),u=a("HvYN"),p=a("CtT0"),h=a("yNk5");let DatePicker=e=>{var t,{value:a,fullWidth:m=!0}=e,g=(0,n.a)(e,["value","fullWidth"]);let d=(0,o.rZ)(),E="mb"===d.other.template,b=null===(t=c.I[h.env.UNIFY_LOCALE||p.L.Vietnam])||void 0===t?void 0:t.dateFormat;return r.createElement(i.a,Object.assign({locale:u.M[h.env.UNIFY_LOCALE||p.L.Vietnam],valueFormat:b,size:"md",clearable:!1,popoverProps:m?{styles:{dropdown:{minWidth:"100%",display:"flex",justifyContent:"center",alignItems:"center"}}}:{},styles:{root:{position:"relative"},rightSection:{pointerEvents:"none",cursor:"default"}},rightSection:r.createElement(l.E,{src:s.C.getAssetPath(E?"MB-calendar.svg":"OutlineCalendar.svg"),width:18,height:18}),value:a,placeholder:b},g,{className:`input-control ${(null==g?void 0:g.className)||""}`}))}},D5tQ:function(e,t,a){a.d(t,{O:function(){return OvulationForm}});var n,r,o=a("otAR"),l=a("q1tI"),i=a("/npG"),c=a("mYVa"),s=a("iuhU"),u=a("8vDj"),p=a("cChf"),h=a("ZFu2"),m=a("STpw"),g=a("QAkY"),d=a("tYXV"),E=a("V50O"),b=a("Frmf"),I=a("DbhK"),v=a("UHeE"),O=a("fkrl");let AvoidPregnancy=e=>{var{isMarryBaby:t,size:a=24}=e,n=(0,o.a)(e,["isMarryBaby","size"]);let r=Object.assign({width:a,height:a},n);return t?l.createElement("svg",Object.assign({viewBox:"0 0 33 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),l.createElement("path",{d:"M16.5 27.133c1.298 0 2.596-.149 3.868-.447a9.15 9.15 0 0 0 6.818-6.818 16.94 16.94 0 0 0 0-7.736 9.15 9.15 0 0 0-6.818-6.818 16.94 16.94 0 0 0-7.736 0 9.15 9.15 0 0 0-6.818 6.818A17 17 0 0 0 5.367 16a.867.867 0 0 1-1.734 0c0-1.43.165-2.862.494-4.264a10.88 10.88 0 0 1 8.109-8.11 18.7 18.7 0 0 1 8.528 0 10.88 10.88 0 0 1 8.11 8.11 18.7 18.7 0 0 1 0 8.528 10.88 10.88 0 0 1-8.11 8.11 18.7 18.7 0 0 1-4.264.493.867.867 0 0 1 0-1.734",fill:"#3E3F58"}),l.createElement("path",{d:"M12.5 16a4 4 0 1 1 8 0 4 4 0 0 1-8 0",fill:"#fff"}),l.createElement("path",{d:"M11.633 16a4.867 4.867 0 1 1 9.734 0 4.867 4.867 0 0 1-9.734 0m4.867-3.133a3.133 3.133 0 1 0 0 6.266 3.133 3.133 0 0 0 0-6.266m-4 9.8a2.667 2.667 0 1 1-5.333 0 2.667 2.667 0 0 1 5.333 0",fill:"#3E3F58"}),l.createElement("path",{d:"M10.305 22.195c.26.26.26.683 0 .943l-1.91 1.91c-.36.36-.562.847-.562 1.355a3.25 3.25 0 0 1-1.796 2.907l-1.239.62a.667.667 0 1 1-.596-1.193l1.238-.62a1.92 1.92 0 0 0 1.06-1.714c0-.862.342-1.688.952-2.298l1.91-1.91c.26-.26.682-.26.943 0",fill:"#3E3F58"}),l.createElement("path",{d:"M3.874 4.788a1 1 0 0 1 1.414-1.414l23.099 23.098a1 1 0 1 1-1.415 1.415z",fill:"#E85388"})):l.createElement("svg",Object.assign({viewBox:"0 0 19 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),l.createElement("g",{clipPath:"url(#clip0_1530_7251)"},l.createElement("path",{d:"M8.983 10.87a.23.23 0 0 1 .049-.16c.08-.114.156-.229.207-.36.1-.166.168-.348.233-.528.246-.668.397-1.36.508-2.062.036-.235.076-.471.09-.71.065-.511.101-1.024.095-1.541.004-.015.011-.03.011-.044a13 13 0 0 0-.089-1.62c-.023-.196-.093-.335-.298-.406-.293-.1-.48-.316-.568-.615a2.7 2.7 0 0 0-.217-.566c-.123-.222-.29-.391-.54-.47-.057-.018-.088-.016-.106.052q-.045.165-.073.336c-.005.044 0 .058.048.058q.122.005.244.017c.127.009.21.09.202.196-.011.111-.108.179-.239.166-.065-.007-.133-.009-.198-.016-.058-.008-.077.016-.067.072q.027.165.052.332c.006.043.031.053.07.053.078 0 .147-.03.218-.057.104-.042.2-.004.242.093.04.09.004.187-.093.235-.13.063-.27.113-.411.085a.23.23 0 0 0-.235.077c-.04-.084-.106-.146-.167-.211-.46-.475-.55-1.194-.235-1.82.18-.359.45-.627.828-.776A.4.4 0 0 0 8.69.595c.33-.317.734-.477 1.172-.55.641-.11 1.25-.024 1.819.3.41.233.728.566.942.983.131.253.188.535.246.814.16.762.233 1.538.293 2.313q.108 1.411.213 2.826c.055.712.13 1.422.24 2.128.066.428.175.846.26 1.27.097.479.039.941-.24 1.358a1.2 1.2 0 0 1-.517.428c-.163.05-.327.105-.491.155-.178.052-.302-.059-.268-.239a4.6 4.6 0 0 0 .077-.72 13.6 13.6 0 0 0-.133-2.225c-.03-.196-.055-.395-.087-.591-.07-.43-.151-.857-.257-1.28l-.015-.07a16 16 0 0 0-.282-1.03c-.012-.039-.025-.079-.076-.075-.038.003-.053.034-.058.07l-.146 1.105c-.05.219-.094.437-.158.652a5.5 5.5 0 0 1-.806 1.654l-.091.113c-.308.382-.654.719-1.094.95-.122.06-.177.048-.252-.063",fill:"#1B3250"}),l.createElement("path",{d:"M12.304 9.435c.1.737.154 1.477.133 2.224a4.6 4.6 0 0 1-.077.72c-.034.182.09.293.268.239q.246-.075.491-.155c.053.226.126.448.17.675q.09.452.129.912c.025.302.043.603.032.905q-.015.483-.065.964a14 14 0 0 1-.299 1.707c-.02.086-.045.17-.065.255-.02.09-.068.12-.16.12L8.789 18H7.781c-.111 0-.117-.011-.13-.124a3 3 0 0 0-.361-1.121c-.132-.235-.297-.448-.415-.692a3.14 3.14 0 0 1-.324-1.521c.233.07.418.001.571-.184q.236-.281.477-.559c.07-.08.136-.164.244-.193.315-.087.631-.166.94-.262.665-.207 1.324-.43 1.917-.804.251-.159.475-.344.595-.63.237-.564.415-1.147.592-1.733.085-.28.184-.55.417-.742",fill:"#2D87F3"}),l.createElement("path",{d:"M12.304 9.435c-.233.194-.33.462-.413.74-.177.585-.355 1.169-.592 1.733-.12.286-.344.471-.595.63-.593.375-1.254.597-1.916.804-.312.097-.628.177-.941.262-.11.031-.177.113-.244.193q-.24.277-.477.559c-.153.184-.34.253-.571.184a.87.87 0 0 1-.44-.54.64.64 0 0 1 .045-.503 1 1 0 0 0 .094-.31.47.47 0 0 1 .392-.405c.132-.03.269-.039.404-.053a.4.4 0 0 0 .114-.024c.115-.009.21-.069.31-.12.322-.167.646-.328.966-.497q.586-.308 1.192-.571a.78.78 0 0 0 .473-.524q.09-.305.177-.608c.047-.171.113-.337.14-.514a5.5 5.5 0 0 0 .806-1.654c.064-.215.108-.433.159-.652a.63.63 0 0 1 .342-.054c.08.013.156.036.237.054.105.423.187.85.256 1.28q.039.292.082.59m-4.19-5.947a.23.23 0 0 1 .235-.076c.142.025.282-.022.411-.086.097-.047.133-.143.093-.234-.042-.095-.138-.133-.242-.093-.071.027-.14.056-.218.056-.039 0-.062-.009-.07-.053q-.024-.165-.052-.33-.017-.082.067-.074c.066.008.133.01.198.017.131.013.228-.053.239-.166.01-.105-.073-.187-.202-.196-.082-.006-.162-.015-.244-.017-.046 0-.053-.014-.047-.058.016-.115.043-.224.072-.337.017-.067.05-.069.106-.05.25.078.417.247.54.469.1.178.16.371.217.566.087.298.273.515.568.615.206.07.275.21.298.406.066.539.091 1.08.09 1.62 0 .014-.008.029-.011.043-.272-.016-.525.075-.783.133a1.4 1.4 0 0 1-.513.031.5.5 0 0 1-.433-.36 2.3 2.3 0 0 1-.091-.46c.154-.024.309-.048.451-.124.1-.055.135-.148.09-.242a.18.18 0 0 0-.24-.084 1 1 0 0 1-.376.087 1.3 1.3 0 0 0-.326-.482c-.096-.093-.096-.215-.013-.319.06-.07.126-.134.186-.202",fill:"#FCCAAF"}),l.createElement("path",{d:"M10.069 7.052c-.013.239-.053.473-.09.71-.11.7-.261 1.394-.507 2.062-.066.18-.135.362-.233.528a.46.46 0 0 0-.235-.4c-.328-.21-.544-.508-.599-.898a.86.86 0 0 1 .242-.742c.237-.244.504-.459.761-.683.188-.162.37-.327.555-.493.033-.031.064-.064.106-.084m.349 2.818c-.025.176-.093.341-.14.513-.057.204-.119.404-.177.608a.78.78 0 0 1-.473.524q-.607.261-1.192.571c-.32.17-.646.33-.966.497-.099.051-.195.111-.31.12.066-.15.177-.266.277-.387.273-.334.615-.596.932-.881q.306-.28.611-.565c.077.11.13.124.251.06.439-.229.787-.567 1.094-.95z",fill:"#2D87F3"}),l.createElement("path",{d:"M8.271 4.49a1 1 0 0 0 .377-.088.183.183 0 0 1 .239.084c.047.095.01.187-.09.242-.14.076-.296.1-.45.124z",fill:"#FF6F4D"}),l.createElement("path",{d:"M11.96 7.563c-.079-.018-.157-.041-.237-.054a.65.65 0 0 0-.342.054l.146-1.104c.005-.037.02-.068.058-.071.05-.006.063.034.076.074q.159.511.282 1.03.01.036.017.071",fill:"#2D87F3"}),l.createElement("path",{d:"M9.834 1.004a7.996 7.996 0 1 0 0 15.992 7.996 7.996 0 0 0 0-15.992M9.465 2.26c1.606-.09 3.191.4 4.467 1.378a.282.282 0 0 1 .03.424l-9.066 9.066a.283.283 0 0 1-.424-.03A6.749 6.749 0 0 1 9.465 2.26m.369 13.49a6.72 6.72 0 0 1-4.016-1.325.284.284 0 0 1-.032-.426l9.046-9.047a.283.283 0 0 1 .427.032A6.75 6.75 0 0 1 9.834 15.75",fill:"#F44D2C"}),l.createElement("path",{d:"M10.159 5.509c.005.517 2.997-1.054 2.997-1.054s-.133-1.55-.293-2.313c-.058-.279-.114-.56-.245-.814a2.35 2.35 0 0 0-.943-.983c-.568-.324-1.178-.41-1.818-.3-.44.073-.843.233-1.173.55a.4.4 0 0 1-.147.085c-.379.15-.648.417-.828.776-.315.626-.224 1.345.235 1.82.062.065.127.127.167.21a.23.23 0 0 1 .235-.076c.142.028.282-.022.411-.085.097-.048.133-.144.093-.235-.042-.097-.138-.135-.242-.093-.071.027-.14.057-.218.057-.039 0-.064-.01-.07-.053q-.024-.165-.052-.332c-.01-.056.009-.08.067-.072.066.007.133.009.198.016.131.013.228-.055.239-.166.009-.105-.075-.187-.202-.196h-.007q-.118-.013-.237-.017c-.047 0-.053-.014-.047-.058.016-.114.043-.225.072-.336.019-.068.05-.07.106-.051.25.078.417.247.54.47.099.178.16.37.217.565.087.299.275.515.568.615.206.071.275.21.298.406.066.539.091 1.078.09 1.62z",fill:"#1B3250"}),l.createElement("path",{d:"M8.107 3.488a.23.23 0 0 1 .235-.076c.142.025.282-.022.411-.086.097-.047.133-.143.093-.234-.042-.095-.138-.133-.242-.093-.07.027-.14.056-.218.056-.038 0-.062-.009-.07-.053q-.024-.165-.052-.33-.017-.082.067-.074c.066.008.133.01.199.017.13.013.227-.053.238-.166.01-.105-.073-.187-.202-.196-.082-.006-.162-.015-.244-.017-.045 0-.053-.014-.047-.058.016-.115.043-.224.073-.337.016-.067.049-.069.105-.05.25.078.417.247.54.469.1.178.16.371.217.566.088.298.273.515.568.615.206.07.275.21.298.406.066.539.091 1.08.09 1.62 0 .014-.008.029-.011.043-.271-.016-.524.075-.783.133a1.4 1.4 0 0 1-.513.031.5.5 0 0 1-.433-.36 2.3 2.3 0 0 1-.091-.46c.154-.024.31-.048.451-.124.1-.055.135-.148.09-.242a.18.18 0 0 0-.24-.084 1 1 0 0 1-.376.087 1.3 1.3 0 0 0-.326-.482c-.096-.093-.096-.215-.012-.319.06-.07.125-.134.185-.202",fill:"#FCCAAF"}),l.createElement("path",{d:"M8.265 4.49a1 1 0 0 0 .376-.088.183.183 0 0 1 .239.084c.047.095.01.187-.09.242-.14.076-.296.1-.45.124z",fill:"#FF6F4D"})),l.createElement("defs",null,l.createElement("clipPath",{id:"clip0_1530_7251"},l.createElement("path",{fill:"#fff",d:"M.834 0h18v18h-18z"}))))},TryConceive=e=>{var{isMarryBaby:t,size:a=24}=e,n=(0,o.a)(e,["isMarryBaby","size"]);let r=Object.assign({width:a,height:a},n);return t?l.createElement("svg",Object.assign({viewBox:"0 0 33 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),l.createElement("path",{d:"M14.018 9.155c-1.422 1.066-1.777 1.777-1.067 2.843.57.853 2.133 2.488 3.2 3.554-.712 2.133-6.753 1.422-6.753 1.422l-.711 1.421-1.067 3.199c-1.066 0-3.198.142-3.198.71 0 .712 2.843 2.844 3.554 2.844.569 0 1.658-2.132 2.132-3.199 1.54 1.777 5.474 4.905 8.885 3.199 4.265-2.132 6.398-5.331 5.687-7.819-.274-.959-.284-1.495-.132-1.813a4.62 4.62 0 0 0 3.438-2.3c.715-1.108.78-2.417.397-3.652-.41-1.663-1.15-2.955-2.637-3.252-3.423-.685-6.397 1.016-6.397 4.62a4.6 4.6 0 0 0 .971 2.834c-1.184.316-2.414-.236-6.302-4.611",fill:"#fff"}),l.createElement("path",{d:"M29.3 10.825A5.235 5.235 0 0 0 24.077 5.6c-2.876 0-5.245 2.348-5.245 5.224 0 .36.275.634.634.634.36 0 .635-.275.635-.634 0-2.179 1.776-3.955 3.976-3.955s3.954 1.776 3.954 3.955a3.947 3.947 0 0 1-3.531 3.933.8.8 0 0 0-.381-.021c-.042.021-.085.021-.106.042a.64.64 0 0 0-.57.635c0 .254.147.465.359.57.105.487.148.995.148 1.502a7.175 7.175 0 0 1-7.17 7.17 7.22 7.22 0 0 1-5.773-2.898l-.02-.021c.507-.317 1.902-.17 2.41-.106a.637.637 0 0 0 .698-.57.637.637 0 0 0-.571-.699c-1.184-.148-3.384-.38-3.891 1.164-.064.19-.127.401-.19.592-.318.994-.74 2.347-1.27 2.58-.634.063-2.918-1.587-3.172-2.284.212-.275 1.248-.444 2.623 0 .169.063.36.042.507-.064s.275-.232.296-.423c.571-2.707.74-3.278.74-3.299v-.021c.212-.888.867-.973 2.538-.93 1.523.042 3.384.084 4.674-1.46a7.8 7.8 0 0 0 3.235.994h.043a.643.643 0 0 0 .634-.592c.021-.36-.232-.655-.57-.677-4.4-.36-6.028-4.652-6.091-4.842 0 0 0-.022-.022-.022-.274-.634-.063-1.036.19-1.163.17-.105.445-.105.614.17 1.248 2.008 2.432 3.32 3.574 4.018.021 0 .042.02.042.02.677.34 2.052.762 3.596-.295.296-.19.359-.592.169-.889-.19-.296-.592-.36-.889-.169-.951.635-1.776.487-2.305.233-.93-.571-1.988-1.777-3.108-3.574-.508-.783-1.48-1.036-2.284-.613-.762.401-1.312 1.438-.762 2.77.085.254.93 2.368 2.898 3.934a2.7 2.7 0 0 1-.614.486c-.02 0-.02 0-.042-.021-8.205-2.517-8.86-8.586-8.924-9.77a.61.61 0 0 0-.656-.614.63.63 0 0 0-.592.656c.042 1.226.655 7.084 7.74 10.172h-.508c-1.48-.042-3.34-.085-3.806 1.882-.021.106-.17.677-.613 2.707-1.587-.36-3.194-.127-3.574 1.036-.19.55.126 1.206.972 2.01.571.549 2.263 1.902 3.447 1.902.149 0 .297-.02.423-.063.952-.36 1.438-1.544 1.861-2.813a8.48 8.48 0 0 0 6.324 2.855c4.652 0 8.438-3.785 8.438-8.438 0-.507-.043-1.015-.148-1.522a5.264 5.264 0 0 0 4.23-5.16",fill:"#3E3F58"}),l.createElement("rect",{x:"23.005",y:"8.444",width:"1.942",height:"1.422",rx:".711",transform:"rotate(34.869 23.005 8.444)",fill:"#FB8C00"})):l.createElement("svg",Object.assign({viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),l.createElement("path",{d:"M13.996 8.62v3.221c1.054.035 1.682-.705 1.845-1.467.209-.977-.444-2.041-1.845-1.754",fill:"#FEAA96"}),l.createElement("path",{d:"M14.055 10.67a.21.21 0 0 1-.2-.277c.166-.508.594-.69.92-.644a.21.21 0 1 1-.059.418c-.163-.023-.37.079-.461.358a.21.21 0 0 1-.2.145",fill:"#FF886C"}),l.createElement("path",{d:"M2.16 10.374c.162.762.79 1.502 1.844 1.467V8.62c-1.4-.287-2.054.777-1.845 1.754",fill:"#FEAA96"}),l.createElement("path",{d:"M3.98 10.67a.21.21 0 0 1-.2-.145c-.093-.28-.299-.381-.462-.358a.21.21 0 0 1-.21-.102.21.21 0 0 1 .152-.316c.326-.046.753.136.92.644a.21.21 0 0 1-.2.277",fill:"#FF886C"}),l.createElement("path",{d:"M9 15.831c1.325 0 3.365-.561 4.534-2.292 1.057-1.563.436-4.144.462-5.169.053-2.079-1.447-4.78-4.996-4.78s-5.05 2.7-4.996 4.78c.026 1.025-.595 3.606.461 5.169 1.17 1.73 3.21 2.292 4.535 2.292",fill:"#FECCBF"}),l.createElement("path",{d:"M6.881 10.535a.56.56 0 1 0 0-1.121.56.56 0 0 0 0 1.121",fill:"#A35961"}),l.createElement("path",{d:"M7.114 9.777a.21.21 0 0 1-.188-.116c-.049-.097-.205-.122-.27-.129-.225-.022-.44.056-.477.104a.211.211 0 1 1-.347-.241c.149-.215.53-.306.831-.285.306.021.533.15.64.362a.21.21 0 0 1-.189.305",fill:"#8C2F39"}),l.createElement("path",{d:"M11.119 10.535a.56.56 0 1 0 0-1.121.56.56 0 0 0 0 1.121",fill:"#A35961"}),l.createElement("path",{d:"M9 13.329c.777 0 .994-.61 1.046-.92.031-.185-.132-.35-.34-.35H8.293c-.208 0-.371.165-.34.35.052.31.27.92 1.047.92",fill:"#D84023"}),l.createElement("path",{d:"M10.763 7.94a.2.2 0 0 1-.107-.03.33.33 0 0 0-.18-.029.21.21 0 1 1-.07-.416.74.74 0 0 1 .464.081.211.211 0 0 1-.107.393m-3.526 0a.21.21 0 0 1-.107-.393.74.74 0 0 1 .463-.08.211.211 0 1 1-.07.415.3.3 0 0 0-.18.029.2.2 0 0 1-.106.029",fill:"#FEAA96"}),l.createElement("path",{d:"M10.887 9.777a.21.21 0 0 1-.189-.305c.107-.212.334-.34.64-.362.3-.021.682.07.83.285a.211.211 0 0 1-.346.24c-.038-.048-.252-.125-.477-.103-.065.007-.221.032-.27.129a.21.21 0 0 1-.188.116",fill:"#8C2F39"}),l.createElement("path",{d:"M9.284 11.02a.21.21 0 0 1-.22-.15.07.07 0 0 0-.063-.05H9a.07.07 0 0 0-.064.05.21.21 0 0 1-.22.15.22.22 0 0 1-.192-.244c.018-.221.213-.379.476-.379.264 0 .458.158.476.38a.22.22 0 0 1-.192.244",fill:"#FEAA96"}),l.createElement("path",{d:"M9.55 12.06h-1.1l-.003.054a.552.552 0 1 0 1.102-.055m2.041-.774-.29.53a.1.1 0 0 1-.041.04l-.53.29a.1.1 0 0 0-.053.09.1.1 0 0 0 .053.09l.53.29q.026.015.04.04l.29.53a.103.103 0 0 0 .18 0l.29-.53a.1.1 0 0 1 .041-.04l.53-.29a.103.103 0 0 0 0-.18l-.53-.29a.1.1 0 0 1-.04-.04l-.29-.53a.1.1 0 0 0-.143-.039.1.1 0 0 0-.038.04",fill:"#fff"}),l.createElement("path",{d:"M11.055 2.193c-.147-.422-.524-.698-1.01-.738a.9.9 0 0 0-.535.154c-.206.155-.37.358-.478.592a.036.036 0 0 1-.066 0 1.55 1.55 0 0 0-.475-.592.9.9 0 0 0-.537-.154c-.485.04-.862.316-1.008.739a1.03 1.03 0 0 0 .259 1.09c.479.447 1.156.518 1.543.518h.502c.387 0 1.066-.07 1.545-.517a1.03 1.03 0 0 0 .26-1.092M8.79 3.243a.13.13 0 0 1-.134.135c-.316-.012-.821-.084-1.163-.402a.61.61 0 0 1-.148-.644.66.66 0 0 1 .438-.417c.242-.078.404-.006.456.033.446.33.539.932.551 1.295m1.718-.267c-.342.319-.847.39-1.163.402a.13.13 0 0 1-.135-.135c.013-.362.105-.964.551-1.295a.47.47 0 0 1 .25-.073c.318.027.554.193.645.457a.61.61 0 0 1-.149.644",fill:"#2D87F3"}),l.createElement("path",{d:"M8.998 3.338a.21.21 0 0 1 .122.383l-.04.028c-.16.118-.957.76-.991 1.758-.027.78.403 1.132.814 1.202.367.062.831-.096.985-.59a.415.415 0 0 0-.211-.52c-.136-.069-.32-.076-.425.064a.211.211 0 0 1-.337-.253c.215-.287.607-.363.954-.186a.836.836 0 0 1 .422 1.02 1.28 1.28 0 0 1-1.458.88c-.56-.095-1.202-.58-1.166-1.631.046-1.334 1.17-2.093 1.222-2.125a.2.2 0 0 1 .109-.03",fill:"#BA8288"}))},y=(0,l.createContext)({});var T=(0,i.k)(e=>({inputRightSection:{fontSize:(0,c.h)(13),lineHeight:(0,c.h)(24),color:e.colors.gray[4],justifyContent:"flex-end",paddingRight:8}}));let DefaultLayout=e=>{var t=(0,o.a)(e,[]);let{t:a}=(0,b.u)(),{currentUrl:n,submitProps:r,form:i,calculatingMethods:c,isMobile:u}=(0,l.useContext)(y),{classes:p={}}=(0,l.useContext)(I.C),{classes:h}=T(void 0,{name:"OvulationTool__DefaultLayout"});return l.createElement(v.H,Object.assign({formLayout:"default"},t),l.createElement(v.H.FormRow,null,l.createElement(v.H.Control,null,l.createElement(v.H.ChipGroup,Object.assign({data:c,label:a("dueDatePage.calculationMethod"),isMobile:u},i.getInputProps("calculatorType"))))),l.createElement(v.H.FormRow,null,l.createElement(d.D,Object.assign({placeholder:"DD/MM/YYYY",popoverProps:{withinPortal:!0},label:l.createElement(E.T,{size:"p2",weight:"semiBold"},` (${a("dueDatePage.lastPeriod.lastPeriodLabel")})`),maxDate:new Date},i.getInputProps("lastPeriodDate")))),l.createElement(v.H.FormRow,null,l.createElement(g.I.Number,Object.assign({label:l.createElement(E.T,{size:"p2",weight:"semiBold"},a("ovulationPage.cycleLength")),rightSection:a("ovulationPage.dayUnit"),min:21,max:45,defaultValue:1},i.getInputProps("cycleLength"),{classNames:{rightSection:h.inputRightSection}}))),l.createElement(v.H.FormRow,null,l.createElement(g.I.Number,Object.assign({label:l.createElement(E.T,{size:"p2",weight:"semiBold"},a("ovulationPage.periodDuration")),rightSection:a("ovulationPage.dayUnit"),min:1,max:15,defaultValue:1},i.getInputProps("periodLength"),{classNames:{rightSection:h.inputRightSection}}))),l.createElement(v.H.FormRow,{className:p.submitWrapper},l.createElement(v.H.Submit,Object.assign({type:"submit",className:(0,s.default)("due-date-calculate-button",p.submitBtn),dataEventCategory:"Health Tool",dataEventAction:"Ovulation",dataEventLabel:n},r),a("dueDatePage.lastPeriod.calculate"))))},InlineLayout=e=>{var t=(0,o.a)(e,[]);let{t:a}=(0,b.u)(),{currentUrl:n,submitProps:r,form:i,calculatingMethods:c}=(0,l.useContext)(y),{classes:u={}}=(0,l.useContext)(I.C);return l.createElement(v.H,Object.assign({formLayout:"inline"},t),l.createElement(v.H.FormRow,null,l.createElement(v.H.BorderInlineControl,{label:a("dueDatePage.calculationMethod"),direction:"column",width:"100%"},l.createElement(v.H.ChipGroup,Object.assign({data:c},i.getInputProps("calculatorType"))))),l.createElement(v.H.FormRow,null,l.createElement(v.H.BorderInlineControl,{label:a("dueDatePage.lastPeriod.lastPeriodLabel")},l.createElement(d.D,Object.assign({placeholder:"DD/MM/YYYY",popoverProps:{withinPortal:!0},maxDate:new Date},i.getInputProps("lastPeriodDate"))))),l.createElement(v.H.FormRow,null,l.createElement(v.H.BorderInlineControl,{label:a("ovulationPage.cycleLength")+" "+a("ovulationPage.dayUnit")},l.createElement(g.I.Number,Object.assign({min:21,max:45,defaultValue:1},i.getInputProps("cycleLength"),{error:null}))),i.errors.cycleLength&&l.createElement(v.H.Error,null,i.errors.cycleLength)),l.createElement(v.H.FormRow,null,l.createElement(v.H.BorderInlineControl,{label:a("ovulationPage.periodDuration")+" "+a("ovulationPage.dayUnit")},l.createElement(g.I.Number,Object.assign({min:1,max:15,defaultValue:1},i.getInputProps("periodLength"),{error:null}))),i.errors.periodLength&&l.createElement(v.H.Error,null,i.errors.periodLength)),l.createElement(v.H.FormRow,{className:u.submitWrapper},l.createElement(v.H.Submit,Object.assign({type:"submit",className:(0,s.default)("due-date-calculate-button",u.submitBtn),dataEventCategory:"Health Tool",dataEventAction:"Ovulation",dataEventLabel:n},r),a("dueDatePage.lastPeriod.calculate"))))},MbLayout=e=>{var t=(0,o.a)(e,[]);let{t:a}=(0,b.u)(),{currentUrl:n,submitProps:r,form:i,calculatingMethods:c}=(0,l.useContext)(y);return l.createElement(v.H,Object.assign({formLayout:"inline"},t),l.createElement(v.H.Control,null,l.createElement(g.I.Wrapper,{label:l.createElement(E.T,{size:"p4",sx:{fontWeight:"normal"}},a("dueDatePage.calculationMethod"))},l.createElement(v.H.ChipGroup,Object.assign({data:c},i.getInputProps("calculatorType"))))),l.createElement(v.H.BorderBoxControl,{label:a("dueDatePage.lastPeriod.lastPeriodLabel"),rightSection:l.createElement(O.Z,null)},l.createElement(d.D,Object.assign({placeholder:"DD/MM/YYYY",popoverProps:{withinPortal:!0},maxDate:new Date,rightSection:null},i.getInputProps("lastPeriodDate")))),l.createElement(v.H.BorderBoxControl,{label:a("ovulationPage.cycleLength"),rightSection:a("ovulationPage.dayUnit")},l.createElement(g.I.Number,Object.assign({min:21,max:45,defaultValue:1},i.getInputProps("cycleLength")))),i.errors.cycleLength&&l.createElement(v.H.Error,null,i.errors.cycleLength),l.createElement(v.H.BorderBoxControl,{label:a("ovulationPage.periodDuration"),rightSection:a("ovulationPage.dayUnit")},l.createElement(g.I.Number,Object.assign({min:1,max:15,defaultValue:1},i.getInputProps("periodLength")))),i.errors.periodLength&&l.createElement(v.H.Error,null,i.errors.periodLength),l.createElement(v.H.Submit,Object.assign({type:"submit",className:"due-date-calculate-button",dataEventCategory:"Health Tool",dataEventAction:"Ovulation",dataEventLabel:n},r),a("dueDatePage.lastPeriod.calculate")))};(n=r||(r={}))[n.trackPeriod=0]="trackPeriod",n[n.conceive=1]="conceive",n[n.avoidPregnancy=2]="avoidPregnancy";let OvulationForm=e=>{var{formLayout:t="default",submitProps:a,currentUrl:n,isMobile:i,onSubmit:c}=e,s=(0,o.a)(e,["formLayout","submitProps","currentUrl","isMobile","onSubmit"]);let g=(0,u.rZ)(),{t:d}=(0,b.u)(),E="mb"===g.other.template,I=(0,p.c)({initialValues:{calculatorType:String(r.trackPeriod),periodLength:7,cycleLength:28,lastPeriodDate:new Date},validate:{periodLength:(0,h.U)(d("validation.error.requiredField")),cycleLength:(0,h.U)(d("validation.error.requiredField"))}}),v=Object.assign({onSubmit:I.onSubmit(c)},s),O=[{label:d("ovulationPage.trackPeriod"),value:r.trackPeriod,icon:l.createElement(m.L,null)},{label:d("ovulationPage.conceive"),value:r.conceive,icon:l.createElement(TryConceive,null)},{label:d("ovulationPage.avoidPregnancy"),value:r.avoidPregnancy,icon:l.createElement(AvoidPregnancy,null)}];return l.createElement(y.Provider,{value:{submitProps:a,currentUrl:n,form:I,isMobile:i,calculatingMethods:O}},"inline"===t?l.createElement(InlineLayout,Object.assign({},v)):E?l.createElement(MbLayout,Object.assign({formLayout:t},v)):l.createElement(DefaultLayout,Object.assign({},v)))}},LGva:function(e,t,a){a.d(t,{C:function(){return CartCareButton},S:function(){return ShoppingCartCare}});var n=a("q1tI"),r=a("xXM3"),o=a.n(r),l=a("rBCA"),i=a("Eso5"),c=a("iBNF"),s=a("q+5q"),u=a("Frmf"),p=a("V50O");let ShoppingCartCare=e=>n.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"none"},e),n.createElement("path",{d:"M1.94434 1.94434L3.44545 2.31989C3.88211 2.42878 4.20989 2.791 4.27545 3.23656L5.55656 11.9454",stroke:"currentColor",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M16.9444 14.7218H4.99997C4.23331 14.7218 3.61108 14.0996 3.61108 13.3329C3.61108 12.5662 4.23331 11.944 4.99997 11.944H14.4766C14.9544 11.944 15.38 11.6385 15.5311 11.184L17.0122 6.73957C17.2522 6.01957 16.7166 5.27734 15.9578 5.27734H4.57553",stroke:"currentColor",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M4.16648 18.8891C4.93354 18.8891 5.55537 18.2673 5.55537 17.5002C5.55537 16.7332 4.93354 16.1113 4.16648 16.1113C3.39941 16.1113 2.77759 16.7332 2.77759 17.5002C2.77759 18.2673 3.39941 18.8891 4.16648 18.8891Z",fill:"currentColor"}),n.createElement("path",{d:"M15.8332 18.8891C16.6003 18.8891 17.2221 18.2673 17.2221 17.5002C17.2221 16.7332 16.6003 16.1113 15.8332 16.1113C15.0662 16.1113 14.4443 16.7332 14.4443 17.5002C14.4443 18.2673 15.0662 18.8891 15.8332 18.8891Z",fill:"currentColor"})),h=(0,l.Z)(i.x)` display: flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid #ffffff33; position: relative; flex-shrink: 0; cursor: pointer; /* Desktop: Square layout */ border-radius: 28px; max-height: 40px; padding: 9px 1rem; background-color: inherit; white-space: nowrap; .cart-care-icon { width: 20px; height: 20px; color: ${c.r.colors.white}; flex-shrink: 0; } .cart-care-button-text { display: block; font-size: 14px; font-weight: 500; line-height: 22px; } /* Mobile: Circle layout */ ${s.M.mbDown} { border-radius: 100%; aspect-ratio: 1/1; width: 32px; height: 32px; padding: auto; background-color: ${c.r.colors.white}; max-height: none; padding: 0; .cart-care-icon { width: 20px; height: 20px; color: ${c.r.colors.blue900}; flex-shrink: 0; } .cart-care-button-text { display: none; } } `,m=(0,l.Z)(i.x)` min-width: 20px; min-height: 20px; aspect-ratio: 1/1; border-radius: 100%; background-color: ${c.r.colors.red500}; color: ${c.r.colors.white}; display: flex; align-items: center; justify-content: center; flex-shrink: 0; position: absolute; top: -4px; right: -4px; ${s.M.mbDown} { top: -8px; right: -8px; } `,CartCareButton=e=>{let{count:t=0,href:a,classes:r,boxProps:l,anchorProps:i,tracking:s}=e,{t:g}=(0,u.u)();return n.createElement("a",Object.assign({className:o()("cart-care-button"),href:a,"data-testid":"cart-care-button","data-event-category":"Hamburger Navigation","data-event-action":"Cart Click","data-event-label":a},s,i),n.createElement(h,Object.assign({className:o()("cart-care-button-box",null==r?void 0:r.box)},l),n.createElement(ShoppingCartCare,{className:"cart-care-icon"}),n.createElement(p.T,{size:"label1",color:c.r.colors.white,fw:500,className:"cart-care-button-text"},g("navigation.button.cartCareService")),t>0&&n.createElement(m,{className:o()("cart-care-button-count-box",null==r?void 0:r.count)},n.createElement(p.T,{size:t>99?"label2":"c1",color:c.r.colors.white,fw:600,className:"cart-care-button-count-text"},t>99?"99+":t))))}},V50O:function(e,t,a){a.d(t,{T:function(){return u}});var n=a("otAR"),r=a("q1tI"),o=a("/npG"),l=a("8vDj"),i=a("TIp3"),c=a("1WmY"),s=(0,o.k)((e,t)=>{var a,n,r,o,l,i,s,u,p,h;let m=c.a[null==t?void 0:t.customStylesType]||c.a[c.C.NONE],g=null===(a=m.fontSize[null==t?void 0:t.size])||void 0===a?void 0:a[0],d=null===(n=m.lineHeight[null==t?void 0:t.size])||void 0===n?void 0:n[0],E=null!==(l=null===(o=null===(r=m.letterSpacing)||void 0===r?void 0:r[null==t?void 0:t.size])||void 0===o?void 0:o[0])&&void 0!==l?l:0,b=null===(i=m.fontSize[null==t?void 0:t.size])||void 0===i?void 0:i[1],I=null===(s=m.lineHeight[null==t?void 0:t.size])||void 0===s?void 0:s[1],v=null!==(h=null===(p=null===(u=m.letterSpacing)||void 0===u?void 0:u[null==t?void 0:t.size])||void 0===p?void 0:p[1])&&void 0!==h?h:0;return{root:Object.assign({},(null==t?void 0:t.size)&&{fontWeight:(null==t?void 0:t.as)==="label"?c.F.semiBold:m.fontWeight[t.weight]||m.fontWeightBySize[null==t?void 0:t.size]||c.F.regular,fontSize:`${g}`,lineHeight:`${d}`,letterSpacing:E,[e.fn.smallerThan("sm")]:{fontSize:`${b}`,lineHeight:`${I}`,letterSpacing:v}})}});let u=(0,r.forwardRef)((e,t)=>{var a,{size:o,color:u,weight:p,as:h="p",styles:m,className:g,dataEventCategory:d,dataEventAction:E,dataEventLabel:b,variant:I}=e,v=(0,n.a)(e,["size","color","weight","as","styles","className","dataEventCategory","dataEventAction","dataEventLabel","variant"]);let O=(0,l.rZ)(),y=(0,c.u)(),{classes:T,cx:f}=s({size:o,weight:"caption"===p?"bold":p,as:h,customStylesType:y},{name:"Text",styles:m}),C="string"==typeof O.colors[u]?O.colors[u]:u;return r.createElement(i.x,Object.assign({"data-size":o,className:f(T.root,g),color:C||("label"===h?O.colors.gray[6]:(null===(a=null==O?void 0:O.other)||void 0===a?void 0:a.template)==="mb"?O.colors.delftGray[7]:void 0)||("primary"===I?O.colors.gray[9]:"secondary"===I?O.colors.gray[7]:"tertiary"===I?O.colors.gray[5]:"disabled"===I?O.colors.gray[3]:"error"===I?O.colors.red[6]:"success"===I?O.colors.green[6]:void 0)||O.colors.gray[7],component:h,"data-event-category":d,"data-event-action":E,"data-event-label":b,classNames:{root:Object.assign(Object.assign({},v.wordWrap?{"word-wrap":v.wordWrap}:void 0),v.isUppercase||"caption"===p?{"text-transform":"uppercase"}:void 0)},ref:t},v))})},NTw2:function(e,t,a){a.d(t,{T:function(){return Tabs}});var n=a("otAR"),r=a("q1tI"),o=a("aKYm"),l=a("VLUI"),i=a("/npG"),c=a("mYVa"),s=a("rlLN"),u=a("vaps"),p=a("2Qp+"),h=a("V50O"),m=(0,i.k)((e,t)=>{let{variant:a}=t,n={content:"none",top:0,bottom:0,zIndex:1,width:(0,c.h)(56)};return Object.assign({},"inline"===a&&{root:{},tabsList:{gap:(0,c.h)(24),borderBottom:"none",flexWrap:"nowrap"},tab:{padding:`${(0,c.h)(8)} 0`,color:e.colors.gray[4],borderColor:"transparent",borderBottomWidth:(0,c.h)(2),marginBottom:(0,c.h)(-1),transition:"border 0.2s ease","&:hover":{backgroundColor:"initial",borderColor:"transparent"},"&[data-active='true']":{color:e.fn.primaryColor(),borderColor:e.fn.primaryColor()}},tabRightSection:{},tabLabel:{},tabIcon:{},panel:{},scrollArea:{position:"relative","&.prev-bg":{"&:before":Object.assign(Object.assign({},n),{content:'""',position:"absolute",left:0,background:"linear-gradient(90deg, #FFF 0%, rgba(255, 255, 255, 0.00) 100%)"})},"&.next-bg":{"&:after":Object.assign(Object.assign({},n),{content:'""',position:"absolute",right:0,background:"linear-gradient(90deg, rgba(255,255,255,0) 0%,rgba(255,255,255,1) 100%)"})}},list:{borderBottom:`1px solid ${e.colors.neutral[1]}`},btn:{position:"absolute",top:"50%",zIndex:2,transform:"translate(0, -50%)",width:(0,c.h)(28),height:(0,c.h)(28),padding:0,background:"white",borderRadius:"50%",cursor:"pointer",filter:"drop-shadow(0px 0px 1px rgba(0, 0, 0, 0.04)) drop-shadow(0px 2px 8px rgba(0, 0, 0, 0.04)) drop-shadow(0px 10px 16px rgba(0, 0, 0, 0.04))",".mantine-Button-icon":{display:"flex",alignItems:"center",justifyContent:"center"},"&.disabled":{opacity:0,zIndex:0}},prevBtn:{left:0},nextBtn:{right:0}})});let Tabs=e=>{var t,{variant:a="inline",value:i,styles:c,children:g,dataList:d=[],tabProps:E,listProps:b,panelProps:I,TabComponentDisplay:v,startPadding:O=40,defaultValue:y}=e,T=(0,n.a)(e,["variant","value","styles","children","dataList","tabProps","listProps","panelProps","TabComponentDisplay","startPadding","defaultValue"]);let{cx:f,classes:C}=m({variant:a},{name:"Tabs",styles:c}),w=(0,r.useRef)(null),x=(0,r.useRef)([]),[N,A]=(0,r.useState)(y||(null===(t=null==d?void 0:d[0])||void 0===t?void 0:t.value)),[_,P]=(0,r.useState)(0),[S,L]=(0,r.useState)(!1),[k,M]=(0,r.useState)(!0),[R,H]=(0,r.useState)({x:0,y:0}),D=(0,r.useRef)(null),G=Object.assign({defaultValue:y,classNames:C},g?{value:i}:{value:N,onTabChange:e=>A(e)});(0,r.useEffect)(()=>{A(i)},[i]),(0,r.useEffect)(()=>{var e,t,a;null===(e=D.current)||void 0===e||e.scrollTo({left:(null===(a=null===(t=null==x?void 0:x.current)||void 0===t?void 0:t[_])||void 0===a?void 0:a.offsetLeft)-O,behavior:"smooth"})},[_]),(0,r.useEffect)(()=>{P(d.findIndex(e=>e.value==N))},[N]),(0,r.useEffect)(()=>{var e,t;M(0===R.x),L((null===(e=null==D?void 0:D.current)||void 0===e?void 0:e.clientWidth)+R.x===(null===(t=null==D?void 0:D.current)||void 0===t?void 0:t.scrollWidth))},[R]);let TabTextComponent=({text:e,dataEventCategory:t,dataEventAction:a,dataEventLabel:n})=>v?r.createElement(v,null,e):r.createElement(h.T,{size:"s3",color:"inherit",weight:"semiBold","data-event-category":t,"data-event-action":a,"data-event-label":n},e);return r.createElement(s.m,Object.assign({},G,T),g||r.createElement(r.Fragment,null,r.createElement(u.x,{className:f(C.scrollArea,`${k?"":"prev-bg"} ${S?"":"next-bg"}`),scrollbarSize:0,viewportRef:D,onScrollPositionChange:H},r.createElement(s.m.List,Object.assign({className:C.list,ref:w},b),d.map((e,t)=>r.createElement(s.m.Tab,Object.assign({ref:e=>x.current[t]=e,className:C.tab,key:String(e.value),value:String(e.value)},E),r.createElement(TabTextComponent,Object.assign({},e))))),r.createElement(p.B,{className:f(C.btn,C.prevBtn,k?"disabled":""),unstyled:!0,onClick:()=>P(_-1>-1?_-1:0),leftIcon:r.createElement(o.Z,{size:16})}),r.createElement(p.B,{className:f(C.btn,C.nextBtn,S?"disabled":""),unstyled:!0,onClick:()=>P(_+1r.createElement(s.m.Panel,Object.assign({value:String(e.value),key:String(e.value)},I),e.content))))};Tabs.List=s.m.List,Tabs.Tab=s.m.Tab,Tabs.Panel=s.m.Panel},dAQe:function(e,t,a){a.d(t,{P:function(){return PWGForm}});var n=a("otAR"),r=a("q1tI"),o=a("8vDj"),l=a("iuhU"),i=a("cChf"),c=a("ZFu2"),s=a("ikdH"),u=a("Frmf"),p=a("XSl0"),h=a("QAkY"),m=a("V50O"),g=a("DbhK"),d=a("UHeE"),E=a("mosA"),b=a("xrdX");let I=(0,r.createContext)({}),DefaultForm=e=>{var t=(0,n.a)(e,[]);let{t:a,locale:i}=(0,u.u)(),{linkTool:c,form:s,submitProps:p}=(0,r.useContext)(I),{classes:v={}}=(0,r.useContext)(g.C),O=(0,o.rZ)(),y="mb"===O.other.template;return r.createElement(d.H,Object.assign({formLayout:"default"},t),r.createElement(d.H.FormRow,null,r.createElement(h.I.Number,Object.assign({label:r.createElement(m.T,{size:"p2",weight:"semiBold"},a("pregnancyWeightGain.weekInput")),min:E.I.pregnantWeek.min,max:E.I.pregnantWeek.max,placeholder:`${E.I.pregnantWeek.min} - ${E.I.pregnantWeek.max}`},s.getInputProps("pregnantWeek")))),r.createElement(d.H.FormRow,null,r.createElement(h.I.Number,Object.assign({label:r.createElement(m.T,{size:"p2",weight:"semiBold"},a("pregnancyWeightGain.weightBeforeInput")),min:E.I.weight.min,max:E.I.weight.max,placeholder:a("tools.inputPlaceholder",{content:"50"})},s.getInputProps("lastWeight")))),r.createElement(d.H.FormRow,null,r.createElement(h.I.Number,Object.assign({label:r.createElement(m.T,{size:"p2",weight:"semiBold"},a("pregnancyWeightGain.heightInput")),min:E.I.height.min,max:E.I.height.max,placeholder:a("tools.inputPlaceholder",{content:"160"})},s.getInputProps("height")))),r.createElement(d.H.FormRow,null,r.createElement(h.I.Number,Object.assign({label:r.createElement(m.T,{size:"p2",weight:"semiBold"},a("pregnancyWeightGain.weightInput")),min:E.I.weight.min,max:E.I.weight.max,placeholder:a("tools.inputPlaceholder",{content:"50"})},s.getInputProps("weight")))),r.createElement(d.H.FormRow,null,r.createElement(d.H.Switching,Object.assign({label:r.createElement(m.T,{size:"p2",weight:"semiBold"},a("pregnancyWeightGain.havingTwins"))},s.getInputProps("hasTwin")))),r.createElement(d.H.FormRow,{className:v.submitWrapper},r.createElement(d.H.Submit,Object.assign({type:"submit",dataEventCategory:"Health Tool",dataEventAction:"Embedded Pregnancy Weight Gain",dataEventLabel:`https://${b.v[y?"vi-VN_MB":i]}/${c}`,className:(0,l.default)("due-date-calculate-button",v.submitBtn)},p),a("dueDatePage.lastPeriod.calculate"))))},InlineForm=e=>{var t=(0,n.a)(e,[]);let{t:a,locale:i}=(0,u.u)(),{classes:c={}}=(0,r.useContext)(g.C),{linkTool:s,form:p,submitProps:m}=(0,r.useContext)(I),v=(0,o.rZ)(),O="mb"===v.other.template;return r.createElement(d.H,Object.assign({formLayout:"inline"},t),r.createElement(d.H.FormRow,null,r.createElement(d.H.BorderInlineControl,{label:a("pregnancyWeightGain.weekInput")},r.createElement(h.I.Number,Object.assign({min:E.I.pregnantWeek.min,max:E.I.pregnantWeek.max,placeholder:`${E.I.pregnantWeek.min} - ${E.I.pregnantWeek.max}`,rightSection:r.createElement(d.H.Unit,null,a("pwgForm.week"))},p.getInputProps("pregnantWeek"))))),r.createElement(d.H.FormRow,null,r.createElement(d.H.BorderInlineControl,{label:a("pregnancyWeightGain.weightBeforeInput")},r.createElement(h.I.Number,Object.assign({},p.getInputProps("lastWeight"),{min:E.I.weight.min,max:E.I.weight.max,placeholder:a("tools.inputPlaceholder",{content:"50"}),rightSection:r.createElement(d.H.Unit,null,a("babyGrowth.kg"))})))),r.createElement(d.H.FormRow,null,r.createElement(d.H.BorderInlineControl,{label:a("pregnancyWeightGain.heightInput")},r.createElement(h.I.Number,Object.assign({},p.getInputProps("height"),{min:E.I.height.min,max:E.I.height.max,placeholder:a("tools.inputPlaceholder",{content:"160"}),rightSection:r.createElement(d.H.Unit,null,a("babyGrowth.cm"))})))),r.createElement(d.H.FormRow,null,r.createElement(d.H.BorderInlineControl,{label:a("pregnancyWeightGain.weightInput")},r.createElement(h.I.Number,Object.assign({},p.getInputProps("weight"),{min:E.I.weight.min,max:E.I.weight.max,placeholder:a("tools.inputPlaceholder",{content:"50"}),rightSection:r.createElement(d.H.Unit,null,a("babyGrowth.kg"))})))),r.createElement(d.H.FormRow,null,r.createElement(d.H.BorderInlineControl,{label:a("pregnancyWeightGain.havingTwins"),width:"none"},r.createElement(d.H.Switching,Object.assign({},p.getInputProps("hasTwin"))))),r.createElement(d.H.FormRow,{className:c.submitWrapper},r.createElement(d.H.Submit,Object.assign({type:"submit",dataEventCategory:"Health Tool",dataEventAction:"Embedded Pregnancy Weight Gain",dataEventLabel:`https://${b.v[O?"vi-VN_MB":i]}/${s}`,className:(0,l.default)("due-date-calculate-button",c.submitBtn)},m),a("dueDatePage.lastPeriod.calculate"))))},MbLayout=e=>{var t=(0,n.a)(e,[]);let{t:a,locale:l}=(0,u.u)(),{linkTool:i,form:c,submitProps:s}=(0,r.useContext)(I),p=(0,o.rZ)(),m="mb"===p.other.template;return r.createElement(d.H,Object.assign({formLayout:"inline"},t),r.createElement(d.H.FormRow,null,r.createElement(d.H.BorderBoxControl,{label:a("pregnancyWeightGain.weekInput"),rightSection:a("pregnancy.week")},r.createElement(h.I.Number,Object.assign({min:E.I.pregnantWeek.min,max:E.I.pregnantWeek.max,placeholder:`${E.I.pregnantWeek.min} - ${E.I.pregnantWeek.max}`},c.getInputProps("pregnantWeek")))),c.errors.pregnantWeek&&r.createElement(d.H.Error,null,c.errors.pregnantWeek)),r.createElement(d.H.FormRow,null,r.createElement(d.H.BorderBoxControl,{label:a("pregnancyWeightGain.weightBeforeInput"),rightSection:"kg"},r.createElement(h.I.Number,Object.assign({min:E.I.weight.min,max:E.I.weight.max},c.getInputProps("lastWeight"),{placeholder:a("tools.inputPlaceholder",{content:"50"})}))),c.errors.lastWeight&&r.createElement(d.H.Error,null,c.errors.lastWeight)),r.createElement(d.H.FormRow,null,r.createElement(d.H.BorderBoxControl,{label:a("pregnancyWeightGain.heightInput"),rightSection:"cm"},r.createElement(h.I.Number,Object.assign({min:E.I.height.min,max:E.I.height.max},c.getInputProps("height"),{placeholder:a("tools.inputPlaceholder",{content:"160"})}))),c.errors.height&&r.createElement(d.H.Error,null,c.errors.height)),r.createElement(d.H.FormRow,null,r.createElement(d.H.BorderBoxControl,{label:a("pregnancyWeightGain.weightInput"),rightSection:"kg"},r.createElement(h.I.Number,Object.assign({min:E.I.weight.min,max:E.I.weight.max},c.getInputProps("weight"),{placeholder:a("tools.inputPlaceholder",{content:"50"})}))),c.errors.weight&&r.createElement(d.H.Error,null,c.errors.weight)),r.createElement(d.H.Switching,Object.assign({label:a("pregnancyWeightGain.havingTwins")},c.getInputProps("hasTwin"))),r.createElement(d.H.Submit,Object.assign({type:"submit",dataEventCategory:"Health Tool",dataEventAction:"Embedded Pregnancy Weight Gain",dataEventLabel:`https://${b.v[m?"vi-VN_MB":l]}/${i}`,className:"due-date-calculate-button"},s),a("dueDatePage.lastPeriod.calculate")))},PWGForm=e=>{var{formLayout:t="default",submitProps:a,onSubmit:l}=e,h=(0,n.a)(e,["formLayout","submitProps","onSubmit"]);let{t:m,locale:g}=(0,u.u)(),d=(0,o.rZ)(),E="mb"===d.other.template,b=(0,i.c)({validate:{pregnantWeek:(0,c.U)(m("validation.error.requiredField")),height:(0,c.U)(m("validation.error.requiredField")),weight:(e,t)=>e?Number(e)>=Number(t.lastWeight)?null:m("pregnancyWeightGain.weightInput.error"):m("validation.error.requiredField"),lastWeight:(e,t)=>e?Number(e)v(p.H.PWG),[v]),y=Object.assign({onSubmit:b.onSubmit(l)},h);return r.createElement(I.Provider,{value:{linkTool:O,form:b,submitProps:a}},"inline"===t?r.createElement(InlineForm,Object.assign({},y)):E?r.createElement(MbLayout,Object.assign({formLayout:t},y)):r.createElement(DefaultForm,Object.assign({},y)))}},qpOt:function(e,t,a){a.d(t,{B:function(){return BabyGrowthForm}});var n=a("otAR"),r=a("q1tI"),o=a("/npG"),l=a("mYVa"),i=a("8vDj"),c=a("iuhU"),s=a("cChf"),u=a("ZFu2"),p=a("QAkY"),h=a("tYXV"),m=a("V50O"),g=a("iBNF"),d=a("Frmf"),E=a("DbhK"),b=a("mosA"),I=a("UHeE"),v=a("lzTa"),O=a("CtT0"),y=a("fkrl");let T=(0,r.createContext)({}),DefaultForm=e=>{let{t,locale:a}=(0,d.u)(),{classes:n={}}=(0,r.useContext)(E.C),{form:o,currentUrl:l,submitProps:i}=(0,r.useContext)(T),c={placeholder:"DD/MM/YYYY",popoverProps:{withinPortal:!0}};return r.createElement(I.H,Object.assign({formLayout:"default"},e),r.createElement(I.H.FormRow,null,r.createElement(I.H.Control,null,r.createElement(v.G,Object.assign({isBaby:!0,genderValue:{male:"boy",female:"girl"}},o.getInputProps("gender"),{error:null}))),o.errors.gender&&r.createElement(I.H.Error,null,o.errors.gender)),r.createElement(I.H.FormRow,null,r.createElement(p.I.Wrapper,{label:r.createElement(m.T,{size:"p2",weight:"semiBold"},t("babyGrowth.input.birthday"))},r.createElement(h.D,Object.assign({},c,{maxDate:new Date},o.getInputProps("birthday"),{error:null,onChange:e=>{e&&o.validateField("measurementDate"),o.getInputProps("birthday").onChange(e)}}))),o.errors.birthday&&r.createElement(I.H.Error,null,o.errors.birthday)),r.createElement(I.H.FormRow,null,r.createElement(p.I.Number,Object.assign({label:r.createElement(m.T,{size:"p2",weight:"semiBold"},t("babyGrowth.height"),r.createElement(m.T,{size:"p2",weight:"semiBold",color:g.r.colors.gray300,as:"span"},` (${t("babyGrowth.cm")})`))},o.getInputProps("height"),{placeholder:t("babyGrowth.height"),min:b.I.height.min,max:b.I.height.max,onChange:e=>{o.setFieldValue("height",e),o.setFieldValue("checkMesureVal",!o.values.checkMesureVal)}}))),r.createElement(I.H.FormRow,null,r.createElement(p.I.Number,Object.assign({label:r.createElement(m.T,{size:"p2",weight:"semiBold"},t("babyGrowth.weight"),r.createElement(m.T,{size:"p2",weight:"semiBold",color:g.r.colors.gray300,as:"span"},` (${t("babyGrowth.kg")})`))},o.getInputProps("weight"),{placeholder:t("babyGrowth.weight"),min:b.I.weight.min,max:b.I.weight.max,onChange:e=>{o.setFieldValue("weight",e),o.setFieldValue("checkMesureVal",!o.values.checkMesureVal)}}))),a!==O.L.Vietnam&&r.createElement(I.H.FormRow,null,r.createElement(p.I.Number,Object.assign({label:r.createElement(m.T,{size:"p2",weight:"semiBold"},t("babyGrowth.head"),r.createElement(m.T,{size:"p2",weight:"semiBold",color:g.r.colors.gray300,as:"span"},` (${t("babyGrowth.cm")})`))},o.getInputProps("head"),{placeholder:t("babyGrowth.head"),onChange:e=>{o.setFieldValue("head",e),o.setFieldValue("checkMesureVal",!o.values.checkMesureVal)}}))),o.errors.checkMesureVal&&r.createElement(I.H.Error,null,o.errors.checkMesureVal),r.createElement(I.H.FormRow,null,r.createElement(p.I.Wrapper,{label:r.createElement(m.T,{size:"p2",weight:"semiBold"},t("babyGrowth.input.measurementDate"))},r.createElement(h.D,Object.assign({},c,{defaultValue:new Date},o.getInputProps("measurementDate"),{maxDate:new Date,error:null}))),o.errors.measurementDate&&r.createElement(I.H.Error,null,o.errors.measurementDate)),r.createElement(I.H.FormRow,{className:n.submitWrapper},r.createElement(I.H.Submit,Object.assign({className:n.submitBtn,type:"submit","data-event-category":"Health Tool","data-event-action":"Baby Growth","data-event-label":l},i),t("babyGrowth.input.submit"))))};var f=(0,o.k)(e=>({root:{display:"flex",flexDirection:"column",gap:(0,l.h)(8)},bmiVal:{display:"inline-block"},unitText:{color:e.colors.gray[6]},submitBtn:{}}));let localizeNumberFormat=(e,t=2)=>Intl.NumberFormat(void 0,{maximumFractionDigits:t}).format(e),bmiCalculate=(e=0,t=0)=>{try{if(e&&t){let a=Number(t)/Math.pow(Number(e)/100,2);if(isNaN(a))return 0;return Number(localizeNumberFormat(a))}}catch(e){}return 0},InlineForm=e=>{var{styles:t,classNames:a}=e,o=(0,n.a)(e,["styles","classNames"]);let{t:l,locale:s}=(0,d.u)(),{form:u,currentUrl:g,submitProps:y}=(0,r.useContext)(T),{classes:C={}}=(0,r.useContext)(E.C),w=(0,i.rZ)(),{classes:x}=f(void 0,{name:"BabyGrowthForm__InlineForm",styles:t,classNames:a}),N={placeholder:"DD/MM/YYYY",popoverProps:{withinPortal:!0}};return r.createElement(I.H,Object.assign({formLayout:"inline"},o),r.createElement(I.H.FormRow,null,r.createElement(I.H.BorderInlineControl,{label:l("tools.selectBabyGender")},r.createElement(v.G,Object.assign({type:"radio",hideLabel:!0,isBaby:!0,genderValue:{male:"boy",female:"girl"}},u.getInputProps("gender")))),u.errors.gender&&r.createElement(I.H.Error,null,u.errors.gender)),r.createElement(I.H.FormRow,null,r.createElement(I.H.BorderInlineControl,{label:l("babyGrowth.input.birthday")},r.createElement(h.D,Object.assign({},N,{maxDate:new Date},u.getInputProps("birthday"),{error:null,onChange:e=>{e&&u.validateField("measurementDate"),u.getInputProps("birthday").onChange(e)}}))),u.errors.birthday&&r.createElement(I.H.Error,null,u.errors.birthday)),r.createElement(I.H.FormRow,null,r.createElement(I.H.BorderInlineControl,{label:"BMI",styles:{control:{"&:first-child":{width:"auto"}}}},r.createElement(m.T,{size:"p3"},r.createElement("span",{className:x.bmiVal},u.getInputProps("height").value&&u.getInputProps("weight").value&&bmiCalculate(Number(u.getInputProps("height").value),Number(u.getInputProps("weight").value))),"(",l("babyGrowth.kg.m2"),")"),r.createElement(p.I.Number,Object.assign({},u.getInputProps("height"),{placeholder:l("babyGrowth.height"),min:b.I.height.min,max:b.I.height.max,onChange:e=>{u.setFieldValue("height",e),u.setFieldValue("checkMesureVal",!u.values.checkMesureVal)},rightSection:r.createElement(I.H.Unit,null,l("babyGrowth.cm"))})),r.createElement(p.I.Number,Object.assign({},u.getInputProps("weight"),{placeholder:l("babyGrowth.weight"),min:b.I.weight.min,max:b.I.weight.max,onChange:e=>{u.setFieldValue("weight",e),u.setFieldValue("checkMesureVal",!u.values.checkMesureVal)},rightSection:r.createElement(I.H.Unit,null,l("babyGrowth.kg"))}))),("mb"===w.other.template||s!==O.L.Vietnam)&&r.createElement(I.H.BorderInlineControl,{label:l("babyGrowth.head")},r.createElement(p.I.Number,Object.assign({},u.getInputProps("head"),{placeholder:l("babyGrowth.head"),onChange:e=>{u.setFieldValue("head",e),u.setFieldValue("checkMesureVal",!u.values.checkMesureVal)},rightSection:r.createElement(I.H.Unit,null,l("babyGrowth.cm"))}))),u.errors.checkMesureVal&&r.createElement(I.H.Error,null,u.errors.checkMesureVal)),r.createElement(I.H.FormRow,null,r.createElement(I.H.BorderInlineControl,{label:l("babyGrowth.input.measurementDate")},r.createElement(h.D,Object.assign({},N,{maxDate:new Date},u.getInputProps("measurementDate"),{error:null}))),u.errors.measurementDate&&r.createElement(I.H.Error,null,u.errors.measurementDate)),r.createElement(I.H.FormRow,{className:C.submitWrapper},r.createElement(I.H.Submit,Object.assign({type:"submit","data-event-category":"Health Tool","data-event-action":"Baby Growth","data-event-label":g,className:(0,c.default)(x.submitBtn,C.submitBtn)},y),l("babyGrowth.input.submit"))))},MbLayout=e=>{var t=(0,n.a)(e,[]);let{t:a}=(0,d.u)(),{form:o,currentUrl:l,submitProps:i}=(0,r.useContext)(T),c={placeholder:"DD/MM/YYYY",popoverProps:{withinPortal:!0}};return r.createElement(I.H,Object.assign({formLayout:"default"},t),r.createElement(I.H.FormRow,null,r.createElement(I.H.Control,null,r.createElement(v.G,Object.assign({isBaby:!0,genderValue:{male:"boy",female:"girl"}},o.getInputProps("gender"),{error:null}))),o.errors.gender&&r.createElement(I.H.Error,null,o.errors.gender)),r.createElement(I.H.BorderBoxControl,{label:a("babyGrowth.input.birthday"),rightSection:r.createElement(y.Z,null)},r.createElement(h.D,Object.assign({},c,{maxDate:new Date},o.getInputProps("birthday"),{error:null,rightSection:null,onChange:e=>{e&&o.validateField("measurementDate"),o.getInputProps("birthday").onChange(e)}}))),o.errors.birthday&&r.createElement(I.H.Error,null,o.errors.birthday),r.createElement(I.H.BorderBoxControl,{label:a("babyGrowth.height"),rightSection:a("babyGrowth.cm")},r.createElement(p.I.Number,Object.assign({},o.getInputProps("height"),{placeholder:a("tools.inputPlaceholder",{content:"160"}),min:b.I.height.min,max:b.I.height.max,onChange:e=>{o.setFieldValue("height",e),o.setFieldValue("checkMesureVal",!o.values.checkMesureVal)}}))),o.errors.height&&r.createElement(I.H.Error,null,o.errors.height),r.createElement(I.H.BorderBoxControl,{label:a("babyGrowth.weight"),rightSection:a("babyGrowth.kg")},r.createElement(p.I.Number,Object.assign({},o.getInputProps("weight"),{placeholder:a("tools.inputPlaceholder",{content:"50"}),min:b.I.weight.min,max:b.I.weight.max,onChange:e=>{o.setFieldValue("weight",e),o.setFieldValue("checkMesureVal",!o.values.checkMesureVal)}}))),o.errors.weight&&r.createElement(I.H.Error,null,o.errors.weight),r.createElement(I.H.BorderBoxControl,{label:a("babyGrowth.head"),rightSection:a("babyGrowth.cm")},r.createElement(p.I.Number,Object.assign({},o.getInputProps("head"),{placeholder:a("tools.inputPlaceholder",{content:"50"}),onChange:e=>{o.setFieldValue("head",e),o.setFieldValue("checkMesureVal",!o.values.checkMesureVal)}}))),o.errors.checkMesureVal&&r.createElement(I.H.Error,null,o.errors.checkMesureVal),r.createElement(I.H.BorderBoxControl,{label:a("babyGrowth.input.measurementDate"),rightSection:r.createElement(y.Z,null)},r.createElement(p.I.Wrapper,null,r.createElement(h.D,Object.assign({},c,{defaultValue:new Date},o.getInputProps("measurementDate"),{maxDate:new Date,rightSection:null,error:null})))),o.errors.measurementDate&&r.createElement(I.H.Error,null,o.errors.measurementDate),r.createElement(I.H.Submit,Object.assign({type:"submit","data-event-category":"Health Tool","data-event-action":"Baby Growth","data-event-label":l},i),a("babyGrowth.input.submit")))},BabyGrowthForm=e=>{var{onSubmit:t,formLayout:a="default",submitProps:o,currentUrl:l}=e,c=(0,n.a)(e,["onSubmit","formLayout","submitProps","currentUrl"]);let{t:p}=(0,d.u)(),h=(0,i.rZ)(),m=(0,s.c)({initialValues:{measurementDate:new Date},validate:{gender:(0,u.U)(p("validation.error.requiredField")),birthday:(0,u.U)(p("validation.error.requiredField")),measurementDate:(e,t)=>t.birthday?t.birthday instanceof Date&&e instanceof Date&&t.birthday.getTime()<=e.getTime()?null:p("babyGrowth.error.measurementDateLowerThanBirthday",{name:""}):null,checkMesureVal:(e,t)=>void 0===t.head&&void 0===t.height&&void 0===t.weight||t.head||t.height||t.weight?null:p("babyGrowth.error.atLeastOneOf")},validateInputOnChange:["checkMesureVal"]}),g=Object.assign({onSubmit:m.onSubmit(e=>null==t?void 0:t(Object.assign(Object.assign({},e),{bmi:bmiCalculate(Number(m.getInputProps("height").value),Number(m.getInputProps("weight").value)).toString()})))},c);return r.createElement(T.Provider,{value:{submitProps:o,currentUrl:l,form:m}},"default"===a?"mb"===h.other.template?r.createElement(MbLayout,Object.assign({formLayout:a},g)):r.createElement(DefaultForm,Object.assign({},g)):r.createElement(InlineForm,Object.assign({},g)))}},WsKU:function(e,t,a){a.d(t,{A:function(){return z},B:function(){return Y},C:function(){return R},D:function(){return M},E:function(){return k},F:function(){return G},G:function(){return U},H:function(){return S},I:function(){return F},L:function(){return N},Q:function(){return i},S:function(){return _},U:function(){return x},V:function(){return D},Z:function(){return Z},a:function(){return P},b:function(){return C},c:function(){return W},d:function(){return H},e:function(){return L},f:function(){return $},g:function(){return j},h:function(){return q},i:function(){return Q},j:function(){return V},k:function(){return B},l:function(){return w},m:function(){return A},r:function(){return u},s:function(){return K}});var n,r,o,l,i,c,s,u,p=a("EikE"),h=a("OT65"),m=a("G2RZ"),g=a("YNYf"),d=a("R43W"),E=a("+xLi"),b=a("tO2/"),I=a("YJaS"),v=a("tiWT"),O=a("xrdX"),y=a("UIg8"),T=a("GOBr"),f=a("CtT0");let C="",w="https://id.hellobacsi.com/",x="userGeoLocationCoordinates",N={"vi-VN":{PHONE:"+84",LOGO_TYPE:"hellobacsi",SITE_NAME:"HelloBacsi",SITE_NAME_FORMATTED:"Hello Bacsi",HOMEPAGE_IMAGE:"https://hellobacsi.com/images/country-thumbnails/VN.png",SITE_ID:"1",INSIDER_TAG:"//hellobacsivn.api.useinsider.com/ins.js?id=10003798",TOOLTIP_IMAGE:"/images/tooltips-vn.png",PREGNANCY_WEIGHT_GAIN:"cong-cu-tinh-can-nang-khi-mang-thai",BABY_POOP:"phan-tre-so-sinh-nhu-the-nao-la-tot",VACCINATION_TOOL:"lich-tiem-chung"},"en-PH":{PHONE:"+63",LOGO_TYPE:"hellodoctor",SITE_NAME:"HelloDoctor",HOMEPAGE_IMAGE:"https://hellodoctor.com.ph/images/country-thumbnails/PH.png",SITE_NAME_FORMATTED:"Hello Doctor",SITE_ID:"9",CATEGORIES_TYPE:"short",INSIDER_TAG:"//hellodoctorph.api.useinsider.com/ins.js?id=10004527",TOOLTIP_IMAGE:"/images/tooltips-ph.png",PREGNANCY_WEIGHT_GAIN:"pregnancy-weight-gain-calculator",BABY_POOP:"a-visual-guide-on-baby-poop",VACCINATION_TOOL:"vaccination-tool"},"th-TH":{PHONE:"+66",LOGO_TYPE:"hellokhunmor",SITE_NAME:"HelloKhunmor",HOMEPAGE_IMAGE:"https://hellokhunmor.com/images/country-thumbnails/TH.png",SITE_NAME_FORMATTED:"Hello Khunmor",SITE_ID:"3",CATEGORIES_TYPE:"long",INSIDER_TAG:"//hellokhunmor.api.useinsider.com/ins.js?id=10004524",TOOLTIP_IMAGE:"/images/tooltips-th.png",PREGNANCY_WEIGHT_GAIN:"เครื่องคำนวณน้ำหนักตัว",BABY_POOP:"สีอุจจาระของลูก-บอกถึงส",VACCINATION_TOOL:"vaccination-tool"},"km-KH":{PHONE:"+855",LOGO_TYPE:"hellokrupet",SITE_NAME:"HelloKrupet",HOMEPAGE_IMAGE:"https://hellokrupet.com/images/country-thumbnails/KH.JPG",SITE_NAME_FORMATTED:"Hello Krupet",SITE_ID:"4",CATEGORIES_TYPE:"long",INSIDER_TAG:"//hellokrupet.api.useinsider.com/ins.js?id=10004523",TOOLTIP_IMAGE:"/images/tooltips-kh.png",PREGNANCY_WEIGHT_GAIN:"រង្វាស់សុខភាព/គណនាទម្ងន់ស្ត្រីពពោះ",BABY_POOP:"រង្វាស់សុខភាព/អត្ថន័យពណ៌-និងរូបរាងលាម",VACCINATION_TOOL:"រង្វាស់សុខភាព/កាលវិភាគចាក់ថ្នាំបង្កា"},"my-MM":{PHONE:"+95",LOGO_TYPE:"hellosayarwon",SITE_NAME:"HelloSayarwon",HOMEPAGE_IMAGE:"https://hellosayarwon.com/images/country-thumbnails/PH.png",SITE_NAME_FORMATTED:"Hello Sayarwon",SITE_ID:"7",INSIDER_TAG:"//hellosayarwon.api.useinsider.com/ins.js?id=10004522"},"zh-TW":{PHONE:"+886",LOGO_TYPE:"helloyishi",SITE_NAME:"HelloYishi",HOMEPAGE_IMAGE:"https://helloyishi.com.tw/images/country-thumbnails/TW.png",SITE_NAME_FORMATTED:"Hello Yishi",SITE_ID:"6",INSIDER_TAG:"//helloyishi.api.useinsider.com/ins.js?id=10004526",TOOLTIP_IMAGE:"/images/tooltips-tw.png",PREGNANCY_WEIGHT_GAIN:"pregnancy-weight-gain-calculator",BABY_POOP:"how-does-babies-poop-look-like",VACCINATION_TOOL:"vaccination-tool"},"zh-SG":{PHONE:"",LOGO_TYPE:"hellojiankang",SITE_NAME:"Hello健康",HOMEPAGE_IMAGE:"",SITE_NAME_FORMATTED:"Hello 健康",SITE_ID:"12",INSIDER_TAG:"",TOOLTIP_IMAGE:"",PREGNANCY_WEIGHT_GAIN:"pregnancy-weight-gain-calculator",BABY_POOP:"how-does-babies-poop-look-like",VACCINATION_TOOL:"vaccination-tool"},"id-ID":{PHONE:"+62",LOGO_TYPE:"hellosehat",SITE_NAME:"HelloSehat",HOMEPAGE_IMAGE:"https://hellosehat.com/images/country-thumbnails/ID.png",SITE_NAME_FORMATTED:"Hello Sehat",SITE_ID:"2",INSIDER_TAG:"//hellosehat.api.useinsider.com/ins.js?id=10003799",TOOLTIP_IMAGE:"/images/tooltips-id.png",PREGNANCY_WEIGHT_GAIN:"kalkulator-kenaikan-berat-badan-ibu-hamil",BABY_POOP:"warna-feses-bayi-normal",VACCINATION_TOOL:"jadwal-imunisasi"},"hi-IN":{PHONE:"+91",LOGO_TYPE:"helloswasthya",SITE_NAME:"HelloSwasthya",HOMEPAGE_IMAGE:"https://helloswasthya.com/images/country-thumbnails/IN.png",SITE_NAME_FORMATTED:"हैलो स्वास्थ्य",SITE_ID:"8",CATEGORIES_TYPE:"long",INSIDER_TAG:"//helloswasthya.api.useinsider.com/ins.js?id=10004498",TOOLTIP_IMAGE:"/images/tooltips-in.png",PREGNANCY_WEIGHT_GAIN:"garbhavastha-weight-calculator",BABY_POOP:"visual-guide-on-baby-poop",VACCINATION_TOOL:"vaccination-tool"},"ms-MY":{PHONE:"+60",LOGO_TYPE:"hellodoktor",SITE_NAME:"HelloDoktor",HOMEPAGE_IMAGE:"https://hellodoktor.com/images/country-thumbnails/MY.png",SITE_NAME_FORMATTED:"Hello Doktor",SITE_ID:"5",INSIDER_TAG:"//hellodoktor.api.useinsider.com/ins.js?id=10004525",TOOLTIP_IMAGE:"/images/tooltips-my.png",PREGNANCY_WEIGHT_GAIN:"kalkulator-tambah-berat-badan-hamil",BABY_POOP:"kenali-najis-bayi-anda",VACCINATION_TOOL:"alat-kesihatan-vaksin"},"tl-PH":{PHONE:"+63",LOGO_TYPE:"hellodoctor",SITE_NAME:"HelloDoctor",HOMEPAGE_IMAGE:"https://hellodoctor.com.ph/images/country-thumbnails/PH.png",SITE_NAME_FORMATTED:"Hello Doctor",SITE_ID:"9",CATEGORIES_TYPE:"short",INSIDER_TAG:"//hellodoctorph.api.useinsider.com/ins.js?id=10004527",TOOLTIP_IMAGE:"/fil/images/tooltips-ph.png",PREGNANCY_WEIGHT_GAIN:"pregnancy-weight-gain-calculator",BABY_POOP:"a-visual-guide-on-baby-poop",VACCINATION_TOOL:"vaccination-tool",ABOUT_US_IMAGE:"/fil/images/aboutus/PH.png"}},A=[{countryCode:"VN",countryName:"Việt Nam",languageCode:"vi"},{countryCode:"PH",countryName:"Philippines",languageCode:"en"},{countryCode:"TH",countryName:"ประเทศไทย",languageCode:"th"},{countryCode:"KH",countryName:"កម្ពុជា",languageCode:"km"},{countryCode:"MM",countryName:"မြန်မာ",languageCode:"my"},{countryCode:"TW",countryName:"台灣",languageCode:"zh"},{countryCode:"SG",countryName:"新加坡",languageCode:"zh"},{countryCode:"ID",countryName:"Indonesia",languageCode:"id"},{countryCode:"IN",countryName:"भारत",languageCode:"hi"},{countryCode:"MY",countryName:"Malaysia",languageCode:"ms"}],_={"vi-VN":{PRIVACY:"/privacy",TERM_OF_USE:"/dieu-khoan-su-dung",PRIVACY_POLICY:"/chinh-sach-quyen-rieng-tu",EDITORIAL_CORRECTIONS_POLICY:"/chinh-sach-bien-tap-chinh-sua",ADVERTISING_SPONSOR_POLICY:"/chinh-sach-quang-cao-tai-tro",POLICIES:"/chinh-sach",FAQS:"/thong-tin-quan-trong",SITEMAP:"/sitemap",ABOUT_US:"/about-us",ADVERTISEMENT:"/quang-cao-voi-chung-toi",CONTACT_US:"/lien-he",ABOUT_GO_CARE:"/about-go-care",HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/hello-bacsi/",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:"/tieu-chuan-cong-dong",TOGETHER:"/community",CLINITY_DOWNLOAD_LINK:"https://clinity.app.link/GxlKjAMGvWb"},"km-KH":{POLICIES:"/policies",TERM_OF_USE:"/ខនិងលក្ខខណ្ឌ",PRIVACY_POLICY:"/គោលការណ៍ឯកជនភាព",EDITORIAL_CORRECTIONS_POLICY:"/គោលការណ៍ខ្លឹមសារមាតិកា",ADVERTISING_SPONSOR_POLICY:"/គោលការណ៍ផ្សាយពាណិជ្ជកម",FAQS:"/faqs",SITEMAP:"/sitemap",ABOUT_US:"/about-us",ADVERTISEMENT:"/advertisement",CONTACT_US:"/contact-us",ABOUT_GO_CARE:"/about-go-care",HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"/#",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:"/គោលការណ៍ណែនាំសហគមន៍",TOGETHER:"/community",CLINITY_DOWNLOAD_LINK:"https://clinity.app.link/T0Op0XUtt0b"},"en-PH":{POLICIES:"/policies",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-and-corrections-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-and-sponsor-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:null,CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:"/community-guidelines",TOGETHER:"/community",CLINITY_DOWNLOAD_LINK:"https://clinity.app.link/gRQNJoDHvWb"},"my-MM":{POLICIES:"/polisi-terma-syarat",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:"/pengiklanan",CONTACT_US:"/hubungi-kami",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:" https://hellohealthgroup.com/hello-doktor/",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:"/panduan-komuniti",TOGETHER:"/community",CLINITY_DOWNLOAD_LINK:""},"zh-TW":{POLICIES:"/policies",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-and-corrections-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-and-sponsor-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:"/advertising",CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,FACILITY:"/facility",HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:null,TOGETHER:"/community",CLINITY_DOWNLOAD_LINK:"https://clinity.app.link/Zi0O2HxIvWb"},"zh-SG":{POLICIES:"/policies",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-and-corrections-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-and-sponsor-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:"/advertising",CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,FACILITY:"/facility",HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:null,TOGETHER:"/community",CLINITY_DOWNLOAD_LINK:"https://clinity.app.link/eyzYCiacZ0b"},"id-ID":{POLICIES_EN:"/policies",TERM_OF_USE:"/kebijakan-pengguna",PRIVACY_POLICY:"/kebijakan-privasi",EDITORIAL_CORRECTIONS_POLICY:"/kebijakan-editorial",ADVERTISING_SPONSOR_POLICY:"/kebijakan-iklan",POLICIES:"/kebijakan",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:null,CONTACT_US:"/kontak-kami",CONTACT_EN:"/contact",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/hello-sehat/",RECRUITMENT:"https://hellohealthgroup.com/careers/",EDITORIAL_POLICY:"/edit-id",EDITORIAL_POLICY_EN:"/edit-en",COMMUNITY_GUIDELINE:"/panduan-komunitas",TOGETHER:"/community",CLINITY_DOWNLOAD_LINK:"https://clinity.app.link/5zzz90iHvWb"},"hi-IN":{POLICIES:"/policies",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-and-corrections-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-and-sponsor-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:null,CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:null,TOGETHER:"/community",CLINITY_DOWNLOAD_LINK:""},"ms-MY":{POLICIES:"/polisi-terma-syarat",TERM_OF_USE:"/terma-dan-syarat",PRIVACY_POLICY:"/polisi-privasi",EDITORIAL_CORRECTIONS_POLICY:"/polisi-editorial",ADVERTISING_SPONSOR_POLICY:"/polisi-pengiklanan",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:"/pengiklanan",CONTACT_US:"/hubungi-kami",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:" https://hellohealthgroup.com/hello-doktor/",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:"/panduan-komuniti",TOGETHER:"/community",CLINITY_DOWNLOAD_LINK:"https://clinity.app.link/DgSznupHvWb"},"th-TH":{POLICIES_EN:"/policies",TERM_OF_USE:"/เงื่อนใขการใช้งาน",PRIVACY_POLICY:"/นโยบายความเป็นส่วนตัว",EDITORIAL_CORRECTIONS_POLICY:"/นโยบายบรรณธิการ",ADVERTISING_SPONSOR_POLICY:"/นโยบายการโฆษณาและผู้สนับสนุน",POLICIES:"/นโยบาย",FAQS:"/คำถามที่พบบ่อย",SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:"/ลงโฆษณากับเรา",CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:null,TOGETHER:"/community",CLINITY_DOWNLOAD_LINK:"https://clinity.app.link/F8yihqrIvWb"},"tl-PH":{POLICIES:"/policies",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-and-corrections-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-and-sponsor-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:null,CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:"/community-guidelines",TOGETHER:"/community",CLINITY_DOWNLOAD_LINK:"https://clinity.app.link/gRQNJoDHvWb"}},P=[f.L.Vietnam,f.L.Indonesia,f.L.PhilippinesEnglish,f.L.PhilippinesTagalog,f.L.Thailand,f.L.Malaysia,f.L.Myanmar],S=[f.L.Indonesia,f.L.Cambodia,f.L.PhilippinesEnglish,f.L.PhilippinesTagalog,f.L.Thailand,f.L.Singapore],L=[f.L.Vietnam],k=["vi-VN"],M=["id-ID"],R=["vi-VN","id-ID","en-PH","tl-PH","ms-MY","th-TH"],H=["vi-VN","id-ID"],D=[f.L.Vietnam,f.L.Taiwan,f.L.PhilippinesEnglish,f.L.PhilippinesTagalog],G={"vi-VN":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"km-KH":[{type:"link",rel:"icon",href:"/by-locales/km-KH/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/km-KH/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/km-KH/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/km-KH/icon-270x270.png"}],"en-PH":[{type:"link",rel:"icon",href:"/by-locales/en-PH/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/en-PH/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon",href:"/by-locales/en-PH/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/en-PH/icon-270x270.png"}],"id-ID":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"ms-MY":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"th-TH":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"my-MM":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"zh-TW":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"hi-IN":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],marryBaby:[{type:"link",rel:"shortcut icon",href:"/favicons/favicon.ico"},{type:"link",rel:"icon",href:"/favicons/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/favicons/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/favicons/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/favicons/icon-180x180.png"}]};(n=i||(i={})).bmi="mi",n.gender="gndr",n.age="ge",n.slug="slug",n.resultId="resultId",n.bmr="mr",n.height="gt",n.weight="wght",n.source="surc",n.type="tp",n.startDate="sd",n.additional="tnl",n.week="wk",n.twins="twn",n.weightBefore="wb",n.yourself="yrslf",n.intensity="sy",n.rate="rt",n.method="mthd",n.day="dy",n.pwg="pwg",n.cycle="le",n.period="prd",n.access_token="tkn",n.name="nm",n.id="id",n.activityLevel="actl",n.status="status",n.birthday="brd",n.withImperialUnit="lbs";let F={[f.L.Vietnam]:{dateFormat:"DD/MM/YYYY",separator:","},[f.L.Cambodia]:{dateFormat:"DD/MM/YYYY",separator:"."},[f.L.India]:{dateFormat:"DD/MM/YYYY",separator:"."},[f.L.Indonesia]:{dateFormat:"DD/MM/YYYY",separator:","},[f.L.Malaysia]:{dateFormat:"DD/MM/YYYY",separator:"."},[f.L.Thailand]:{dateFormat:"DD/MM/YYYY",separator:"."},[f.L.Taiwan]:{dateFormat:"YYYY/MM/DD",separator:","},[f.L.Singapore]:{dateFormat:"YYYY/MM/DD",separator:","},[f.L.PhilippinesTagalog]:{dateFormat:"MM/DD/YYYY",separator:"."},[f.L.PhilippinesEnglish]:{dateFormat:"MM/DD/YYYY",separator:"."},[f.L.Myanmar]:{dateFormat:"DD/MM/YYYY",separator:","}},Y="hhg_user_token",B="hhg_user_refresh_token",V={[f.L.PhilippinesEnglish]:p.Z,[f.L.Vietnam]:h.default,[f.L.Cambodia]:m.Z,[f.L.India]:g.Z,[f.L.Indonesia]:d.Z,[f.L.Myanmar]:p.Z,[f.L.Malaysia]:E.Z,[f.L.Thailand]:b.Z,[f.L.Taiwan]:I.Z},j="https://cdn.hellohealthgroup.com/countries",U="_ga",z="YYYY-MM-DD",W=9999999,Z=305,$="video_item_detail",q="hhg_cart_care_store_key";(r=c||(c={}))[r.UNAVAILABLE=0]="UNAVAILABLE",r[r.AVAILABLE=1]="AVAILABLE",(o=s||(s={}))[o.FIXED=1]="FIXED",o[o.STARTING=2]="STARTING",o[o.RANGE=3]="RANGE",(l=u||(u={})).VACCINE="VACCINE",l.IVF="IVF",l.EGG_FREEZING="EGG_FREEZING",l.HEALTH_SCREENER="HEALTH_SCREENER";let K={vaccine:u.VACCINE,ivf:u.IVF,"egg-freezing":u.EGG_FREEZING,screener:u.HEALTH_SCREENER},X={[u.VACCINE]:"vaccine",[u.IVF]:"ivf",[u.EGG_FREEZING]:"egg-freezing",[u.HEALTH_SCREENER]:"screener"};var Q=Object.freeze({__proto__:null,basePath:C,SSO_URL:w,USER_GEOLOCATION_COORDINATES_COOKIE:x,LOCALE_SPECS:N,COUNTRY_LIST:A,STATIC_PAGES:_,UP_BASEPATH:"user",LOCALE_HAS_COMMUNITY_SITE:P,HAS_CLINITY_DOWNLOAD_SITE:S,LOCALE_HAS_CART_CARE_SITE:L,ECOM_LOCALES:k,DATA_PRIVACY_LOCALES:M,CARE_LOCALES:R,CARE_BOOKING_LOCALES:H,VIDEO_LOCALES:D,FAVICONS:G,get QUERY_HEALTH_TOOL(){return i},ISO_FORMAT:F,BEARER_TOKEN_COOKIE:Y,BEARER_REFRESH_TOKEN_COOKIE:B,DATE_FNS_LOCALE:V,CDN_ADDRESS:j,GA_TOKEN_COOKIE:U,API_DATE_FORMAT:z,DATE_FNS_DATE_FORMAT:"dd-MM-yyyy",ZINDEX_SSO:W,ZINDEX_HEADER:Z,VIDEO_DETAIL_TEMP_STORAGE:$,HHG_CART_CARE_STORE_KEY:q,get EMERGENCY_STATUS(){return c},get ServicePrice(){return s},get SERVICE_TYPE(){return u},serviceTypeByProductType:K,productTypeByServiceType:X,siteHost:v.Cf,siteOptions:v.x9,COUNTRY_CURRENCY_SYMBOL:v.Z5,domainLocales:O.v,MAP_DOMAIN_BY_LOCALE:O.f,get RISK_SCREENER_NAME(){return y.t},RISK_SCREENER_SLUG:y.n,isProduction:T.y})},Sh0e:function(e,t,a){a.d(t,{D:function(){return Dropdown}});var n=a("q1tI"),r=a("8vDj"),o=a("rBCA"),l=a("iBNF");let i=o.Z.div` --dropdown-padding: 12px 18px 12px 16px; position: relative; box-sizing: border-box; border: 1px solid ${l.r.colors.gray200}; background: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%23595959' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A") no-repeat; background-position: right 16px center; border-radius: ${l.r.borderRadius}; &[data-disabled='true'], :disabled { background-color: #f2f2f2; cursor: not-allowed; } &[data-size='sm'] { font-size: 13px; line-height: 20px; } &[data-size='md'] { font-size: 14px; line-height: 21px; } &[data-size='lg'] { font-size: 16px; line-height: 24px; } &[data-has-icons='true'] { border: none; background: ${l.r.colors.gray100}; img, svg { display: inline-block; max-width: 16px; margin-right: 6px; } span { display: inline-block; vertical-align: middle; } &:hover { box-shadow: none; } > div { position: relative; display: flex; width: 100%; box-sizing: border-box; align-items: center; } > div::after { position: absolute; top: 50%; right: 12px; width: 10px; height: 8px; background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%23595959' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A"); background-repeat: no-repeat; content: ''; transform: translateY(-50%); } } &:hover { box-shadow: 0 0 2px 2px ${e=>e.shadowColor}; } &[data-is-native='true'] { padding: var(--dropdown-padding); line-height: 24px; &:focus { box-shadow: 0px 0px 2px 2px ${e=>e.shadowColor}; } } `,c=o.Z.div` padding: var(--dropdown-padding); cursor: pointer; &.with-label { padding-top: 34px; padding-bottom: 12px; } &[data-dropdown-open] { padding: 11px 15px 11px 15px; border: 1px solid ${e=>e.color}; border-radius: ${l.r.borderRadius}; box-shadow: 0 0 2px 2px ${e=>e.shadowColor}; } `,s=o.Z.ul` position: absolute; top: 100%; /* right: 0; */ min-width: 100%; left: 0; display: block; margin-top: 4px; background: ${l.r.colors.white}; border-radius: ${l.r.borderRadius}; box-shadow: -1px 1px 2px rgba(67, 70, 74, 0.0001), -2px 2px 5px rgba(67, 86, 100, 0.123689); cursor: pointer; &[data-has-icons='true'] { border: 1px solid ${l.r.colors.gray200}; background: white; box-shadow: none; filter: drop-shadow(0px 10px 16px rgba(0, 0, 0, 0.04)); } `,u=o.Z.li` display: flex; padding: 12px 18px 12px 16px; &[data-disabled='true'] { cursor: not-allowed; color: #bfbfbf; & > * { pointer-events: none; } } &:hover, :active { background: ${l.r.colors.gray100}; } `,p=o.Z.div` max-width: 16px; margin-right: 8px; `,h=o.Z.div` position: absolute; top: 12px; left: 16px; pointer-events: none; `,Dropdown=({className:e,value:t,options:a,onChange:o=()=>void 0,id:l,placeholderIcon:m,placeholder:g,style:d,size:E="lg",groupedWithLabel:b,disabled:I,dropdownLabelTrackingAttributes:v={},isNativeSelect:O=!1})=>{let y=(0,r.rZ)(),[T,f]=n.useState(!1),showDropdown=()=>!I&&f(!T);if(O){let e="object"==typeof(null==t?void 0:t.value)&&t.value instanceof Date?t.value.toString():null==t?void 0:t.value;return n.createElement(i,{color:y.fn.primaryColor(),shadowColor:y.colors[y.primaryColor][2],as:"select","data-is-native":"true",value:e||void 0,disabled:I,onChange:e=>{if("string"==typeof e.target.value){let t=a.find(t=>t.value===e.target.value);t&&o(t)}}},g&&n.createElement("option",{value:g,disabled:!0,selected:!0},g),a.map(e=>n.createElement("option",{key:`${l}-${e.value}`,value:e.value,disabled:!!e.disabled&&e.disabled},e.label)))}return n.createElement(i,{color:y.fn.primaryColor(),shadowColor:y.colors[y.primaryColor][2],className:e,"data-dropdown-open":T||void 0,"data-size":E,id:l,"data-has-icons":!!m,style:d,onBlur:()=>f(!1),tabIndex:0,"data-disabled":I},!!b&&n.createElement(h,null,b),n.createElement(c,Object.assign({color:y.fn.primaryColor(),shadowColor:y.colors[y.primaryColor][2],onClick:showDropdown,className:b&&"with-label"},v),m," ",n.createElement("span",null,t&&t.value?t.label:g)),T&&n.createElement(s,{onClick:showDropdown,"data-has-icons":!!m},a.map(e=>n.createElement(u,{key:`${l}-${e.value}`,"data-selected":t&&t.value===e.value||void 0,onClick:()=>!e.disabled&&!I&&(null==o?void 0:o(e)),"data-disabled":!!e.disabled&&e.disabled},e.icon&&n.createElement(p,null,e.icon),e.label))))}},KRJG:function(e,t,a){a.d(t,{L:function(){return Loading}});var n=a("q1tI"),r=a("Frmf"),o=a("ASLx");let Loading=({className:e,size:t="md"})=>{let{t:a}=(0,r.u)();return n.createElement("div",{className:`PD6nRZX ${e}`},n.createElement(o.B,{size:t,color:"transparent",isLoading:!0},a("loading")))}},"5SBZ":function(e,t,a){a.d(t,{u:function(){return n}});var n=(0,a("/npG").k)(e=>({root:{},inner:{},content:{borderRadius:16},header:{borderBottom:`1px solid ${e.colors.neutral[1]}`,marginRight:0,marginBottom:0,padding:"12px"},overlay:{},title:{fontSize:16,fontWeight:700,lineHeight:1.5},body:{},close:{cursor:"pointer",width:"unset",height:"unset",svg:{width:"24px !important",height:"24px !important"}}}))},wRD1:function(e,t,a){a.d(t,{L:function(){return LabelSorting}});var n,r,o=a("q1tI"),l=a("V50O"),i=a("ejmp"),c=a("mkgP");(n=r||(r={})).latest="latest",n.oldest="oldest",n.popular="popular";let LabelSorting=({onChange:e,className:t,style:a,leftLabel:n,rightLabel:r,color:s,value:u,choices:p})=>{let{data:{env:{isMarryBaby:h}}}=(0,o.useContext)(i.T);return o.createElement(c.L,{label:n,rightLabel:o.createElement(c.b,{position:"bottom",align:"end",data:{isShowheader:!1,type:"list",list:p.map(t=>({label:t.label,onClick:()=>e&&e(String(t.value)),selected:t.value===u,className:"bold-item"}))},toggleButtonContent:o.createElement("div",{style:{display:"flex"}},o.createElement(l.T,{style:{display:"flex",alignItems:"center",fontWeight:"normal",marginRight:12},size:"p4"},r),o.createElement("img",{src:h?"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none'%3e%3cpath stroke='%233E3F58' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m8 14 4 4 4-4M16 10l-4-4-4 4'/%3e%3c/svg%3e":"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none'%3e%3cpath fill='%238C8C8C' d='M4.5 7h7a.46.46 0 0 0 .351-.165.56.56 0 0 0 .149-.39q0-.226-.149-.391l-3.5-3.89a.458.458 0 0 0-.703 0l-3.5 3.89a.56.56 0 0 0-.148.39q0 .226.148.391Q4.298 7 4.5 7M11.5 9h-7a.46.46 0 0 0-.352.165.56.56 0 0 0-.148.39q0 .226.148.391l3.5 3.889a.46.46 0 0 0 .703 0l3.5-3.889a.56.56 0 0 0 .149-.39q0-.226-.149-.391A.46.46 0 0 0 11.5 9'/%3e%3c/svg%3e",style:{width:16,height:16,alignSelf:"center"},loading:"lazy"}))}),color:"gray",className:t,style:a})}},Icy7:function(e,t,a){a.d(t,{c:function(){return convertLocalizedStringToNumber},f:function(){return formatPhoneNumber},l:function(){return localizeNumberFormat}});var n=a("A9bs");let localizeNumberFormat=(e,t,a=2)=>Intl.NumberFormat(void 0,{maximumFractionDigits:a}).format(e),convertLocalizedStringToNumber=e=>Number(e.replace(/,/gi,".")),formatPhoneNumber=e=>{try{let t=(0,n.parsePhoneNumber)(e,"VN");if(!(null==t?void 0:t.number))throw Error("Invalid number");return(0,n.formatPhoneNumber)(t.number)}catch(t){return console.log("\uD83D\uDE80 ~ formatPhoneNumber ~ error:",t),e}}},"svI/":function(e,t,a){a.d(t,{L:function(){return l}});var n=a("q1tI"),r=a("38FU"),o=a("c1cU");let l=(0,n.memo)(({type:e,width:t,height:a,isLight:l})=>{let i=(0,n.useMemo)(()=>{switch(e){case"hellobacsi":return{width:t||"107px",height:a||"24px",src:r.C.getAssetPath("logo/hellobacsi.png"),srcLight:r.C.getAssetPath("logo/hellobacsi-light.png")};case"hellodoktor":return{width:t||"127px",height:a||"24px",src:r.C.getAssetPath("logo/hellodoktor.png")};case"hellosehat":return{width:t||"121px",height:a||"27px",src:r.C.getAssetPath("logo/hellosehat.png")};case"hellojiankang":return{width:t||"87px",height:a||"24px",src:r.C.getAssetPath("logo/hellojiankang.png")};case"hellohealth":return{width:t||"123px",height:a||"24px",src:r.C.getAssetPath("logo/hellohealth.png")};case"hellotogether":return{width:t||"150px",height:a||"24px",src:r.C.getAssetPath("logo/hellotogether.png")};case"hellocare":return{width:t||"99px",height:a||"24px",src:r.C.getAssetPath("logo/hellocare.png")};case"hellodoctor":return{width:t||"127px",height:a||"24px",src:r.C.getAssetPath("logo/hellodoctor.png")};case"hellokrupet":return{width:t||"101px",height:a||"24px",src:r.C.getAssetPath("logo/hellokrupet.png")};case"hellosayarwon":return{width:t||"111px",height:a||"24px",src:r.C.getAssetPath("logo/hellosayarwon.png")};case"helloyishi":return{width:t||"89px",height:a||"24px",src:r.C.getAssetPath("logo/helloyishi.png")};case"hellokhunmor":return{width:t||"123px",height:a||"24px",src:r.C.getAssetPath("logo/hellokhunmor.png")};case"helloswasthya":return{width:t||"105px",height:a||"24px",src:r.C.getAssetPath("logo/helloswasthya.png")};case"logomark":return{width:t||"60px",height:a||"57px",src:r.C.getAssetPath("logo/logomark.png")};case"marryBaby":return{width:t||"145px",height:a||"28px",src:r.C.getAssetPath("logo/marrybaby.png")};default:return null}},[e,t,a]),{src:c,width:s,height:u,srcLight:p}=i||{};return n.createElement(o.I,{alt:`${e} logo`,className:"main-logo-icon",src:l&&p||c,style:{width:s,height:u}})})}}]);