"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[137],{lc3p:function(e,t,n){n.d(t,{P:function(){return PostContent},T:function(){return o},U:function(){return i},a:function(){return ProfileDetail},b:function(){return $}});var a,l,o,i,r=n("LufY"),s=n("q1tI"),c=n("Wgwc"),d=n.n(c),u=n("9iWt"),p=n("Fc05"),m=n("Bkqm"),h=n("IQVP"),g=n("Y8gQ"),E=n("oTwY"),v=n("/npG"),T=n("eito"),C=n("bpvy"),b=n("SPK5"),I=n("8vDj"),y=n("UbCi"),O=n("UpS/"),A=n("DIGB"),S=n("dn/s"),f=n("J5bt"),_=n("iBNF"),N=n("rCoo"),P=n("e0pn"),k=n("9uQI"),L=n("rrs9"),x=n("G7ij"),R=n("rBCA"),w=n("aZjv"),M=n("8/zt"),B=n("OaJP");let D=R.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; } } } } `,G=R.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; } `,Y=R.Z.span` padding-left: 2px; background-color: ${_.r.colors.white}; bottom: 8px; position: absolute; right: 0; z-index: 10; cursor: pointer; `;var H=(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:n,className:a,style:l,replyingTo:o,mentionedUser:i,description:c,disableShortenContent:d,mentions:u=[],maxChars:p=1e3,maxLines:m,hideShowAllBtn:h,styles:E,onClickCreatePostLink:v}=e,C=(0,r._)(e,["trackingCategory","url","className","style","replyingTo","mentionedUser","description","disableShortenContent","mentions","maxChars","maxLines","hideShowAllBtn","styles","onClickCreatePostLink"]);let{classes:b,theme:I}=H(void 0,{name:"PostContent",styles:E}),[y,O]=(0,s.useState)(!1),[S,_]=(0,s.useState)(!1),{t:N}=(0,f.u)(),{authActionWrapper:P}=(0,w.iV)(),[k,L]=(0,s.useState)(!1),x=(0,M.d)((0,M.b)(c||"","display"),u),{action:{sanitizeFunction:R}}=(0,s.useContext)(g.T),B=(0,s.useMemo)(()=>{let e=R(x||"");if(d||y)return{showContent:e,hasSeeMore:!1};let t=e.slice(0,p),n=p-((t.match(/<\/div>/g)||[]).length-1)*27,a=(t||"").slice(0,n<40?40:n),l=R(a.replace(/(<|<\/)( +|[a-zA-Z]*)$/gi,"")),o=l.lengths.createElement(s.Fragment,null,"... ",!h&&s.createElement(T.e,Object.assign({onClick:e=>{e.preventDefault(),e.stopPropagation(),P(()=>O(!0))},className:"see-more-text"},t?{"data-event-category":t,"data-event-action":"See More Post Click","data-event-label":n}:{}),N("post.seeMore"))),[h,n,t]),handleCreatePostClick=e=>{e.preventDefault(),null==v||v()},isEllipsisActive=e=>e.scrollHeight>e.clientHeight;return(0,s.useEffect)(()=>{var e;return null===(e=null==F?void 0:F.current)||void 0===e||e.querySelectorAll("[data-create-post]").forEach(e=>{e.addEventListener("click",handleCreatePostClick,{passive:!0})}),()=>{var e;null===(e=null==F?void 0:F.current)||void 0===e||e.querySelectorAll("[data-create-post]").forEach(e=>{e.removeEventListener("click",handleCreatePostClick,!1)})}},[d,y,x]),(0,s.useEffect)(()=>{j.current&&x&&m&&(isEllipsisActive(j.current)?_(!0):_(!1))},[x,m]),s.createElement(s.Fragment,null,V&&s.createElement(A.P,{isOpen:k,onClose:()=>L(!1),expertId:String(null==i?void 0:i.partnerId)}),s.createElement(D,Object.assign({ref:F,className:`${b.root} ${a} no-replace-click`,style:l,mentionColor:I.fn.primaryColor()},C),U&&s.createElement(T.e,{onClick:()=>V&&L(!0),className:"post-content-replying"},"@",U),(null==c?void 0:c.startsWith("[mention+id="))&&s.createElement("span",{className:"post-content-replying tag-only",style:{color:I.fn.primaryColor()}},"@"),m?s.createElement(s.Fragment,null,s.createElement(G,{dangerouslySetInnerHTML:{__html:x},className:`post-content-line ${y?"post-content-show-all":""}`,line:m,ref:j}),S&&!y&&s.createElement(Y,null,z())):s.createElement(s.Fragment,null,s.createElement("span",{dangerouslySetInnerHTML:{__html:B.showContent},className:`post-content ${B.hasSeeMore?"has-see-more":""}`}),B.hasSeeMore&&!y&&s.createElement("span",null,z()))))},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=y.C.getAssetPath("logo/logomark.png"),ratio:n=1,size:a=80,radius:l=8,alt:o,className:i=""})=>s.createElement("div",{className:i},s.createElement("div",{className:"DZmf3s7",style:{width:`${a}px`,height:`${a*n}px`,borderRadius:`${l}px`}},s.createElement(O.I,{src:e,backupSrc:t,alt:o}))),CardArticle=({category:e,title:t,src:n,children:a,className:l=""})=>s.createElement("div",{className:`eaR8ATZ ${l}`},s.createElement(Thumbnail,{src:n}),s.createElement("div",{className:"xM-7K0a"},a||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:n,categories:a,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==a?void 0:a[0])||void 0===i?void 0:i.name),s.createElement(CardArticle.Title,null,t),s.createElement(A.d,{avatarProps:Object.assign(Object.assign({},n),{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(A.d.SubDivider,null),"Dec 12, 2022")})))};var U={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 V=(0,s.createContext)({}),About=({className:e=""})=>{var t,n,a,l,o;let{t:i}=(0,f.u)(),{info:r,isMarryBaby:c,currentPageUrl:d}=(0,s.useContext)(V),u=null==r?void 0:r.data,p=[{type:S.S.LinkedIn,icon:y.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:S.S.Instagram,icon:y.C.getAssetPath("instagram.svg"),url:null===(n=null==r?void 0:r.contact)||void 0===n?void 0:n.instagram,eventAction:"Doctor Profile - Instagram"},{type:S.S.Facebook,icon:y.C.getAssetPath("facebook.svg"),url:null===(a=null==r?void 0:r.contact)||void 0===a?void 0:a.facebook,eventAction:"Doctor Profile - Facebook"},{type:S.S.Youtube,icon:y.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:S.S.Tiktok,icon:y.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:y.C.getAssetPath(c?"award-doc-mb.svg":"award-doc.svg"),eventAction:"Doctor Experience Click",panel:s.createElement("div",{className:U.accBodyGroup},null==r?void 0:r.experiences.map((e,t)=>s.createElement("div",{className:U.accBodyGroupItem,key:String(t)},s.createElement("div",{className:U.accBodyGroupTitle},e.title),s.createElement("div",{className:U.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:y.C.getAssetPath(c?"book-mb.svg":"book.svg"),eventAction:"Doctor Degree Click",panel:s.createElement("div",{className:U.accBodyGroup},null==r?void 0:r.educations.map((e,t)=>s.createElement("div",{className:U.accBodyGroupItem,key:String(t)},s.createElement("div",{className:U.accBodyGroupTitle},e.schoolName),s.createElement("div",{className:U.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:y.C.getAssetPath(c?"award-mb.svg":"award.svg"),eventAction:"Doctor Award Click",panel:s.createElement("div",{className:U.accBodyGroup},null==r?void 0:r.awards.map((e,t)=>s.createElement("div",{className:U.accBodyGroupTitle,key:t},e.title)))}]:[]],h=(null==r?void 0:r.relatedPosts)||[],g=p.filter(e=>e.url);return s.createElement("div",{className:`${U.container} ${e}`,"data-is-marrybaby":c},m.length>0&&s.createElement(C.U,{defaultValue:m[0].key,chevron:c?s.createElement("div",{className:U.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(C.U.Item,{key:e.key,value:e.key},s.createElement(C.U.Control,{"data-event-category":"Together","data-event-action":e.eventAction,"data-event-label":d},s.createElement("div",{className:U.header},s.createElement("div",{className:U.headingIcon},s.createElement("img",{src:e.iconSrc,loading:"lazy"})),s.createElement("div",{className:U.heading},e.heading))),s.createElement(C.U.Panel,null,e.panel)))),h.length>0&&s.createElement("div",{className:U.group},s.createElement("div",{className:U.subTitle},s.createElement("img",{className:U.subIcon,src:y.C.getAssetPath(c?"mb-logo.svg":"logo/circle-solid.svg"),loading:"lazy"}),i("profilePanel.publishedArticles")),s.createElement("div",{className:`${U.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:U.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})))))),g.length>0&&s.createElement("div",{className:U.group},s.createElement("div",{className:U.subTitle},s.createElement("img",{className:U.subIcon,src:y.C.getAssetPath(c?"social-mb.svg":"social.svg"),loading:"lazy"}),i("profilePanel.socialLinks")),s.createElement("div",{className:U.groupBody},s.createElement(b.k,null,p.map((e,t)=>e.url&&s.createElement("div",{className:U.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 F={container:"GYUElSy",question:"_3C6QpT1",questionTitle:"_9M9VYL6",community:"_1RuSyv3",questionCard:"_1IG-eEp"};let PostCard$1=({post:e,className:t=""})=>{var n,a,l,o,i,r,c,d;let{t:u}=(0,f.u)(),{data:{userInfo:p,env:{togetherBasePath:m}}}=(0,s.useContext)(g.T),{authActionWrapper:h,authorProps:E,currentPageUrl:v}=(0,s.useContext)(V),T=`${window.location.origin}${m}/${null===(n=null==e?void 0:e.community)||void 0===n?void 0:n.slug}/${null==e?void 0:e.slug}/`;return s.createElement("div",{className:`${F.container} ${t}`},s.createElement("div",{className:F.header},s.createElement("div",{className:F.question},u("profilePanel.question")," ",s.createElement(k.b,{className:F.questionTitle,href:"#",onClick:()=>{(null==p?void 0:p.id)||null==h||h(()=>window.location.href=T,{_location:T})}},"#",null==e?void 0:e.title)),s.createElement("div",{className:F.community},null===(a=null==e?void 0:e.community)||void 0===a?void 0:a.name," - ",null==e?void 0:e.createdTime)),s.createElement("div",{className:F.questionCard},s.createElement(A.C,Object.assign({className:"card-author"},E,{role:"user",avatarIcon:s.createElement(N.Z,null),subLine:s.createElement(A.C.SubTextRow,null,s.createElement(A.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(x.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=T:null==h||h(()=>window.location.href=T,{_location:T})}},u("profilePanel.anserwing.viewFull")))};var j={container:"_8fd7YMs",thumb:"DomiQfw",content:"-b2qnfL"};let EmptyMessage=({message:e,buttonTxt:t,imgSrc:n,onBtnClick:a})=>{let{siteType:l,isMarryBaby:o}=(0,s.useContext)(V);return s.createElement("div",{className:j.container},s.createElement("div",{className:j.thumb},s.createElement("img",{src:n||y.C.getAssetPath(o?"comments-mb.svg":"comments.svg"),loading:"lazy"})),e&&s.createElement("div",{className:j.content},e),t&&s.createElement(B.B,{size:"md",theme:l,color:"secondary",onClick:a},t))},Answering=({id:e})=>{let{t}=(0,f.u)(),{data:{locale:n}}=(0,s.useContext)(g.T),{authorProps:a}=(0,s.useContext)(V),[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 a=yield(0,g.c)((0,g.e)(h.yy.USER.LIST_ANSWERS,{_locale:n,id:e}),"GET"),l=((null===(t=null==a?void 0:a.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==a?void 0:a.name)||(null==a?void 0:a.username)})})))},QuestionCard=e=>{var t,n,a,l,{post:o}=e,i=(0,r._)(e,["post"]);let{data:{env:{togetherBasePath:c}}}=(0,s.useContext)(g.T);return s.createElement(s.Fragment,null,s.createElement("div",Object.assign({},i,{className:`toEutn7 ${(null==i?void 0:i.className)||""}`}),s.createElement(A.C,{className:"card-author",avatar:null===(t=null==o?void 0:o.author)||void 0===t?void 0:t.avatar,name:(null===(n=null==o?void 0:o.author)||void 0===n?void 0:n.name)||(null===(a=null==o?void 0:o.author)||void 0===a?void 0:a.username),isAnonymous:!!(null==o?void 0:o.isAnonymous),subLine:s.createElement(A.C.SubTextRow,null,s.createElement(A.C.SubText,null,null==o?void 0:o.createdTime))}),s.createElement(k.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 z={accordion:"I-uIJ6E",header:"_41WRsj2",heading:"AcOGL93",headingIcon:"JD3dWJN",chevron:"L2Q9T6m",container:"h-pSmhX"};let Care=()=>{var e,t;let{t:n}=(0,f.u)(),{data:{locale:a,userInfo:l}}=(0,s.useContext)(g.T),{onSkipQuestion:o,countValues:i,setCountValues:c}=(0,s.useContext)(V),[d,u]=(0,s.useState)(),[E,v]=(0,s.useState)([]),[T,b]=(0,s.useState)(!1),I=null==l?void 0:l.id;(0,s.useEffect)(()=>{I&&(0,r.a)(void 0,void 0,void 0,function*(){var e;b(!0);let t=yield(0,g.b)((0,g.e)(h.yy.USER.LIST_QUESTION_NEED_REPLY,{_locale:a}),"GET"),n=[],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,n.push((0,m.f)(e))}),v(n),u(l),b(!1)})},[]);let handleSkipQuestion=({id:e,communityId:t})=>{if(e&&t&&d){let n=Object.assign(Object.assign({},d),{[t]:[...((null==d?void 0:d[t])||[]).filter(t=>t.id!==e)]}),a=0;Object.keys(n).map(e=>a+=n[e].length||0),u(n),c(Object.assign(Object.assign({},i),{total_question:a})),null==o||o(a)}};return s.createElement("div",{className:z.container},T?s.createElement(p.L,null):(null==i?void 0:i.total_question)>0?E.length>0&&s.createElement(C.U,{className:z.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:z.chevron},s.createElement(P.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(C.U.Item,{key:e.id,value:String(e.id)},s.createElement(C.U.Control,null,s.createElement("div",{className:z.header},s.createElement("div",{className:z.headingIcon},s.createElement("img",{src:e.thumbnail,loading:"lazy"})),s.createElement("div",{className:z.heading},e.name))),s.createElement(C.U.Panel,null,s.createElement("div",{className:z.body},t.map(e=>s.createElement(QuestionCard,{className:"question-card",key:e.id,post:e,onSkip:handleSkipQuestion})))))})):s.createElement(EmptyMessage,{message:n("profilePanel.emptyCareMess.content"),imgSrc:y.C.getAssetPath("questions.svg")}))},PostCard=({post:e,className:t=""})=>{var n;let{data:{userInfo:a,env:{togetherBasePath:l}}}=(0,s.useContext)(g.T),{t:o}=(0,f.u)(),i=(0,I.rZ)(),{authActionWrapper:r,authorProps:c}=(0,s.useContext)(V),d=`${window.location.origin}${l}/${null===(n=null==e?void 0:e.community)||void 0===n?void 0:n.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==a?void 0:a.id)||(e.preventDefault(),null==r||r(()=>window.location.href=d,{_location:d}))}}),s.createElement(A.d,{className:"card-author",avatarProps:{avatar:null==c?void 0:c.avatar,size:32}},s.createElement(A.C.MainText,{className:"A18McWD"},null==e?void 0:e.title),s.createElement(A.C.SubTextRow,null,s.createElement(A.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(L.T,{size:"p3",color:i.fn.primaryColor()},o("post.seeMore"))))},Posts=()=>{let{t:e}=(0,f.u)(),{data:{locale:t}}=(0,s.useContext)(g.T),{authorId:n,authorProps:a,isAuthorLogin:l,onCloseFromPost:o}=(0,s.useContext)(V),[i,c]=(0,s.useState)(null),[d,u]=(0,s.useState)(!1);return(0,s.useEffect)(()=>{n&&(0,r.a)(void 0,void 0,void 0,function*(){var e;u(!0);let a=yield(0,g.c)((0,g.e)(h.yy.USER.LIST_POST,{_locale:t,id:n,isAnonymous:0}),"GET"),l=((null===(e=null==a?void 0:a.data)||void 0===e?void 0:e.posts)||[]).map(m.a);c(l),u(!1)})},[n]),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==a?void 0:a.name)||(null==a?void 0:a.username)||""}),buttonTxt:l&&e("profilePanel.createPost"),onBtnClick:()=>{null==o||o()}})))};var W={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}:{};(a=o||(o={}))[a.About=0]="About",a[a.Care=1]="Care",a[a.Answer=2]="Answer",a[a.Posts=3]="Posts",(l=i||(i={}))[l.Expert=0]="Expert",l[l.User=1]="User";let $={experiences:[],relatedPosts:[],educations:[],awards:[],contact:{},data:{}},ProfileDetail=e=>{var t,{authorProps:n,selectedTab:a,authActionWrapper:l,onSkipQuestion:i,onCloseFromPost:c,hideQuestionTab:E,hideAnswerTab:v,showSkipQuestionTag:T,rolesToShowQuestionsTab:C=["expert"],currentPageUrl:b}=e,I=(0,r._)(e,["authorProps","selectedTab","authActionWrapper","onSkipQuestion","onCloseFromPost","hideQuestionTab","hideAnswerTab","showSkipQuestionTag","rolesToShowQuestionsTab","currentPageUrl"]);let{data:{locale:y,userInfo:O,env:{isMarryBaby:S}}}=(0,s.useContext)(g.T),{t:_}=(0,f.u)(),N=null==n?void 0:n.role,P=null==O?void 0:O.role,k=String(null==n?void 0:n.userId),[L,x]=(0,s.useState)(),[R,w]=(0,s.useState)(!1),[M,B]=(0,s.useState)(),D=(null==O?void 0:O._togetherUserId)===(null==n?void 0:n.userId),G=[...-1!==C.indexOf(N)?[{value:o.About,text:_("profilePanel.tabs.highlight"),content:s.createElement(About,{id:k,info:M}),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===C.indexOf(P)||(null==O?void 0:O._togetherUserId)!==(null==n?void 0:n.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===C.indexOf(N)?[]:[{value:o.Answer,text:`${_("profilePanel.tabs.expertAnswer")}`,content:s.createElement(Answering,{id:k}),hasCountResult:!0,keyOfCountApi:"reply",keyOfResult:"total_reply",dataEventCategory:"Together",dataEventAction:"Doctor Reply Tab Click",dataEventLabel:b}]],[Y,H]=(0,s.useState)(null),[U,F]=(0,s.useState)(null),j={value:String(U),dataList:Y,onTabChange:e=>F(Number(e))},z=null==G?void 0:G.filter(e=>null==e?void 0:e.hasCountResult);(0,s.useEffect)(()=>{(0,r.a)(void 0,void 0,void 0,function*(){var e,t,n,l,i,r,s,c,d,u;w(!0);let p=yield Promise.all([(0,g.c)((0,g.e)(h.yy.USER.DETAIL,{_locale:y,id:k}),"GET"),...z.map(e=>(0,g.c)((0,g.e)(h.yy.USER.COUNT_TABS,{_locale:y,id:k,[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===(n=null==E?void 0:E.data)||void 0===n?void 0:n.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&&B(v);let T=(null==v?void 0:v.relatedPosts)||[],C=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)||[]],I=T.length>0||C.length>0||b.length>0,O={},A=z.map((e,t)=>{var n,a,l;let i=(null===(l=null===(a=null===(n=p[t+1])||void 0===n?void 0:n.data)||void 0===a?void 0:a.counting)||void 0===l?void 0:l[e.keyOfResult])||0;return i>0?(O[e.keyOfResult]=i,e):-1!==[o.Care,o.Posts].indexOf(e.value)?e:void 0}).filter(Boolean).map(e=>e.value),S=G.map(e=>{let t=Object.assign(Object.assign({},e),{text:e.text+(e.keyOfResult?` (${(null==O?void 0:O[e.keyOfResult])||"0"})`:"")});return t.hasCountResult?-1!==A.indexOf(t.value)?t:void 0:t.value===o.About?I&&t:t}).filter(Boolean);H(S),F(a||(null===(u=null==S?void 0:S[0])||void 0===u?void 0:u.value)),x(O),w(!1)})},[]);let $=null==M?void 0:M.data;return s.createElement(V.Provider,{value:{isMarryBaby:S,siteType:S?"marryBaby":"helloSites",authorId:String((null==n?void 0:n.userId)||""),authActionWrapper:l,onSkipQuestion:i,info:M,authorProps:n,onCloseFromPost:c,countValues:L,setCountValues:x,isAuthorLogin:D,showSkipQuestionTag:T,currentPageUrl:b}},s.createElement("div",Object.assign({},I,{className:`${W.container} ${(null==I?void 0:I.className)||""}`,"data-is-marrybaby":S}),R?s.createElement(p.L,null):s.createElement(s.Fragment,null,s.createElement(A.C,Object.assign({},n,{className:"card-author",showDetailPopup:!1,subLine:(null==n?void 0:n.role)==="expert"?(null==$?void 0:$.specialty)&&(null==$?void 0:$.organisation)&&s.createElement(A.C.SubTextRow,null,(null==$?void 0:$.specialty)&&s.createElement(s.Fragment,null,s.createElement(A.C.SubText,null,null==$?void 0:$.specialty),s.createElement(A.C.SubDivider,null)),s.createElement(A.C.SubText,null,null==$?void 0:$.organisation)):(null==$?void 0:$.created_at)&&s.createElement(A.C.SubTextRow,null,s.createElement(A.C.SubText,null,_("profilePanel.joined")," ",d()(null==$?void 0:$.created_at).toNow(!0)))})),"expert"===N&&s.createElement("div",{className:W.info,dangerouslySetInnerHTML:{__html:null===(t=null==M?void 0:M.data)||void 0===t?void 0:t.description}}),null!==Y&&null!==U&&(Y.length>0?s.createElement("div",{className:W.body},s.createElement(u.T,Object.assign({},j))):s.createElement(EmptyMessage,{message:_("profilePanel.emptyPostMess.content",{text:(null==n?void 0:n.name)||(null==n?void 0:n.username)||""})})))))}},"L6+J":function(e,t,n){n.d(t,{A:function(){return z},B:function(){return H},C:function(){return M},D:function(){return w},E:function(){return R},F:function(){return G},G:function(){return j},H:function(){return L},I:function(){return Y},L:function(){return _},Q:function(){return r},S:function(){return P},U:function(){return f},V:function(){return D},Z:function(){return W},a:function(){return $},b:function(){return A},c:function(){return k},d:function(){return B},e:function(){return x},f:function(){return K},g:function(){return F},h:function(){return Z},i:function(){return X},j:function(){return V},k:function(){return U},l:function(){return S},m:function(){return N},r:function(){return d},s:function(){return q}});var a,l,o,i,r,s,c,d,u=n("EikE"),p=n("OT65"),m=n("G2RZ"),h=n("YNYf"),g=n("R43W"),E=n("+xLi"),v=n("tO2/"),T=n("YJaS"),C=n("tiWT"),b=n("xrdX"),I=n("UIg8"),y=n("GOBr"),O=n("gFo6");let A="",S="https://id.hellobacsi.com/",f="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"}},N=[{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"}],P={"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"}},k=[O.L.Vietnam,O.L.Indonesia,O.L.Thailand,O.L.Malaysia,O.L.Myanmar],L=[O.L.Indonesia,O.L.PhilippinesEnglish,O.L.PhilippinesTagalog,O.L.Thailand],x=[O.L.Vietnam],R=["vi-VN"],w=["id-ID"],M=["vi-VN","id-ID","en-PH","tl-PH","ms-MY","th-TH"],B=["vi-VN","id-ID"],D=[O.L.Vietnam,O.L.Taiwan],G={"vi-VN":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"km-KH":[{type:"link",rel:"icon",href:"/by-locales/km-KH/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/km-KH/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/km-KH/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/km-KH/icon-270x270.png"}],"en-PH":[{type:"link",rel:"icon",href:"/by-locales/en-PH/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/en-PH/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon",href:"/by-locales/en-PH/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/en-PH/icon-270x270.png"}],"id-ID":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"ms-MY":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"th-TH":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"my-MM":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"zh-TW":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"hi-IN":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],marryBaby:[{type:"link",rel:"shortcut icon",href:"/favicons/favicon.ico"},{type:"link",rel:"icon",href:"/favicons/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/favicons/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/favicons/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/favicons/icon-180x180.png"}]};(a=r||(r={})).bmi="mi",a.gender="gndr",a.age="ge",a.slug="slug",a.resultId="resultId",a.bmr="mr",a.height="gt",a.weight="wght",a.source="surc",a.type="tp",a.startDate="sd",a.additional="tnl",a.week="wk",a.twins="twn",a.weightBefore="wb",a.yourself="yrslf",a.intensity="sy",a.rate="rt",a.method="mthd",a.day="dy",a.pwg="pwg",a.cycle="le",a.period="prd",a.access_token="tkn",a.name="nm",a.id="id",a.activityLevel="actl",a.status="status",a.birthday="brd";let Y={[O.L.Vietnam]:{dateFormat:"DD/MM/YYYY",separator:","},[O.L.Cambodia]:{dateFormat:"DD/MM/YYYY",separator:"."},[O.L.India]:{dateFormat:"DD/MM/YYYY",separator:"."},[O.L.Indonesia]:{dateFormat:"DD/MM/YYYY",separator:","},[O.L.Malaysia]:{dateFormat:"DD/MM/YYYY",separator:"."},[O.L.Thailand]:{dateFormat:"DD/MM/YYYY",separator:"."},[O.L.Taiwan]:{dateFormat:"YYYY/MM/DD",separator:","},[O.L.Singapore]:{dateFormat:"YYYY/MM/DD",separator:","},[O.L.PhilippinesTagalog]:{dateFormat:"MM/DD/YYYY",separator:"."},[O.L.PhilippinesEnglish]:{dateFormat:"MM/DD/YYYY",separator:"."},[O.L.Myanmar]:{dateFormat:"DD/MM/YYYY",separator:","}},H="hhg_user_token",U="hhg_user_refresh_token",V={[O.L.PhilippinesEnglish]:u.Z,[O.L.Vietnam]:p.default,[O.L.Cambodia]:m.Z,[O.L.India]:h.Z,[O.L.Indonesia]:g.Z,[O.L.Myanmar]:u.Z,[O.L.Malaysia]:E.Z,[O.L.Thailand]:v.Z,[O.L.Taiwan]:T.Z},F="https://cdn.hellohealthgroup.com/countries",j="_ga",z="YYYY-MM-DD",W=9999999,$=305,K="video_item_detail",Z="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 q={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:A,SSO_URL:S,USER_GEOLOCATION_COORDINATES_COOKIE:f,LOCALE_SPECS:_,COUNTRY_LIST:N,STATIC_PAGES:P,UP_BASEPATH:"user",LOCALE_HAS_COMMUNITY_SITE:k,HAS_CLINITY_DOWNLOAD_SITE:L,LOCALE_HAS_CART_CARE_SITE:x,ECOM_LOCALES:R,DATA_PRIVACY_LOCALES:w,CARE_LOCALES:M,CARE_BOOKING_LOCALES:B,VIDEO_LOCALES:D,FAVICONS:G,get QUERY_HEALTH_TOOL(){return r},ISO_FORMAT:Y,BEARER_TOKEN_COOKIE:H,BEARER_REFRESH_TOKEN_COOKIE:U,DATE_FNS_LOCALE:V,CDN_ADDRESS:F,GA_TOKEN_COOKIE:j,API_DATE_FORMAT:z,DATE_FNS_DATE_FORMAT:"dd-MM-yyyy",ZINDEX_SSO:W,ZINDEX_HEADER:$,VIDEO_DETAIL_TEMP_STORAGE:K,HHG_CART_CARE_STORE_KEY:Z,get EMERGENCY_STATUS(){return s},get ServicePrice(){return c},get SERVICE_TYPE(){return d},serviceTypeByProductType:q,productTypeByServiceType:Q,siteHost:C.Cf,siteOptions:C.x9,COUNTRY_CURRENCY_SYMBOL:C.Z5,domainLocales:b.v,MAP_DOMAIN_BY_LOCALE:b.f,get RISK_SCREENER_NAME(){return I.t},RISK_SCREENER_SLUG:I.n,isProduction:y.y})},Nucu:function(e,t,n){n.d(t,{M:function(){return el},S:function(){return SurveyOrPremiumBanner},a:function(){return eo},b:function(){return SideBannerModal}});var a,l,o,i,r,s,c,d=n("q1tI"),u=n("mYVa"),p=n("7Ci/"),m=n("/npG"),h=n("Eso5"),g=n("OAL+"),E=n("SPK5"),v=n("RZSM"),T=n("vaps"),C=n("9n+W"),b=n("DA0W"),I=n("RGvF"),y=n("JZkZ"),O=n("MkcP"),A=n("UbCi"),S=n("Y8gQ"),f=n("L6+J"),_=n("YwDm"),N=n("UIg8"),P=n("LufY"),k=n("Rhq+"),L=n("UpS/"),x=n("LdDg"),R=n("J5bt"),w=n("cChf"),M=n("ZFu2"),B=n("9uQI"),D=n("xMoD"),G=n("rrs9"),Y=n("G7ij"),H=n("jD9D"),U=n("IQVP"),V=n("h7+k"),F=n("gguO"),j=n("ShI9"),z=n("xrdX"),W=n("GOBr"),$=n("q9DY"),K=n("oTwY"),Z=n("aBsM"),q=n("dCLH"),Q=n("JIJ2"),X=n("TYy9"),J=n.n(X),ee=n("qPyV"),et=n.n(ee),en=n("gFo6");let ea=[{title:"Health News & Current Affairs",description:"Covering the latest happenings in the health field, including medical breakthroughs, policies, and disease outbreaks",icon:A.C.getAssetPath("newsletter-prefer/newsletter-health.svg"),checked:!1,id:1},{title:"Educational Medical Hello Bacsi Content",description:"Covering the latest happenings in the health field, including medical breakthroughs, policies, and disease outbreaks",icon:A.C.getAssetPath("newsletter-prefer/newsletter-education.svg"),checked:!1,id:2},{title:"Hello Health Community Feed",description:"Covering the latest happenings in the health field, including medical breakthroughs, policies, and disease outbreaks",icon:A.C.getAssetPath("newsletter-prefer/newsletter-community.svg"),checked:!1,id:3}];(a=i||(i={})).Pregnant="pregnant",a.Parenting="parenting",(r||(r={})).Option="option",(l=s||(s={})).Button="button",l.Checkbox="checkbox",(o=c||(c={})).ShowTool="showTool",o.ShowPremiumModal="showPremiumModal",o.ShowOptionBanner="showOptionBanner",o.Hide="hide";let el={pregnancy:i.Pregnant,parenting:i.Parenting},eo={[i.Pregnant]:"pregnant",[i.Parenting]:"parent"},FLOW=(e,t)=>({[i.Pregnant]:{action:c.ShowOptionBanner,props:{heading:e("pnBanner.pregnancy.heading"),description:e("pnBanner.pregnancy.desc"),styleType:s.Button,thumbnail:{desktop:A.C.getAssetPath("newsletter/banner-option-pregnancy-desktop.png"),mobile:A.C.getAssetPath("newsletter/banner-option-pregnancy-mobile.png")},buttonProps:{variant:"white",styles:e=>({minWidth:(0,u.h)(80),[e.fn.largerThan("sm")]:{minWidth:(0,u.h)(120)}})},items:[{label:e("switchBtn.yes"),value:"yes",tracking:{dataEventCategory:"Focused Audience",dataEventAction:"Are you navigating the world of pregnancy - Yes Click",dataEventLabel:t}},{label:e("switchBtn.no"),value:"no",tracking:{dataEventCategory:"Focused Audience",dataEventAction:"Are you navigating the world of pregnancy - No Click",dataEventLabel:t}}]},submitHandler:{yes:{action:c.ShowTool,props:{value:_.H.DUE_DATE}},no:{action:c.ShowPremiumModal}}},[i.Parenting]:{action:c.ShowOptionBanner,props:{heading:e("pnBanner.parenting.heading"),description:e("pnBanner.parenting.desc"),thumbnail:{desktop:A.C.getAssetPath("newsletter/banner-option-parenting-desktop.png"),mobile:A.C.getAssetPath("newsletter/banner-option-parenting-mobile.png")},hideDescOnMobile:!0,styleType:s.Checkbox,items:[{label:e("pnBanner.toddlers"),value:"todders"},{label:e("pnBanner.teenager"),value:"teenager"}],submitBtnTracking:{dataEventCategory:"Focused Audience",dataEventAction:"What is the age range of your kids Click",dataEventLabel:t}},submitHandler:{todders:{action:c.ShowTool,props:{value:_.H.BABY_VACCINE}},teenager:{action:c.ShowOptionBanner,props:{styleType:s.Button,heading:e("pnBanner.teenager.heading"),description:e("pnBanner.parenting.desc"),thumbnail:{desktop:A.C.getAssetPath("newsletter/banner-option-parenting-desktop.png"),mobile:A.C.getAssetPath("newsletter/banner-option-parenting-mobile.png")},buttonProps:{variant:"white"},items:[{label:e("childCard.boy"),value:"teenager.boy",tracking:{dataEventCategory:"Focused Audience",dataEventAction:"What is the gender of your kids - Boy Click",dataEventLabel:t}},{label:e("childCard.girl"),value:"teenager.girl",tracking:{dataEventCategory:"Focused Audience",dataEventAction:"What is the gender of your kids - Girl Click",dataEventLabel:t}}]}},"teenager.boy":{action:c.ShowPremiumModal},"teenager.girl":{action:c.ShowTool,activeTool:N.t.HPV,props:{value:N.t.HPV}},"todders|teenager":{action:c.ShowOptionBanner,props:{styleType:s.Button,heading:e("pnBanner.both.heading"),description:e("pnBanner.both.desc"),thumbnail:{desktop:A.C.getAssetPath("newsletter/banner-option-parenting-desktop.png"),mobile:A.C.getAssetPath("newsletter/banner-option-parenting-mobile.png")},hideDescOnMobile:!0,buttonProps:{variant:"secondary"},styles:e=>({wrapper:{[e.fn.smallerThan("sm")]:{flexDirection:"column"}},button:{background:e.colors.blue[0]}}),items:[{label:e("pnBanner.vaccine.btnLabel"),activeTool:_.H.BABY_VACCINE,isLink:!0,tracking:{dataEventCategory:"Focused Audience",dataEventAction:"Experience our tools for parent - Baby Vaccine Click",dataEventLabel:t}},{label:e("pnBanner.pn.btnLabel"),value:"todders|teenager.showPN",isPNBtn:!0,tracking:{dataEventCategory:"Focused Audience",dataEventAction:"Experience our tools for parent - Premium Newsletter Click",dataEventLabel:t}}]}},"todders|teenager.showPN":{action:c.ShowOptionBanner,props:{styleType:s.Button,heading:e("pnBanner.both.heading"),description:e("pnBanner.both.desc"),thumbnail:{desktop:A.C.getAssetPath("newsletter/banner-option-parenting-desktop.png"),mobile:A.C.getAssetPath("newsletter/banner-option-parenting-mobile.png")},hideDescOnMobile:!0,buttonProps:{variant:"secondary"},styles:e=>({wrapper:{[e.fn.smallerThan("sm")]:{flexDirection:"column"}},button:{background:e.colors.blue[0]}}),items:[{label:e("pnBanner.vaccine.btnLabel"),activeTool:_.H.BABY_VACCINE,isLink:!0,tracking:{dataEventCategory:"Focused Audience",dataEventAction:"Experience our tools for parent - Baby Vaccine Click",dataEventLabel:t}}]}}}}}),TOOL_BANNERS_PROPS=e=>({[_.H.DUE_DATE]:{heading:e("pnBanner.dueDateTool.heading"),description:e("pnBanner.dueDateTool.desc"),btnLabel:e("pnBanner.caclNow"),value:_.H.DUE_DATE,dataEventAction:"Try our Due Date Calculator Click"},[_.H.BABY_VACCINE]:{heading:e("pnBanner.vaccination.heading"),description:e("pnBanner.vaccination.desc"),btnLabel:e("pnBanner.caclNow"),value:_.H.BABY_VACCINE,dataEventAction:"Try our Baby Vaccine Scheduler Click"},[_.H.BABY_GROWTH]:{heading:"Baby Growth",description:e("pnBanner.vaccination.desc"),btnLabel:e("pnBanner.caclNow"),value:_.H.BABY_GROWTH},[N.t.HPV]:{heading:e("pnBanner.hpv.heading"),description:e("pnBanner.hpv.desc"),thumbnail:{desktop:A.C.getAssetPath("newsletter/banner-option-hpv-desktop.png"),mobile:A.C.getAssetPath("newsletter/banner-option-hpv-mobile.png")},isRiskScreener:!0,btnLabel:e("pnBanner.checkNow"),value:N.t.HPV,hideDescOnMobile:!0,dataEventAction:"Keep safe from HPV virus Click"}}),ei=(0,d.createContext)({}),PnBannerEle=e=>{var t=(0,P._)(e,[]);let{locale:n}=(0,R.u)(),{type:a,isMobile:l,currentUrl:o,isMarketing:i,isLoggedIn:r,setShouldAcquisitionModalOpen:s}=(0,d.useContext)(ei),{triggerLogin:c}=(0,k.u)();return d.createElement(p.W,Object.assign({mih:{base:144,md:160},fluid:!0,p:0,sx:{borderRadius:4,cursor:"pointer"},onClick:()=>(0,P.a)(void 0,void 0,void 0,function*(){let e=i?(0,x.g)(n)+"/dang-ky-nhan-tin/":`${window.location.href}?source=acquisition`;r?null==s||s():(0,k.I)(n)?c({returnUrl:i?e:void 0,source:i?void 0:"acquisition"}):window.location.href=`${(0,x.a)(n)}/?returnUrl=${encodeURIComponent(e)}`}),"data-event-category":"Newsletter","data-event-action":"Banner Click","data-event-label":o,className:"pointer-event-child-none"},t),d.createElement(L.I,{src:i?A.C.getAssetPath(`newsletter/${l?"Mobile":"Desktop"}_Marketing.png`):A.C.getAssetPath(`newsletter/${l?"Mobile":"Desktop"}_${a}.png`),style:{maxWidth:"100%"},alt:"newsletter banner"}))},er={GET_NEWSLETTER_CATEGORIES:"api/v1/categories?site={website_url}",POST_SUBSCRIPTION:"api/v1/subscription?site={website_url}",GET_SUBSCRIPTION_CATEGORIES:"api/v1/categories?site={website_url}"};var es=(0,m.k)(e=>({root:{},wrapper:{[e.fn.smallerThan("sm")]:{width:"70%"}},button:{[e.fn.smallerThan("sm")]:{height:"auto",minHeight:(0,u.h)(32),padding:`${(0,u.h)(6)} ${(0,u.h)(16)}`,textAlign:"center",width:"100%"}},buttonLabel:{whiteSpace:"normal"}}));let BannerLayout=({heading:e,description:t,thumbnail:n={desktop:"",mobile:""},hideDescOnMobile:a,children:l})=>{let{isMobile:o,minHeight:i}=(0,d.useContext)(ei);return d.createElement(h.x,{sx:()=>({borderRadius:(0,u.h)(8),background:"linear-gradient(180deg, #FAFDFF 0%, #E3F2FF 100%)"})},d.createElement(h.x,{sx:e=>({minHeight:(0,u.h)(i),borderRadius:"inherit",background:`url(${o?n.mobile:n.desktop})`,backgroundPosition:"center right",backgroundRepeat:"no-repeat",backgroundSize:"contain",padding:`${(0,u.h)(24)} ${(0,u.h)(16)}`,display:"flex",flexDirection:"column",justifyContent:"center",[e.fn.largerThan("sm")]:{padding:`${(0,u.h)(22)} ${(0,u.h)(32)}`}})},d.createElement(g.K,{spacing:(0,u.h)(16)},d.createElement(g.K,{spacing:(0,u.h)(4),sx:e=>({maxWidth:"60%",[e.fn.largerThan("sm")]:{maxWidth:"70%"}})},e&&d.createElement(V.H,{tag:"h4"},e),!(a&&o)&&t&&d.createElement(G.T,{size:"p4"},t)),d.createElement(h.x,null,l))))},BannerWithOptions=e=>{let{styleType:t=s.Button,items:n=[],buttonProps:a,styles:l,submitBtnTracking:o}=e,{classes:i}=es(void 0,{name:"PremiumBannerWithOptions",styles:l}),{t:r,locale:c}=(0,R.u)(),{surveyType:p,articleId:m,handleClickOption:g,hasPremiumBanner:v,source:T,isMobile:C,setShowPNModal:b}=(0,d.useContext)(ei),I=(0,d.useMemo)(()=>v?n:n.filter(e=>!e.isPNBtn).filter(Boolean),[n]),{getHealthToolLink:y}=(0,F.u)(c),O=(0,w.c)({initialValues:{bannerOptions:[]}}),saveStep=e=>(0,P.a)(void 0,void 0,void 0,function*(){return yield(0,S.b)((0,S.e)(U.yy.HEALTH_TOOL.CREATE,{_locale:c,type:eo[p]}),"POST",{headers:{"Content-Type":"application/json"},data:{value:e,article:m,source:T}})}),A=(0,d.useCallback)(()=>d.createElement(E.k,{gap:(0,u.h)(8),className:i.wrapper},I.map((e,t)=>d.createElement(h.x,{key:String(t),component:e.isLink?"a":"div",href:e.isRiskScreener?`https://${z.v[c]}/bot/${N.n[c][e.activeTool]}/`:e.isLink?y(e.activeTool):void 0},d.createElement(Y.B,Object.assign({className:i.button,classNames:{label:i.buttonLabel},size:"sm"},e.tracking,a,{onClick:()=>{e.isLink||(e.isPNBtn&&b(!0),saveStep(e.value),g(e.value))}}),e.label)))),[I,O]),f=(0,d.useCallback)(()=>d.createElement(E.k,null,d.createElement(E.k,{align:"center",gap:(0,u.h)(24),sx:e=>({background:"white",borderRadius:(0,u.h)(8),padding:(0,u.h)(4),[e.fn.largerThan("sm")]:{paddingLeft:(0,u.h)(16)}})},d.createElement(B.d.Group,Object.assign({},O.getInputProps("bannerOptions",{type:"checkbox"})),d.createElement(E.k,{gap:(0,u.h)(16)},I.map((e,t)=>d.createElement(B.d,{key:String(t),value:e.value,label:e.label,styles:{label:{cursor:"pointer"}}})))),d.createElement(Y.B,Object.assign({size:"sm"},o,a,{disabled:0===O.getInputProps("bannerOptions").value.length,leftIcon:C?d.createElement(j.I.ArrowRightTail,{size:18,useCurrentColor:!0}):void 0,onClick:()=>{let e=O.getInputProps("bannerOptions").value;saveStep(e.join("|")),g(e.join("|"))},styles:e=>({root:{[e.fn.smallerThan("sm")]:{width:(0,u.h)(38),minWidth:"auto",padding:0}}})}),!C&&r("pnBanner.submit")))),[I,O]);return d.createElement(BannerLayout,Object.assign({},e),t===s.Button?A():t===s.Checkbox?f():null)},ToolBanner=e=>{var t,n;let{t:a}=(0,R.u)(),{heading:l,description:o,thumbnail:i,btnLabel:r,value:s,isRiskScreener:c,hideDescOnMobile:p,dataEventAction:m}=e,{locale:h}=(0,R.u)(),{isMobile:v}=(0,d.useContext)(ei),{getHealthToolLink:T,allTools:C}=(0,F.u)(h),b=(0,d.useMemo)(()=>{let e=c?`https://${W.y?"":"discover."}${z.v[h]}/bot/${N.n[h][s]}`:T(s);return d.createElement("a",{href:e},d.createElement(Y.B,{size:"sm","data-event-category":"Focused Audience","data-event-action":m,"data-event-label":e},r||a("pnBanner.caclNow")))},[C]);return"mainBanner"==(c?"mainBanner":"toolBanner")?d.createElement(BannerLayout,Object.assign({},Object.assign(Object.assign({},e),{thumbnail:e.thumbnail})),b):d.createElement(E.k,{gap:(0,u.h)(7),align:"center",justify:"space-between",sx:e=>({borderRadius:(0,u.h)(8),background:e.colors.blue[0],minHeight:(0,u.h)(180),padding:`${(0,u.h)(24)} ${(0,u.h)(16)}`,[e.fn.largerThan("sm")]:{padding:`${(0,u.h)(34)} ${(0,u.h)(32)}`}})},d.createElement(g.K,{spacing:(0,u.h)(12)},d.createElement(g.K,{spacing:(0,u.h)(4)},l&&d.createElement(V.H,{tag:"h4"},l),!(v&&p)&&o&&d.createElement(G.T,{size:"p4"},o)),d.createElement(E.k,{gap:(0,u.h)(8),sx:{button:{minWidth:(0,u.h)(120)}}},b)),d.createElement(E.k,{align:"center",justify:"center",sx:e=>({width:(0,u.h)(96),height:(0,u.h)(96),borderRadius:"50%",background:"white",flexShrink:0,[e.fn.largerThan("sm")]:{width:(0,u.h)(112),height:(0,u.h)(112)},img:{maxWidth:(0,u.h)(64),[e.fn.largerThan("sm")]:{maxWidth:(0,u.h)(73)}}})},d.createElement("img",{alt:"health-tool-icon",src:i||(null===(n=null===(t=C.filter(e=>e.template===s))||void 0===t?void 0:t[0])||void 0===n?void 0:n.icon)||_.a[s]||"",loading:"lazy"})))},HandlerBanner=()=>{var e,t,n;let{t:a}=(0,R.u)(),{state:l,Outside:o}=(0,d.useContext)(ei);return(null==l?void 0:l.action)===c.ShowTool?d.createElement(o,null,TOOL_BANNERS_PROPS(a)[null===(e=null==l?void 0:l.props)||void 0===e?void 0:e.value]?d.createElement(ToolBanner,Object.assign({},TOOL_BANNERS_PROPS(a)[null===(t=null==l?void 0:l.props)||void 0===t?void 0:t.value],{value:null===(n=null==l?void 0:l.props)||void 0===n?void 0:n.value})):null):(null==l?void 0:l.action)===c.ShowOptionBanner?d.createElement(o,null,d.createElement(BannerWithOptions,Object.assign({},null==l?void 0:l.props))):null},SideBannerModal=e=>{var{isMobile:t,children:n,desktopBanner:a=A.C.getAssetPath("friso/onboarding-banner.jpg"),mobileBanner:l=A.C.getAssetPath("friso/onboarding-banner-mobile.jpg"),modalRatio:o={width:937,height:536},mobileBannerRatio:i={width:750,height:480},desktopBannerRatio:r={width:420,height:536},closeProps:s}=e,c=(0,P._)(e,["isMobile","children","desktopBanner","mobileBanner","modalRatio","mobileBannerRatio","desktopBannerRatio","closeProps"]);let{width:p,height:m}=(0,H.n)(),g=p*i.height/i.width,[E,T]=(0,d.useState)(!1);return d.createElement(q.M,Object.assign({styles:e=>({header:{display:"none"},content:{flex:"auto",background:"transparent",[e.fn.smallerThan("sm")]:{maxHeight:"100%",height:"100%",position:"relative",borderRadius:0},[e.fn.largerThan("sm")]:{maxWidth:(0,u.h)(o.width),width:"100%",height:"100%",maxHeight:(0,u.h)(o.height),boxShadow:"none"}},body:{padding:0,width:"100%",height:"100%",[e.fn.largerThan("sm")]:{display:"flex",alignItems:"center"}},inner:{padding:0,[e.fn.smallerThan("sm")]:{display:"flex",alignItems:"flex-end"}}})},c),t?d.createElement(h.x,{sx:{position:"relative",width:"100%",height:"100%"},onTouchStart:()=>T(!0)},d.createElement(h.x,{className:"mobile-template",sx:{position:"absolute",height:`${(E?1:((m<=667?190:265)+g+74)/m)*100}%`,left:0,bottom:0,right:0,transition:"height 0.4s ease"}},d.createElement(h.x,{className:"mobile-template-wrapper",sx:{height:"100%",backgroundColor:"white",borderTopLeftRadius:E?0:(0,u.h)(12),borderTopRightRadius:E?0:(0,u.h)(12)}},d.createElement(h.x,{sx:{height:"100%",background:`url(${l})`,backgroundSize:"contain",backgroundRepeat:"no-repeat",backgroundPosition:"top center",overflowY:"auto",borderRadius:"inherit"}},(0,Z.i)(l)&&d.createElement("video",{loop:!0,muted:!0,autoPlay:!0,style:{width:"100%",position:"absolute",top:0,left:0}},d.createElement("source",{src:l})),d.createElement(Y.B,Object.assign({variant:"white",leftIcon:d.createElement($.Z,null),sx:{position:"absolute",right:0,top:0,zIndex:1,padding:(0,u.h)(10)}},s,{onClick:()=>null==c?void 0:c.onClose()})),d.createElement(v.o,{ratio:(null==i?void 0:i.width)/(null==i?void 0:i.height),w:"100%"}),d.createElement(h.x,{className:"inner",sx:{padding:`${(0,u.h)(28)} ${(0,u.h)(16)} ${(0,u.h)(16)}`,background:"white",position:"relative"}},n))))):d.createElement(v.o,{className:"desktop-template",ratio:o.width/o.height,w:"100%",sx:{position:"relative","& > div":{justifyContent:"flex-end"}}},d.createElement(h.x,{sx:{width:"100%",height:"100%",justifyContent:"flex-end",alignItems:"stretch",borderRadius:(0,u.h)(8),background:"white",boxShadow:"0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 2.25rem 1.75rem -0.4375rem, rgba(0, 0, 0, 0.04) 0 1.0625rem 1.0625rem -0.4375rem"}},(0,Z.i)(a)?d.createElement("video",{loop:!0,muted:!0,autoPlay:!0,style:{borderTopLeftRadius:(0,u.h)(8),borderBottomLeftRadius:(0,u.h)(8),height:"100%",display:"block"}},d.createElement("source",{src:a})):d.createElement("img",{alt:"",src:a,loading:"lazy",style:{borderTopLeftRadius:(0,u.h)(8),borderBottomLeftRadius:(0,u.h)(8),height:"100%",display:"block"}}),d.createElement(h.x,{sx:{position:"relative",height:"100%",width:`${(o.width-r.width)/o.width*100}%`}},d.createElement(Y.B,Object.assign({variant:"white",leftIcon:d.createElement($.Z,null)},s,{onClick:()=>null==c?void 0:c.onClose(),sx:{position:"absolute",right:0,top:0,backgroundColor:"transparent"}})),d.createElement(h.x,{className:"side-banner-modal-container",sx:{height:"100%",padding:`${(0,u.h)(40)} ${(0,u.h)(24)} 0`}},n)))))},ec={UPDATE_SUBSCRIPTION:"user/subscription"},ed=(0,d.createContext)({}),_NormalTopic=e=>{var{value:t,name:n}=e,a=(0,P._)(e,["value","name"]);return d.createElement(B.g,Object.assign({value:t,withIcon:!0},a,{buttonProps:{styles:()=>({leftIcon:{marginRight:(0,u.h)(6)},root:{paddingLeft:(0,u.h)(10),paddingRight:(0,u.h)(10)}})}}),n)},TopicSection=({topicsGroup:e,onTopicChange:t,isBlock:n=!1,selectedTopics:a=[],inputProps:l,labelProps:o,maxSelect:i=5,hasScroll:r,readonly:s})=>{let{action:{pushNotifications:c}}=(0,d.useContext)(S.T),u=J()(e.map(e=>e.topics||[])),{t:p}=(0,R.u)(),[m,v]=(0,d.useState)([]);(0,d.useEffect)(()=>{v(a)},[a.length]),(0,d.useEffect)(()=>{null==t||t(m)},[m]);let onValueChange=e=>{if(e.length>5){c({type:"danger",title:p("pnTopicSection.maxSelectError.title",{maxSelect:i}),message:p("pnTopicSection.maxSelectError.desc")});return}s||v(()=>u.filter(t=>e.some(e=>t.catId===e)))};return d.createElement(g.K,{spacing:12},e.map((e,t)=>d.createElement(g.K,{key:String(t),spacing:12},e.label&&d.createElement(G.T,Object.assign({size:"s5",color:"gray.4",weight:"semiBold"},o),e.label),r?d.createElement(T.x,{w:"100%",offsetScrollbars:!0,scrollbarSize:4,p:16,m:-16,styles:{viewport:{margin:-16,padding:16}}},d.createElement(h.x,{w:800},d.createElement(C.A.Group,Object.assign({value:m.map(e=>e.catId),multiple:!0},l,{onChange:onValueChange}),d.createElement(E.k,{gap:8,wrap:"wrap"},e.topics.map(t=>d.createElement(_NormalTopic,Object.assign({key:t.catId,value:t.catId,name:t.localName,isBlock:n},e.tracking))))))):d.createElement(C.A.Group,Object.assign({value:m.map(e=>e.catId),multiple:!0},l,{onChange:onValueChange}),d.createElement(E.k,{gap:8,wrap:"wrap"},e.topics.map(t=>t.catId?d.createElement(_NormalTopic,Object.assign({key:t.catId,value:t.catId,name:t.localName,isBlock:n},e.tracking)):d.isValidElement(t.component)?t.component:null))))))},Layout=e=>{var{heading:t,children:n,stickyActions:a}=e,l=(0,P._)(e,["heading","children","stickyActions"]);let{isMobile:o}=(0,d.useContext)(ed),i=d.createElement(g.K,{spacing:(0,u.h)(24),sx:{height:"100%"}},d.createElement(V.H,{tag:"h4",style:{textAlign:"center"}},t),d.createElement(h.x,null,n));return d.createElement(h.x,{sx:e=>({[e.fn.largerThan("sm")]:{position:"relative",height:"100%"}})},o?i:d.createElement(T.x,Object.assign({className:"layout-body",h:a?"calc(100% - 90px)":"100%"},l),i),a&&d.createElement(E.k,{gap:(0,u.h)(8),sx:e=>({position:"absolute",left:0,right:0,bottom:0,padding:(0,u.h)(16),button:{flexGrow:1},justifyContent:"center",[e.fn.largerThan("sm")]:{padding:`${(0,u.h)(24)} 0`}})},a))},MainForm=()=>{let{t:e,locale:t}=(0,R.u)(),{data:{userInfo:n},action:{pushNotifications:a}}=(0,d.useContext)(S.T),l=null==n?void 0:n.id,{currentUrl:o,isMobile:i,pnSuggestCategory:r=[],nextStep:s,formValues:c,setFormValues:p,onSubmit:m,submitLoading:h,selectCategory:E,setCategoryLibs:v,setSelectCategory:T,maxSelectCategory:C}=(0,d.useContext)(ed),b=r.map(e=>e.catId),I=(0,w.c)({validate:{name:(0,M.U)(e("healthToolPNModal.mainForm.requireName"))},initialValues:Object.assign(Object.assign({},c),{fitnessTopics:b})}),[y,O]=(0,d.useState)([]),[A,f]=(0,d.useState)([]);(0,d.useEffect)(()=>{(0,P.a)(void 0,void 0,void 0,function*(){var e;try{let n=yield(0,S.b)((0,S.f)(er.GET_SUBSCRIPTION_CATEGORIES,{_locale:t}),"get"),a=((null===(e=null==n?void 0:n.data)||void 0===e?void 0:e.subscription)||[]).filter(e=>!b.includes(e.catId));O(r),f(a),v([...r,...a])}catch(e){console.log(e)}})},[]),(0,d.useEffect)(()=>{l&&I.setFieldValue("name",(null==n?void 0:n.name)||"")},[l]);let onMore=()=>{""!==I.getInputProps("name").value?(p(I.getTransformedValues()),s()):I.validateField("name")},_=(0,d.useMemo)(()=>d.createElement(Y.B,{variant:"tertiary",dataEventCategory:"Newsletter",dataEventAction:"More Category Click",dataEventLabel:o,leftIcon:d.createElement(K.Z,{size:16,color:"currentColor"}),onClick:onMore,styles:e=>({root:{borderRadius:(0,u.h)(6),padding:"2px 15px",height:(0,u.h)(40)},label:{fontSize:(0,u.h)(14),fontWeight:400,[e.fn.smallerThan("sm")]:{fontSize:(0,u.h)(12),lineHeight:(0,u.h)(16),height:(0,u.h)(40)}},leftIcon:{marginRight:"5px"}})},d.createElement(G.T,{size:i?"p3":"p4"},e("home.seeMore"))),[I]);return(0,d.useEffect)(()=>{I.setFieldValue("fitnessTopics",E.map(e=>e.catId))},[E]),d.createElement("form",{style:{height:"100%"},onSubmit:I.onSubmit(t=>{if(0===E.length)return a({type:"danger",title:e("newsletter.error.minTitle"),message:e("newsletter.error.minCotennt")}),!1;p(t),null==m||m(t.name)})},d.createElement(Layout,{heading:e("healthToolPNModal.heading"),stickyActions:d.createElement(d.Fragment,null,d.createElement(Y.B,{fullWidth:!0,type:"submit",dataEventCategory:"Newsletter",dataEventAction:"Register Click",dataEventLabel:o,loading:h,sx:{maxWidth:(0,u.h)(240)}},e("healthToolPNModal.register")))},d.createElement(g.K,{spacing:(0,u.h)(16)},d.createElement(B.I,Object.assign({label:e("newsletter.welcome.description")},I.getInputProps("name"))),d.createElement(TopicSection,{topicsGroup:[...0===r.length&&0===A.length?[{topics:[{component:_}]}]:[],...r.length>0?[{label:e("healthToolPNModal.mainForm.tailorTopicsHeading"),topics:[...r,...0===A.length?[{component:_}]:[]]}]:[],...A.length>0?[{label:e("healthToolPNModal.findMore.chooseFav"),topics:[...A,...A.length>0?[{component:_}]:[]]}]:[]],selectedTopics:[...y],labelProps:{size:i?"p3":"p4",color:"gray.6"},onTopicChange:T,maxSelect:C}))))},eu=(0,d.forwardRef)(function(e,t){var{label:n}=e,a=(0,P._)(e,["label"]);return d.createElement("div",Object.assign({ref:t},a),d.createElement(b.Z,{noWrap:!0},d.createElement("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none"},d.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.97887 8.15493C2.97887 5.29627 5.29627 2.97887 8.15493 2.97887C11.0136 2.97887 13.331 5.29627 13.331 8.15493C13.331 11.0136 11.0136 13.331 8.15493 13.331C5.29627 13.331 2.97887 11.0136 2.97887 8.15493ZM8.15493 1.5C4.47951 1.5 1.5 4.47951 1.5 8.15493C1.5 11.8303 4.47951 14.8099 8.15493 14.8099C9.72615 14.8099 11.1702 14.2653 12.3086 13.3547L15.2376 16.2837C15.5264 16.5725 15.9946 16.5725 16.2833 16.2837C16.5721 15.9949 16.5721 15.5267 16.2833 15.238L13.3544 12.3091C14.2652 11.1705 14.8099 9.72634 14.8099 8.15493C14.8099 4.47951 11.8303 1.5 8.15493 1.5Z",fill:"#8C8C8C"})),d.createElement(G.T,{size:"p3"},n)))}),ep=(0,d.forwardRef)(function(e,t){var{label:n}=e,a=(0,P._)(e,["label"]);return d.createElement("div",Object.assign({ref:t},a),d.createElement(G.T,{size:"p3"},n))}),HistorySection=({history:e,onDelete:t})=>d.createElement(E.k,{wrap:"wrap",gap:8},et()(e,"catId").map(e=>d.createElement(I.C,{key:e.catId,rightSection:d.createElement("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",onClick:()=>null==t?void 0:t(e)},d.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.5 9C1.5 4.8525 4.8525 1.5 9 1.5C13.1475 1.5 16.5 4.8525 16.5 9C16.5 13.1475 13.1475 16.5 9 16.5C4.8525 16.5 1.5 13.1475 1.5 9ZM11.1677 12.2248C11.4602 12.5173 11.9327 12.5173 12.2252 12.2248C12.5101 11.9323 12.5101 11.4523 12.2252 11.1673L10.0577 8.99979L12.2252 6.83229C12.5177 6.53979 12.5177 6.0673 12.2252 5.7748C11.9327 5.4823 11.4602 5.4823 11.1677 5.7748L9.00015 7.9423L6.83265 5.7748C6.54015 5.4823 6.06765 5.4823 5.77515 5.7748C5.63471 5.91492 5.55579 6.10516 5.55579 6.30354C5.55579 6.50193 5.63471 6.69217 5.77515 6.83229L7.94265 8.99979L5.77515 11.1673C5.63471 11.3074 5.55579 11.4977 5.55579 11.696C5.55579 11.8944 5.63471 12.0847 5.77515 12.2248C6.06765 12.5173 6.54015 12.5173 6.83265 12.2248L9.00015 10.0573L11.1677 12.2248Z",fill:"#8C8C8C"})),styles:{root:{height:32,background:"#ffffff",padding:"5px 12px",border:`1px solid ${D.t.neutral[4]}`,borderRadius:32,textTransform:"unset"},rightSection:{height:18,cursor:"pointer"}}},d.createElement(G.T,{size:"p4"},e.localName)))),RecentlyViewedSection=({topics:e,onTopicChange:t,isBlock:n=!1,selectedTopics:a,labelProps:l,maxSelect:o=5})=>{let{action:{pushNotifications:i}}=(0,d.useContext)(S.T),[r,s]=(0,d.useState)([]),{t:c}=(0,R.u)();return((0,d.useEffect)(()=>{s(a)},[a.length]),(0,d.useEffect)(()=>{t(r)},[r]),e&&0!==e.length)?d.createElement(g.K,{spacing:12,px:16,mx:-16},d.createElement(G.T,Object.assign({size:"s5",color:"gray.4",weight:"semiBold"},l),c("pnTopicSection.recentView")),d.createElement(C.A.Group,{value:r.map(e=>e.catId),onChange:t=>{if(n&&r.lengthe.filter(e=>t.some(t=>e.catId===t)))},multiple:!0},d.createElement(E.k,{gap:8,wrap:"wrap"},e.map((e,t)=>d.createElement(_NormalTopic,{key:t,value:e.catId,name:e.localName,isBlock:n}))))):null},_TopicSlide=e=>{var{topic:t,active:n,onClick:a}=e,l=(0,P._)(e,["topic","active","onClick"]);return d.createElement(h.x,Object.assign({sx:e=>({position:"relative",cursor:"pointer",padding:2,borderRadius:8,boxShadow:"0px 4px 8px rgba(0, 0, 0, 0.04), 0px 0px 2px rgba(0, 0, 0, 0.06), 0px 0px 1px rgba(0, 0, 0, 0.04)",minHeight:(0,u.h)(130),[e.fn.largerThan("sm")]:{minHeight:(0,u.h)(138)}}),onClick:()=>a(t,n)},l),n&&d.createElement(h.x,{id:"test",sx:{position:"absolute",top:2,right:2,width:20,height:20,zIndex:1}},d.createElement("svg",{id:"test",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},d.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.66699 9.99984C1.66699 5.39984 5.40033 1.6665 10.0003 1.6665C14.6003 1.6665 18.3337 5.39984 18.3337 9.99984C18.3337 14.5998 14.6003 18.3332 10.0003 18.3332C5.40033 18.3332 1.66699 14.5998 1.66699 9.99984ZM4.75066 10.5827L7.74232 13.5744C8.06732 13.8994 8.60066 13.8994 8.91732 13.5744L15.2423 7.2494C15.5673 6.9244 15.5673 6.3994 15.2423 6.0744C14.9173 5.7494 14.3923 5.7494 14.0673 6.0744L8.33399 11.8077L5.92566 9.40773C5.60066 9.08273 5.07566 9.08273 4.75066 9.40773C4.59461 9.56342 4.50692 9.7748 4.50692 9.99523C4.50692 10.2157 4.59461 10.427 4.75066 10.5827Z",fill:"#2D87F3"}),d.createElement("path",{d:"M7.74224 13.5772L4.75057 10.5856C4.59453 10.4299 4.50684 10.2185 4.50684 9.99808C4.50684 9.77765 4.59453 9.56627 4.75057 9.41058C5.07557 9.08558 5.60057 9.08558 5.92557 9.41058L8.33391 11.8106L14.0672 6.07725C14.3922 5.75225 14.9172 5.75225 15.2422 6.07725C15.5672 6.40225 15.5672 6.92725 15.2422 7.25225L8.91724 13.5772C8.60057 13.9022 8.06724 13.9022 7.74224 13.5772Z",fill:"white"}))),d.createElement(h.x,{sx:{borderRadius:"8px"}},d.createElement(B.c,{ratio:1.5,mb:10,sx:e=>({background:e.colors.neutral[0]})},d.createElement(h.x,null,d.createElement("img",{src:t.guid||"",alt:"cat",loading:"lazy",style:{maxHeight:"63px"}})))),d.createElement(G.T,{size:"p4",ta:"center",px:6,sx:{display:"-webkit-box","-webkit-line-clamp":"2","-webkit-box-orient":"vertical",overflow:"hidden"}},t.localName||""))},TrendingCarousel=({topics:e,selectedTopics:t=[],onTopicChange:n,isBlock:a=!1,labelProps:l,pushNotifications:o,maxSelect:i=5})=>{let{t:r}=(0,R.u)(),[s,c]=(0,d.useState)([]),onSelect=(e,t)=>{if(t)c(t=>t.filter(t=>t.catId!==e.catId));else{if(a){o({type:"danger",title:r("pnTopicSection.maxSelectError.title",{maxSelect:i}),message:r("pnTopicSection.maxSelectError.desc")});return}c(t=>[...t,e])}};(0,d.useEffect)(()=>{c(t)},[t.length]),(0,d.useEffect)(()=>{n(s)},[s]);let[u,p]=(0,d.useState)(!1),[m,v]=(0,d.useState)(0),[C,b]=(0,d.useState)(0),I=(0,d.useRef)(null),handleMouseUp=()=>{p(!1)};return d.createElement(g.K,{spacing:10},d.createElement(E.k,{justify:"space-between",align:"center",w:"100%"},d.createElement(G.T,Object.assign({size:"s5",color:"gray.4",weight:"semiBold",span:!0},l),r("pnTopicSection.trending"))),d.createElement(h.x,null,d.createElement(T.x,{type:"always",w:"100%",offsetScrollbars:!0,scrollbarSize:4,px:4,viewportRef:I,viewportProps:{onMouseDown:e=>{e.preventDefault(),I.current&&(p(!0),v(e.pageX-I.current.offsetLeft),b(I.current.scrollLeft))},onMouseUp:handleMouseUp,onMouseLeave:handleMouseUp,onMouseMove:e=>{if(e.preventDefault(),!u||!I.current)return;let t=e.pageX-I.current.offsetLeft;I.current.scrollLeft=C-(t-m)*2}},styles:{viewport:{paddingBottom:16}}},d.createElement(h.x,{w:{base:112*e.length+8*(e.length-1)+10}},d.createElement(E.k,{gap:8},e.map((e,t)=>d.createElement(_TopicSlide,{key:t,topic:e,onClick:onSelect,active:s.some(t=>t.catId===e.catId),w:{base:112}})))))))},PremiumTopicSelect=e=>{var{isLoggedIn:t,maxSelect:n=5,values:a=[],labelProps:l,onChange:o}=e,i=(0,P._)(e,["isLoggedIn","maxSelect","values","labelProps","onChange"]);let{action:{pushNotifications:r}}=(0,d.useContext)(S.T),[s,c]=(0,d.useState)(""),{t:p,locale:m}=(0,R.u)(),E=(0,d.useRef)(null),[v,T]=(0,d.useState)([]),[C,b]=(0,d.useState)([]),[I,O]=(0,d.useState)([]),[A,f]=(0,d.useState)([]),[_,N]=(0,d.useState)(null),[k,L]=(0,d.useState)([]);(0,d.useEffect)(()=>{(0,P.a)(void 0,void 0,void 0,function*(){var e,t;let n=yield(0,S.b)((0,S.f)(er.GET_NEWSLETTER_CATEGORIES,{_locale:m}),"get"),l=(null===(e=null==n?void 0:n.data)||void 0===e?void 0:e.interested)||[],o=(null===(t=null==n?void 0:n.data)||void 0===t?void 0:t.trending)||[],i=et()([...l,...o],"catId"),r=i.map(e=>Object.assign(Object.assign({},e),{value:e.catId||"",label:e.localName||""}));if(L(r||[]),N((null==n?void 0:n.data)||null),a.length>0){let e=l.filter(e=>a.includes(e.catId)).map(e=>Object.assign(Object.assign({},e),{template:"interested"})),t=o.filter(e=>a.includes(e.catId)).map(e=>Object.assign(Object.assign({},e),{template:"trending"}));f(e),b(t)}})},[t]);let x=(0,d.useMemo)(()=>et()([...v,...C,...A,...I],"catId"),[v,C,A,I]),[w,M]=(0,d.useState)(!1);(0,d.useEffect)(()=>{x.length>=n?M(!0):M(!1),null==o||o(x)},[x]);let onValueChange=e=>(0,P.a)(void 0,void 0,void 0,function*(){var t;let a="default";if(w)r({type:"danger",title:p("pnTopicSection.maxSelectError.title",{maxSelect:n}),message:p("pnTopicSection.maxSelectError.desc")});else{let n=[{key:"trending",array:null==_?void 0:_.trending},{key:"recently",array:null==_?void 0:_.recently},{key:"interested",array:null==_?void 0:_.interested}],l=n.find(t=>{var n;return null===(n=t.array)||void 0===n?void 0:n.some(t=>t.catId===e[0])});({trending:b,recently:O,interested:f,default:T})[a=(null==l?void 0:l.key)||"default"](t=>[...t,...k.filter(t=>e.some(e=>t.catId===e))].map(e=>Object.assign(Object.assign({},e),{template:a}))),null===(t=E.current)||void 0===t||t.blur()}return null});return d.createElement(g.K,Object.assign({spacing:(0,u.h)(16)},i),d.createElement(g.K,{spacing:(0,u.h)(8)},d.createElement(G.T,{size:"p3"},p("pnTopicSection.maxSelectError.detail",{max:n,maxTopic:x.length})),d.createElement(y.NU,{ref:E,maxSelectedValues:3,styles:{wrapper:{overflow:"initial !important"},separator:{padding:16},separatorLabel:{fontWeight:600,fontSize:12,lineHeight:"18px",textTransform:"uppercase",color:D.t.gray[4],"&::after":{display:"none"}},searchInput:{fontSize:"inherit"},input:{paddingRight:16}},nothingFound:d.createElement(G.T,{size:"s4",color:"gray.6"},p("pnTopicSection.notFound")),itemComponent:""===s?eu:ep,size:"lg",placeholder:p("pnTopicSection.plsEnterFavTopics"),data:k,onSearchChange:c,searchValue:s,icon:d.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},d.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.97183 10.8732C3.97183 7.0617 7.0617 3.97183 10.8732 3.97183C14.6848 3.97183 17.7746 7.0617 17.7746 10.8732C17.7746 14.6848 14.6848 17.7746 10.8732 17.7746C7.0617 17.7746 3.97183 14.6848 3.97183 10.8732ZM10.8732 2C5.97268 2 2 5.97268 2 10.8732C2 15.7738 5.97268 19.7465 10.8732 19.7465C12.9682 19.7465 14.8936 19.0205 16.4115 17.8063L20.3168 21.7116C20.7018 22.0966 21.3261 22.0966 21.7111 21.7116C22.0961 21.3266 22.0961 20.7023 21.7111 20.3173L17.8059 16.4121C19.0203 14.894 19.7465 12.9684 19.7465 10.8732C19.7465 5.97268 15.7738 2 10.8732 2Z",fill:"#595959"})),rightSection:d.createElement(d.Fragment,null),zIndex:500,searchable:!0,withinPortal:!0,onChange:e=>onValueChange(e),value:[]}),x&&x.length>0&&d.createElement(HistorySection,{history:x,onDelete:e=>{let t={trending:b,recently:O,interested:f,default:T},n=t[e.template]||t.default;n(t=>{let n=[...t],a=n.findIndex(t=>t.catId===e.catId);return n.splice(a,1),n})}})),d.createElement(h.x,{sx:e=>({position:"relative",height:(0,u.h)(175),[e.fn.largerThan("sm")]:{height:(0,u.h)(190)}})},d.createElement(h.x,{sx:{position:"absolute",top:0,right:0,left:0}},d.createElement(TrendingCarousel,{topics:((null==_?void 0:_.trending)||[]).map(e=>Object.assign(Object.assign({},e),{template:"trending"})),selectedTopics:C,onTopicChange:b,isBlock:w,labelProps:l}))),d.createElement(RecentlyViewedSection,{topics:((null==_?void 0:_.recently)||[]).map(e=>Object.assign(Object.assign({},e),{template:"recently"})),selectedTopics:I,onTopicChange:O,isBlock:w,labelProps:l}),d.createElement(TopicSection,{labelProps:l,topicsGroup:[{label:p("pnTopicSection.ppAlsoInterested"),topics:((null==_?void 0:_.interested)||[]).map(e=>Object.assign(Object.assign({},e),{template:"interested"}))}],selectedTopics:A,onTopicChange:f,isBlock:w}))},MoreTopics=()=>{let{t:e}=(0,R.u)(),{action:{pushNotifications:t}}=(0,d.useContext)(S.T),{prevStep:n,formValues:a,submitLoading:l,onSubmit:o,selectCategory:i,maxSelectCategory:r,setSelectCategory:s,currentUrl:c,isLoggedIn:p}=(0,d.useContext)(ed);return d.createElement(Layout,{heading:e("newsletter.topic.title"),type:"always",styles:{root:{paddingRight:(0,u.h)(25)}},stickyActions:d.createElement(d.Fragment,null,d.createElement(Y.B,{fullWidth:!0,variant:"secondary",dataEventCategory:"Newsletter",dataEventAction:"Back Click",dataEventLabel:c,onClick:n},e("healthToolPNModal.back")),d.createElement(Y.B,{fullWidth:!0,type:"submit",dataEventCategory:"Newsletter",dataEventAction:"Next Click",dataEventLabel:c,onClick:()=>{if(0===i.length)return t({type:"danger",title:e("newsletter.error.minTitle"),message:e("newsletter.error.minCotennt")}),!1;null==o||o(a.name)},loading:l},e("healthToolPNModal.next")))},d.createElement(PremiumTopicSelect,{isLoggedIn:p,maxSelect:r,values:a.fitnessTopics,onChange:s,labelProps:{size:"s5",sx:{textTransform:"uppercase"}}}))},Result=()=>{let{t:e}=(0,R.u)(),{close:t,selectCategory:n,onRegisterSuccess:a,currentUrl:l,finishLabelOnResult:o,disclaimerText:i}=(0,d.useContext)(ed);return(0,d.useEffect)(()=>()=>{setTimeout(()=>{null==a||a()},400)},[]),d.createElement(Layout,{heading:e("healthToolPNModal.heading"),stickyActions:d.createElement(Y.B,{fullWidth:!0,sx:{maxWidth:(0,u.h)(300)},dataEventCategory:"Newsletter",dataEventAction:"Continue Reading Click",dataEventLabel:l,onClick:()=>{t()}},o||e("healthToolPNModal.finish"))},d.createElement(g.K,null,d.createElement(E.k,{gap:(0,u.h)(8),sx:e=>({background:e.colors.green[0],border:`1px solid ${e.colors.green[1]}`,borderRadius:(0,u.h)(8),padding:(0,u.h)(8)})},d.createElement(h.x,null,d.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},d.createElement("path",{d:"M9.99984 18.3334C14.6022 18.3334 18.3332 14.6025 18.3332 10.0001C18.3332 5.39771 14.6022 1.66675 9.99984 1.66675C5.39746 1.66675 1.6665 5.39771 1.6665 10.0001C1.6665 14.6025 5.39746 18.3334 9.99984 18.3334Z",fill:"#00B16A"}),d.createElement("path",{d:"M9.58558 12.6674C9.22944 12.668 8.87668 12.5983 8.54752 12.4623C8.21835 12.3264 7.91925 12.1268 7.66732 11.8751L6.68587 10.8931C6.55607 10.7587 6.48424 10.5787 6.48587 10.3919C6.48749 10.2051 6.56243 10.0263 6.69455 9.89422C6.82667 9.7621 7.00539 9.68716 7.19222 9.68554C7.37906 9.68391 7.55906 9.75574 7.69345 9.88554L8.67491 10.8675C8.79344 10.986 8.93415 11.08 9.08902 11.1442C9.24389 11.2083 9.40987 11.2413 9.5775 11.2413C9.74513 11.2413 9.91111 11.2083 10.066 11.1442C10.2208 11.08 10.3616 10.986 10.4801 10.8675L16.7033 5.24335C16.8443 5.12184 17.0272 5.06032 17.213 5.07195C17.3987 5.08358 17.5726 5.16744 17.6973 5.30558C17.8221 5.44373 17.8878 5.6252 17.8805 5.81118C17.8731 5.99717 17.7933 6.17291 17.6581 6.30081L11.4592 11.8998C11.2128 12.1448 10.9205 12.3387 10.5989 12.4705C10.2774 12.6022 9.93304 12.6692 9.58558 12.6674Z",fill:"white"}))),d.createElement(G.T,{size:"p3"},i||e("pnModal.disclaimer"))),d.createElement(V.H,{tag:"h5"},e("healthToolPNModal.yourPre")),n.length>0&&d.createElement(TopicSection,{topicsGroup:[{label:"",topics:n}],selectedTopics:n,readonly:!0})))},PremiumNewsletterModal=({isMobile:e,isLoggedIn:t,pnSuggestCategory:n=[],acquisitionInfo:a,currentUrl:l,opened:o,close:i,finishLabelOnResult:r,onRegisterSuccess:s,disclaimerText:c})=>{let{t:u,locale:p}=(0,R.u)(),{action:{pushNotifications:m}}=(0,d.useContext)(S.T),h=A.C.getAssetPath("premiumNewsletter/side-banner-desktop.jpg"),g=A.C.getAssetPath("premiumNewsletter/side-banner-mobile.jpg"),[E,v]=(0,d.useState)([]),[T,C]=(0,d.useState)([]),[b,I]=(0,d.useState)(0),[y,_]=(0,d.useState)({name:"",fitnessTopics:[]}),[N,k]=(0,d.useState)(!1),lastStep=()=>I(2),L=(0,d.useCallback)(e=>(0,P.a)(void 0,void 0,void 0,function*(){try{k(!0),yield(0,S.b)((0,S.f)(er.POST_SUBSCRIPTION,{website_url:(0,S.h)(p)}),"post",{headers:{"Content-Type":"application/json"},method:"POST",data:{ga_client_id:Q.Z.get(f.G),client_ip:window.clientIP||"",user_info:Object.assign(Object.assign({},a.userInfo),{name:e||y.name,type_subscription:1}),domain:z.v[p||en.L.Vietnam],category:T,perferred:a.preferredTopics.map(({id:e})=>({id:e}))}}),k(!1),yield(0,S.b)((0,S.i)(ec.UPDATE_SUBSCRIPTION),"post",{headers:{"Content-Type":"application/json"},method:"PUT",data:{subscription:1}}),lastStep()}catch(e){console.log({err:e}),k(!1),m({title:u("notification.comment.somethingWrong"),message:"",type:"danger"})}}),[y,T]);return(0,d.useEffect)(()=>{[h,g].forEach(e=>{let t=new Image;t.src=e})},[]),d.createElement(ed.Provider,{value:{currentUrl:l,isMobile:e,isLoggedIn:t,opened:o,close:i,pnSuggestCategory:n,nextStep:()=>I(e=>e<3?e+1:e),prevStep:()=>I(e=>e>0?e-1:e),lastStep,categoryLibs:E,setCategoryLibs:v,selectCategory:T,setSelectCategory:C,formValues:y,setFormValues:_,maxSelectCategory:5,submitLoading:N,onSubmit:L,onRegisterSuccess:s,finishLabelOnResult:r,disclaimerText:c}},d.createElement(SideBannerModal,{isMobile:e,desktopBanner:A.C.getAssetPath("premiumNewsletter/side-banner-desktop.jpg"),mobileBanner:A.C.getAssetPath("premiumNewsletter/side-banner-mobile.jpg"),modalRatio:{width:960,height:588},desktopBannerRatio:{width:384,height:588},opened:o,onClose:i,zIndex:305,closeProps:{dataEventCategory:"Newsletter",dataEventAction:"Close Click",dataEventLabel:l}},d.createElement(O.v,{active:b,onStepClick:I,styles:{root:{height:"100%"},content:{padding:0,height:"100%",width:"100%"},steps:{display:"none"}}},d.createElement(O.v.Step,null,d.createElement(MainForm,null)),d.createElement(O.v.Step,null,d.createElement(MoreTopics,null)),d.createElement(O.v.Step,null,d.createElement(Result,null)))))},SurveyBanner=()=>{let{locale:e}=(0,R.u)(),{isMobile:t,isLoggedIn:n,currentUrl:a,acquisitionInfo:l,categoryIds:o,state:i,setState:r,settings:s,submitHandler:u,subcribeHealthStatus:p,showPNModal:m,setShowPNModal:h,setIsBack:g}=(0,d.useContext)(ei),[E,v]=(0,d.useState)([]),[T,C]=(0,d.useState)(m);(0,d.useEffect)(()=>{(0,P.a)(void 0,void 0,void 0,function*(){var t,n;let a=yield(0,S.b)((0,S.f)(er.GET_NEWSLETTER_CATEGORIES,{_locale:e}),"get"),l=(null===(t=null==a?void 0:a.data)||void 0===t?void 0:t.interested)||[],i=(null===(n=null==a?void 0:a.data)||void 0===n?void 0:n.trending)||[],r=[...l,...i];v(r.filter(e=>o.includes(Number(e.catId))))})},[]);let b=(0,d.useRef)([]);return(0,d.useEffect)(()=>{let e=(null==p?void 0:p.value)||"",t=e.split("|").filter(Boolean),n=e;b.current.push(p),t.length>1&&(null!==b.current[0]&&g(!0),Object.keys(u).map(e=>{let a=e.split("|");if(t.length===a.length){let l=0;t.map(e=>{a.includes(String(e))&&(l+=1)}),l===t.length&&(n=e)}}));let a=t.length>0?u[n]:s;r(a)},[p]),(0,d.useEffect)(()=>{C(m)},[m]),(null==i?void 0:i.action)!==c.Hide?d.createElement(d.Fragment,null,d.createElement(HandlerBanner,Object.assign({},s.props)),d.createElement(PremiumNewsletterModal,{acquisitionInfo:l,isMobile:t,isLoggedIn:n,currentUrl:a,pnSuggestCategory:E,opened:T,close:()=>{var e;C(!1),h(!1),setTimeout(()=>{var e;(null===(e=i.actionParams)||void 0===e?void 0:e.hideBannerWhenClose)&&r({action:c.Hide})},400),(null===(e=i.actionParams)||void 0===e?void 0:e.hideBannerWhenClose)&&r({action:c.Hide})},onRegisterSuccess:()=>C(!1)})):null},SurveyOrPremiumBanner=({type:e,articleId:t=0,categoryIds:n=[],isMarketing:a,isSurveyType:l,hasPremiumBanner:o,currentUrl:i,isMobile:r,subcribeHealthStatus:s,setShouldAcquisitionModalOpen:u,onValueChange:p,source:m="discover",Wrapper:g})=>{let{t:E}=(0,R.u)(),{data:{userInfo:v}}=(0,d.useContext)(S.T),T=!!(null==v?void 0:v.id),[C,b]=(0,d.useState)(null),[I,y]=(0,d.useState)(),[O,A]=(0,d.useState)(""),[f,_]=(0,d.useState)(!1),[N,P]=(0,d.useState)(!1),k=(0,d.useMemo)(()=>el[e],[]),L=FLOW(E,i)[k],x=null==L?void 0:L.submitHandler,getMappingMultiValue=e=>{let t="",n=e.split("|");return 1===n.length?e:(Object.keys(x).map(e=>{let a=e.split("|");if(n.length===a.length){let l=0;n.map(e=>{a.includes(String(e))&&(l+=1)}),l===n.length&&(t=e)}}),t)},w=g||h.x,handleShowPNBannerFlowWhenLogin=()=>o&&(null==v?void 0:v.subscription)!==1?d.createElement(PnBannerEle,null):null;return(0,d.useEffect)(()=>{T&&b({userInfo:v,preferredTopics:ea,healthTopics:[]})},[T]),d.createElement(ei.Provider,{value:{settings:L,submitHandler:x,type:e,surveyType:k,value:O,setValue:A,isMobile:r,isLoggedIn:T,isMarketing:a,hasPremiumBanner:o,currentUrl:i,acquisitionInfo:C,categoryIds:n,subcribeHealthStatus:s,articleId:t,onValueChange:p,state:I,setState:y,handleClickOption:e=>{let t=getMappingMultiValue(e);if(t){let n=x[t];n.action===c.ShowPremiumModal?o?(_(!0),y(Object.assign(Object.assign({},I),{actionParams:{hideBannerWhenClose:n.action===c.ShowPremiumModal}}))):(y({action:c.Hide}),null==p||p(e)):(y(n),null==p||p(e))}},showPNModal:f,setShowPNModal:_,source:m,Outside:w,isBack:N,setIsBack:P,minHeight:180,setShouldAcquisitionModalOpen:u}},void 0!==s?T?l&&L?(()=>{let e=x[(null==s?void 0:s.value)||""];return(null==e?void 0:e.action)===c.ShowPremiumModal?handleShowPNBannerFlowWhenLogin():d.createElement(SurveyBanner,null)})():handleShowPNBannerFlowWhenLogin():o?d.createElement(PnBannerEle,null):null:null)}},"4FpA":function(e,t,n){n.d(t,{u:function(){return a}});var a=(0,n("/npG").k)(e=>({root:{},inner:{},content:{borderRadius:16},header:{borderBottom:`1px solid ${e.colors.neutral[1]}`,marginRight:0,marginBottom:0,padding:"12px"},overlay:{},title:{fontSize:16,fontWeight:700,lineHeight:1.5},body:{},close:{cursor:"pointer",width:"unset",height:"unset",svg:{width:"24px !important",height:"24px !important"}}}))},"O+TW":function(e,t,n){n.d(t,{L:function(){return LabelSorting}});var a,l,o=n("q1tI"),i=n("rrs9"),r=n("Y8gQ"),s=n("LgGC");(a=l||(l={})).latest="latest",a.oldest="oldest",a.popular="popular";let LabelSorting=({onChange:e,className:t,style:n,leftLabel:a,rightLabel:l,color:c,value:d,choices:u})=>{let{data:{env:{isMarryBaby:p}}}=(0,o.useContext)(r.T);return o.createElement(s.L,{label:a,rightLabel:o.createElement(s.b,{position:"bottom",align:"end",data:{isShowheader:!1,type:"list",list:u.map(t=>({label:t.label,onClick:()=>e&&e(String(t.value)),selected:t.value===d,className:"bold-item"}))},toggleButtonContent:o.createElement("div",{style:{display:"flex"}},o.createElement(i.T,{style:{display:"flex",alignItems:"center",fontWeight:"normal",marginRight:12},size:"p4"},l),o.createElement("img",{src:p?"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none'%3e%3cpath stroke='%233E3F58' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m8 14 4 4 4-4M16 10l-4-4-4 4'/%3e%3c/svg%3e":"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none'%3e%3cpath fill='%238C8C8C' d='M4.5 7h7a.46.46 0 0 0 .351-.165.56.56 0 0 0 .149-.39q0-.226-.149-.391l-3.5-3.89a.458.458 0 0 0-.703 0l-3.5 3.89a.56.56 0 0 0-.148.39q0 .226.148.391Q4.298 7 4.5 7M11.5 9h-7a.46.46 0 0 0-.352.165.56.56 0 0 0-.148.39q0 .226.148.391l3.5 3.889a.46.46 0 0 0 .703 0l3.5-3.889a.56.56 0 0 0 .149-.39q0-.226-.149-.391A.46.46 0 0 0 11.5 9'/%3e%3c/svg%3e",style:{width:16,height:16,alignSelf:"center"},loading:"lazy"}))}),color:"gray",className:t,style:n})}},bx2x:function(e,t,n){n.d(t,{c:function(){return convertLocalizedStringToNumber},f:function(){return formatPhoneNumber},l:function(){return localizeNumberFormat}});var a=n("A9bs");let localizeNumberFormat=(e,t,n=2)=>Intl.NumberFormat(void 0,{maximumFractionDigits:n}).format(e),convertLocalizedStringToNumber=e=>Number(e.replace(/,/gi,".")),formatPhoneNumber=e=>{try{let t=(0,a.parsePhoneNumber)(e,"VN");if(!(null==t?void 0:t.number))throw Error("Invalid number");return(0,a.formatPhoneNumber)(t.number)}catch(t){return console.log("\uD83D\uDE80 ~ formatPhoneNumber ~ error:",t),e}}},xubg:function(e,t,n){n.d(t,{L:function(){return i}});var a=n("q1tI"),l=n("UbCi"),o=n("UpS/");let i=(0,a.memo)(({type:e,width:t,height:n,isLight:i})=>{let r=(0,a.useMemo)(()=>{switch(e){case"hellobacsi":return{width:t||"107px",height:n||"24px",src:l.C.getAssetPath("logo/hellobacsi.png"),srcLight:l.C.getAssetPath("logo/hellobacsi-light.png")};case"hellodoktor":return{width:t||"127px",height:n||"24px",src:l.C.getAssetPath("logo/hellodoktor.png")};case"hellosehat":return{width:t||"121px",height:n||"27px",src:l.C.getAssetPath("logo/hellosehat.png")};case"hellojiankang":return{width:t||"87px",height:n||"24px",src:l.C.getAssetPath("logo/hellojiankang.png")};case"hellohealth":return{width:t||"123px",height:n||"24px",src:l.C.getAssetPath("logo/hellohealth.png")};case"hellotogether":return{width:t||"150px",height:n||"24px",src:l.C.getAssetPath("logo/hellotogether.png")};case"hellocare":return{width:t||"99px",height:n||"24px",src:l.C.getAssetPath("logo/hellocare.png")};case"hellodoctor":return{width:t||"127px",height:n||"24px",src:l.C.getAssetPath("logo/hellodoctor.png")};case"hellokrupet":return{width:t||"101px",height:n||"24px",src:l.C.getAssetPath("logo/hellokrupet.png")};case"hellosayarwon":return{width:t||"111px",height:n||"24px",src:l.C.getAssetPath("logo/hellosayarwon.png")};case"helloyishi":return{width:t||"89px",height:n||"24px",src:l.C.getAssetPath("logo/helloyishi.png")};case"hellokhunmor":return{width:t||"123px",height:n||"24px",src:l.C.getAssetPath("logo/hellokhunmor.png")};case"helloswasthya":return{width:t||"105px",height:n||"24px",src:l.C.getAssetPath("logo/helloswasthya.png")};case"logomark":return{width:t||"60px",height:n||"57px",src:l.C.getAssetPath("logo/logomark.png")};case"marryBaby":return{width:t||"145px",height:n||"28px",src:l.C.getAssetPath("logo/marrybaby.png")};default:return null}},[e,t,n]),{src:s,width:c,height:d,srcLight:u}=r||{};return a.createElement(o.I,{alt:`${e} logo`,className:"main-logo-icon",src:i&&u||s,style:{width:c,height:d}})})}}]);