"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9301],{qWvP:function(e,t,a){a.d(t,{P:function(){return Popup}});var n=a("q1tI"),l=a("rBCA"),o=a("e0Et"),i=a("iBNF");let r=l.Z.div` position: fixed; left: 50%; padding: 0 16px 32px; background-color: ${i.r.colors.white}; border-radius: ${i.r.borderRadius}; box-shadow: 0px 4px 8px ${i.r.colors.gray200}; transform: translate(-50%, -50%); transition: all 0.5s ease-in-out; visibility: hidden; &[data-open='true'] { z-index: 400; top: 50%; opacity: 1; visibility: visible; } &[data-open='false'] { top: -50%; } &[data-type='lead'] { width: 332px; height: 460px; div { top: -15px; right: -15px; } } &[data-type='form'] { width: 496px; height: 548px; ${o.M.mbDown} { width: 340px; } } &[data-type='confirm'] { ${o.M.mbDown} { width: calc(100% - 32px); } ${o.M.mbUp} { width: 100%; max-width: 407px; } } .popup-content { position: relative; z-index: 111; height: 100%; padding: 16px; } .close-button { position: absolute; top: 16px; right: 0; cursor: pointer; img { width: 100%; height: 100%; border-radius: 50%; } } `,s=l.Z.div` position: fixed; z-index: 110; top: 0; left: 0; width: 100%; height: 100%; align-items: center; background: rgba(38, 38, 38, 0.3); &[data-open='false'] { display: none; } `,Popup=({type:e="lead",closeIcon:t,isOpen:a=!0,onClose:l,children:o,className:i="",enableAnimation:c=!0,disableClickOutside:d=!1})=>n.createElement(n.Fragment,null,n.createElement(r,{"data-open":a,"data-type":e,"data-animation":c},n.createElement("div",{className:`${i||""} popup-content`},!!t&&n.createElement("div",{className:"close-button",onClick:l},t),o)),n.createElement(s,{"data-open":a,onClick:()=>{d||l()}}))},Yyhf:function(e,t,a){a.d(t,{D:function(){return Drawer}});var n=a("q1tI"),l=a("t/pd"),o=a("e0Et"),i=a("AeFk"),r=a("rBCA"),s=a("iBNF"),c=a("AOsp"),d=a("Rh7u");let u="600ms",generateStyleBasedOnPlacement=(e,t)=>{switch(e){case"top":return i.iv` top: 0; width: 100%; border-radius: 0px 0px 6px 6px; ${t?i.iv` animation: ${c.a} ${u} ease-in-out forwards; `:null} &.slideOut { animation: ${c.d} ${u} ease-in-out forwards; } `;case"right":return i.iv` right: 0; height: 100%; min-width: 300px; border-radius: 6px 0px 0px 6px; ${t?i.iv` animation: ${c.c} ${u} ease-in-out forwards; `:null} &.slideOut { animation: ${c.g} ${u} ease-in-out forwards; } `;case"bottom":return i.iv` bottom: 0; width: 100%; border-radius: 6px 6px 0px 0px; ${t?i.iv` animation: ${c.s} ${u} ease-in-out forwards; `:null} &.slideOut { animation: ${c.e} ${u} ease-in-out forwards; } `;case"left":return i.iv` left: 0; height: 100%; min-width: 300px; border-radius: 0px 6px 6px 0px; ${t?i.iv` animation: ${c.b} ${u} ease-in-out forwards; `:null} &.slideOut { animation: ${c.f} ${u} ease-in-out forwards; } `;default:return i.iv` left: 0; height: 100%; min-width: 300px; border-radius: 0px 6px 6px 0px; ${t?i.iv` animation: ${c.s} ${u} ease-in-out forwards; `:null} &.slideOut { animation: ${c.e} ${u} ease-in-out forwards; } `}},p=r.Z.div` position: fixed; inset: 0; z-index: ${s.r.zIndexes.drawer}; pointer-events: ${e=>e.open?"auto":"none"}; `,m=r.Z.div` position: fixed; z-index: 300; background: #ffffff; visibility: ${e=>e.open?"visible":"hidden"}; max-height: calc(100vh - 100px); display: flex; flex-direction: column; .title { display: flex; align-items: center; justify-content: space-between; padding: 16px; ${e=>e.hasTitle?i.iv` border-bottom: 1px solid ${s.r.colors.neutral100}; `:null} } .close-button { margin-left: auto; } ${e=>generateStyleBasedOnPlacement(e.placement,e.open)} `,g=r.Z.div` min-height: 200px; padding: 16px; overflow-y: auto; `,h=r.Z.div` position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; overflow-x: hidden; overflow-y: auto; outline: 0; background-color: rgba(38, 38, 38, 0.3); z-index: 1; &[data-open='false'] { visibility: hidden; pointer-events: none; } &[data-open='true'] { visibility: visible; pointer-events: auto; } `,Backdrop=({open:e=!1,onClickOutside:t})=>n.createElement(h,{"data-open":e,onClick:t}),Drawer=({children:e,title:t,onClose:a,open:i=!1,placement:r="left",destroyOnClose:s=!1,isPropagationEvent:c=!0,className:u})=>{let h=(0,n.useRef)();(0,n.useEffect)(()=>((0,o.t)(i),()=>(0,o.t)(!1)),[i]);let onCloseDrawer=()=>{h.current.classList.add("slideOut"),setTimeout(()=>{a()},800)};return!i&&s?null:n.createElement(l.h,null,n.createElement(p,{className:u,open:i},n.createElement(Backdrop,{open:i,onClickOutside:onCloseDrawer}),n.createElement(m,{open:i,placement:r,ref:h,hasTitle:!!t},n.createElement("div",{className:"title"},t&&n.createElement(d.T,{size:"s2",weight:"semiBold"},t),n.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",className:"close-button",onClick:onCloseDrawer},n.createElement("path",{d:"M5.99007 4.99067C5.79114 4.99072 5.59674 5.0501 5.43173 5.16121C5.26672 5.27233 5.1386 5.43013 5.06374 5.61444C4.98889 5.79875 4.9707 6.0012 5.0115 6.1959C5.05231 6.39061 5.15025 6.56872 5.29281 6.70747L10.5858 12.0004L5.29281 17.2934C5.19684 17.3855 5.12021 17.4959 5.06743 17.618C5.01464 17.7402 4.98676 17.8716 4.9854 18.0046C4.98405 18.1377 5.00926 18.2697 5.05954 18.3928C5.10983 18.516 5.1842 18.6279 5.27827 18.722C5.37235 18.8161 5.48426 18.8904 5.60743 18.9407C5.73061 18.991 5.86259 19.0162 5.99563 19.0149C6.12867 19.0135 6.2601 18.9856 6.38223 18.9328C6.50436 18.8801 6.61473 18.8034 6.70687 18.7075L11.9998 13.4145L17.2928 18.7075C17.385 18.8034 17.4953 18.8801 17.6175 18.9328C17.7396 18.9856 17.871 19.0135 18.0041 19.0149C18.1371 19.0162 18.2691 18.991 18.3922 18.9407C18.5154 18.8904 18.6273 18.8161 18.7214 18.722C18.8155 18.6279 18.8899 18.516 18.9401 18.3928C18.9904 18.2697 19.0156 18.1377 19.0143 18.0047C19.0129 17.8716 18.985 17.7402 18.9323 17.618C18.8795 17.4959 18.8028 17.3855 18.7069 17.2934L13.4139 12.0004L18.7069 6.70747C18.8514 6.567 18.9501 6.38616 18.99 6.18864C19.03 5.99112 19.0093 5.78614 18.9308 5.60055C18.8523 5.41497 18.7195 5.25744 18.5499 5.14861C18.3803 5.03978 18.1817 4.98473 17.9803 4.99067C17.7205 4.99841 17.4739 5.10699 17.2928 5.2934L11.9998 10.5864L6.70687 5.2934C6.61368 5.19761 6.50224 5.12146 6.37912 5.06947C6.25601 5.01747 6.12372 4.99068 5.99007 4.99067Z",fill:"#595959"}))),n.createElement(g,{onClick:e=>{c&&e.stopPropagation()}},e&&(n.isValidElement(e)?e:"function"==typeof e?e({internalClose:onCloseDrawer}):null)))))}},CVgL:function(e,t,a){a.d(t,{I:function(){return InputCommentBar},P:function(){return PopupDanger},S:function(){return SharePopup},a:function(){return PopupFrame},b:function(){return SubmitReportForm},c:function(){return S},d:function(){return getPostFormData},e:function(){return editPost},f:function(){return createPost},g:function(){return getDefaultFailNoti},h:function(){return deletePost},i:function(){return D},j:function(){return deleteComment},k:function(){return decodeCommentBody},l:function(){return likeUnlikeComment},m:function(){return likeUnlikePost},u:function(){return useImagePicker}});var n=a("q1tI"),l=a("JJ6e"),o=a("UESe"),i=a("Rh7u"),r=a("e0Et"),s=a("i8i4"),c=a("9E0F"),d=a("rBCA"),u=a("iBNF"),p=a("Cxxo"),m=a("kXWp"),g=a("bSpP"),h=a("r0Za"),E=a("7R3W"),v=a("IQVP"),y=a("J7Jv"),f=a("wupm"),b=a("6a23"),x=a("Sbqh"),T=a("6qU1"),C=a("t/pd"),I=a("D0vz"),O=a("qWvP"),N=a("UUbN"),_=a("/pFO");let useImagePicker=(e,t)=>{let[a,l]=(0,n.useState)(e||[]),o=(0,n.useMemo)(()=>(e||a).map(e=>"string"==typeof e?e:URL.createObjectURL(e)),[e,a]);return{onSelectImages:n=>{let o=n.target.files;if(o){if(t&&e){let n=e||a;t(n.concat(Array.from(o)))}else l(a=>{let n=e||a;return t&&t(n.concat(Array.from(o))),n.concat(Array.from(o))})}},onRemoveImage:a=>{t&&e?(e.splice(a,1),t(e.slice())):l(n=>{let l=e||n;return l.splice(a,1),t&&t(l.slice()),l.slice()})},onRemoveAllImages:()=>{t?t([]):l([])},imageSrcs:o,imageFiles:e||a}},getDefaultFailNoti=e=>({message:e("notification.failure"),type:"danger"}),likeUnlikePost=({id:e,locale:t})=>(0,p.a)(void 0,void 0,void 0,function*(){if(!e)return;let a=yield(0,c.b)((0,c.e)(v.yy.POST.LIKE,{id:e,_locale:t}),"GET");return a}),deletePost=({id:e,locale:t})=>(0,p.a)(void 0,void 0,void 0,function*(){if(!e)return;let a=yield(0,c.b)((0,c.e)(v.yy.POST.DELETE,{id:e,_locale:t}),"DELETE");return a}),getPostFormData=({title:e,description:t,communityId:a,imageFiles:n,previewUrl:l,topicIds:o,locale:i,sanitizeFunction:s,categoryCommunityId:c,categoryTopicIds:d,introUrl:u,bannerUrl:m,scheduleTime:g,isAnonymous:h,isAskDoctor:v})=>(0,p.a)(void 0,void 0,void 0,function*(){let p=new FormData,f=(0,y.j)(t),b=(0,y.j)(e),x=(0,y.i)(f);if(p.append("title",b),p.append("description",(0,y.k)(f,s)),c?p.append("category_community",String(c)):a&&p.append("community_id",String(a)),p.append("is_anonymous",h?"1":"0"),p.append("is_question",v?"1":"0"),(null==l?void 0:l.title)&&p.append("preview_title",l.title),(null==l?void 0:l.description)&&p.append("preview_description",l.description),(null==l?void 0:l.url)&&p.append("preview_link",(0,r.c)(l.url)),(null==l?void 0:l.image)&&p.append("preview_image",(0,r.c)(l.image)),null==o||o.forEach(e=>{p.append("topics[]",String(e||""))}),null==d||d.forEach(e=>{p.append("category_topics[]",String(e||""))}),null==n?void 0:n.length){let e=yield Promise.all(n.map((e,t)=>new Promise(a=>{setTimeout(()=>{a((0,y.u)(e,i))},2e3*t)})));null==e||e.filter(Boolean).slice(0,E.M).forEach((e,t)=>{p.append(`images[${t}]`,e)})}else p.append("images","");return null==x||x.forEach(e=>{p.append("mention_ids[]",e)}),p.append("intro_url",u||""),p.append("banner",m||""),g&&(p.append("post_type","scheduled"),p.append("schedule_datetime",g)),p}),createPost=({locale:e,formData:t,isArticleComment:a})=>(0,p.a)(void 0,void 0,void 0,function*(){let n=yield(0,c.b)((0,c.e)(a?v.yy.POST.CREATE_ARTICLE_COMMENT:v.yy.POST.CREATE,{_locale:e}),"POST",{data:t});return n}),editPost=({id:e,locale:t,formData:a})=>(0,p.a)(void 0,void 0,void 0,function*(){let n=yield(0,c.b)((0,c.e)(v.yy.POST.UPDATE,{id:e,_locale:t}),"POST",{data:a});return n}),reportPost=({id:e,reason:t,locale:a})=>{let n=new FormData;return n.append("reason",t),(0,c.b)((0,c.e)(v.yy.POST.REPORT,{_locale:a,id:e}),"POST",{data:n})},A=d.Z.div` [data-type='confirm'] { max-width: 468px; /* height: 486px; */ padding: 0; .popup-content { display: flex; flex-direction: column; padding: 0; .close-button { top: 16px; right: 16px; width: 24px; height: 24px; z-index: 5; } .header { display: flex; height: 56px; align-items: center; padding: 16px 56px 16px 32px; border-bottom: 1px solid ${u.r.colors.neutral100}; font-weight: 900; width: 100%; justify-content: space-between; } .content { overflow: auto; flex: 1; .topic-list-wrapper { padding: 1rem; } } } } > div&[data-open='true'] { z-index: 250; &:last-child { z-index: 200; } } ${e=>e.isExpand&&` & > div[data-open] { width: 100%; height: 100%; max-width: none; max-height: none; } `} ${e=>e.hasFullscreen&&` & > div[data-open] { transition: all 0.5s ease-in-out, width 0s, height 0s; } `} `,w=d.Z.div` cursor: pointer; display: flex; align-items: center; `,PopupFrame=({className:e,style:t,closeIcon:a,heading:l="",children:i,isOpen:r=!1,hasFullscreen:s=!1,disableClickOutside:c=!1,initExpand:d=!1,onExpandChange:u,onClose:p=()=>null})=>{let[m,g]=(0,n.useState)(d);return n.createElement(A,{className:e,style:t,isExpand:m,hasFullscreen:s},n.createElement(O.P,{type:"confirm",onClose:p,isOpen:r,closeIcon:a||n.createElement("img",{src:N.C,loading:"lazy"}),enableAnimation:!s,disableClickOutside:c},n.createElement("div",{className:"header"},n.createElement(o.H,{tag:"h5"},l),s&&n.createElement(w,{onClick:()=>{null==u||u(),g(!m)}},n.createElement(I.Z,{size:14,isExpand:m}))),n.createElement("div",{className:"content"},"function"==typeof i?i(m):i)))};var S="data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='24' height='25' fill='none'%3e%3cpath fill='%23262626' d='M12 22.984c5.523 0 10-4.477 10-10s-4.477-10-10-10-10 4.478-10 10 4.477 10 10 10'/%3e%3cpath stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m14.828 10.156-5.657 5.657M9.172 10.156l5.657 5.657'/%3e%3c/svg%3e";let P=d.Z.div` [data-type='confirm'] { width: min(360px, 100%); height: auto; &[data-open='false'] { top: calc(-100% - 500px); } } z-index: 600; .header { display: none !important; } .confirm-dialog { position: relative; overflow: auto; width: 100%; padding-top: 44px; background: #fff; border-radius: ${u.r.borderRadius}; .confirm-content { display: flex; flex-direction: column; align-items: center; padding: 0 16px 16px; text-align: center; .title { margin-bottom: 8px; font-size: 24px; line-height: 32px; word-break: break-word; overflow-wrap: break-word; } .desc { margin-bottom: 24px; color: ${u.r.colors.gray500}; font-size: 18px; line-height: 24px; text-align: center; word-break: break-word; overflow-wrap: break-word; } .btn-group { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; button { margin: 0 4px 0.5rem; } } } } .thumbnail-container { width: 80px; height: 80px; margin-bottom: 32px; .thumbnail { width: 100%; height: 100%; } &.is-icon { display: flex; align-items: center; justify-content: center; background: #e0e9fc; border-radius: 1rem; .thumbnail { width: 40px; height: 40px; } } } &[data-is-marrybaby='true'] { .popup-frame { > div:first-child { overflow: hidden; border-radius: 1rem; &[data-open='true'] { ${r.M.mbDown} { top: 100%; transform: translate(-50%, -100%); max-width: unset; width: 100%; background: unset; overflow: unset; } } } .popup-content { .close-button { ${r.M.mbDown} { display: none; } } .confirm-dialog { ${r.M.mbDown} { background: unset; position: relative; overflow-x: hidden; &::before { content: ''; width: 200%; background: #fff; position: absolute; left: 50%; top: 0; transform: translateX(-50%); z-index: -1; height: 100%; border-top-left-radius: 100%; border-top-right-radius: 100%; } } .confirm-content { padding: 0 40px 40px; ${r.M.mbDown} { padding-left: 1.5rem; padding-right: 1.5rem; } .btn-group { width: 100%; justify-content: space-between; button { flex: 1; margin: 0; &:first-child { margin-right: 0.5rem; } } } } } } .thumbnail-container { ${r.M.mbDown} { display: none; } &.is-icon { background: #ffeaf1; border-radius: 24px; } &.is-mobile { position: absolute; top: 0; left: 50%; display: none; width: 48px; height: 48px; transform: translate(-50%, -50%); &.is-icon { border-radius: 1rem; .thumbnail { width: 24px; height: 24px; } } ${r.M.mbDown} { display: flex; } } } } } `,PopupDanger=({className:e,isMarryBaby:t,style:a,title:d,description:u,acceptText:p,cancelText:m,onAccept:g,onCancel:h,thumbnail:E,isThumbnailIcon:v,onClose:y,acceptBtnTracking:f,acceptBtnProps:b,cancelBtnProps:x})=>{let{data:{env:{isMarryBaby:T}}}=(0,n.useContext)(c.T),C="boolean"==typeof t?t:T,[I,O]=(0,n.useState)(!1);return((0,n.useEffect)(()=>((0,r.t)(!0),setTimeout(()=>O(!0),0),()=>(0,r.t)(!1)),[]),"undefined"==typeof window)?null:s.createPortal(n.createElement(P,{"data-is-marrybaby":C,className:e,style:a,"data-open":I},n.createElement(PopupFrame,{className:"popup-frame",isOpen:I,onClose:y},n.createElement("div",{className:"confirm-dialog",onClick:e=>e.stopPropagation()},n.createElement("div",{className:"confirm-content"},E&&n.createElement("div",{className:`thumbnail-container ${v?"is-icon":""}`},n.createElement("img",{className:"thumbnail",src:E,loading:"lazy"})),n.createElement(o.H,{className:"title",tag:"h2"},d),n.createElement(i.T,{className:"desc",size:"lg"},u),n.createElement("div",{className:"btn-group"},n.createElement(l.B,Object.assign({theme:C?"marryBaby":"helloSites",size:"md",color:"tertiary",onClick:()=>{null==g||g(),null==y||y()}},b,f),p),n.createElement(l.B,Object.assign({theme:C?"marryBaby":"helloSites",size:"md",onClick:()=>{null==h||h(),null==y||y()}},x),m)))),C&&E&&n.createElement("div",{className:`thumbnail-container is-mobile ${v?"is-icon":""}`},n.createElement("img",{className:"thumbnail",src:E,loading:"lazy"})))),(0,r.a)())},k=d.Z.div` padding: 1rem; border-top: 1px solid #f2f2f2; &[data-is-reply='true'] { padding-right: 0; padding-left: 0; border-top: 1px solid #e4e8ec; margin-right: 1rem; margin-left: 1rem; } .error-text { padding: 1rem; color: ${u.r.colors.red700}; } .reply-to-container { display: flex; justify-content: space-between; padding-bottom: 0.75rem; margin-top: -0.25rem; .icon-close-comment { width: 16px; height: 16px; cursor: pointer; } a { text-decoration: none; } } .input-container { display: flex; align-items: center; .avatar-wrapper { display: flex; flex-shrink: 0; align-items: center; margin-right: 0.5rem; &.avatar-wrapper-reply { width: 32px; height: 32px; .avatar { width: 32px; height: 32px; } } } .input-wrapper { margin-right: 0.5rem; &[data-has-error] { .as-input { border-color: ${u.r.colors.red700}; } } .as-input { .textarea { width: 100%; max-height: 225px; min-height: 75px; .ql-toolbar { padding: 0; } .ql-editor { padding-left: 0; padding-right: 0; } .quill { height: 0; } } width: 100%; padding: 12px 16px; border: solid 1px ${u.r.colors.gray200}; border-radius: ${u.r.borderRadius}; &:active, &:focus { border-color: ${u.r.colors.primaryBase}; box-shadow: 0px 0px 2px 2px ${u.r.colors.primary200}; } &:disabled { background-color: ${u.r.colors.gray100}; cursor: not-allowed; } span { &[data-error='true'] { color: red; text-decoration: underline; } } } &[data-has-action-icon] { .as-input { padding: 12px 48px 12px 16px; } } &[data-has-display-icon] { .as-input { padding: 12px 16px 12px 48px; } } &[data-has-action-icon][data-has-display-icon] { .as-input { padding: 12px 48px; } } &[data-size='lg'] { .as-input { font-size: 16px; font-weight: ${u.r.sizes.fwRegular}; ${r.M.mbDown} { font-size: 22px; line-height: 1.2; } ${r.M.mbUp} { font-size: 26px; line-height: 1.2; } } } &[data-size='md'] { .as-input { font-weight: ${u.r.sizes.fwRegular}; line-height: 22px; ${r.M.mbDown} { font-size: 14px; line-height: 1.2; } ${r.M.mbUp} { font-size: 16px; line-height: 1.2; } } } &[data-size='sm'] { .as-input { font-weight: ${u.r.sizes.fwRegular}; line-height: 20px; ${r.M.mbDown} { font-size: 13px; line-height: 1.5; } ${r.M.mbUp} { font-size: 13px; line-height: 1.5; } } } } .images-input-label { height: 100%; cursor: pointer; .icon-images-input { width: 24px; height: 24px; vertical-align: middle; } } .send-button { display: flex; width: 40px; height: 40px; flex-shrink: 0; align-items: center; justify-content: center; padding: 0; border: none; &.send-button-post { background: ${u.r.colors.neutral100}; border-radius: 50%; } .icon-enter { width: 20px; height: 20px; vertical-align: middle; } &[data-is-loading='true'] { > div { display: flex; align-items: center; justify-content: center; } } } } .preview-images-container { margin-top: 1rem; .image-src-wrapper { position: relative; width: 100%; padding-top: 66.67%; &:not(:last-child) { margin-bottom: 1rem; } .preview-image { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; } .icon-close-circle { position: absolute; top: 10px; right: 10px; width: 20px; height: 20px; cursor: pointer; } } } `,L=(0,n.createContext)({}),getCommentFormBody=({postId:e,message:t,photos:a,link:n,locale:l,sanitizeFunction:o,replyingUserId:i,replyingUserName:r,replyingId:s})=>(0,p.a)(void 0,void 0,void 0,function*(){let c=new FormData,d=(0,y.k)(t.replace(/(\ )+/g," "),o),u=(0,y.i)(d);if(a&&a.length>0){let e=yield Promise.all(null==a?void 0:a.map(e=>(0,y.u)(e,l)));e.filter(Boolean).slice(0,E.M).forEach(e=>{c.append("images[]",e)})}return n&&c.append("link",n),null==u||u.forEach(e=>{c.append("mention_ids[]",e)}),c.append("post_id",e),s&&c.append("parent_id",s),i&&(u.unshift(i),d=`[mention+id="${i}"+name="${(r||"").replace('"',"'")}"]${d}`,c.append("parent_user_id",String(i))),c.append("content",d),c.append("content",d),c}),submitComment=(e,t)=>(0,p.a)(void 0,void 0,void 0,function*(){return(0,c.b)((0,c.e)(v.yy.COMMENT.CREATE,{_locale:t}),"POST",{data:e})}),decodeCommentBody=e=>{try{let t=e.match(/\[@([^\]]+)\]/),a=t?t[0].replace("[@","").replace("]",""):"",n=e.replace(/\[@([^\]]+)\]/,"");return{text:n.trim(),replyingTo:a}}catch(e){}return{text:""}},submitReply=(e,t)=>(0,p.a)(void 0,void 0,void 0,function*(){return(0,c.b)((0,c.e)(v.yy.COMMENT.REPLY,{_locale:t}),"POST",{data:e})}),likeUnlikeComment=({commentId:e,setLike:t=!1,locale:a})=>(0,p.a)(void 0,void 0,void 0,function*(){return(0,c.b)((0,c.e)(t?v.yy.COMMENT.LIKE:v.yy.COMMENT.UNLIKE,{_locale:a,id:e}),"GET")}),deleteComment=({id:e,locale:t})=>(0,c.b)((0,c.e)(v.yy.COMMENT.DELETE,{_locale:t,id:e}),"DELETE"),InputCommentBar=({isReply:e,className:t,onClose:a,replyToName:o,style:r,replyingId:s,replyingUser:d,onPostSuccess:u,post:v,isMarryBaby:y})=>{let{action:{pushNotifications:C,sanitizeFunction:I},data:{userInfo:O,locale:N,env:{isMarryBaby:_}}}=(0,n.useContext)(c.T),{t:A}=(0,g.u)(),{onSelectImages:w,onRemoveImage:P,imageSrcs:M,onRemoveAllImages:R,imageFiles:D}=useImagePicker(),[H,B]=(0,n.useState)(""),{trigger:G}=(0,n.useContext)(L),[Y,z]=(0,n.useState)(!1),F=(0,n.useRef)(null),U=(0,n.useRef)(null),$=(0,n.useRef)(null),[j,V]=(0,n.useState)([]),[Z,q]=(0,n.useState)([]),[W,K]=(0,n.useState)(null);return(0,n.useEffect)(()=>{var e;null===(e=$.current)||void 0===e||e.scrollIntoView({behavior:"smooth",block:"start"}),setTimeout(()=>{var e;null===(e=U.current)||void 0===e||e.focus()},400)},[G]),n.createElement(k,{"data-is-reply":e,className:t,style:r},e&&n.createElement("div",{className:"reply-to-container"},n.createElement(i.T,{size:"p4"},n.createElement("span",{dangerouslySetInnerHTML:{__html:A("inputComment.replyTo",{name:`@${o||""}`})}})),n.createElement("img",{src:"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='17' fill='none'%3e%3ccircle cx='8' cy='8.5' r='6.667' fill='white' stroke='%23404040'/%3e%3cpath stroke='%23404040' stroke-linecap='round' stroke-linejoin='round' d='m10 6.5-4 4M6 6.5l4 4'/%3e%3c/svg%3e",className:"icon-close-comment",onClick:()=>a&&a(),loading:"lazy"})),n.createElement("div",{className:"input-container",ref:$},n.createElement(x.U,{className:`avatar-wrapper ${e?"avatar-wrapper-reply":""}`,avatar:(null==O?void 0:O.id)?O.avatar:E.a,username:(null==O?void 0:O.name)||(null==O?void 0:O.username)}),n.createElement("input",{ref:F,onChange:w,type:"file",multiple:!0,accept:"image/png,image/jpeg",name:"images",style:{display:"none"}}),n.createElement(m.I,{value:H,name:"input",size:"md",className:"input-wrapper",displayIcon:n.createElement("img",{src:"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none'%3e%3cpath stroke='%232D87F3' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.75' d='M10.754 4.854H4.492a1.79 1.79 0 0 0-1.789 1.789v12.524a1.79 1.79 0 0 0 1.79 1.789h12.523a1.79 1.79 0 0 0 1.79-1.79v-6.261'/%3e%3cpath stroke='%232D87F3' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.75' d='M17.463 3.512a1.898 1.898 0 0 1 2.684 2.684l-8.498 8.498-3.579.895.895-3.579z'/%3e%3c/svg%3e",loading:"lazy"}),CustomInput:n.createElement("div",{className:"as-input"},n.createElement(T.R,{className:"textarea",html:H,onChange:B,onImagePickerClick:()=>{var e;return null===(e=F.current)||void 0===e?void 0:e.click()},bannedWords:Z,onPreviewUrlChange:K,onInvalidUrlsChange:V,setEditorRef:e=>U.current=e,isReplying:e}))}),n.createElement(l.B,{theme:("boolean"==typeof y?y:_)?"marryBaby":"helloSites",className:"send-button",size:"sm",onClick:()=>(0,p.a)(void 0,void 0,void 0,function*(){var t,n,l,o,i,r,c,p,m;if((null==v?void 0:v.id)&&!Y){z(!0);try{let g=yield getCommentFormBody(Object.assign({message:H,photos:D,postId:String(v.id),link:null==W?void 0:W.url,sanitizeFunction:I,locale:N},e&&s?{replyingUserId:String((null==d?void 0:d.id)||(null===(t=null==v?void 0:v.author)||void 0===t?void 0:t.id)||""),replyingId:s,replyingUserName:(null==d?void 0:d.name)||(null==d?void 0:d.username)||""}:{})),E=yield e&&s?submitReply(g,N):submitComment(g,N),y=null==E?void 0:E.data;(null==y?void 0:y.id)&&!(null===(l=null===(n=null==E?void 0:E.messages)||void 0===n?void 0:n.moderation)||void 0===l?void 0:l.type)?(e=>{B(""),R(),a&&a();let t=(0,h.e)(e.data);"string"==typeof t.images&&(t.images=JSON.parse(t.images)),u&&u(t)})(E):(null===(i=null===(o=null==E?void 0:E.messages)||void 0===o?void 0:o.moderation)||void 0===i?void 0:i.type)==="banned"?(C({title:A("notification.comment.blocked.title"),message:A("notification.comment.blocked.message"),type:"danger"}),E.messages.moderation.words&&q(E.messages.moderation.words)):(null===(c=null===(r=null==E?void 0:E.messages)||void 0===r?void 0:r.moderation)||void 0===c?void 0:c.type)==="suspect"?(C({title:A("notification.comment.suspect.title"),message:A("notification.comment.suspect.message"),type:"warning"}),B(""),R(),a&&a()):(null===(p=null==E?void 0:E.messages)||void 0===p?void 0:p.find(e=>{var t;return!!(null===(t=null==e?void 0:e.includes)||void 0===t?void 0:t.call(e,"suspend"))}))?(C({message:A("notification.suspend.message"),type:"warning"}),B(""),R(),a&&a()):C({title:"",message:(null===(m=null==E?void 0:E.messages)||void 0===m?void 0:m[0])||A("notification.comment.somethingWrong"),type:"danger"})}catch(e){C({title:"",message:A("notification.comment.somethingWrong"),type:"danger"})}z(!1)}}),isLoading:Y,isDisabled:!!(null==j?void 0:j.length)||Y||!H||(null==H?void 0:H.length)<2||!H.trim()},n.createElement("img",{src:"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='20' height='21' fill='none'%3e%3cpath stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m7.5 9.734-3.75 3.75 3.75 3.75'/%3e%3cpath stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M16.25 4.734v5.569c0 .843-.33 1.653-.915 2.25a3.1 3.1 0 0 1-2.21.931H3.75'/%3e%3c/svg%3e",className:"icon-enter",loading:"lazy"}))),(null==j?void 0:j.length)?n.createElement("div",{className:"error-text"},A("notification.limitUrlDomain")):null,(!M||0===M.length)&&W&&n.createElement("div",{className:"link-preview-wrapper"},W.isFetching?n.createElement(b.L,null):n.createElement(n.Fragment,null,n.createElement(f.C,{title:W.title,url:W.url||"#",image:W.image,noRefetch:!0}),n.createElement("img",{src:S,className:"icon-close",onClick:()=>K(null),loading:"lazy"}))),M&&M.length>0&&n.createElement("div",{className:"preview-images-container"},M.map((e,t)=>n.createElement("div",{key:t,className:"image-src-wrapper"},n.createElement("img",{className:"preview-image",src:e,loading:"lazy"}),n.createElement("img",{src:S,className:"icon-close-circle",onClick:()=>P(t),loading:"lazy"})))))},SharePopup=({trackingCategory:e,className:t,style:a,url:l,text:o,onClose:i})=>{let{data:{env:{isMarryBaby:s}}}=(0,n.useContext)(c.T),{t:d}=(0,g.u)(),[u,p]=(0,n.useState)(!1);return(0,n.useEffect)(()=>((0,r.t)(!0),setTimeout(()=>p(!0),0),()=>(0,r.t)(!1)),[]),n.createElement(C.h,null,n.createElement(M,{"data-is-marrybaby":s,className:t,style:a},n.createElement(PopupFrame,{className:"share-popup",isOpen:u,onClose:i,heading:d("bottomBar.share")},u&&n.createElement(_.r,{trackingCategory:e,shareUrl:l||("undefined"!=typeof window?window.location.href:""),title:o}))))},M=d.Z.div` .share-popup { > div:first-child { height: unset; } } .custom-share__header { display: flex; flex-wrap: no-wrap; align-items: center; padding: 1rem; border-bottom: 1px solid ${u.r.colors.neutral100}; margin-bottom: 16px; .custom-share__header-image { width: 38px; height: 38px; flex-shrink: 0; & > img { width: 100%; height: 100%; object-fit: cover; object-position: center; } } .custom-share__header-info { flex: 1; padding: 0 8px; word-break: break-word; [data-tag='h4'] { margin-bottom: 8px; font-size: 14px; font-weight: bold; line-height: 14px; } [data-size='md'] { color: #a5a5a5; font-size: 14px; line-height: 14px; } } } &[data-is-marrybaby='true'] { .share-popup { > div:first-child { overflow: hidden; border-radius: 1rem; &[data-open='true'] { ${r.M.mbDown} { max-width: unset; width: 100%; top: 100%; transform: translate(-50%, -100%); border-bottom-left-radius: 0; border-bottom-right-radius: 0; } } } .close-button { display: block; } .popup-content { .header { display: block; padding: 1rem; background-color: rgb(243, 243, 243); } .content { padding-bottom: 1rem; } } .share-mb-text { margin: 1rem 1rem 0.5rem; } } } `,R=d.Z.div` padding: 0 8px; margin-top: 18px; .report-list { margin-bottom: 18px; .report-item { display: flex; align-items: center; margin-bottom: 10px; font-weight: 600; & > img { width: 12px; height: 12px; margin-right: 8px; } .__label { font-size: 14px; } } } .report-submit { width: 100%; } &[data-is-marrybaby='true'] { padding: 0 1rem 1rem; } `;var D="data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none'%3e%3cpath stroke='%23737373' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M8 14A6 6 0 1 0 8 2a6 6 0 0 0 0 12M8 5v3M8 11h.007'/%3e%3c/svg%3e";let SubmitReportForm=({className:e,style:t,reason:a,reasonText:o,onClose:r,postId:s})=>{let{data:{locale:d,env:{isMarryBaby:m}},action:{pushNotifications:h}}=(0,n.useContext)(c.T),{t:E}=(0,g.u)(),[v,y]=(0,n.useState)(!1);return n.createElement(R,{"data-is-marrybaby":m,className:e,style:t},n.createElement("ul",{className:"report-list"},n.createElement("li",{className:"report-item"},n.createElement("img",{src:D,loading:"lazy"}),n.createElement(i.T,{className:"__label",color:u.r.colors.gray800,size:"p4"},o))),n.createElement(l.B,{theme:m?"marryBaby":"helloSites",className:"report-submit",size:"lg",color:"primary",isLoading:v,onClick:()=>(0,p.a)(void 0,void 0,void 0,function*(){if(s&&!v){y(!0);try{let e=yield reportPost({id:s,reason:a,locale:d});(null==e?void 0:e.status)===1&&(h({message:"Post reported",type:"success"}),r&&r())}catch(e){}y(!1)}})},E("submit")))}},XH30:function(e,t,a){a.d(t,{A:function(){return AuthorBadge},B:function(){return BookingBtn}});var n=a("Cxxo"),l=a("q1tI"),o=a("bSpP"),i=a("/npG"),r=a("wzLN"),s=a("/KpT"),c=a("akEg"),d=a("9E0F"),u=a("xrdX"),p=a("GOBr"),m=(0,i.k)(e=>({root:{display:"inline-block",flexShrink:0,padding:"2px 0.5rem",marginLeft:"4px",borderRadius:e.radius.xs,fontSize:"12px",fontWeight:400,lineHeight:"18px",'&[data-label-type="admin"]':{background:e.primaryColor[0],color:e.primaryColor[9]},'&[data-label-type="local admin"]':{background:e.primaryColor[8]},'&[data-label-type="ambassador"]':{background:e.colors.green[4]},'&[data-label-type="expert"]':{background:e.colors.yellow[6]},'&[data-label-type="moderator"]':{background:e.colors.red[0],color:e.colors.red[8]},'&[data-label-type="sponsor"]':{background:e.colors.teal[4]},'&[data-label-type="guide"]':{background:e.colors.teal[4]},'&[data-label-type="influencer"]':{background:e.colors.teal[4]}}}));let g={admin:"cardAuthor.admin",moderator:"cardAuthor.moderator",ambassador:"cardAuthor.ambassador",expert:"cardAuthor.expert",sponsor:"cardAuthor.sponsor",guide:"cardAuthor.guide",influencer:"cardAuthor.influencer"},looselyMatchRole=e=>["admin","moderator","ambassador","expert","sponsor","guide","influencer"].find(t=>t===e),AuthorBadge=e=>{var{siteType:t,role:a,title:i,styles:r,className:s}=e,c=(0,n._)(e,["siteType","role","title","styles","className"]);let{t:d}=(0,o.u)(),u=a?looselyMatchRole(a):"",{classes:p,cx:h}=m(void 0,{name:"AuthorBadge",styles:r});return u&&g[u]?l.createElement("div",Object.assign({className:h(p.root,s),"data-label-type":u,"data-is-marrybaby":"marryBaby"===t},c),i||d(g[u])):null},BookingBtn=e=>{var{label:t,bookingId:a,bookingType:i="doctor",locale:m="vi-VN"}=e,g=(0,n._)(e,["label","bookingId","bookingType","locale"]);let{t:h}=(0,o.u)(),[E,v]=(0,l.useState)(!1),y=(0,l.useMemo)(()=>"undefined"!=typeof window?window.location.href:"",[]),f=(0,l.useCallback)(()=>(0,n.a)(void 0,void 0,void 0,function*(){var e,t,n,l,o,c,g,h,E,y,f,b,x,T,C;let I="doctor"===i?r.P.GET_DOCTOR_DETAIL:"hospital"===i?r.P.GET_HOSPITAL_DETAIL:"service"===i?r.P.GET_SERVICE_DETAIL:"";try{v(!0);let r=yield(0,d.c)((0,d.g)(I,{id:a,site:u.v[m]}),"get");if((null==r?void 0:r._status)===1){let a="doctor"===i?{id:null===(t=null===(e=null==r?void 0:r._data)||void 0===e?void 0:e.doctor)||void 0===t?void 0:t.id,slug:null===(l=null===(n=null==r?void 0:r._data)||void 0===n?void 0:n.doctor)||void 0===l?void 0:l.slug,localSlug:null===(o=s.L[m])||void 0===o?void 0:o.DOCTOR}:"hospital"===i?{id:null===(g=null===(c=null==r?void 0:r._data)||void 0===c?void 0:c.branch)||void 0===g?void 0:g.id,slug:null===(E=null===(h=null==r?void 0:r._data)||void 0===h?void 0:h.branch)||void 0===E?void 0:E.slug,localSlug:null===(y=s.L[m])||void 0===y?void 0:y.HOSPITAL}:{id:null===(b=null===(f=null==r?void 0:r._data)||void 0===f?void 0:f.service)||void 0===b?void 0:b.id,slug:null===(T=null===(x=null==r?void 0:r._data)||void 0===x?void 0:x.service)||void 0===T?void 0:T.slug,localSlug:null===(C=s.L[m])||void 0===C?void 0:C.SERVICE};window.location.href=`https://${p.y?"":"discover."}${u.v[m]}/care/${a.localSlug}/${a.slug}-${a.id}/`}else v(!1)}catch(e){console.log(e),v(!1)}}),[]);return a&&i?l.createElement(c.B,Object.assign({dataEventCategory:"Care",dataEventAction:"Comment - Quick Booking",dataEventLabel:y,onClick:f,loading:E},g),t||h("careBooking.bookAnAppointment")):null}},Rh7u:function(e,t,a){a.d(t,{T:function(){return d}});var n=a("Cxxo"),l=a("q1tI"),o=a("/npG"),i=a("8vDj"),r=a("TIp3"),s=a("yUAr"),c=(0,o.k)((e,t)=>{var a,n,l,o,i,r,c,d,u,p;let m=s.a[null==t?void 0:t.customStylesType]||s.a[s.C.NONE],g=null===(a=m.fontSize[null==t?void 0:t.size])||void 0===a?void 0:a[0],h=null===(n=m.lineHeight[null==t?void 0:t.size])||void 0===n?void 0:n[0],E=null!==(i=null===(o=null===(l=m.letterSpacing)||void 0===l?void 0:l[null==t?void 0:t.size])||void 0===o?void 0:o[0])&&void 0!==i?i:0,v=null===(r=m.fontSize[null==t?void 0:t.size])||void 0===r?void 0:r[1],y=null===(c=m.lineHeight[null==t?void 0:t.size])||void 0===c?void 0:c[1],f=null!==(p=null===(u=null===(d=m.letterSpacing)||void 0===d?void 0:d[null==t?void 0:t.size])||void 0===u?void 0:u[1])&&void 0!==p?p:0;return{root:Object.assign({},(null==t?void 0:t.size)&&{fontWeight:(null==t?void 0:t.as)==="label"?s.F.semiBold:m.fontWeight[t.weight]||m.fontWeightBySize[null==t?void 0:t.size]||s.F.regular,fontSize:`${g}`,lineHeight:`${h}`,letterSpacing:E,[e.fn.smallerThan("sm")]:{fontSize:`${v}`,lineHeight:`${y}`,letterSpacing:f}})}});let d=(0,l.forwardRef)((e,t)=>{var a,{size:o,color:d,weight:u,as:p="p",styles:m,className:g,dataEventCategory:h,dataEventAction:E,dataEventLabel:v,variant:y}=e,f=(0,n._)(e,["size","color","weight","as","styles","className","dataEventCategory","dataEventAction","dataEventLabel","variant"]);let b=(0,i.rZ)(),x=(0,s.u)(),{classes:T,cx:C}=c({size:o,weight:"caption"===u?"bold":u,as:p,customStylesType:x},{name:"Text",styles:m}),I="string"==typeof b.colors[d]?b.colors[d]:d;return l.createElement(r.x,Object.assign({"data-size":o,className:C(T.root,g),color:I||("label"===p?b.colors.gray[6]:(null===(a=null==b?void 0:b.other)||void 0===a?void 0:a.template)==="mb"?b.colors.delftGray[7]:void 0)||("primary"===y?b.colors.gray[9]:"secondary"===y?b.colors.gray[7]:"tertiary"===y?b.colors.gray[4]:"disabled"===y?b.colors.gray[3]:"error"===y?b.colors.red[6]:"success"===y?b.colors.green[6]:void 0)||b.colors.gray[7],component:p,"data-event-category":h,"data-event-action":E,"data-event-label":v,classNames:{root:Object.assign(Object.assign({},f.wordWrap?{"word-wrap":f.wordWrap}:void 0),f.isUppercase||"caption"===u?{"text-transform":"uppercase"}:void 0)},ref:t},f))})},f4Rk:function(e,t,a){a.d(t,{T:function(){return Text}});var n=a("Cxxo"),l=a("q1tI"),o=a("Rh7u");let Text=e=>{var{size:t="base",type:a="regular"}=e,i=(0,n._)(e,["size","type"]);return l.createElement(o.T,Object.assign({size:t,weight:"caption"===a?"bold":a,"data-size":t,"data-type":a,"data-word-wrap":i.wordWrap,"data-is-uppercase":i.isUppercase},i))}},G2uU:function(e,t,a){a.d(t,{P:function(){return PostContent},T:function(){return o},U:function(){return i},a:function(){return ProfileDetail},b:function(){return Z}});var n,l,o,i,r=a("Cxxo"),s=a("q1tI"),c=a("Wgwc"),d=a.n(c),u=a("m0au"),p=a("YSyo"),m=a("r0Za"),g=a("IQVP"),h=a("9E0F"),E=a("oTwY"),v=a("/npG"),y=a("eito"),f=a("bpvy"),b=a("SPK5"),x=a("8vDj"),T=a("Y6+v"),C=a("CKJU"),I=a("PFNZ"),O=a("RRzr"),N=a("bSpP"),_=a("iBNF"),A=a("rCoo"),w=a("e0pn"),S=a("PyPH"),P=a("Rh7u"),k=a("akEg"),L=a("rBCA"),M=a("aZjv"),R=a("J7Jv"),D=a("JJ6e");let H=L.Z.div` padding: 0.5rem 1rem 1rem; line-height: 1.5; word-break: break-word; .post-content-replying { margin-right: 5px; cursor: pointer; display: inline-block; &.tag-only { margin-right: 0; } } .post-content { display: inline; white-space: pre-wrap; /* > *:first-child, */ > mention:first-child ~ * { &:not(ul), &:not(ol) { display: inline-block; } } > mention:first-child { margin-right: 5px; } &.has-see-more { *:last-child { &:not(ul), &:not(ol) { display: inline; } } } img { width: 100%; height: unset; } ul, ol { list-style-position: inside; padding-left: 1rem; display: block; } ol { list-style-type: decimal; } ul { list-style-type: disc; } mention { color: ${e=>e.mentionColor||"#1890ff"}; padding-right: 4px; :hover { text-decoration: underline; } } .markdown { white-space: normal; p, ul, ol { margin-top: 1em; &:first-child { margin-top: 0; } } li { margin-top: 0.5em; &:first-child { margin-top: 0; } } } } `,B=L.Z.span` overflow: hidden; text-overflow: ellipsis; -webkit-line-clamp: ${e=>e.line||1}; display: -webkit-box; -webkit-box-orient: vertical; &.post-content-show-all { display: block; } `,G=L.Z.span` padding-left: 2px; background-color: ${_.r.colors.white}; bottom: 8px; position: absolute; right: 0; z-index: 10; cursor: pointer; `;var Y=(0,v.k)(e=>({root:{mention:{color:e.fn.primaryColor()},a:{"&,&:visited,&:focus":{color:e.fn.primaryColor()}},".create-post-link":{display:"inline",color:e.fn.primaryColor(),cursor:"pointer"}}}));let PostContent=e=>{var{trackingCategory:t,url:a,className:n,style:l,replyingTo:o,mentionedUser:i,description:c,disableShortenContent:d,mentions:u=[],maxChars:p=1e3,maxLines:m,hideShowAllBtn:g,styles:E,onClickCreatePostLink:v}=e,f=(0,r._)(e,["trackingCategory","url","className","style","replyingTo","mentionedUser","description","disableShortenContent","mentions","maxChars","maxLines","hideShowAllBtn","styles","onClickCreatePostLink"]);let{classes:b,theme:x}=Y(void 0,{name:"PostContent",styles:E}),[T,C]=(0,s.useState)(!1),[O,_]=(0,s.useState)(!1),{t:A}=(0,N.u)(),{authActionWrapper:w}=(0,M.iV)(),[S,P]=(0,s.useState)(!1),k=(0,R.d)((0,R.b)(c||"","display"),u),{action:{sanitizeFunction:L}}=(0,s.useContext)(h.T),D=(0,s.useMemo)(()=>{let e=L(k||"");if(d||T)return{showContent:e,hasSeeMore:!1};let t=e.slice(0,p),a=p-((t.match(/<\/div>/g)||[]).length-1)*27,n=(t||"").slice(0,a<40?40:a),l=L(n.replace(/(<|<\/)( +|[a-zA-Z]*)$/gi,"")),o=l.lengths.createElement(s.Fragment,null,"... ",!g&&s.createElement(y.e,Object.assign({onClick:e=>{e.preventDefault(),e.stopPropagation(),w(()=>C(!0))},className:"see-more-text"},t?{"data-event-category":t,"data-event-action":"See More Post Click","data-event-label":a}:{}),A("post.seeMore"))),[g,a,t]),handleCreatePostClick=e=>{e.preventDefault(),null==v||v()},isEllipsisActive=e=>e.scrollHeight>e.clientHeight;return(0,s.useEffect)(()=>{var e;return null===(e=null==U?void 0:U.current)||void 0===e||e.querySelectorAll("[data-create-post]").forEach(e=>{e.addEventListener("click",handleCreatePostClick,{passive:!0})}),()=>{var e;null===(e=null==U?void 0:U.current)||void 0===e||e.querySelectorAll("[data-create-post]").forEach(e=>{e.removeEventListener("click",handleCreatePostClick,!1)})}},[d,T,k]),(0,s.useEffect)(()=>{$.current&&k&&m&&(isEllipsisActive($.current)?_(!0):_(!1))},[k,m]),s.createElement(s.Fragment,null,F&&s.createElement(I.P,{isOpen:S,onClose:()=>P(!1),expertId:String(null==i?void 0:i.partnerId)}),s.createElement(H,Object.assign({ref:U,className:`${b.root} ${n} no-replace-click`,style:l,mentionColor:x.fn.primaryColor()},f),z&&s.createElement(y.e,{onClick:()=>F&&P(!0),className:"post-content-replying"},"@",z),(null==c?void 0:c.startsWith("[mention+id="))&&s.createElement("span",{className:"post-content-replying tag-only",style:{color:x.fn.primaryColor()}},"@"),m?s.createElement(s.Fragment,null,s.createElement(B,{dangerouslySetInnerHTML:{__html:k},className:`post-content-line ${T?"post-content-show-all":""}`,line:m,ref:$}),O&&!T&&s.createElement(G,null,j())):s.createElement(s.Fragment,null,s.createElement("span",{dangerouslySetInnerHTML:{__html:D.showContent},className:`post-content ${D.hasSeeMore?"has-see-more":""}`}),D.hasSeeMore&&!T&&s.createElement("span",null,j()))))},CategoryText=({children:e,className:t=""})=>s.createElement("div",{className:`l5fL1xL ${t}`},e),Title=({children:e,className:t=""})=>s.createElement("div",{className:`L-aGKo7 ${t}`},e),Thumbnail=({src:e,defaultSrc:t=T.C.getAssetPath("logo/logomark.png"),ratio:a=1,size:n=80,radius:l=8,alt:o,className:i=""})=>s.createElement("div",{className:i},s.createElement("div",{className:"DZmf3s7",style:{width:`${n}px`,height:`${n*a}px`,borderRadius:`${l}px`}},s.createElement(C.I,{src:e,backupSrc:t,alt:o}))),CardArticle=({category:e,title:t,src:a,children:n,className:l=""})=>s.createElement("div",{className:`eaR8ATZ ${l}`},s.createElement(Thumbnail,{src:a}),s.createElement("div",{className:"xM-7K0a"},n||s.createElement("div",null,e&&s.createElement(CategoryText,null,e),t&&s.createElement(Title,null,t))));CardArticle.CategoryText=CategoryText,CardArticle.Title=Title;let ArticleCard=({featureImage:e,postTitle:t,author:a,categories:n,isReview:l,className:o=""})=>{var i;return s.createElement(CardArticle,{src:e,className:o},s.createElement(s.Fragment,null,s.createElement(CardArticle.CategoryText,null,null===(i=null==n?void 0:n[0])||void 0===i?void 0:i.name),s.createElement(CardArticle.Title,null,t),s.createElement(I.d,{avatarProps:Object.assign(Object.assign({},a),{size:32}),subTitle:s.createElement(s.Fragment,null,l?"Medically reviewed by Jobelle Ann Dela Cruz Bigalbal, MD":"Written by Jobelle Ann Dela Cruz Bigalbal, MD",s.createElement(I.d.SubDivider,null),"Dec 12, 2022")})))};var z={container:"SFSgnOz",header:"Tf3aoVa",heading:"TOt4QXl",headingIcon:"_5XYN1KT",accBodyGroup:"yE-tZRj",accBodyGroupItem:"LXiGuGT",accBodyGroupDesc:"r4rx-6v",subTitle:"XrHh8-C",subIcon:"c5-Yecd",group:"UBj6nWr",groupBody:"_2vptVBd",articleCardLink:"ZPDAwiR",relatedList:"_6wJn-NR",socialItem:"_21XDdFv",mbChevronWrapper:"LSyr3Zo"};let F=(0,s.createContext)({}),About=({className:e=""})=>{var t,a,n,l,o;let{t:i}=(0,N.u)(),{info:r,isMarryBaby:c,currentPageUrl:d}=(0,s.useContext)(F),u=null==r?void 0:r.data,p=[{type:O.S.LinkedIn,icon:T.C.getAssetPath("linkedin.svg"),url:null===(t=null==r?void 0:r.contact)||void 0===t?void 0:t.linkedin,eventAction:"Doctor Profile - Linkedin"},{type:O.S.Instagram,icon:T.C.getAssetPath("instagram.svg"),url:null===(a=null==r?void 0:r.contact)||void 0===a?void 0:a.instagram,eventAction:"Doctor Profile - Instagram"},{type:O.S.Facebook,icon:T.C.getAssetPath("facebook.svg"),url:null===(n=null==r?void 0:r.contact)||void 0===n?void 0:n.facebook,eventAction:"Doctor Profile - Facebook"},{type:O.S.Youtube,icon:T.C.getAssetPath("youtube.svg"),url:null===(l=null==r?void 0:r.contact)||void 0===l?void 0:l.youtube,eventAction:"Doctor Profile - Youtube"},{type:O.S.Tiktok,icon:T.C.getAssetPath("tiktok.svg"),url:null===(o=null==r?void 0:r.contact)||void 0===o?void 0:o.tiktok,eventAction:"Doctor Profile - TikTok"}],m=[...((null==r?void 0:r.experiences)||[]).length>0?[{key:"experience",heading:i("profilePanel.experience"),iconSrc:T.C.getAssetPath(c?"award-doc-mb.svg":"award-doc.svg"),eventAction:"Doctor Experience Click",panel:s.createElement("div",{className:z.accBodyGroup},null==r?void 0:r.experiences.map((e,t)=>s.createElement("div",{className:z.accBodyGroupItem,key:String(t)},s.createElement("div",{className:z.accBodyGroupTitle},e.title),s.createElement("div",{className:z.accBodyGroupDesc},s.createElement("p",null,e.organization),s.createElement("p",null,e.duration)))))}]:[],...((null==r?void 0:r.educations)||[]).length>0?[{key:"education",heading:i("profilePanel.education"),iconSrc:T.C.getAssetPath(c?"book-mb.svg":"book.svg"),eventAction:"Doctor Degree Click",panel:s.createElement("div",{className:z.accBodyGroup},null==r?void 0:r.educations.map((e,t)=>s.createElement("div",{className:z.accBodyGroupItem,key:String(t)},s.createElement("div",{className:z.accBodyGroupTitle},e.schoolName),s.createElement("div",{className:z.accBodyGroupDesc},s.createElement("p",null,e.study),s.createElement("p",null,e.completedYear)))))}]:[],...((null==r?void 0:r.awards)||[]).length>0?[{key:"awards",heading:i("profilePanel.awards"),iconSrc:T.C.getAssetPath(c?"award-mb.svg":"award.svg"),eventAction:"Doctor Award Click",panel:s.createElement("div",{className:z.accBodyGroup},null==r?void 0:r.awards.map((e,t)=>s.createElement("div",{className:z.accBodyGroupTitle,key:t},e.title)))}]:[]],g=(null==r?void 0:r.relatedPosts)||[],h=p.filter(e=>e.url);return s.createElement("div",{className:`${z.container} ${e}`,"data-is-marrybaby":c},m.length>0&&s.createElement(f.U,{defaultValue:m[0].key,chevron:c?s.createElement("div",{className:z.mbChevronWrapper},s.createElement(E.Z,{size:12,color:_.r.mbColors.midGray})):s.createElement(E.Z,{color:_.r.colors.gray400}),styles:{chevron:{"&[data-rotate]":{".minus-path":{display:"block"},".plus-path":{display:"none"}}},content:{display:"flex",flexDirection:"column",gap:"16px",padding:"0"},item:{border:0},control:{paddingLeft:0,"&:hover":{background:"transparent"},"*":{pointerEvents:"none"}}}},m.map(e=>s.createElement(f.U.Item,{key:e.key,value:e.key},s.createElement(f.U.Control,{"data-event-category":"Together","data-event-action":e.eventAction,"data-event-label":d},s.createElement("div",{className:z.header},s.createElement("div",{className:z.headingIcon},s.createElement("img",{src:e.iconSrc,loading:"lazy"})),s.createElement("div",{className:z.heading},e.heading))),s.createElement(f.U.Panel,null,e.panel)))),g.length>0&&s.createElement("div",{className:z.group},s.createElement("div",{className:z.subTitle},s.createElement("img",{className:z.subIcon,src:T.C.getAssetPath(c?"mb-logo.svg":"logo/circle-solid.svg"),loading:"lazy"}),i("profilePanel.publishedArticles")),s.createElement("div",{className:`${z.relatedList}`},null==r?void 0:r.relatedPosts.map(e=>s.createElement("a",{key:String(e.id),href:`${window.location.origin}${null==e?void 0:e.permalink}`,className:z.articleCardLink},s.createElement(ArticleCard,Object.assign({className:"article-card"},Object.assign(Object.assign({},e),!e.author&&{author:{displayName:null==u?void 0:u.name,avatar:null==u?void 0:u.avatar}}),{isReview:!0})))))),h.length>0&&s.createElement("div",{className:z.group},s.createElement("div",{className:z.subTitle},s.createElement("img",{className:z.subIcon,src:T.C.getAssetPath(c?"social-mb.svg":"social.svg"),loading:"lazy"}),i("profilePanel.socialLinks")),s.createElement("div",{className:z.groupBody},s.createElement(b.k,null,p.map((e,t)=>e.url&&s.createElement("div",{className:z.socialItem,key:t},s.createElement("a",{href:e.url,target:"_blank",rel:"noreferrer"},s.createElement("img",{src:e.icon,loading:"lazy",width:"32px","data-event-category":"Together","data-event-action":e.eventAction,"data-event-label":d}))))))))};var U={container:"GYUElSy",question:"_3C6QpT1",questionTitle:"_9M9VYL6",community:"_1RuSyv3",questionCard:"_1IG-eEp"};let PostCard$1=({post:e,className:t=""})=>{var a,n,l,o,i,r,c,d;let{t:u}=(0,N.u)(),{data:{userInfo:p,env:{togetherBasePath:m}}}=(0,s.useContext)(h.T),{authActionWrapper:g,authorProps:E,currentPageUrl:v}=(0,s.useContext)(F),y=`${window.location.origin}${m}/${null===(a=null==e?void 0:e.community)||void 0===a?void 0:a.slug}/${null==e?void 0:e.slug}/`;return s.createElement("div",{className:`${U.container} ${t}`},s.createElement("div",{className:U.header},s.createElement("div",{className:U.question},u("profilePanel.question")," ",s.createElement(S.b,{className:U.questionTitle,href:"#",onClick:()=>{(null==p?void 0:p.id)||null==g||g(()=>window.location.href=y,{_location:y})}},"#",null==e?void 0:e.title)),s.createElement("div",{className:U.community},null===(n=null==e?void 0:e.community)||void 0===n?void 0:n.name," - ",null==e?void 0:e.createdTime)),s.createElement("div",{className:U.questionCard},s.createElement(I.C,Object.assign({className:"card-author"},E,{role:"user",avatarIcon:s.createElement(A.Z,null),subLine:s.createElement(I.C.SubTextRow,null,s.createElement(I.C.SubText,null,null===(i=null===(o=null===(l=null==e?void 0:e.expertAnswer)||void 0===l?void 0:l.answer)||void 0===o?void 0:o[0])||void 0===i?void 0:i.createdTime))})),s.createElement(PostContent,{className:"post-content-wrapper",description:(null===(d=null===(c=null===(r=null==e?void 0:e.expertAnswer)||void 0===r?void 0:r.answer)||void 0===c?void 0:c[0])||void 0===d?void 0:d.content)||"",mentions:null==e?void 0:e.mentions,"data-testid":"Content of the Post"})),s.createElement(k.B,{variant:"secondary","data-event-category":"Together","data-event-action":"Doctor Reply Click","data-event-label":v,size:"md",onClick:()=>{(null==p?void 0:p.id)?window.location.href=y:null==g||g(()=>window.location.href=y,{_location:y})}},u("profilePanel.anserwing.viewFull")))};var $={container:"_8fd7YMs",thumb:"DomiQfw",content:"-b2qnfL"};let EmptyMessage=({message:e,buttonTxt:t,imgSrc:a,onBtnClick:n})=>{let{siteType:l,isMarryBaby:o}=(0,s.useContext)(F);return s.createElement("div",{className:$.container},s.createElement("div",{className:$.thumb},s.createElement("img",{src:a||T.C.getAssetPath(o?"comments-mb.svg":"comments.svg"),loading:"lazy"})),e&&s.createElement("div",{className:$.content},e),t&&s.createElement(D.B,{size:"md",theme:l,color:"secondary",onClick:n},t))},Answering=({id:e})=>{let{t}=(0,N.u)(),{data:{locale:a}}=(0,s.useContext)(h.T),{authorProps:n}=(0,s.useContext)(F),[l,o]=(0,s.useState)(null),[i,c]=(0,s.useState)(!1);return(0,s.useEffect)(()=>{e&&(0,r.a)(void 0,void 0,void 0,function*(){var t;c(!0);let n=yield(0,h.c)((0,h.e)(g.yy.USER.LIST_ANSWERS,{_locale:a,id:e}),"GET"),l=((null===(t=null==n?void 0:n.data)||void 0===t?void 0:t.replies)||[]).map(m.a);o(l),c(!1)})},[]),s.createElement("div",{className:"MrdoES3"},i?s.createElement(p.L,null):null!==l&&(l.length>0?l.map(e=>s.createElement(PostCard$1,{className:"post-card",key:e.id,post:e})):s.createElement(EmptyMessage,{message:t("profilePanel.emptyPostMess.content",{name:(null==n?void 0:n.name)||(null==n?void 0:n.username)})})))},QuestionCard=e=>{var t,a,n,l,{post:o}=e,i=(0,r._)(e,["post"]);let{data:{env:{togetherBasePath:c}}}=(0,s.useContext)(h.T);return s.createElement(s.Fragment,null,s.createElement("div",Object.assign({},i,{className:`toEutn7 ${(null==i?void 0:i.className)||""}`}),s.createElement(I.C,{className:"card-author",avatar:null===(t=null==o?void 0:o.author)||void 0===t?void 0:t.avatar,name:(null===(a=null==o?void 0:o.author)||void 0===a?void 0:a.name)||(null===(n=null==o?void 0:o.author)||void 0===n?void 0:n.username),isAnonymous:!!(null==o?void 0:o.isAnonymous),subLine:s.createElement(I.C.SubTextRow,null,s.createElement(I.C.SubText,null,null==o?void 0:o.createdTime))}),s.createElement(S.b,{href:`${window.location.origin}${c}/${null===(l=null==o?void 0:o.community)||void 0===l?void 0:l.slug}/${null==o?void 0:o.slug}/`,className:"drdisHs",rel:"noreferrer"},null==o?void 0:o.title)))};var j={accordion:"I-uIJ6E",header:"_41WRsj2",heading:"AcOGL93",headingIcon:"JD3dWJN",chevron:"L2Q9T6m",container:"h-pSmhX"};let Care=()=>{var e,t;let{t:a}=(0,N.u)(),{data:{locale:n,userInfo:l}}=(0,s.useContext)(h.T),{onSkipQuestion:o,countValues:i,setCountValues:c}=(0,s.useContext)(F),[d,u]=(0,s.useState)(),[E,v]=(0,s.useState)([]),[y,b]=(0,s.useState)(!1),x=null==l?void 0:l.id;(0,s.useEffect)(()=>{x&&(0,r.a)(void 0,void 0,void 0,function*(){var e;b(!0);let t=yield(0,h.b)((0,h.e)(g.yy.USER.LIST_QUESTION_NEED_REPLY,{_locale:n}),"GET"),a=[],l=Object.create({});((null===(e=null==t?void 0:t.data)||void 0===e?void 0:e.communities)||[]).filter(e=>((null==e?void 0:e.question)||[]).length>0).map(e=>{l[e.id]=e.question.map(m.a),delete e.question,a.push((0,m.f)(e))}),v(a),u(l),b(!1)})},[]);let handleSkipQuestion=({id:e,communityId:t})=>{if(e&&t&&d){let a=Object.assign(Object.assign({},d),{[t]:[...((null==d?void 0:d[t])||[]).filter(t=>t.id!==e)]}),n=0;Object.keys(a).map(e=>n+=a[e].length||0),u(a),c(Object.assign(Object.assign({},i),{total_question:n})),null==o||o(n)}};return s.createElement("div",{className:j.container},y?s.createElement(p.L,null):(null==i?void 0:i.total_question)>0?E.length>0&&s.createElement(f.U,{className:j.accordion,defaultValue:String((null===(t=E[null===(e=Object.keys(E))||void 0===e?void 0:e[0]])||void 0===t?void 0:t.id)||""),styles:e=>({control:{padding:"16px",border:`1px solid ${e.colors.neutral[1]}`,borderTopLeftRadius:"8px",borderTopRightRadius:"8px",'&[aria-expanded="false"]':{borderBottom:0}},chevron:{width:"32px",height:"32px"},content:{padding:0,border:`1px solid ${e.colors.neutral[1]}`,borderTop:0,borderBottom:0},label:{padding:0},item:{marginBottom:"16px"}}),chevron:s.createElement("div",{className:j.chevron},s.createElement(w.Z,{color:_.r.colors.gray600,size:20}))},E.map(e=>{let t=d&&(null==d?void 0:d[e.id])||[];return t.length>0&&s.createElement(f.U.Item,{key:e.id,value:String(e.id)},s.createElement(f.U.Control,null,s.createElement("div",{className:j.header},s.createElement("div",{className:j.headingIcon},s.createElement("img",{src:e.thumbnail,loading:"lazy"})),s.createElement("div",{className:j.heading},e.name))),s.createElement(f.U.Panel,null,s.createElement("div",{className:j.body},t.map(e=>s.createElement(QuestionCard,{className:"question-card",key:e.id,post:e,onSkip:handleSkipQuestion})))))})):s.createElement(EmptyMessage,{message:a("profilePanel.emptyCareMess.content"),imgSrc:T.C.getAssetPath("questions.svg")}))},PostCard=({post:e,className:t=""})=>{var a;let{data:{userInfo:n,env:{togetherBasePath:l}}}=(0,s.useContext)(h.T),{t:o}=(0,N.u)(),i=(0,x.rZ)(),{authActionWrapper:r,authorProps:c}=(0,s.useContext)(F),d=`${window.location.origin}${l}/${null===(a=null==e?void 0:e.community)||void 0===a?void 0:a.slug}/${null==e?void 0:e.slug}/`;return s.createElement("div",{className:`GA-zc-O ${t}`},s.createElement("div",{className:"IB049vj"},s.createElement("a",{"data-event-category":"Together","data-event-action":"Click Post","data-event-label":d,className:"_8I--vEV",href:d,onClick:e=>{(null==n?void 0:n.id)||(e.preventDefault(),null==r||r(()=>window.location.href=d,{_location:d}))}}),s.createElement(I.d,{className:"card-author",avatarProps:{avatar:null==c?void 0:c.avatar,size:32}},s.createElement(I.C.MainText,{className:"A18McWD"},null==e?void 0:e.title),s.createElement(I.C.SubTextRow,null,s.createElement(I.C.SubText,null,null==e?void 0:e.createdTime))),s.createElement(PostContent,{className:"post-content-wrapper",description:null==e?void 0:e.description,mentions:null==e?void 0:e.mentions,maxChars:200,"data-testid":"Content of the Post",hideShowAllBtn:!0}),s.createElement(P.T,{size:"p3",color:i.fn.primaryColor()},o("post.seeMore"))))},Posts=()=>{let{t:e}=(0,N.u)(),{data:{locale:t}}=(0,s.useContext)(h.T),{authorId:a,authorProps:n,isAuthorLogin:l,onCloseFromPost:o}=(0,s.useContext)(F),[i,c]=(0,s.useState)(null),[d,u]=(0,s.useState)(!1);return(0,s.useEffect)(()=>{a&&(0,r.a)(void 0,void 0,void 0,function*(){var e;u(!0);let n=yield(0,h.c)((0,h.e)(g.yy.USER.LIST_POST,{_locale:t,id:a,isAnonymous:0}),"GET"),l=((null===(e=null==n?void 0:n.data)||void 0===e?void 0:e.posts)||[]).map(m.a);c(l),u(!1)})},[a]),s.createElement("div",{className:"TSMHoEM"},d?s.createElement(p.L,null):null!==i&&(i.length>0?i.map(e=>s.createElement(PostCard,{className:"post-card",key:e.id,post:e})):s.createElement(EmptyMessage,{message:e("profilePanel.emptyPostMess.content",{name:(null==n?void 0:n.name)||(null==n?void 0:n.username)||""}),buttonTxt:l&&e("profilePanel.createPost"),onBtnClick:()=>{null==o||o()}})))};var V={container:"_4Vekw96",info:"DIJdGcB",body:"aQSt4-Q"};let formatExperience=e=>e?{title:null==e?void 0:e.title,organization:null==e?void 0:e.organization,duration:e.duration}:{},formatEducation=e=>e?{completedYear:null==e?void 0:e.completed_year,schoolName:e.school_name,study:e.study}:{};(n=o||(o={}))[n.About=0]="About",n[n.Care=1]="Care",n[n.Answer=2]="Answer",n[n.Posts=3]="Posts",(l=i||(i={}))[l.Expert=0]="Expert",l[l.User=1]="User";let Z={experiences:[],relatedPosts:[],educations:[],awards:[],contact:{},data:{}},ProfileDetail=e=>{var t,{authorProps:a,selectedTab:n,authActionWrapper:l,onSkipQuestion:i,onCloseFromPost:c,hideQuestionTab:E,hideAnswerTab:v,showSkipQuestionTag:y,rolesToShowQuestionsTab:f=["expert"],currentPageUrl:b}=e,x=(0,r._)(e,["authorProps","selectedTab","authActionWrapper","onSkipQuestion","onCloseFromPost","hideQuestionTab","hideAnswerTab","showSkipQuestionTag","rolesToShowQuestionsTab","currentPageUrl"]);let{data:{locale:T,userInfo:C,env:{isMarryBaby:O}}}=(0,s.useContext)(h.T),{t:_}=(0,N.u)(),A=null==a?void 0:a.role,w=null==C?void 0:C.role,S=String(null==a?void 0:a.userId),[P,k]=(0,s.useState)(),[L,M]=(0,s.useState)(!1),[R,D]=(0,s.useState)(),H=(null==C?void 0:C._togetherUserId)===(null==a?void 0:a.userId),B=[...-1!==f.indexOf(A)?[{value:o.About,text:_("profilePanel.tabs.highlight"),content:s.createElement(About,{id:S,info:R}),dataEventCategory:"Together",dataEventAction:"Doctor Profile Click",dataEventLabel:b}]:[],{value:o.Posts,text:_("profilePanel.tabs.posts"),content:s.createElement(Posts,null),hasCountResult:!0,keyOfCountApi:"post",keyOfResult:"total_post"},...E||-1===f.indexOf(w)||(null==C?void 0:C._togetherUserId)!==(null==a?void 0:a.userId)?[]:[{value:o.Care,text:`${_("profilePanel.tabs.care")}`,content:s.createElement(Care,null),hasCountResult:!0,keyOfCountApi:"question",keyOfResult:"total_question",dataEventCategory:"Together",dataEventAction:"Doctor Questions Click",dataEventLabel:b}],...v||-1===f.indexOf(A)?[]:[{value:o.Answer,text:`${_("profilePanel.tabs.expertAnswer")}`,content:s.createElement(Answering,{id:S}),hasCountResult:!0,keyOfCountApi:"reply",keyOfResult:"total_reply",dataEventCategory:"Together",dataEventAction:"Doctor Reply Tab Click",dataEventLabel:b}]],[G,Y]=(0,s.useState)(null),[z,U]=(0,s.useState)(null),$={value:String(z),dataList:G,onTabChange:e=>U(Number(e))},j=null==B?void 0:B.filter(e=>null==e?void 0:e.hasCountResult);(0,s.useEffect)(()=>{(0,r.a)(void 0,void 0,void 0,function*(){var e,t,a,l,i,r,s,c,d,u;M(!0);let p=yield Promise.all([(0,h.c)((0,h.e)(g.yy.USER.DETAIL,{_locale:T,id:S}),"GET"),...j.map(e=>(0,h.c)((0,h.e)(g.yy.USER.COUNT_TABS,{_locale:T,id:S,[e.keyOfCountApi]:1}),"GET"))]),[E]=p,v={data:null==E?void 0:E.data,experiences:((null===(t=null===(e=null==E?void 0:E.data)||void 0===e?void 0:e.fields)||void 0===t?void 0:t.experiences)||[]).map(formatExperience),relatedPosts:((null===(a=null==E?void 0:E.data)||void 0===a?void 0:a.related_post)||[]).map(e=>(0,m.g)(e.post)),educations:((null===(i=null===(l=null==E?void 0:E.data)||void 0===l?void 0:l.fields)||void 0===i?void 0:i.educations)||[]).map(formatEducation),awards:(null===(s=null===(r=null==E?void 0:E.data)||void 0===r?void 0:r.fields)||void 0===s?void 0:s.awards_accreditations)||[],contact:(null===(d=null===(c=null==E?void 0:E.data)||void 0===c?void 0:c.fields)||void 0===d?void 0:d.contact)||{}};(null==E?void 0:E.status)===1&&D(v);let y=(null==v?void 0:v.relatedPosts)||[],f=Object.keys(v.contact).map(e=>{var t;return(null===(t=null==v?void 0:v.contact)||void 0===t?void 0:t[e])!==""}),b=[...(null==v?void 0:v.experiences)||[],...(null==v?void 0:v.educations)||[],...(null==v?void 0:v.awards)||[]],x=y.length>0||f.length>0||b.length>0,C={},I=j.map((e,t)=>{var a,n,l;let i=(null===(l=null===(n=null===(a=p[t+1])||void 0===a?void 0:a.data)||void 0===n?void 0:n.counting)||void 0===l?void 0:l[e.keyOfResult])||0;return i>0?(C[e.keyOfResult]=i,e):-1!==[o.Care,o.Posts].indexOf(e.value)?e:void 0}).filter(Boolean).map(e=>e.value),O=B.map(e=>{let t=Object.assign(Object.assign({},e),{text:e.text+(e.keyOfResult?` (${(null==C?void 0:C[e.keyOfResult])||"0"})`:"")});return t.hasCountResult?-1!==I.indexOf(t.value)?t:void 0:t.value===o.About?x&&t:t}).filter(Boolean);Y(O),U(n||(null===(u=null==O?void 0:O[0])||void 0===u?void 0:u.value)),k(C),M(!1)})},[]);let Z=null==R?void 0:R.data;return s.createElement(F.Provider,{value:{isMarryBaby:O,siteType:O?"marryBaby":"helloSites",authorId:String((null==a?void 0:a.userId)||""),authActionWrapper:l,onSkipQuestion:i,info:R,authorProps:a,onCloseFromPost:c,countValues:P,setCountValues:k,isAuthorLogin:H,showSkipQuestionTag:y,currentPageUrl:b}},s.createElement("div",Object.assign({},x,{className:`${V.container} ${(null==x?void 0:x.className)||""}`,"data-is-marrybaby":O}),L?s.createElement(p.L,null):s.createElement(s.Fragment,null,s.createElement(I.C,Object.assign({},a,{className:"card-author",showDetailPopup:!1,subLine:(null==a?void 0:a.role)==="expert"?(null==Z?void 0:Z.specialty)&&(null==Z?void 0:Z.organisation)&&s.createElement(I.C.SubTextRow,null,(null==Z?void 0:Z.specialty)&&s.createElement(s.Fragment,null,s.createElement(I.C.SubText,null,null==Z?void 0:Z.specialty),s.createElement(I.C.SubDivider,null)),s.createElement(I.C.SubText,null,null==Z?void 0:Z.organisation)):(null==Z?void 0:Z.created_at)&&s.createElement(I.C.SubTextRow,null,s.createElement(I.C.SubText,null,_("profilePanel.joined")," ",d()(null==Z?void 0:Z.created_at).toNow(!0)))})),"expert"===A&&s.createElement("div",{className:V.info,dangerouslySetInnerHTML:{__html:null===(t=null==R?void 0:R.data)||void 0===t?void 0:t.description}}),null!==G&&null!==z&&(G.length>0?s.createElement("div",{className:V.body},s.createElement(u.T,Object.assign({},$))):s.createElement(EmptyMessage,{message:_("profilePanel.emptyPostMess.content",{text:(null==a?void 0:a.name)||(null==a?void 0:a.username)||""})})))))}},Sbqh:function(e,t,a){a.d(t,{U:function(){return UserAvatar}});var n=a("Cxxo"),l=a("q1tI"),o=a("9E0F"),i=a("rBCA"),r=a("iBNF");let s=i.Z.div` width: ${e=>e.size||40}px; height: ${e=>e.size||40}px; flex-shrink: 0; cursor: pointer; img { border-radius: 50%; } .avatar { width: 100%; height: 100%; object-fit: cover; } .avatar-default { display: flex; align-items: center; justify-content: center; background-color: ${r.r.colors.secondaryBase}; border-radius: 50%; color: white; font-size: 1em; font-weight: bold; line-height: 1; } &[data-is-marrybaby='true'] { .avatar-default { background-color: ${r.r.mbColors.pink}; } } `,UserAvatar=e=>{var{className:t,isMarryBaby:a,style:i,avatar:r,username:c,size:d}=e,u=(0,n._)(e,["className","isMarryBaby","style","avatar","username","size"]);let{data:{env:{isMarryBaby:p}}}=(0,l.useContext)(o.T),[m,g]=(0,l.useState)(!1);return l.createElement(s,Object.assign({"data-is-marrybaby":"boolean"==typeof a?a:p,className:t,style:i,size:d},u),r&&!m?l.createElement("img",{loading:"lazy",src:r,className:"avatar",alt:"avatar",onError:()=>{m||g(!0)}}):l.createElement("div",{className:"avatar avatar-default"},c&&(null==c?void 0:c.length)>0?c[0].toUpperCase():"A"))}},r4qp:function(e,t,a){a.d(t,{I:function(){return Indicator}});var n=a("Cxxo"),l=a("q1tI"),o=a("QJsO"),i=a("iBNF");let Indicator=e=>{var{styles:t,color:a=i.r.colors.red700}=e,r=(0,n._)(e,["styles","color"]);return l.createElement(o.z,Object.assign({inline:!0,position:"top-end",offset:4,styles:Object.assign({processing:{animationDirection:"alternate"}},t),color:a},r))}},UESe:function(e,t,a){a.d(t,{H:function(){return Heading}});var n=a("Cxxo"),l=a("q1tI"),o=a("8vDj"),i=a("Rh7u");let Heading=e=>{var{as:t,tag:a,color:r,fontWeight:s,dataEventCategory:c,dataEventAction:d,dataEventLabel:u}=e,p=(0,n._)(e,["as","tag","color","fontWeight","dataEventCategory","dataEventAction","dataEventLabel"]);let m=(0,o.rZ)();return l.createElement(i.T,Object.assign({as:t||a,color:r||m.colors.gray[8],"data-event-category":c,"data-event-action":d,"data-event-label":u,weight:"semibold"===s?"semiBold":"bold",size:a,"data-size":a,"data-font-weight":s||void 0},p))}},"+sq5":function(e,t,a){a.d(t,{A:function(){return j},B:function(){return Y},C:function(){return R},D:function(){return M},E:function(){return L},F:function(){return B},G:function(){return $},H:function(){return P},I:function(){return G},L:function(){return _},Q:function(){return r},S:function(){return w},U:function(){return N},V:function(){return H},Z:function(){return V},a:function(){return Z},b:function(){return I},c:function(){return S},d:function(){return D},e:function(){return k},f:function(){return q},g:function(){return U},h:function(){return W},i:function(){return X},j:function(){return F},k:function(){return z},l:function(){return O},m:function(){return A},r:function(){return d},s:function(){return K}});var n,l,o,i,r,s,c,d,u=a("EikE"),p=a("OT65"),m=a("G2RZ"),g=a("YNYf"),h=a("R43W"),E=a("+xLi"),v=a("tO2/"),y=a("YJaS"),f=a("tiWT"),b=a("xrdX"),x=a("UIg8"),T=a("GOBr"),C=a("weOk");let I="",O="https://id.hellobacsi.com/",N="userGeoLocationCoordinates",_={"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"}],w={"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:""},"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:""},"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"}},S=[C.L.Vietnam,C.L.Indonesia,C.L.Thailand,C.L.Malaysia,C.L.Myanmar],P=[C.L.Indonesia,C.L.PhilippinesEnglish,C.L.PhilippinesTagalog,C.L.Thailand],k=[C.L.Vietnam],L=["vi-VN"],M=["id-ID"],R=["vi-VN","id-ID","en-PH","tl-PH","ms-MY","th-TH"],D=["vi-VN","id-ID"],H=[C.L.Vietnam,C.L.Taiwan],B={"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=r||(r={})).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";let G={[C.L.Vietnam]:{dateFormat:"DD/MM/YYYY",separator:","},[C.L.Cambodia]:{dateFormat:"DD/MM/YYYY",separator:"."},[C.L.India]:{dateFormat:"DD/MM/YYYY",separator:"."},[C.L.Indonesia]:{dateFormat:"DD/MM/YYYY",separator:","},[C.L.Malaysia]:{dateFormat:"DD/MM/YYYY",separator:"."},[C.L.Thailand]:{dateFormat:"DD/MM/YYYY",separator:"."},[C.L.Taiwan]:{dateFormat:"YYYY/MM/DD",separator:","},[C.L.Singapore]:{dateFormat:"YYYY/MM/DD",separator:","},[C.L.PhilippinesTagalog]:{dateFormat:"MM/DD/YYYY",separator:"."},[C.L.PhilippinesEnglish]:{dateFormat:"MM/DD/YYYY",separator:"."},[C.L.Myanmar]:{dateFormat:"DD/MM/YYYY",separator:","}},Y="hhg_user_token",z="hhg_user_refresh_token",F={[C.L.PhilippinesEnglish]:u.Z,[C.L.Vietnam]:p.default,[C.L.Cambodia]:m.Z,[C.L.India]:g.Z,[C.L.Indonesia]:h.Z,[C.L.Myanmar]:u.Z,[C.L.Malaysia]:E.Z,[C.L.Thailand]:v.Z,[C.L.Taiwan]:y.Z},U="https://cdn.hellohealthgroup.com/countries",$="_ga",j="YYYY-MM-DD",V=9999999,Z=305,q="video_item_detail",W="hhg_cart_care_store_key";(l=s||(s={}))[l.UNAVAILABLE=0]="UNAVAILABLE",l[l.AVAILABLE=1]="AVAILABLE",(o=c||(c={}))[o.FIXED=1]="FIXED",o[o.STARTING=2]="STARTING",o[o.RANGE=3]="RANGE",(i=d||(d={})).VACCINE="VACCINE",i.IVF="IVF",i.EGG_FREEZING="EGG_FREEZING",i.HEALTH_SCREENER="HEALTH_SCREENER";let K={vaccine:d.VACCINE,ivf:d.IVF,"egg-freezing":d.EGG_FREEZING,screener:d.HEALTH_SCREENER},Q={[d.VACCINE]:"vaccine",[d.IVF]:"ivf",[d.EGG_FREEZING]:"egg-freezing",[d.HEALTH_SCREENER]:"screener"};var X=Object.freeze({__proto__:null,basePath:I,SSO_URL:O,USER_GEOLOCATION_COORDINATES_COOKIE:N,LOCALE_SPECS:_,COUNTRY_LIST:A,STATIC_PAGES:w,UP_BASEPATH:"user",LOCALE_HAS_COMMUNITY_SITE:S,HAS_CLINITY_DOWNLOAD_SITE:P,LOCALE_HAS_CART_CARE_SITE:k,ECOM_LOCALES:L,DATA_PRIVACY_LOCALES:M,CARE_LOCALES:R,CARE_BOOKING_LOCALES:D,VIDEO_LOCALES:H,FAVICONS:B,get QUERY_HEALTH_TOOL(){return r},ISO_FORMAT:G,BEARER_TOKEN_COOKIE:Y,BEARER_REFRESH_TOKEN_COOKIE:z,DATE_FNS_LOCALE:F,CDN_ADDRESS:U,GA_TOKEN_COOKIE:$,API_DATE_FORMAT:j,DATE_FNS_DATE_FORMAT:"dd-MM-yyyy",ZINDEX_SSO:V,ZINDEX_HEADER:Z,VIDEO_DETAIL_TEMP_STORAGE:q,HHG_CART_CARE_STORE_KEY:W,get EMERGENCY_STATUS(){return s},get ServicePrice(){return c},get SERVICE_TYPE(){return d},serviceTypeByProductType:K,productTypeByServiceType:Q,siteHost:f.Cf,siteOptions:f.x9,COUNTRY_CURRENCY_SYMBOL:f.Z5,domainLocales:b.v,MAP_DOMAIN_BY_LOCALE:b.f,get RISK_SCREENER_NAME(){return x.t},RISK_SCREENER_SLUG:x.n,isProduction:T.y})},"9qpT":function(e,t,a){a.d(t,{O:function(){return OvulationForm}});var n,l,o=a("Cxxo"),i=a("q1tI"),r=a("/npG"),s=a("mYVa"),c=a("iuhU"),d=a("8vDj"),u=a("cChf"),p=a("ZFu2"),m=a("vZl2"),g=a("PyPH"),h=a("A6F9"),E=a("Rh7u"),v=a("bSpP"),y=a("Ukun"),f=a("soDd"),b=a("Zge2");let AvoidPregnancy=e=>{var{isMarryBaby:t,size:a=24}=e,n=(0,o._)(e,["isMarryBaby","size"]);let l=Object.assign({width:a,height:a},n);return t?i.createElement("svg",Object.assign({viewBox:"0 0 33 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},l),i.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"}),i.createElement("path",{d:"M12.5 16a4 4 0 1 1 8 0 4 4 0 0 1-8 0",fill:"#fff"}),i.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"}),i.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"}),i.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"})):i.createElement("svg",Object.assign({viewBox:"0 0 19 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},l),i.createElement("g",{clipPath:"url(#clip0_1530_7251)"},i.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"}),i.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"}),i.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"}),i.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"}),i.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"}),i.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"}),i.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"}),i.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"}),i.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"}),i.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"})),i.createElement("defs",null,i.createElement("clipPath",{id:"clip0_1530_7251"},i.createElement("path",{fill:"#fff",d:"M.834 0h18v18h-18z"}))))},TryConceive=e=>{var{isMarryBaby:t,size:a=24}=e,n=(0,o._)(e,["isMarryBaby","size"]);let l=Object.assign({width:a,height:a},n);return t?i.createElement("svg",Object.assign({viewBox:"0 0 33 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},l),i.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"}),i.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"}),i.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"})):i.createElement("svg",Object.assign({viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},l),i.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"}),i.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"}),i.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"}),i.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"}),i.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"}),i.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"}),i.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"}),i.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"}),i.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"}),i.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"}),i.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"}),i.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"}),i.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"}),i.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"}),i.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"}))},x=(0,i.createContext)({});var T=(0,r.k)(e=>({inputRightSection:{fontSize:(0,s.h)(13),lineHeight:(0,s.h)(24),color:e.colors.gray[4],justifyContent:"flex-end",paddingRight:8}}));let DefaultLayout=e=>{var t=(0,o._)(e,[]);let{t:a}=(0,v.u)(),{currentUrl:n,submitProps:l,form:r,calculatingMethods:s,isMobile:d}=(0,i.useContext)(x),{classes:u={}}=(0,i.useContext)(y.C),{classes:p}=T(void 0,{name:"OvulationTool__DefaultLayout"});return i.createElement(f.H,Object.assign({formLayout:"default"},t),i.createElement(f.H.FormRow,null,i.createElement(f.H.Control,null,i.createElement(f.H.ChipGroup,Object.assign({data:s,label:a("dueDatePage.calculationMethod"),isMobile:d},r.getInputProps("calculatorType"))))),i.createElement(f.H.FormRow,null,i.createElement(h.D,Object.assign({placeholder:"DD/MM/YYYY",popoverProps:{withinPortal:!0},label:i.createElement(E.T,{size:"p2",weight:"semiBold"},` (${a("dueDatePage.lastPeriod.lastPeriodLabel")})`),maxDate:new Date},r.getInputProps("lastPeriodDate")))),i.createElement(f.H.FormRow,null,i.createElement(g.I.Number,Object.assign({label:i.createElement(E.T,{size:"p2",weight:"semiBold"},a("ovulationPage.cycleLength")),rightSection:a("ovulationPage.dayUnit"),min:21,max:45,defaultValue:1},r.getInputProps("cycleLength"),{classNames:{rightSection:p.inputRightSection}}))),i.createElement(f.H.FormRow,null,i.createElement(g.I.Number,Object.assign({label:i.createElement(E.T,{size:"p2",weight:"semiBold"},a("ovulationPage.periodDuration")),rightSection:a("ovulationPage.dayUnit"),min:1,max:15,defaultValue:1},r.getInputProps("periodLength"),{classNames:{rightSection:p.inputRightSection}}))),i.createElement(f.H.FormRow,{className:u.submitWrapper},i.createElement(f.H.Submit,Object.assign({type:"submit",className:(0,c.default)("due-date-calculate-button",u.submitBtn),dataEventCategory:"Health Tool",dataEventAction:"Ovulation",dataEventLabel:n},l),a("dueDatePage.lastPeriod.calculate"))))},InlineLayout=e=>{var t=(0,o._)(e,[]);let{t:a}=(0,v.u)(),{currentUrl:n,submitProps:l,form:r,calculatingMethods:s}=(0,i.useContext)(x),{classes:d={}}=(0,i.useContext)(y.C);return i.createElement(f.H,Object.assign({formLayout:"inline"},t),i.createElement(f.H.FormRow,null,i.createElement(f.H.BorderInlineControl,{label:a("dueDatePage.calculationMethod"),direction:"column",width:"100%"},i.createElement(f.H.ChipGroup,Object.assign({data:s},r.getInputProps("calculatorType"))))),i.createElement(f.H.FormRow,null,i.createElement(f.H.BorderInlineControl,{label:a("dueDatePage.lastPeriod.lastPeriodLabel")},i.createElement(h.D,Object.assign({placeholder:"DD/MM/YYYY",popoverProps:{withinPortal:!0},maxDate:new Date},r.getInputProps("lastPeriodDate"))))),i.createElement(f.H.FormRow,null,i.createElement(f.H.BorderInlineControl,{label:a("ovulationPage.cycleLength")+" "+a("ovulationPage.dayUnit")},i.createElement(g.I.Number,Object.assign({min:21,max:45,defaultValue:1},r.getInputProps("cycleLength"),{error:null}))),r.errors.cycleLength&&i.createElement(f.H.Error,null,r.errors.cycleLength)),i.createElement(f.H.FormRow,null,i.createElement(f.H.BorderInlineControl,{label:a("ovulationPage.periodDuration")+" "+a("ovulationPage.dayUnit")},i.createElement(g.I.Number,Object.assign({min:1,max:15,defaultValue:1},r.getInputProps("periodLength"),{error:null}))),r.errors.periodLength&&i.createElement(f.H.Error,null,r.errors.periodLength)),i.createElement(f.H.FormRow,{className:d.submitWrapper},i.createElement(f.H.Submit,Object.assign({type:"submit",className:(0,c.default)("due-date-calculate-button",d.submitBtn),dataEventCategory:"Health Tool",dataEventAction:"Ovulation",dataEventLabel:n},l),a("dueDatePage.lastPeriod.calculate"))))},MbLayout=e=>{var t=(0,o._)(e,[]);let{t:a}=(0,v.u)(),{currentUrl:n,submitProps:l,form:r,calculatingMethods:s}=(0,i.useContext)(x);return i.createElement(f.H,Object.assign({formLayout:"inline"},t),i.createElement(f.H.Control,null,i.createElement(g.I.Wrapper,{label:i.createElement(E.T,{size:"p4",sx:{fontWeight:"normal"}},a("dueDatePage.calculationMethod"))},i.createElement(f.H.ChipGroup,Object.assign({data:s},r.getInputProps("calculatorType"))))),i.createElement(f.H.BorderBoxControl,{label:a("dueDatePage.lastPeriod.lastPeriodLabel"),rightSection:i.createElement(b.Z,null)},i.createElement(h.D,Object.assign({placeholder:"DD/MM/YYYY",popoverProps:{withinPortal:!0},maxDate:new Date,rightSection:null},r.getInputProps("lastPeriodDate")))),i.createElement(f.H.BorderBoxControl,{label:a("ovulationPage.cycleLength"),rightSection:a("ovulationPage.dayUnit")},i.createElement(g.I.Number,Object.assign({min:21,max:45,defaultValue:1},r.getInputProps("cycleLength")))),r.errors.cycleLength&&i.createElement(f.H.Error,null,r.errors.cycleLength),i.createElement(f.H.BorderBoxControl,{label:a("ovulationPage.periodDuration"),rightSection:a("ovulationPage.dayUnit")},i.createElement(g.I.Number,Object.assign({min:1,max:15,defaultValue:1},r.getInputProps("periodLength")))),r.errors.periodLength&&i.createElement(f.H.Error,null,r.errors.periodLength),i.createElement(f.H.Submit,Object.assign({type:"submit",className:"due-date-calculate-button",dataEventCategory:"Health Tool",dataEventAction:"Ovulation",dataEventLabel:n},l),a("dueDatePage.lastPeriod.calculate")))};(n=l||(l={}))[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:r,onSubmit:s}=e,c=(0,o._)(e,["formLayout","submitProps","currentUrl","isMobile","onSubmit"]);let g=(0,d.rZ)(),{t:h}=(0,v.u)(),E="mb"===g.other.template,y=(0,u.c)({initialValues:{calculatorType:String(l.trackPeriod),periodLength:7,cycleLength:28,lastPeriodDate:new Date},validate:{periodLength:(0,p.U)(h("validation.error.requiredField")),cycleLength:(0,p.U)(h("validation.error.requiredField"))}}),f=Object.assign({onSubmit:y.onSubmit(s)},c),b=[{label:h("ovulationPage.trackPeriod"),value:l.trackPeriod,icon:i.createElement(m.L,null)},{label:h("ovulationPage.conceive"),value:l.conceive,icon:i.createElement(TryConceive,null)},{label:h("ovulationPage.avoidPregnancy"),value:l.avoidPregnancy,icon:i.createElement(AvoidPregnancy,null)}];return i.createElement(x.Provider,{value:{submitProps:a,currentUrl:n,form:y,isMobile:r,calculatingMethods:b}},"inline"===t?i.createElement(InlineLayout,Object.assign({},f)):E?i.createElement(MbLayout,Object.assign({formLayout:t},f)):i.createElement(DefaultLayout,Object.assign({},f)))}},wupm:function(e,t,a){a.d(t,{C:function(){return CardLink}});var n=a("Cxxo"),l=a("q1tI"),o=a("8vDj"),i=a("UESe"),r=a("Rh7u"),s=a("9E0F"),c=a("rBCA"),d=a("IQVP"),u=a("7R3W");let p=c.Z.div` .link-info-container { padding: 0.5rem 1rem; background: ${e=>e.color||"#f4faff"}; } .link-image-wrapper { position: relative; overflow: hidden; width: 100%; padding-top: min(280px, 56.25%); .link-image-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%); } .link-image { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: contain; object-position: center; } } a { text-decoration: none; } &[data-is-marrybaby='true'] { overflow: hidden; border-radius: 1rem; .link-info-container { padding-bottom: 1rem; p { color: #2661ad; } .link-logo { max-width: 2rem; height: 13px; margin-right: 4px; object-fit: contain; vertical-align: middle; } } .link-image-wrapper { padding-top: min(360px, 56.25%); .link-image { object-fit: cover; } } } `,CardLink=({title:e,url:t,image:a,logo:c,className:m,style:g,noRefetch:h})=>{let{data:{locale:E,env:{isMarryBaby:v}}}=(0,l.useContext)(s.T),[y,f]=(0,l.useState)(!1),b=(0,o.rZ)(),x=(0,l.useRef)(h);x.current=h;let[T,C]=(0,l.useState)(null);(0,l.useEffect)(()=>{(0,n.a)(void 0,void 0,void 0,function*(){if(!x.current){if(!t)return C(null);C(e=>Object.assign(Object.assign({},e),{isFetching:!0})),(0,s.c)((0,s.e)(d.yy.FETCH_PREVIEW,{_locale:E}),"POST",{data:{link:t},headers:{"Content-Type":"application/json"}}).then(e=>{var a,n,l;f(!1),C({title:null===(a=null==e?void 0:e.data)||void 0===a?void 0:a.title,url:t,image:(null===(n=null==e?void 0:e.data)||void 0===n?void 0:n.image)||(null===(l=null==e?void 0:e.data)||void 0===l?void 0:l.logo)})}).catch(()=>{C(null)})}})},[t]);let I=(null==T?void 0:T.image)||a,O=(null==T?void 0:T.title)||e,N=(null==T?void 0:T.logo)||c,_=(null==T?void 0:T.url)||t,A=_.replace("http://","").replace("https://","").split(/[/?#]/),w=A[0],S=(0,l.useRef)(!1);return l.createElement(p,{"data-is-marrybaby":v,className:`${m} no-replace-click`,style:g,color:b.colors[b.primaryColor][0]},l.createElement("a",{href:_,target:"_blank",rel:"noreferrer"},I&&l.createElement("div",{className:"link-image-wrapper"},!v&&l.createElement("img",{className:"link-image-blur",src:I,onError:e=>{S.current||(S.current=!0,e.currentTarget.src=u.D)},loading:"lazy"}),l.createElement("img",{className:"link-image",src:I,onError:e=>{S.current||(S.current=!0,e.currentTarget.src=u.D)},loading:"lazy"})),l.createElement("div",{className:"link-info-container"},l.createElement(r.T,{size:"n1"},v&&N&&!y&&l.createElement("img",{className:"link-logo",src:N,onError:()=>f(!0),loading:"lazy"}),w),l.createElement(i.H,{tag:"h6"},O))))}},a1xi:function(e,t,a){a.d(t,{F:function(){return Footer}});var n=a("q1tI"),l=a("r9/T"),o=a("Wgwc"),i=a.n(o),r=a("SPK5"),s=a("OAL+"),c=a("Eso5"),d=a("Rh7u"),u=a("e0Et"),p=a("CKJU"),m=a("rBCA"),g=a("iBNF"),h=a("xrdX"),E=a("e0JL"),v=a("QsFW");let y=m.Z.footer` background-color: #1b3250; .inner { padding: 64px 24px 98px 24px; margin: 0 auto; } .newsletter { padding: 24px 0; } .footer-logo { max-width: 132px; max-height: 32px; &[data-is-sehat='true'] { max-width: 250px; } img { object-fit: contain; } } .social { margin-top: 24px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; > .icons { display: flex; gap: 16px; } } hr { height: 1px; border: none; margin: 16px 0 16px 0; background: ${g.r.colors.neutral500}; opacity: 0.1; outline: none; } .footer-menu-column { min-width: 168px; } .footer-menu-title { margin-bottom: 16px; } .footer-menu-link { display: block; } .footer-menu-link-wrapper { display: flex; flex-direction: column; gap: 12px; } .copyright { display: flex; flex-direction: column; gap: 16px; padding-top: 8px; .copyright-content { color: ${g.r.colors.neutral500}; font-size: 12px; } .copyright-image-wrapper { flex-shrink: 0; flex-wrap: wrap; display: flex; gap: 16px; justify-content: flex-end; .copyright-image { align-self: flex-start; img { height: 32px; } } } } .otherSites { display: flex; gap: 16px; align-items: center; padding: 19px 0; border-top: 1px solid ${g.r.colors.neutral100}1a; border-bottom: 1px solid ${g.r.colors.neutral100}1a; .flags { display: flex; gap: 12px; } } .signupButton { display: none; border: none; margin-top: 16px; outline: none; text-transform: uppercase; } ${u.M.mbDown} { .inner { padding: 64px 0; } .social { flex-direction: column; gap: 10px; align-items: start; } hr { margin-top: 0px; } .copyright { align-items: center; text-align: center; } .copyright-image-wrapper { justify-content: center; max-width: unset; } .otherSites { flex-direction: column; padding: 24px 0; .linkTitle { text-align: center; } .flags { flex-wrap: wrap; justify-content: center; } } .footer-menu-title { margin-bottom: 12px; } .footer-menu { display: grid; grid-template-columns: repeat(2, 1fr); > .footer-menu-column { padding: 24px 0; } > .footer-menu-column:first-child { grid-column-start: 1; grid-column-end: 3; border-top: 1px solid ${g.r.colors.neutral100}1a; border-bottom: 1px solid ${g.r.colors.neutral100}1a; > .footer-menu-link-wrapper { display: grid; grid-template-columns: repeat(2, 1fr); } } } .otherSites { margin-bottom: 24px; } } ${u.M.mbUp} { .newsletter > p { max-width: 360px; } .hrMobile { display: none; } .copyright { gap: 24px; flex-direction: row-reverse; align-items: center; justify-content: space-between; } .otherSites { margin-bottom: 40px; } .columns { display: flex; flex-direction: row; width: 100%; gap: 16px; margin-bottom: 40px; > div:nth-child(1) { display: flex; flex-direction: column; flex: 1; } > div:nth-child(2) { display: flex; flex-direction: row; gap: 24px; } } } `,f=m.Z.img` width: 32px; height: 32px; ${u.M.mbDown} { width: 24px; height: 24px; } .country-flag { width: 100%; height: 100%; } `,Flag=({url:e,dataEventCategory:t,dataEventAction:a,dataEventLabel:l})=>n.createElement(f,{loading:"lazy",className:"country-flag",src:e,alt:"Country Flag","data-event-category":t,"data-event-action":a,"data-content-label":l}),FooterMenuColumn=({title:e,items:t,locale:a,index:l})=>{let{isMobile:o}=(0,p.u)();return n.createElement("div",{className:"footer-menu-column"},e?n.createElement(d.T,{size:o?"s4":"s3",className:"footer-menu-title",weight:o?"regular":"semiBold",color:"neutral.6"},e):null,n.createElement("div",{className:"footer-menu-link-wrapper"},null==t?void 0:t.map((e,t)=>n.createElement(d.T,{size:o?"p3":"p4",as:"a","data-event-category":"Footer","data-event-action":e.title,"data-event-label":`https://${h.v[a]}${e.url}`,className:"footer-menu-link",href:e.url,key:t,color:"#fff",weight:o&&0===l?"semiBold":"regular"},e.title))))},DiscoverFooter=({className:e,footerInfo:t,locale:a})=>{var o,r,s,c,u,m,g,h,E,v,f;let{isMobile:b}=(0,p.u)(),x=null==t?void 0:t.menu,T=(null===(r=null===(o=null==t?void 0:t.general)||void 0===o?void 0:o.verified)||void 0===r?void 0:r.filter(Boolean))||[];return n.createElement(y,{className:e},n.createElement(l.C,null,n.createElement("div",{className:"inner"},n.createElement("a",{href:"/"},n.createElement("img",{loading:"lazy",className:"footer-logo",src:null===(s=null==t?void 0:t.general)||void 0===s?void 0:s.logo,alt:"Logo","data-is-sehat":"id-ID"===a})),n.createElement("div",{className:"columns"},n.createElement("div",{className:"newsletter"},n.createElement(d.T,{size:b?"s3":"s4",weight:"semiBold",color:"neutral.0"},null===(c=null==t?void 0:t.general)||void 0===c?void 0:c.content),n.createElement("div",{className:"social"},n.createElement(d.T,{size:"p4",color:"neutral.6"},null===(u=null==t?void 0:t.social)||void 0===u?void 0:u.title),n.createElement("div",{className:"icons"},null===(g=null===(m=null==t?void 0:t.social)||void 0===m?void 0:m.socials)||void 0===g?void 0:g.map((e,t)=>n.createElement("a",{key:t,"data-event-category":"Footer","data-event-action":`Follow us - ${e.name}`,"data-content-label":e.url,href:e.url},n.createElement("img",{loading:"lazy","data-event-category":"Footer","data-event-action":`Follow us - ${e.name}`,"data-content-label":e.url,src:e.icon,alt:"Logo Social",className:"social-icon",width:"24",height:"24"})))))),n.createElement("div",{className:"footer-menu"},x&&n.createElement(n.Fragment,null,null==x?void 0:x.map((e,t)=>n.createElement(FooterMenuColumn,{title:e.menu_title,items:e.items,locale:a,key:t,index:t}))))),n.createElement("div",{className:"otherSites"},n.createElement(d.T,{size:"p4",className:"linkTitle",color:"neutral.6",weight:"regular"},null===(h=null==t?void 0:t.branch)||void 0===h?void 0:h.title),n.createElement("div",{className:"flags"},null===(v=null===(E=null==t?void 0:t.branch)||void 0===E?void 0:E.branch)||void 0===v?void 0:v.map((e,t)=>n.createElement("a",{href:e.url,key:t,"data-event-category":"Footer","data-event-action":e.name,"data-event-label":e.url},n.createElement(Flag,{url:e.flag,dataEventCategory:"Footer",dataEventAction:e.name,dataEventLabel:e.url}))))),n.createElement("div",{className:"copyright"},n.createElement("div",{className:"copyright-image-wrapper"},T.length?T.map((e,t)=>n.createElement("a",{href:e.url,key:t,className:"copyright-image"},n.createElement("img",{loading:"lazy",src:e.image,alt:"DMCA Icon"}))):null),n.createElement(d.T,{size:"n1",className:"copyright-content",as:"div",color:"neutral.6",weight:"regular"},n.createElement("div",{dangerouslySetInnerHTML:{__html:null===(f=null==t?void 0:t.general)||void 0===f?void 0:f.copyright.replace(/{currentYear}/gi,i()().get("year").toString())}}))))))},b=m.Z.footer` position: relative; overflow: hidden; .icons { margin-top: 12px; margin-bottom: 20px; > a:not(:last-child) { margin-right: 16px; } } a { text-decoration: none; } `,x=m.Z.div` position: relative; padding: 80px 0 40px; margin: auto 68px; display: flex; justify-content: space-between; align-items: flex-start; border-bottom: 1px solid ${g.r.colors.neutral200}; ${u.M.tdDown} { margin: auto 16px; flex-wrap: wrap; row-gap: 32px; column-gap: 16px; } ${u.M.mbDown} { margin: auto 0; } `,T=m.Z.div` display: flex; justify-content: space-between; gap: 12px; flex-direction: column; ${u.M.mbDown} { flex: 1 1 160px; } .title { padding-bottom: 4px; } `,C=m.Z.div` display: flex; justify-content: space-between; gap: 12px; flex-direction: column; `,I=m.Z.div` background-color: #{map-get($mbColors, 'dark')}; padding: 16px 0; position: relative; img { width: 89px; height: 32px; } .content { display: flex; align-items: center; justify-content: space-between; gap: 174px; margin: auto 68px; ${u.M.tdDown} { margin: auto 16px; } ${u.M.mbDown} { flex-direction: column-reverse; gap: 16px; align-items: flex-start; margin: auto 0; } } .verify { display: flex; align-items: flex-start; gap: 8px; } `,O=m.Z.div` padding: 40px 0; ${u.M.mbUp} { margin: auto 68px; } `,N=m.Z.div` display: flex; gap: 16px; .social-logo { width: 28px; } `,MarryBabyFooter=({logoType:e="marryBaby",footerMenu:t,background:a})=>{var o;if(!t)return null;let{general:u,menu:p,socials:m}=t;return n.createElement(b,{style:{backgroundColor:a||"none"}},n.createElement(l.C,null,n.createElement(x,null,null==p?void 0:p.map(({menu_title:e,items:t},a)=>n.createElement(T,{key:`mbf${a}`},n.createElement(v.M,{className:"title",type:"subtitle-1",color:g.r.mbColors.pink},e),null==t?void 0:t.map(({title:e,url:t},a)=>n.createElement("a",{"data-event-category":"Footer","data-event-action":"Click","data-event-label":`${t}`,className:"link",href:t,key:`footer-links-${a}`},n.createElement(C,{key:`mbitem${a}`},n.createElement(v.M,{type:"bodytext-2",color:g.r.mbColors.gray},e)))))))),n.createElement(l.C,null,n.createElement(O,null,n.createElement(r.k,{gap:"24px",sx:e=>({[e.fn.largerThan("sm")]:{".info-item":{flexGrow:1,width:"50%"}},[e.fn.smallerThan("sm")]:{flexDirection:"column"}})},n.createElement(s.K,{spacing:"24px",className:"info-item"},n.createElement(E.L,{className:"logo",type:e}),n.createElement(d.T,{size:"p4",as:"div"},n.createElement("div",{dangerouslySetInnerHTML:{__html:null==u?void 0:u.content}})),n.createElement(N,null,null==m?void 0:m.map(({icon:e,name:t,url:a},l)=>n.createElement("a",{key:`social${l}`,target:"_blank",rel:"noreferrer","data-event-category":"Footer","data-event-action":`Follow us - ${t}`,"data-content-label":t,href:a},n.createElement("img",{className:"social-logo",loading:"lazy",src:e,alt:t}))))),n.createElement(c.x,{className:"info-item",sx:{paddingTop:"7px"}},n.createElement(d.T,{size:"p4",as:"div"},n.createElement("div",{dangerouslySetInnerHTML:{__html:null==u?void 0:u.information}})))))),n.createElement(I,null,n.createElement(l.C,null,n.createElement("div",{className:"content"},n.createElement(d.T,{size:"p5",color:"#fff",as:"div"},n.createElement("div",{dangerouslySetInnerHTML:{__html:null==u?void 0:u.copyright.replace(/{currentYear}/gi,i()().get("year").toString())}})),n.createElement("div",{className:"verify"},null===(o=null==u?void 0:u.verified)||void 0===o?void 0:o.map(({image:e,url:t},a)=>n.createElement("img",{loading:"lazy",key:`imgMbFt${a}`,src:e,alt:t})))))))},Footer=({locale:e,footerInfo:t,siteType:a,background:l})=>"helloSites"===a?n.createElement(DiscoverFooter,{locale:e,footerInfo:t||{}}):n.createElement(MarryBabyFooter,{footerMenu:t,background:l})},YSyo:function(e,t,a){a.d(t,{L:function(){return Loading}});var n=a("q1tI"),l=a("bSpP"),o=a("JJ6e");let Loading=({className:e,size:t="md"})=>{let{t:a}=(0,l.u)();return n.createElement("div",{className:`PD6nRZX ${e}`},n.createElement(o.B,{size:t,color:"transparent",isLoading:!0},a("loading")))}},QsFW:function(e,t,a){a.d(t,{M:function(){return MarryBabyText},a:function(){return MarryBabyHeading}});var n=a("Cxxo"),l=a("q1tI"),o=a("rBCA"),i=a("iBNF");let r=(0,o.Z)(e=>{var{type:t}=e,a=(0,n._)(e,["type"]);return l.createElement(t,a)})` color: var(--text-color, ${i.r.mbColors.dark}); font-family: Krub; font-weight: 600; letter-spacing: -0.2px; &[data-type='headline-1'] { font-size: 40px; line-height: 60px; } &[data-type='headline-2'] { font-size: 32px; line-height: 48px; } &[data-type='headline-3'] { font-size: 24px; line-height: 40px; } &[data-type='headline-4'] { font-size: 18px; line-height: 32px; } `,s=o.Z.p` color: var(--text-color, ${i.r.mbColors.dark}); letter-spacing: -0.2px; &[data-type='subtitle-1'] { font-size: 16px; font-weight: 600; line-height: 26px; } &[data-type='subtitle-2'] { font-size: 14px; font-weight: 500; line-height: 24px; } &[data-type='subtitle-3'] { font-size: 12px; font-weight: 500; line-height: 20px; } &[data-type='bodytext-1'] { font-size: 16px; font-weight: 400; line-height: 28px; } &[data-type='bodytext-2'] { font-size: 14px; font-weight: 400; line-height: 24px; } &[data-type='bodytext-3'] { font-size: 12px; font-weight: 400; line-height: 20px; } &[data-type='caption-1'] { font-size: 10px; font-weight: 500; letter-spacing: -0.1px; line-height: 14px; } &[data-type='caption-2'] { font-size: 10px; font-weight: 400; letter-spacing: -0.1px; line-height: 14px; } `,MarryBabyHeading=e=>{var{type:t,color:a,style:o}=e,i=(0,n._)(e,["type","color","style"]);return l.createElement(r,Object.assign({type:t,"data-type":{h1:"headline-1",h2:"headline-2",h3:"headline-3",h4:"headline-4"}[t],style:Object.assign(Object.assign({},a&&{"--text-color":a}),o)},i))},MarryBabyText=e=>{var{type:t,color:a,style:o}=e,i=(0,n._)(e,["type","color","style"]);return l.createElement(s,Object.assign({"data-type":t,style:Object.assign(Object.assign({},o),a&&{"--text-color":a})},i))}},kXWp:function(e,t,a){a.d(t,{I:function(){return Input},L:function(){return Label},S:function(){return p},a:function(){return u},b:function(){return d}});var n=a("Cxxo"),l=a("q1tI"),o=a("8vDj"),i=a("rBCA"),r=a("iBNF"),s=a("e0Et");let c=i.Z.div` position: relative; width: 100%; &[data-has-error] { input { border-color: ${r.r.colors.red700}; } } input { width: 100%; padding: 12px 16px; border: solid 1px ${r.r.colors.gray200}; border-radius: ${r.r.borderRadius}; &:active, &:focus, &.focused { border-color: ${e=>e.color}; box-shadow: 0px 0px 2px 2px ${e=>e.shadowColor}; } &:disabled { background-color: ${r.r.colors.gray100}; cursor: not-allowed; } } &[data-has-action-icon] { input { padding: 12px 48px 12px 16px; } } &[data-has-display-icon] { input { padding: 12px 16px 12px 48px; } } &[data-has-action-icon][data-has-display-icon] { input { padding: 12px 48px; } } &[data-size='lg'] { input { font-size: 16px; font-weight: ${r.r.sizes.fwRegular}; ${s.M.mbDown} { font-size: 22px; line-height: 1.2; } ${s.M.mbUp} { font-size: 26px; line-height: 1.2; } } } &[data-size='md'] { input { font-weight: ${r.r.sizes.fwRegular}; line-height: 22px; ${s.M.mbDown} { font-size: 14px; line-height: 1.2; } ${s.M.mbUp} { font-size: 16px; line-height: 1.2; } } } &[data-size='sm'] { input { font-weight: ${r.r.sizes.fwRegular}; line-height: 20px; ${s.M.mbDown} { font-size: 13px; line-height: 1.5; } ${s.M.mbUp} { font-size: 13px; line-height: 1.5; } } } `,d=i.Z.label` color: ${r.r.colors.red700}; font-weight: ${r.r.sizes.fwRegular}; `,u=i.Z.div` position: absolute; top: 50%; right: 16px; cursor: pointer; transform: translateY(-50%); `,p=i.Z.div` position: absolute; top: 50%; left: 16px; display: inline-flex; cursor: default; transform: translateY(-50%); `,Label=({children:e,className:t,style:a,htmlFor:n,size:o})=>l.createElement("label",{"data-size":o,className:`DjBFAbd ${t||""}`,style:a,htmlFor:n},e),Input=e=>{var{name:t,value:a,errorMessage:i,isNumerousKeyboard:r=!1,showErrorMessage:s=!0,actionIcon:m,displayIcon:g,onActionClick:h,label:E,className:v,onChange:y,isDisabled:f,CustomInput:b,size:x,style:T,autoComplete:C="off",type:I="text",inputClassName:O,trackingAttributes:N,enterKeyHint:_}=e,A=(0,n._)(e,["name","value","errorMessage","isNumerousKeyboard","showErrorMessage","actionIcon","displayIcon","onActionClick","label","className","onChange","isDisabled","CustomInput","size","style","autoComplete","type","inputClassName","trackingAttributes","enterKeyHint"]);let w=(0,o.rZ)(),S=(0,l.useMemo)(()=>N?{"data-event-category":N.dataEventCategory,"data-event-action":N.dataEventAction,"data-event-label":N.dataEventLabel}:{},[N]);return l.createElement(c,{"data-size":x,className:v,"data-has-action-icon":!!m||void 0,"data-has-display-icon":!!g||void 0,"data-has-error":i&&i.length>0||void 0,color:w.fn.primaryColor(),shadowColor:w.colors[w.primaryColor][0],style:T},E&&l.createElement(Label,{size:"label2",htmlFor:t,className:"inputLabel"},E),l.createElement("div",{style:{position:"relative"}},b||l.createElement("input",Object.assign({id:t,name:t,onChange:e=>y&&y(e.target.value),type:I,"aria-label":I,value:a,disabled:f,autoComplete:C,inputMode:r||"number"===I?"numeric":I,pattern:r?"[0-9]*":".*",className:O,enterKeyHint:_},S,A)),g&&l.createElement(p,{className:"displayIcon"},g),m&&l.createElement(u,{className:"actionIcon",onClick:h},m)),i&&i.length>0&&s&&l.createElement(d,{className:"errorLabel"},i))}}}]);