"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4190],{zsF2:function(e,t,a){a.d(t,{i:function(){return isVideo}});let isVideo=e=>e.endsWith(".mp4")},LPsQ:function(e,t,a){a.d(t,{C:function(){return h},I:function(){return ImagePreviewPopup},P:function(){return PostSingleImageViewPopup},a:function(){return PostImagePreview},b:function(){return E}});var i=a("q1tI"),o=a("sfOR"),n=a("JIuZ"),l=a("FUIV"),r=a("7m0Y"),s=a("t/pd"),c=a("pMur"),p=a("rBCA"),d=a("Kz+G"),m=a("iBNF"),u=a("gEnE"),h="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",E="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 g=p.Z.div` padding: 14px 16px 14px 17px; background: ${e=>e.bgColor}; border-left: 3px solid ${e=>e.highlight}; ${n.M.mbUp} { padding: 12px 12px 12px 17px; } `,I=p.Z.div` display: flex; `,T=p.Z.div` font-size: 12px; line-height: 18px; &[data-has-icon='true'] { margin-left: 10px; } `,O=p.Z.div` flex-shrink: 0; `,_=p.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; } } } } `,N=p.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; } } `,y=(0,p.Z)(e=>{var{icon:t,bgColor:a=m.r.colors.yellow50,highlightColor:o=m.r.colors.yellow800,message:n}=e,l=(0,d._)(e,["icon","bgColor","highlightColor","message"]);return i.createElement(g,Object.assign({bgColor:a,highlight:o},l),i.createElement(I,null,t&&i.createElement(O,null,t),i.createElement(T,{"data-has-icon":!!t},n)))})` 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:o,onClose:n,onOpenSingleView:r,alt:p})=>{let{t:d}=(0,l.u)(),[m,u]=(0,i.useState)(!1);return(0,i.useEffect)(()=>{setTimeout(()=>{u(!0)},0)},[]),i.createElement(s.h,null,i.createElement(N,{className:e,style:t,"data-open":m},i.createElement("div",{className:"top-bar"},i.createElement("img",{className:"icon-arrow-left",src:E,onClick:n,alt:"go back",loading:"lazy"}),i.createElement(c.T,{size:"p2",weight:"bold",style:{textAlign:"center"}},d("previewPhotos.title",{name:a}))),i.createElement("div",{className:"container"},o.map((e,t)=>i.createElement("img",{className:"img-preview",key:t,src:e,onClick:()=>null==r?void 0:r(t),alt:p,loading:"lazy"})))),",")},f=p.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; } `,A=p.Z.div` padding: 1rem; background: white; .icon-close { width: 26px; height: 26px; cursor: pointer; } `,b=p.Z.div` position: relative; flex: 1; overflow: hidden; > img { height: 100%; width: 100%; object-fit: contain; object-position: center; } `,C=p.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; } `,S=p.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; } } ${n.M.tdUp} { padding: 8px; > img { width: 30px; height: 30px; } } `;var v="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:o})=>{let[n,l]=(0,i.useState)(e),[r,c]=(0,i.useState)(!1);(0,i.useEffect)(()=>{setTimeout(()=>{c(!0)},0)},[]);let p=null==t?void 0:t[n],d=0===n,m=!(null==t?void 0:t.length)||n===(null==t?void 0:t.length)-1;return i.createElement(s.h,null,i.createElement(f,{"data-open":r&&!!p},i.createElement(A,null,i.createElement("img",{src:h,className:"icon-close",onClick:a,alt:"close",loading:"lazy"})),p&&n>=0&&i.createElement(i.Fragment,null,i.createElement(b,null,i.createElement("img",{className:"img-preview",src:p,alt:o,loading:"lazy"}),i.createElement(C,{"data-disabled":d,onClick:()=>!d&&l(n-1)},i.createElement(S,null,i.createElement("img",{src:v,style:{transform:"rotate(180deg)"},alt:"left arrow","data-disabled":d,loading:"lazy"}))),i.createElement(C,{"data-right":!0,"data-disabled":m,onClick:()=>!m&&l(n+1)},i.createElement(S,null,i.createElement("img",{src:v,alt:"right arrow","data-disabled":m,loading:"lazy"})))))))},L=(0,u.Z)(p.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"),x=p.Z.div``,R=p.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; ${L.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,o]=(0,i.useState)(!0);return i.createElement(R,{"data-is-blurred":a,onClick:e=>a&&e.stopPropagation()},i.createElement("img",{loading:"lazy",className:"img-preview",src:e}),i.createElement(L,{onClick:e=>{e.stopPropagation(),o(!a)}},t&&i.createElement(x,null,a?i.createElement("svg",{width:"22",height:"20",viewBox:"0 0 22 20",fill:"none"},i.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"})):i.createElement("svg",{width:"23",height:"16",viewBox:"0 0 23 16",fill:"none"},i.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:s,isSensitive:c=!1,alt:p,positionAlert:d="top"})=>{let{data:{env:{isMarryBaby:m}}}=(0,i.useContext)(r.T),{t:u}=(0,l.u)(),h=`+ ${(t.length||0)-4}`,[E,g]=(0,i.useState)(!1),[I,T]=(0,i.useState)(-1),O=t.length>5,N=(0,i.useRef)(!1);return(0,i.useEffect)(()=>()=>{N.current&&(0,n.t)(!1)},[]),(0,i.useEffect)(()=>{E||I>=0?((0,n.t)(!0),N.current=!0):((0,n.t)(!1),N.current=!1)},[E,I]),i.createElement(i.Fragment,null,c&&"top"===d&&i.createElement(y,{message:u("sensitiveMask.contentWarningDescription"),icon:i.createElement("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none"},i.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"}))}),i.createElement(_,{className:e,style:a,"data-image-count":O?5:t.length||0,"data-is-marrybaby":m,"data-cursor-pointer":!c},null==t?void 0:t.slice(0,5).map((e,t)=>{let a=4===t&&O;return i.createElement("div",{className:"img-wrapper",key:t,onClick:()=>{t>=4&&O?g(!0):T(t)}},c&&i.createElement(SensitiveMask,{image:e,showIcon:!a}),!m&&i.createElement("img",{loading:"lazy",className:"img-preview-blur",src:e,alt:p}),i.createElement("img",{loading:"lazy",className:"img-preview",src:e,alt:p}),a&&i.createElement("div",{className:"img-more-overlay"},i.createElement(o.H,{tag:"h1",as:"h2",color:"white"},h)))})),E&&i.createElement(ImagePreviewPopup,{authorName:s||"",images:t,onClose:()=>g(!1),onOpenSingleView:T,alt:p}),I>=0&&i.createElement(PostSingleImageViewPopup,{images:t,initialViewIndex:I,onClose:()=>T(-1),alt:p}),c&&"bottom"===d&&i.createElement(y,{message:u("sensitiveMask.contentWarningDescription.community"),className:"noti-bottom",icon:i.createElement("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none"},i.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"}))}))}},D7OJ:function(e,t,a){a.d(t,{M:function(){return MantineProvider}});var i=a("Kz+G"),o=a("q1tI"),n=a("8vDj"),l=a("mD/4"),r=a("YXre");let MantineProvider=e=>{var{children:t,locale:a,template:s="hb",isNotifications:c=!0,customStyleType:p=r.C.NONE}=e,d=(0,i._)(e,["children","locale","template","isNotifications","customStyleType"]);return(0,l.u)(a),o.createElement(n.Me,Object.assign({theme:(0,l.g)(a,s,p)},d),o.createElement(r.T,{variant:p},t,c&&o.createElement(l.N,null)))}},"+aod":function(e,t,a){a.d(t,{H:function(){return HealthToolFormWrapper}});var i=a("Kz+G"),o=a("q1tI"),n=a("/npG"),l=a("mYVa"),r=a("Eso5"),s=a("aDCK"),c=a("9n+W"),p=a("8vDj"),d=a("SPK5"),m=a("2wr/"),u=a("pMur"),h=a("VLju"),E=a("FUIV"),g=a("yVya"),I=a("iBNF"),T=(0,n.k)(()=>({root:{justifyContent:"flex-start"},group:{display:"flex",alignItems:"stretch",gap:(0,l.h)(8)},item:{flex:"1 1 0px"},icon:{flexShrink:0}}));let O=(0,o.createContext)({}),_=(0,n.k)(()=>({root:{display:"flex",flexDirection:"column",gap:(0,l.h)(8),paddingLeft:16,paddingRight:16,"&:last-child":{paddingBottom:16}}}));var N=(0,n.k)((e,{formLayout:t})=>({root:{display:"flex",flexDirection:"column",gap:(0,l.h)("inline"===t?8:16),borderRadius:"inherit",".mantine-Input-input::placeholder, .mantine-Input-input[data-invalid]::placeholder":{color:"#8C8C8C"},[e.fn.smallerThan("sm")]:Object.assign({"input, .mantine-DatePickerInput-input":{fontSize:(0,l.h)(14)}},"default"===t&&{gap:8})},control:{width:(0,l.h)(180),flexShrink:1,"&.error":{"button, input":{borderColor:e.colors.red[7]}}}}));let y=(0,n.k)((e,{formLayout:t})=>{let a="mb"===e.other.template;return{root:Object.assign(Object.assign({minWidth:(0,l.h)(180)},"inline"===t&&{alignSelf:"flex-end",marginTop:(0,l.h)(16)}),"default"===t&&Object.assign({},a&&{alignSelf:"center"}))}}),f=(0,n.k)(e=>({root:{color:e.colors.gray[6],whiteSpace:"nowrap",paddingRight:(0,l.h)(16)}}));var A=(0,n.k)(()=>({root:{display:"flex",gap:(0,l.h)(8),border:"1px solid #EAEAEC",borderRadius:(0,l.h)(16),padding:"10px 16px 12px 16px",flex:"1 1 0px",".mantine-Input-input":{border:0,paddingLeft:0,height:"22px",borderRadius:0,"&:focus":{outline:0,boxShadow:"none"}}},info:{display:"flex",flexDirection:"column",gap:0,flex:"1 1 0px"},label:{color:"#7C7C8F",fontWeight:"normal"},content:{},rightSection:{display:"flex",alignItems:"center",textTransform:"lowercase",color:"#3E3F58"}})),b=(0,n.k)((e,{width:t,direction:a})=>{let i="mb"===e.other.template;return{root:{display:"flex",flexDirection:"column",gap:(0,l.h)(8)},row:{display:"flex",flexDirection:a,alignItems:"stretch",justifyContent:"space-between",gap:(0,l.h)(16),minHeight:(0,l.h)(40)},labelWrapper:Object.assign({flex:"1 1 0px",display:"flex",alignItems:"center"},"row"===a&&{borderBottom:`1px solid ${e.colors.neutral[1]}`}),label:{fontSize:(0,l.h)(14),lineHeight:(0,l.h)(22),color:e.colors.gray[6]},content:{display:"flex",alignItems:"center",gap:(0,l.h)(8),input:{backgroundColor:"#fff"}},control:{width:"number"==typeof t?(0,l.h)(t):t,flexShrink:1,input:Object.assign({},i&&{borderRadius:(0,l.h)(12)}),"&.error":{"button, input":{borderColor:e.colors.red[7]}}},error:{color:"red",textAlign:"right"}}});let C=(0,n.k)(()=>({root:{color:"red",textAlign:"right",width:"auto"}}));var S=(0,n.k)(e=>{let t="mb"===e.other.template;return{root:{label:Object.assign({},t&&{color:I.r.mbColors.midGray,fontSize:(0,l.h)(12),fontWeight:"normal"})}}});let HealthToolFormWrapper=e=>{var{children:t,formLayout:a,styles:n,classNames:l,className:s,component:c="form"}=e,p=(0,i._)(e,["children","formLayout","styles","classNames","className","component"]);let d=a||"default",{classes:m,cx:u}=N({formLayout:d},{name:"HealthToolFormWrapper",styles:n,classNames:l});return o.createElement(O.Provider,{value:{formLayout:d}},o.createElement(r.x,Object.assign({component:c,className:u(s,m.root)},p),t))};HealthToolFormWrapper.Control=e=>{var{className:t,styles:a,classNames:n}=e,l=(0,i._)(e,["className","styles","classNames"]);let{classes:s,cx:c}=S(void 0,{name:"HealthToolFormWrapper__Control",styles:a,classNames:n});return o.createElement(r.x,Object.assign({className:c(t,s.root)},l))},HealthToolFormWrapper.BorderInlineControl=({label:e,children:t,styles:a,classNames:i,direction:n="row",width:l=180,errorMess:s})=>{let{classes:c}=b({width:l,direction:n},{name:"HealthToolFormWrapper__BorderInlineControl",styles:a,classNames:i});return o.createElement(r.x,{className:c.root},o.createElement(r.x,{className:c.row},o.createElement(r.x,{className:c.labelWrapper},e&&o.createElement("label",{className:c.label,htmlFor:"gender"},e)),o.createElement(r.x,{className:c.content},(0,g.Z)(t).map((e,t)=>o.createElement(r.x,{key:t,className:c.control},e)))),s&&o.createElement(u.T,{size:"p4",className:c.error},s))},HealthToolFormWrapper.BorderBoxControl=e=>{var{label:t,rightSection:a,children:n,styles:l,className:s,classNames:c}=e,p=(0,i._)(e,["label","rightSection","children","styles","className","classNames"]);let{classes:d,cx:m}=A(void 0,{name:"HealthToolFormWrapper__BorderBoxControl",styles:l,classNames:c});return o.createElement(r.x,Object.assign({className:m(d.root,s)},p),o.createElement(r.x,{className:d.info},t&&o.createElement(u.T,{size:"n1",as:"label",className:d.label},t),o.createElement(r.x,{className:d.content},o.isValidElement(n)?o.cloneElement(n,Object.assign(Object.assign({},n.props),{size:"sm",error:null})):null)),a&&o.createElement(r.x,{className:d.rightSection},"string"==typeof a?o.createElement(u.T,{size:"p4"},a):o.isValidElement(a)?o.cloneElement(a,{size:24}):null))},HealthToolFormWrapper.Error=e=>{var{styles:t,classNames:a,className:n}=e,l=(0,i._)(e,["styles","classNames","className"]);let{classes:r,cx:s}=C(void 0,{name:"HealthToolFormWrapper__UnitText",styles:t,classNames:a});return o.createElement(u.T,Object.assign({size:"p4",className:s(n,r.root)},l))},HealthToolFormWrapper.FormRow=e=>{var{styles:t,classNames:a,className:n,children:l}=e,s=(0,i._)(e,["styles","classNames","className","children"]);let{classes:c,cx:p}=_(void 0,{name:"HealthToolFormWrapper__FormRow",styles:t,classNames:a});return o.createElement(r.x,Object.assign({className:p(n,c.root)},s),l)},HealthToolFormWrapper.Submit=e=>{var{styles:t,classNames:a,className:n}=e,l=(0,i._)(e,["styles","classNames","className"]);let{formLayout:r}=(0,o.useContext)(O),{classes:s,cx:c}=y({formLayout:r},{name:"HealthToolFormWrapper__SubmitBtn",styles:t,classNames:a});return o.createElement(h.B,Object.assign({className:c("submit-btn",n,s.root)},l,{variant:"primary",size:"md"}))},HealthToolFormWrapper.Unit=e=>{var{styles:t,classNames:a,className:n}=e,l=(0,i._)(e,["styles","classNames","className"]);let{classes:r,cx:s}=f(void 0,{name:"HealthToolFormWrapper__UnitText",styles:t,classNames:a});return o.createElement(u.T,Object.assign({size:"p4",className:s(n,r.root)},l))},HealthToolFormWrapper.Switching=e=>{var{label:t}=e,a=(0,i._)(e,["label"]);let{t:n}=(0,E.u)(),r=(0,p.rZ)(),s="mb"===r.other.template;return o.createElement(d.k,{gap:(0,l.h)(4),sx:()=>({justifyContent:"space-between",alignItems:"center"})},t&&o.createElement(u.T,{size:s?"p4":"s4",color:"gray.6"},t),o.createElement(m.r,Object.assign({labelPosition:"left",onLabel:n("switchBtn.yes"),offLabel:n("switchBtn.no")},a,{styles:e=>({trackLabel:{fontSize:(0,l.h)(12)},track:{cursor:"pointer"},body:{[e.fn.largerThan("sm")]:{flexDirection:"column",alignItems:"flex-start"},[e.fn.smallerThan("sm")]:{justifyContent:"space-between"}},labelWrapper:{[e.fn.smallerThan("sm")]:{display:"flex",justifyContent:"center"}}})})))},HealthToolFormWrapper.ChipGroup=e=>{var{data:t=[],label:a,isMobile:n,layout:p="horizonal",classNames:d,styles:m}=e,h=(0,i._)(e,["data","label","isMobile","layout","classNames","styles"]);let{classes:E,theme:g}=T(void 0,{name:"ChipGroup",classNames:d,styles:m}),I="mb"===g.other.template,O=n?48:I?32:"vertical"===p?32:18;return o.createElement(r.x,null,o.createElement(s.I.Wrapper,{label:a&&o.createElement(u.T,{size:"p3",weight:"semiBold"},a)},o.createElement(c.A.Group,Object.assign({},h),o.createElement(r.x,{className:E.group},t.map((e,t)=>o.createElement(c.A,{className:E.item,key:t,value:String(e.value),styles:{iconWrapper:{display:"none"},label:{width:"100%",borderRadius:(0,l.h)(I?12:8),padding:0,border:`1px solid ${I?"#EAEAEC":g.colors.neutral[2]}`,height:"100%","&[data-checked]":{padding:0,backgroundColor:I?"#FFE9F1":g.colors.blue[0],border:`1px solid ${I?"#F5B4CB":g.colors.blue[1]}`},[g.fn.smallerThan("sm")]:{alignItems:"flex-start"}}}},o.createElement(r.x,{sx:Object.assign(Object.assign(Object.assign({width:"100%",display:"flex",gap:(0,l.h)(I?2:8),padding:"8px 16px 8px 12px",justifyContent:"center",alignItems:"center"},I&&{flexDirection:"column"}),"vertical"===p&&{flexDirection:"column",padding:"16px 8px 8px"}),{[g.fn.smallerThan("sm")]:{flexDirection:"column",padding:"16px 8px 8px"}})},o.isValidElement(e.icon)?o.cloneElement(e.icon,{size:O,isMarryBaby:I,className:E.icon}):null,o.createElement(u.T,{size:"p4",styles:{root:Object.assign(Object.assign({},I&&{textAlign:"center"}),{whiteSpace:"normal",[g.fn.smallerThan("sm")]:{fontSize:(0,l.h)(12),lineHeight:(0,l.h)(18),textAlign:"center"}})}},e.label))))))))}},CFP3:function(e,t,a){a.d(t,{M:function(){return Modal}});var i=a("Kz+G"),o=a("q1tI"),n=a("h8tX"),l=a("Vyfo");let Modal=e=>{var{styles:t,classNames:a,transitionProps:r}=e,s=(0,i._)(e,["styles","classNames","transitionProps"]);let{classes:c}=(0,l.u)(void 0,{name:"Modal",styles:t,classNames:a});return o.createElement(n.u,Object.assign({centered:!0,classNames:c,transitionProps:Object.assign({transition:"fade"},r),trapFocus:!1},s))}},vsdc:function(e,t,a){a.d(t,{T:function(){return Text}});var i=a("Kz+G"),o=a("q1tI"),n=a("pMur");let Text=e=>{var{size:t="base",type:a="regular"}=e,l=(0,i._)(e,["size","type"]);return o.createElement(n.T,Object.assign({size:t,weight:"caption"===a?"bold":a,"data-size":t,"data-type":a,"data-word-wrap":l.wordWrap,"data-is-uppercase":l.isUppercase},l))}},NA27:function(e,t,a){a.d(t,{R:function(){return RadioImageGroup}});var i=a("q1tI"),o=a("iBNF"),n=a("rBCA"),l=a("0rTm"),r=a("vsdc");let s=n.Z.div` display: flex; width: 100%; &[data-direction='vertical'] { flex-direction: column; } &[data-direction='horizontal'] { flex-wrap: wrap; } `,c=n.Z.div` display: flex; padding: 8px; border-radius: ${o.r.borderRadius}; cursor: pointer; & > div { display: flex; width: 100%; height: 100%; flex-direction: column; align-items: center; justify-content: flex-start; } &[data-is-mb='false'] { &[data-selected='true'] { border: 1px solid #2d87f3; background: white; } &[data-selected='false'] { border: 1px solid #f2f2f2; box-shadow: 0px 5px 12px rgba(40, 74, 117, 0.08); } } &[data-is-mb='true'] { border-radius: 16px; background: white; padding: 16px auto; &[data-selected='true'] { border: 1px solid ${o.r.mbColors.mint}; box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.06); } &[data-selected='false'] { border: none; } } &[data-disabled='true'] { cursor: auto; } .radio-group-item-heading { margin-top: 8px; //height: 48px; text-align: center; } .gender-image { width: 70px; height: 70px; &[data-is-mobile='true'] { width: 40px; height: 40px; } } `,RadioImageGroup=({value:e,options:t,className:a,direction:n="horizontal",onChange:p,isDisabled:d,siteType:m})=>{let[u,h]=(0,i.useState)(e),handleOnChange=e=>{!d&&(h(e),p&&p(e))},E="marryBaby"===m;return i.createElement(s,{className:a,"data-direction":n},t.map((t,a)=>i.createElement(c,{"data-selected":(e||u)===t.value,"data-is-mb":E,"data-disabled":d,key:a,onClick:()=>{handleOnChange(t.value)}},i.createElement("div",null,t.content,t.label&&i.createElement(i.Fragment,null,E?i.createElement(l.M,{type:"subtitle-2",color:(e||u)===t.value?o.r.mbColors.dark:o.r.mbColors.midGray},t.label):i.createElement(r.T,{type:"bold",color:(e||u)===t.value?"#2D87F3":"black",className:"radio-group-item-heading",size:"label1"},t.label))))))}},"+7X0":function(e,t,a){a.d(t,{A:function(){return j},B:function(){return V},C:function(){return w},D:function(){return k},E:function(){return M},F:function(){return G},G:function(){return z},H:function(){return R},I:function(){return H},L:function(){return S},Q:function(){return r},S:function(){return L},U:function(){return C},V:function(){return D},Z:function(){return W},a:function(){return K},b:function(){return A},c:function(){return x},d:function(){return Y},e:function(){return P},f:function(){return Z},g:function(){return B},h:function(){return $},i:function(){return q},j:function(){return F},k:function(){return U},l:function(){return b},m:function(){return v},r:function(){return p},s:function(){return X}});var i,o,n,l,r,s,c,p,d=a("EikE"),m=a("OT65"),u=a("G2RZ"),h=a("YNYf"),E=a("R43W"),g=a("+xLi"),I=a("tO2/"),T=a("YJaS"),O=a("tiWT"),_=a("xrdX"),N=a("UIg8"),y=a("GOBr"),f=a("NbaP");let A="",b="https://id.hellobacsi.com/",C="userGeoLocationCoordinates",S={"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"}},v=[{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"}],L={"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"}},x=[f.L.Vietnam,f.L.Indonesia,f.L.Thailand,f.L.Malaysia,f.L.Myanmar],R=[f.L.Indonesia,f.L.Cambodia,f.L.PhilippinesEnglish,f.L.PhilippinesTagalog,f.L.Thailand,f.L.Singapore],P=[f.L.Vietnam],M=["vi-VN"],k=["id-ID"],w=["vi-VN","id-ID","en-PH","tl-PH","ms-MY","th-TH"],Y=["vi-VN","id-ID"],D=[f.L.Vietnam,f.L.Taiwan],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"}]};(i=r||(r={})).bmi="mi",i.gender="gndr",i.age="ge",i.slug="slug",i.resultId="resultId",i.bmr="mr",i.height="gt",i.weight="wght",i.source="surc",i.type="tp",i.startDate="sd",i.additional="tnl",i.week="wk",i.twins="twn",i.weightBefore="wb",i.yourself="yrslf",i.intensity="sy",i.rate="rt",i.method="mthd",i.day="dy",i.pwg="pwg",i.cycle="le",i.period="prd",i.access_token="tkn",i.name="nm",i.id="id",i.activityLevel="actl",i.status="status",i.birthday="brd",i.withImperialUnit="lbs";let H={[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:","}},V="hhg_user_token",U="hhg_user_refresh_token",F={[f.L.PhilippinesEnglish]:d.Z,[f.L.Vietnam]:m.default,[f.L.Cambodia]:u.Z,[f.L.India]:h.Z,[f.L.Indonesia]:E.Z,[f.L.Myanmar]:d.Z,[f.L.Malaysia]:g.Z,[f.L.Thailand]:I.Z,[f.L.Taiwan]:T.Z},B="https://cdn.hellohealthgroup.com/countries",z="_ga",j="YYYY-MM-DD",W=9999999,K=305,Z="video_item_detail",$="hhg_cart_care_store_key";(o=s||(s={}))[o.UNAVAILABLE=0]="UNAVAILABLE",o[o.AVAILABLE=1]="AVAILABLE",(n=c||(c={}))[n.FIXED=1]="FIXED",n[n.STARTING=2]="STARTING",n[n.RANGE=3]="RANGE",(l=p||(p={})).VACCINE="VACCINE",l.IVF="IVF",l.EGG_FREEZING="EGG_FREEZING",l.HEALTH_SCREENER="HEALTH_SCREENER";let X={vaccine:p.VACCINE,ivf:p.IVF,"egg-freezing":p.EGG_FREEZING,screener:p.HEALTH_SCREENER},Q={[p.VACCINE]:"vaccine",[p.IVF]:"ivf",[p.EGG_FREEZING]:"egg-freezing",[p.HEALTH_SCREENER]:"screener"};var q=Object.freeze({__proto__:null,basePath:A,SSO_URL:b,USER_GEOLOCATION_COORDINATES_COOKIE:C,LOCALE_SPECS:S,COUNTRY_LIST:v,STATIC_PAGES:L,UP_BASEPATH:"user",LOCALE_HAS_COMMUNITY_SITE:x,HAS_CLINITY_DOWNLOAD_SITE:R,LOCALE_HAS_CART_CARE_SITE:P,ECOM_LOCALES:M,DATA_PRIVACY_LOCALES:k,CARE_LOCALES:w,CARE_BOOKING_LOCALES:Y,VIDEO_LOCALES:D,FAVICONS:G,get QUERY_HEALTH_TOOL(){return r},ISO_FORMAT:H,BEARER_TOKEN_COOKIE:V,BEARER_REFRESH_TOKEN_COOKIE:U,DATE_FNS_LOCALE:F,CDN_ADDRESS:B,GA_TOKEN_COOKIE:z,API_DATE_FORMAT:j,DATE_FNS_DATE_FORMAT:"dd-MM-yyyy",ZINDEX_SSO:W,ZINDEX_HEADER:K,VIDEO_DETAIL_TEMP_STORAGE:Z,HHG_CART_CARE_STORE_KEY:$,get EMERGENCY_STATUS(){return s},get ServicePrice(){return c},get SERVICE_TYPE(){return p},serviceTypeByProductType:X,productTypeByServiceType:Q,siteHost:O.Cf,siteOptions:O.x9,COUNTRY_CURRENCY_SYMBOL:O.Z5,domainLocales:_.v,MAP_DOMAIN_BY_LOCALE:_.f,get RISK_SCREENER_NAME(){return N.t},RISK_SCREENER_SLUG:N.n,isProduction:y.y})},"/Xa9":function(e,t,a){a.d(t,{S:function(){return SocialLinkPreview}});var i=a("Kz+G"),o=a("q1tI"),n=a("Eso5"),l=a("8vDj"),r=a("kuQP"),s=a("7m0Y"),c=a("rBCA"),p=a("IQVP"),d=a("xPje"),m=a("2RCU"),u=a("hJjf");let h=c.Z.div` .link-info-container { padding: 0.5rem 1rem; background: ${e=>e.color||"#f4faff"}; } .link-image-wrapper { position: relative; overflow: hidden; width: 100%; background-color: #000; padding-top: ${e=>{var t;return null!==(t=e.aspectPaddingTop)&&void 0!==t?t:e.isShort?"179.58%":"56.25%"}}; &.fetching { background: lightgray; } .loading-spinner { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); } .link-image { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: ${e=>{var t;return null!==(t=e.posterFit)&&void 0!==t?t:"cover"}}; object-position: center; } } a { text-decoration: none; } &[data-is-marrybaby='true'] { overflow: hidden; border-radius: 1rem; } `,useExternalScript=({url:e,onLoad:t,onError:a})=>{let[i,n]=(0,o.useState)(e?"loading":"idle");return(0,o.useEffect)(()=>{if(!e){n("idle");return}let i=document.querySelector(`script[src="${e}"]`),handleLoadScript=()=>{n("ready"),null==t||t()},handleErrorScript=()=>{n("error"),null==a||a()};return i||((i=document.createElement("script")).type="application/javascript",i.src=e,i.async=!0,document.body.appendChild(i),i.addEventListener("load",handleLoadScript),i.addEventListener("error",handleErrorScript)),i.addEventListener("load",handleLoadScript),i.addEventListener("error",handleErrorScript),()=>{i.removeEventListener("load",handleLoadScript),i.removeEventListener("error",handleErrorScript)}},[e]),i},YoutubePlyr=({id:e,autoplay:t,posterFit:a="cover"})=>{let i=(0,o.useRef)(null),l=useExternalScript({url:"https://cdn.plyr.io/3.7.8/plyr.js"});return(0,o.useEffect)(()=>{var e;if(!document.getElementById("hhg-plyr-player")){let e=document.createElement("link");e.rel="stylesheet",e.type="text/css",e.href="https://cdn.plyr.io/3.7.8/plyr.css",e.id="hhg-plyr-player",document.head.appendChild(e)}let a="ready"===l||"undefined"!=typeof Plyr;if(!a)return;let o=null===(e=i.current)||void 0===e?void 0:e.querySelector('[data-id="player"]');if(!o)return;let n=new Plyr(o,{autoplay:t,muted:!0});return()=>{n.destroy()}},[l,t,e]),o.createElement(n.x,{ref:i,sx:{position:"absolute",top:0,left:0,right:0,bottom:0,backgroundColor:"#000","&, & > div":{width:"100%",height:"100%"},"& .plyr":{width:"100%",height:"100%",maxWidth:"none"},"& .plyr__video-wrapper":{height:"100%",width:"100%"},"& .plyr__video-embed":{paddingBottom:"0 !important",height:"100% !important",position:"relative"},"& .plyr__video-embed iframe":{position:"absolute",top:0,left:0,width:"100%",height:"100%"},"& .plyr__poster":{backgroundSize:"cover"===a?"cover !important":"contain !important",backgroundPosition:"center !important",backgroundRepeat:"no-repeat",width:"100% !important",height:"100% !important",top:0,left:0}}},o.createElement("div",{key:e,"data-id":"player",className:"plyr__video-embed"},o.createElement("iframe",{width:"100%",height:"100%",src:`https://www.youtube.com/embed/${e}?mute=1&enablejsapi=1&rel=0`,allow:"autoplay; fullscreen",allowFullScreen:!0,title:"YouTube preview",frameBorder:"0"})))},SocialLinkPreview=({url:e,image:t,className:a,style:n,baseUrl:c="",autoPlay:E=!0,isShort:g=!1,autoScaleByVideoType:I=!1,ratio:T,posterFit:O="cover",onPushStatus:_})=>{let{data:{locale:N}}=(0,o.useContext)(s.T),[y,f]=(0,o.useState)(null);(0,o.useEffect)(()=>{(0,i.a)(void 0,void 0,void 0,function*(){if(!t){if(!e)return f(null);f(e=>Object.assign(Object.assign({},e),{isFetching:!0})),(0,s.c)((0,s.f)(p.yy.FETCH_PREVIEW,{_locale:N},void 0,c),"POST",{data:{link:e},headers:{"Content-Type":"application/json"}},!!c).then(t=>{var a,i;f({url:e,image:(null===(a=null==t?void 0:t.data)||void 0===a?void 0:a.image)||(null===(i=null==t?void 0:t.data)||void 0===i?void 0:i.logo)})}).catch(()=>{f(null)})}})},[e,t]);let A=t||(null==y?void 0:y.image),b=(null==y?void 0:y.url)||e,C=(0,o.useMemo)(()=>(0,m.y)(b),[b]),S=(0,o.useMemo)(()=>b.includes("facebook.com")||b.includes("fb.watch"),[b]),v=(0,o.useMemo)(()=>{let e=(b||"").toLowerCase();return e.includes("/reel/")||e.includes("/reels/")},[b]),L=(0,o.useMemo)(()=>!!(C||S),[S,C]),x=(0,o.useMemo)(()=>!!I&&(!!g||b.toLowerCase().includes("/shorts/")||v),[I,b,v,g]),R=(0,o.useMemo)(()=>T?function(e){let t=e.trim().match(/^(\d+(?:\.\d+)?)\s*:\s*(\d+(?:\.\d+)?)$/);if(!t)return;let a=Number(t[1]),i=Number(t[2]);if(Number.isFinite(a)&&Number.isFinite(i)&&!(a<=0)&&!(i<=0))return`${i/a*100}%`}(T):void 0,[T]),P=(0,o.useRef)(null),M=(0,o.useRef)(0),k=(0,o.useRef)(0),[w,Y]=(0,o.useState)(!1),D=(0,o.useCallback)(e=>{var t;let a=null===(t=P.current)||void 0===t?void 0:t.getBoundingClientRect();if(!(null==a?void 0:a.width))return;let i=Math.floor(a.width),o=Math.floor(a.height),n=!1;e?((!M.current||Math.abs((M.current-i)/a.width)>.2)&&(M.current=i,n=!0),(!k.current||Math.abs((k.current-o)/(a.height||1))>.2)&&(k.current=o,n=!0)):(i!==M.current||o!==k.current)&&(M.current=i,k.current=o,n=!0),n&&Y(e=>!e)},[]);(0,o.useLayoutEffect)(()=>{D(!1)},[R,T,x,b,D]),(0,o.useEffect)(()=>{let handleResize=()=>D(!0);return handleResize(),window.addEventListener("resize",handleResize,{passive:!0}),()=>{window.removeEventListener("resize",handleResize)}},[D]),(0,o.useEffect)(()=>{(null==y?void 0:y.image)&&(null==y?void 0:y.url)&&(null==_||_(!0))},[y]);let G=(0,l.rZ)();return o.createElement(h,{className:`${a} no-replace-click`,style:n,color:G.colors[G.primaryColor][0],isShort:x,aspectPaddingTop:R,posterFit:O},L&&(!t||v)?o.createElement("div",{ref:P,className:"link-image-wrapper"},C?o.createElement(YoutubePlyr,{key:`${C}-${null!=T?T:"auto"}`,id:C,autoplay:E,isShort:x,ratio:T,posterFit:O}):S?o.createElement("iframe",{key:String(w),src:`https://www.facebook.com/plugins/video.php?href=${encodeURIComponent(b)}&autoplay=${E?1:0}&show_text=false&t=0&width=${M.current}&height=${k.current}`,style:{position:"absolute",top:"50%",left:"50%",border:"none",overflow:"hidden",height:k.current,width:M.current,transform:"translate(-50%, -50%)"},scrolling:"no",frameBorder:"0",allowFullScreen:!0,allow:"autoplay; clipboard-write; encrypted-media; picture-in-picture; web-share",loading:"lazy"}):null):o.createElement("a",{href:b,target:"_blank",rel:"noreferrer"},o.createElement("div",{className:`link-image-wrapper ${(null==y?void 0:y.isFetching)?"fetching":""}`},(null==y?void 0:y.isFetching)?o.createElement(u.L,{className:"loading-spinner"}):o.createElement(r.I,{className:"link-image",src:A||d.a,backupSrc:d.a,alt:b}))))}}}]);