(self.webpackChunkhhgDiscoverV1=self.webpackChunkhhgDiscoverV1||[]).push([[3510],{"8RA9":function(e,t,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/expert/[...slug]",function(){return i("QOMn")}])},pqUD:function(e,t,i){"use strict";i.d(t,{B:function(){return NextImageWrap}});var l=i("BGKE");i("+OUp");var n=i("aG+K"),a=i.n(n),o=i("E0Fa");let NextImageWrap=e=>{let{style:t,...i}=e;return(0,l.Y)(a(),{loader:o.A,style:{objectFit:"cover",...t},...i})}},p2qK:function(e,t,i){"use strict";i.d(t,{$c:function(){return d},Cp:function(){return c},Q4:function(){return s},QZ:function(){return r}});var l=i("rBCA"),n=i("YHQg"),a=i("iBNF"),o=i("CL9C");let r=(0,l.A)("div",{target:"eikl4v60"})("position:relative;width:100%;height:100%;img{border-radius:50%;object-fit:cover;}.badge{position:absolute;right:0;bottom:0;display:flex;}"),d=(0,l.A)("div",{target:"eikl4v61"})("width:12px;height:12px;"),c=(0,l.A)(n.d,{target:"eikl4v62"})(".author .poster p span:not(.author-name){font-weight:400;}.author .poster p span:not(.name){color:",a.w.colors.gray800,";}.author-name{font-weight:600;}&.has-description-line-clamp .inner-content .text{display:-webkit-box !important;overflow:hidden !important;-webkit-box-orient:vertical !important;-webkit-line-clamp:var(--description-line-clamp) !important;}&[data-banner-ratio][data-direction='horizontal'] .banner{align-self:flex-start;flex-shrink:0;}&[data-banner-ratio][data-direction='vertical'] .banner{width:100%;flex-shrink:0;height:auto !important;max-height:none !important;min-height:unset !important;}&[data-banner-ratio] .banner a{position:absolute;inset:0;display:block;height:auto;}.footer > div,.footer .author{align-items:flex-start;}.footer .author .poster{display:flex;align-items:center;min-height:24px;line-height:1.3;}&[data-size='lg'] .footer .author .poster{",o.M.tdUp,"{min-height:32px;}}"),s=(0,l.A)("div",{target:"eikl4v63"})("width:100%;height:100%;position:relative;")},q8dt:function(e,t,i){"use strict";i.r(t),i.d(t,{ArticleCardWrapper:function(){return ArticleCardWrapper}});var l=i("BGKE"),n=i("+OUp"),a=i("D7zM"),o=i("ns0B"),r=i.n(o),d=i("/zZM"),c=i.n(d),s=i("JOt+"),u=i("LSb+"),p=i("bPK4"),v=i("Slg3"),h=i("pqUD"),m=i("HMs9"),lazyLoadWrapper=e=>{let{...t}=e;return(0,l.Y)(m.Ay,{once:!0,offset:1200,...t})},g=i("/sjq"),f=i("a5L+"),x=i("AG8C"),y=i("bGjd"),Y=i("9brV"),b=i("iZSu"),C=i("VnHZ"),w=i("2Zdi"),k=i("EYOB"),T=i("p2qK"),D=i("CWxQ");let getHorizontalBannerWidth=(e,t)=>"md"===e?t?100:200:"sm"===e?100:void 0,getBannerRatioStyle=e=>{let{bannerRatio:t,direction:i,size:l,isMobile:n,styleBanner:a}=e;if(!t)return a;let o="horizontal"===i?getHorizontalBannerWidth(l,n):void 0;return{position:"relative",overflow:"hidden",flexShrink:0,aspectRatio:t,height:"auto",maxHeight:"none",minHeight:"unset",..."horizontal"===i?{alignSelf:"flex-start",...o?{width:o,minWidth:o,maxWidth:o}:{}}:{width:"100%"},...a}},ArticleCardWrapper=e=>{var t,i,o,d,m,F,E,_,S,A,N,M,B;let{article:z,avatarImg:P,authorName:I,authorLink:L,title:H,text:R,disabledBadge:U=!0,className:K,uploadTime:O,isLazyLoad:W,bannerImageWrapProps:G,authorImageWrapProps:q,banner:j,hideBookmark:Q,dataEventCategoryForReviewer:V,dataEventActionForReviewer:X,bannerRatio:$=1.5,descriptionLineClamp:Z,style:J,...ee}=e,{state:{userInfo:et},dispatch:ei}=(0,n.useContext)(C.B),el=(0,f.a)(),{isLargeMobile:en}=(0,y.lm)(),{bookmarks:ea=[]}=et||{},[eo,er]=(0,n.useState)(-1!==ea.indexOf(z.id)),[ed,ec]=(0,n.useState)(!1),{locale:es=b.ne.PhilippinesEnglish}=(0,x.$)(),eu=(0,w.QS)({article:z,locale:es,version:"short"}),bookmarkArticle=e=>{if(null==et?void 0:et.id)er(e=>!e),eo?(async()=>{let{_status:t}=await (0,s.callApiNew)(u.PATHS.SSO.DELETE_BOOKMARK,{method:"DELETE",data:{host_name:g.domainLocales[es],post_ids:[e]}},"sso");1===t&&ei({type:D.Q.REMOVE_BOOKMARKS,payload:{bookmarks:[e],bookmarkId:e}})})():(async()=>{let{_status:t,_data:i}=await (0,s.callApiNew)(u.PATHS.SSO.CREATE_BOOKMARK,{method:"POST",data:{host_name:g.domainLocales[es],post_ids:[e]}},"sso");1===t&&ei({type:D.Q.ADD_BOOKMARKS,payload:{bookmarks:[e],bookmarkId:e,isFirstTimeBookmark:i.first_time_bookmark}})})();else{let t=window.location.href,i=encodeURIComponent("".concat(t).concat(t.includes("?")?"&":"?","source=bookmark,").concat(e));Y.dX?a.u.getState().triggerLogin({source:"bookmark,".concat(e)}):window.location.href=Y.a5?"".concat(Y.a5,"?returnUrl=").concat(i):t}};(0,n.useEffect)(()=>{ec(!Q)},[]),(0,n.useEffect)(()=>{er(-1!==ea.indexOf(z.id))},[ea.length]);let ep=eu.avatar_permalink?c():"span",ev=eu.avatar_permalink?(0,p.oN)(es,!0)+eu.avatar_permalink:"",{styleBanner:eh,direction:em,size:eg,...ef}=ee,ex=(0,n.useMemo)(()=>getBannerRatioStyle({bannerRatio:$,direction:em,size:eg,isMobile:el,styleBanner:eh}),[$,em,el,eg,eh]),ey=(0,l.Y)(T.Cp,{isPremium:es!==b.ne.Vietnam&&z.isPremium,isMobile:el,className:[K,Z?"has-description-line-clamp":""].filter(Boolean).join(" "),style:{...Z?{"--description-line-clamp":Z}:{},...J},"data-banner-ratio":$||void 0,dataEventCategoryForBookmark:"Bookmark",dataEventActionForBookmark:"Click",dataEventLabelForBookmark:"https://".concat(g.domainLocales[es]).concat(z.permalinkDecode),dataEventLabelForTitle:"https://".concat(g.domainLocales[es]).concat(z.permalinkDecode),dataEventLabelForCategory:"https://".concat(g.domainLocales[es]).concat((null===(t=z.category)||void 0===t?void 0:t.permalinkDecode)||(null===(i=z.category)||void 0===i?void 0:i.permalink)||""),dataEventLabelForBanner:"https://".concat(g.domainLocales[es]).concat(z.permalinkDecode),hasAffiliate:z.hasAffiliate,articleLink:z.permalink,categoryLink:(null===(o=z.category)||void 0===o?void 0:o.permalink)||"#",categoryName:(null===(d=z.category)||void 0===d?void 0:d.displayName)||(null===(m=z.category)||void 0===m?void 0:m.name)||(null===(E=z.categories)||void 0===E?void 0:null===(F=E[0])||void 0===F?void 0:F.displayName)||(null===(S=z.categories)||void 0===S?void 0:null===(_=S[0])||void 0===_?void 0:_.name)||"",banner:j||(0,l.Y)(h.B,{src:(el?z.featureImageMobile:z.featureImage)||z.featureImage||Y.I6,fill:!0,alt:z.postName,...G}),specialty:(null===(A=z.expert)||void 0===A?void 0:A.specialty)||(null===(N=z.author)||void 0===N?void 0:N.specialty),...ef,direction:em,styleBanner:ex,uploadTime:(0,k.F)(O||z.modifiedTime,es)||O||z.modifiedTime,title:r()(H||z.postTitle||z.postName||"")||"",text:void 0!==R?r()(R||""):z.excerpt||z.description||z.postContent?r()(z.excerpt||z.description||(null===(M=z.postContent)||void 0===M?void 0:M.split("\r\n")[0])||""):"",avatarImg:(0,l.Y)(ep,{href:eu.avatar_permalink,className:"pointer-event-child-none","data-event-category":V,"data-event-action":X,"data-event-label":ev,prefetch:!1,children:(0,l.FD)(T.QZ,{children:[(0,l.Y)(T.Q4,{children:(0,l.Y)(h.B,{className:"avatar",src:eu.avatar||Y.Iu,alt:eu.avatar_alt,..."lg"!==eg||el||en?{width:24,height:24}:{width:32,height:32},placeholder:void 0,blurDataURL:void 0,...q})}),!U&&eu.indicator&&(0,l.Y)(T.$c,{className:"badge",children:(0,l.Y)("img",{src:eu.indicator,loading:"lazy",alt:"badge",width:12,height:12})})]})}),authorName:(0,l.FD)("span",{"data-event-category":V,"data-event-action":X,"data-event-label":ev,className:"pointer-event-child-none",children:[(0,l.Y)(v.F,{...eu,formatOptionsProps:{expert_display_name:{href:""}}}),"\xa0"]}),authorLink:eu.avatar_permalink,isBookmarkDisplayed:ed,isBookmark:eo,onBookmark:()=>bookmarkArticle(z.id),styleLabel:{color:(null===(B=z.category)||void 0===B?void 0:B.textColor)||"#008C50",...ef.styleLabel}});return W?(0,l.Y)(lazyLoadWrapper,{placeholder:(0,l.FD)("div",{style:{opacity:0,pointerEvents:"none",height:180},children:[(0,l.Y)("a",{href:eu.avatar_permalink,children:eu.avatar_permalink}),(0,l.Y)("a",{href:eu.avatar_permalink,children:(0,l.Y)("img",{"data-src":eu.avatar,alt:eu.avatar_alt})}),(0,l.Y)("div",{children:(0,l.Y)(v.F,{...eu,formatOptionsProps:{expert_display_name:{"data-event-category":V,"data-event-action":X,"data-event-label":ev}}})}),(0,l.FD)("a",{href:ef.articleLink,children:[(0,l.Y)("img",{"data-src":z.featureImage,alt:z.postTitle}),(0,l.Y)("img",{"data-src":z.featureImageMobile,alt:z.postTitle}),(0,l.Y)("img",{"data-src":z.featureImageMobileXs,alt:z.postTitle}),(0,l.Y)("div",{children:ef.categoryName}),(0,l.Y)("div",{children:O}),(0,l.Y)("div",{children:H||""}),(0,l.Y)("div",{children:R||""})]})]}),children:ey}):ey}},qsKI:function(e,t,i){"use strict";i.d(t,{j:function(){return g}});var l=i("BGKE"),n=i("+OUp"),a=i("Wbba"),o=i("P+HS"),r=i("iBNF"),d=i("vH4S"),c=i("dDsW"),s=i("rBCA");let u=(0,s.A)("div",{target:"eqih9ue0"})("display:block;border:1px solid #e4e8ec;border-radius:8px;margin-bottom:16px;"),p=(0,s.A)("button",{target:"eqih9ue1"})("padding:16px;text-transform:uppercase;cursor:pointer;width:100%;text-align:start;"),v=(0,s.A)("div",{target:"eqih9ue2"})("overflow:hidden;height:0;transition:height 0.25s ease;background-color:white;&[data-expand='true']{height:var(--expand-height);}.source-wrapper{white-space:pre-wrap;padding:0px 1rem 1rem;word-break:break-word;line-height:1.55;a{display:inline-block;color:",r.w.colors.primaryBase,";font-weight:normal;text-decoration:none;word-break:break-word;}}"),h=a.C.getAssetPath("source-opened.svg"),m=a.C.getAssetPath("source-closed.svg"),g=(0,n.memo)(e=>{let{className:t,sources:i="",title:a,children:s}=e,{formatMessage:g}=(0,c.A)(),[f,x]=(0,n.useState)(!1),y=(0,n.useRef)(null),[Y,b]=(0,n.useState)(100);return(0,n.useEffect)(()=>{setTimeout(()=>{y.current&&b(y.current.clientHeight)},100)},[Array.isArray(i)?i.join("|"):i]),(0,l.FD)(u,{className:t,children:[(0,l.Y)(p,{onClick:()=>{(0,n.startTransition)(()=>{x(e=>!e)})},tabIndex:0,children:(0,l.FD)(o.Text,{size:"c2",weight:"bold",color:r.w.colors.gray600,children:[(0,l.Y)("img",{src:f?m:h,alt:"",loading:"lazy",style:{verticalAlign:"bottom",marginRight:8}}),a||g({id:"articlePage.sourceCount"})]})}),(0,l.Y)(v,{"data-expand":f,style:{"--expand-height":"".concat(Y,"px")},children:(0,l.Y)("div",{className:"source-wrapper",ref:y,children:s||(0,l.FD)(l.FK,{children:[Array.isArray(i)&&(0,l.Y)(d.List,{styles:{itemIcon:{marginRight:0}},spacing:12,icon:(0,l.Y)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:(0,l.Y)("circle",{cx:"12",cy:"12",r:"2",fill:"#2D87F3"})}),children:i.map(e=>(0,l.Y)(d.List.Item,{children:(0,l.Y)("div",{dangerouslySetInnerHTML:{__html:e}})},e))}),"string"==typeof i&&(0,l.Y)("div",{dangerouslySetInnerHTML:{__html:i}})]})})})]})},(e,t)=>{let i=Array.isArray(e.sources)?e.sources.join("|"):e.sources,l=Array.isArray(t.sources)?t.sources.join("|"):t.sources;return i===l&&e.title===t.title})},cHEW:function(e,t,i){"use strict";i.d(t,{MY:function(){return _CardPost},Un:function(){return n}});var l,n,a=i("BGKE"),o=i("+OUp"),r=i("g9Qi"),d=i("62F8"),c=i("Bell"),s=i("P+HS"),u=i("D7zM"),p=i("r+qb"),v=i("220y"),h=i("vH4S"),m=i("dDsW"),g=i("JOt+"),f=i("LSb+"),x=i("bPK4"),y=i("AG8C"),Y=i("9brV"),b=i("VnHZ");(l=n||(n={}))[l.post=1]="post",l[l.reply=2]="reply";let C=(0,h.createStyles)(()=>({postContent:{position:"relative"},linkOverlay:{position:"absolute",top:0,left:0,right:0,bottom:0}})),_CardPostItem=e=>{var t,i;let{post:l,comment:n,children:w,hasExpertComment:k,...T}=e,{state:{isLoggedIn:D}}=(0,o.useContext)(b.B),{locale:F}=(0,y.$)(),E=(0,h.useMantineTheme)(),{classes:_}=C(),{formatMessage:S}=(0,m.A)(),A=null==l?void 0:l.community,N=null==l?void 0:l.author,M=(null==N?void 0:N.name)||(null==N?void 0:N.username)||"",B=(null==N?void 0:N.username)||(null==N?void 0:N.name)||"",z=null==N?void 0:N.avatar,P=(null==l?void 0:l.isAnonymous)?void 0:null==N?void 0:N.role,I={isAnonymous:null==l?void 0:l.isAnonymous,avatar:z,name:M,username:B,email:null==N?void 0:N.email,timeText:null==l?void 0:l.createdTime,time:(null==l?void 0:l.scheduleDate)||(null==l?void 0:l.createdDate),community:A,className:"post-author with-popover",role:P,title:null==N?void 0:N.title,userId:null==N?void 0:N.id,expertId:String(null==l?void 0:null===(t=l.author)||void 0===t?void 0:t.partnerId),"data-testid":"name"},[L,H]=(0,o.useState)(l.liked),[R,U]=(0,o.useState)(!1),handleLikeClick=async()=>{D?(await (0,g.callApiNew)(f.PATHS.TOGETHER.POST_TOGETHER_LIKE_POST,{params:{postId:l.id}},"together"),H(e=>!e),U(!0)):Y.dX?u.u.getState().triggerLogin({returnUrl:"".concat((0,x.oN)(F),"/community/on-boarding/?returnUrl=").concat(encodeURIComponent("/".concat(null==A?void 0:A.slug,"/").concat(null==l?void 0:l.slug,"?postAction=like")))}):window.open((0,x.gQ)("".concat((0,x.oN)(F),"/community/on-boarding/?returnUrl=").concat(encodeURIComponent("/".concat(null==A?void 0:A.slug,"/").concat(null==l?void 0:l.slug,"?postAction=like")))))},[K,O]=(0,o.useState)(null==l?void 0:l.likesCount),W="/community/".concat(A.slug,"/").concat(null==l?void 0:l.slug),onClickPost=(e,t)=>{null==e||e.preventDefault(),D?window.open("".concat(W).concat(t)):Y.dX?u.u.getState().triggerLogin({returnUrl:"".concat((0,x.oN)(F),"/community/on-boarding/?returnUrl=").concat(encodeURIComponent("/".concat(A.slug,"/").concat(null==l?void 0:l.slug).concat(t)))}):window.location.href=(0,x.gQ)("".concat((0,x.oN)(F),"/community/on-boarding/?returnUrl=/").concat(A.slug,"/").concat(null==l?void 0:l.slug,"?source=communities&action=embeddedarticle&campaign=").concat(A.slug,"/").concat(null==l?void 0:l.slug).concat(t))};return(0,o.useEffect)(()=>{R&&(L?O(e=>++e):O(e=>--e))},[null==l?void 0:l.likesCount,R,L]),(0,a.FD)(h.Box,{sx:e=>({display:"flex",flexDirection:"column",gap:(0,h.rem)(12),border:"1px solid ".concat(e.colors.neutral[1]),padding:(0,h.rem)(24),borderRadius:(0,h.rem)(8),justifyContent:"space-between",[e.fn.smallerThan("md")]:{padding:(0,h.rem)(16)}}),...T,children:[(0,a.FD)(h.Box,{sx:()=>({display:"flex",flexDirection:"column",gap:(0,h.rem)(12)}),children:[(0,a.FD)(r.C,{...I,children:[(0,a.Y)(r.C.MainText,{children:k?(0,a.Y)("a",{href:W,title:l.title,onClick:onClickPost,children:null==l?void 0:l.title}):M}),(0,a.Y)(r.C.SubTextRow,{children:k?(0,a.FD)(a.FK,{children:[(0,a.Y)(r.C.SubText,{children:null==l?void 0:null===(i=l.author)||void 0===i?void 0:i.name}),(0,a.Y)(r.C.SubDivider,{}),(0,a.Y)(r.C.SubText,{children:null==l?void 0:l.createdTime})]}):(0,a.Y)(r.C.SubText,{children:null==l?void 0:l.createdTime})})]}),!k&&(0,a.FD)(h.Box,{sx:{display:"flex",flexDirection:"column",gap:(0,h.rem)(8)},children:[!n&&(null==l?void 0:l.title)&&(0,a.Y)("a",{href:W,title:null==l?void 0:l.title,onClick:onClickPost,children:(0,a.Y)(s.Text,{size:"s3",as:"h4",weight:"semiBold",color:E.colors.gray[8],children:l.title})}),(0,a.FD)(s.Text,{size:"p3",as:"div",className:_.postContent,children:[(0,a.Y)(d.P,{className:"post-content-wrapper",description:(null==n?void 0:n.content)||(null==l?void 0:l.description),mentions:null==l?void 0:l.mentions,maxChars:200,style:{padding:0},hideShowAllBtn:!0},String(null==l?void 0:l.id)),(0,a.Y)("a",{className:_.linkOverlay,href:W,title:null==l?void 0:l.title,onClick:onClickPost,children:"\xa0"})]})]}),w]}),(0,a.FD)(h.Box,{sx:{display:"flex",justifyContent:"space-between",alignContent:"center"},children:[k?(0,a.Y)("span",{children:"\xa0"}):(0,a.Y)(c.C,{type:1,loveCount:l.likeCount,replyCount:l.commentCount,liked:null==l?void 0:l.liked,onCommentClick:()=>{onClickPost(void 0,"#comment")},onLikeClick:handleLikeClick,children:(0,a.FD)(h.Box,{sx:{display:"flex",gap:(0,h.rem)(24)},children:[(0,a.Y)(c.C.LikeWrapper,{children:(0,a.FD)(h.Box,{sx:{display:"flex",alignItems:"center",gap:(0,h.rem)(4)},children:[(0,a.Y)(p.A,{size:20,isSolid:L,color:L?E.colors.red[8]:void 0,className:"txt-icon"}),(0,a.Y)(s.Text,{size:"p3",children:K})]})}),(0,a.Y)(c.C.CommentWrapper,{children:(0,a.FD)(h.Box,{sx:{display:"flex",alignItems:"center",gap:(0,h.rem)(4)},children:[(0,a.Y)(v.A,{size:18}),(0,a.Y)(s.Text,{size:"p3",children:l.commentsCount})]})})]})}),(0,a.Y)("a",{href:W,title:l.title,onClick:onClickPost,children:(0,a.Y)(s.Text,{size:"p4",color:E.fn.primaryColor(),children:S({id:"expert.cardPost.viewDetail"})})})]})]})},_CardComment=e=>{var t,i,l,n,c,p;let{post:v}=e,{state:{isLoggedIn:m}}=(0,o.useContext)(b.B),{classes:g}=C(),f=(null==v?void 0:null===(i=v.expertAnswer)||void 0===i?void 0:null===(t=i.answer)||void 0===t?void 0:t[0])||{},y=null==v?void 0:v.community,w=null==v?void 0:null===(l=v.expertAnswer)||void 0===l?void 0:l.expert,k=(null==w?void 0:w.name)||(null==w?void 0:w.username)||"",T=(null==w?void 0:w.username)||(null==w?void 0:w.name)||"",D=null==w?void 0:w.avatar,F=(null==v?void 0:v.isAnonymous)?void 0:null==w?void 0:w.role,E={isAnonymous:null==f?void 0:f.isAnonymous,avatar:D,name:k,username:T,email:null==w?void 0:w.email,timeText:null==v?void 0:v.createdTime,time:(null==v?void 0:v.scheduleDate)||(null==v?void 0:v.createdDate),community:y,className:"post-author with-popover",role:F,title:null==w?void 0:w.title,userId:null==w?void 0:w.id,expertId:String(null==v?void 0:null===(n=v.author)||void 0===n?void 0:n.partnerId),"data-testid":"name"},_="/community/".concat(y.slug,"/").concat(null==v?void 0:v.slug);return(0,a.FD)(h.Box,{sx:e=>({display:"flex",flexDirection:"column",gap:(0,h.rem)(8),border:"1px solid ".concat(e.colors.neutral[1]),padding:(0,h.rem)(12),borderRadius:(0,h.rem)(8),background:e.colors.neutral[0]}),children:[(0,a.FD)(r.C,{...E,avatarProps:{size:32},children:[(0,a.Y)(r.C.MainText,{children:null==v?void 0:null===(p=v.expertAnswer)||void 0===p?void 0:null===(c=p.expert)||void 0===c?void 0:c.name}),(0,a.Y)(r.C.SubTextRow,{children:(0,a.Y)(r.C.SubText,{children:null==v?void 0:v.createdTime})})]}),(0,a.FD)(s.Text,{size:"p3",as:"div",sx:{paddingLeft:"44px"},className:g.postContent,children:[(0,a.Y)(d.P,{className:"post-content-wrapper",description:null==f?void 0:f.content,mentions:null==v?void 0:v.mentions,maxChars:80,style:{padding:0},hideShowAllBtn:!0},String(null==v?void 0:v.id)),(0,a.Y)("a",{className:g.linkOverlay,href:_,onClick:(e,t)=>{m||(null==e||e.preventDefault(),Y.dX?u.u.getState().triggerLogin({returnUrl:"".concat((0,x.oN)(locale),"/community/on-boarding/?returnUrl=").concat(encodeURIComponent("/".concat(y.slug,"/").concat(null==v?void 0:v.slug).concat(t)))}):window.open((0,x.gQ)("".concat((0,x.oN)(locale),"/community/on-boarding/?returnUrl=/").concat(y.slug,"/").concat(null==v?void 0:v.slug,"?source=communities&action=embeddedarticle&campaign=").concat(y.slug,"/").concat(null==v?void 0:v.slug).concat(t))))},title:v.title,children:"\xa0"})]})]})},_CardPost=e=>{var t,i;let{post:l,hasExpertComment:n,...o}=e;return(0,a.Y)(h.Box,{...o,children:(0,a.Y)(_CardPostItem,{post:l,hasExpertComment:n,style:{width:"100%",height:"100%"},children:n&&(null==l?void 0:null===(i=l.expertAnswer)||void 0===i?void 0:null===(t=i.answer)||void 0===t?void 0:t[0])&&(0,a.Y)(_CardComment,{post:l})})})}},E0Fa:function(e,t,i){"use strict";function myImageLoader(e){let{src:t="",width:i,quality:l}=e;return t.includes("?")?"".concat(t,"&w=").concat(i,"&q=").concat(l||75):"".concat(t,"?w=").concat(i,"&q=").concat(l||75)}i.d(t,{A:function(){return myImageLoader}})},QOMn:function(e,t,i){"use strict";i.r(t),i.d(t,{__N_SSP:function(){return z},default:function(){return _slug_}});var l=i("BGKE"),n=i("+OUp"),a=i.n(n),o=i("Imrq"),r=i("TinB"),d=i("U+Ez"),c=i("+YhV"),s=i("NQBa"),u=i("iBNF"),p=i("dDsW"),v=i("q6HN"),h=i("82l1"),m=i("Lo4g"),g=i("moTl"),f=i("ZUAm"),x=i("a5L+"),y=i("9brV"),Y=i("qml4"),b=i("CL9C"),C=i("P+HS"),w=i("vH4S"),k=i("xjta"),T=i("qsKI");let _Certificate=e=>{var t,i,a,o,d,c;let{...s}=e,{formatMessage:v}=(0,p.A)(),[h,m]=(0,n.useState)(!0),{currentExpert:g}=(0,r.T3)(e=>({currentExpert:e.currentExpert}));return(0,l.Y)(l.FK,{children:(null==g?void 0:null===(t=g.fields)||void 0===t?void 0:t.awards_accreditations)&&Array.isArray(null==g?void 0:null===(i=g.fields)||void 0===i?void 0:i.awards_accreditations)&&(null==g?void 0:null===(a=g.fields)||void 0===a?void 0:a.awards_accreditations.length)>0&&(0,l.FD)(w.Stack,{spacing:16,...s,children:[(0,l.Y)(C.Text,{weight:"bold",size:"c2",color:u.w.colors.gray400,children:v({id:"expert.content.awards",defaultMessage:"Awards & Accreditations"}).toUpperCase()}),(0,l.Y)(w.List,{styles:{itemIcon:{marginRight:0}},spacing:12,icon:(0,l.Y)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:(0,l.Y)("circle",{cx:"12",cy:"12",r:"2",fill:"#2D87F3"})}),children:(h?null==g?void 0:null===(o=g.fields)||void 0===o?void 0:o.awards_accreditations:null==g?void 0:null===(d=g.fields)||void 0===d?void 0:d.awards_accreditations.slice(0,3)).map((e,t)=>(0,l.Y)(w.List.Item,{children:(0,l.Y)(w.Stack,{spacing:0,children:(0,l.Y)(C.Text,{size:"p3",color:u.w.colors.gray800,children:(0,l.Y)("span",{dangerouslySetInnerHTML:{__html:e.title}})})})},"item-".concat(t)))}),(null==g?void 0:null===(c=g.fields)||void 0===c?void 0:c.awards_accreditations.length)>3&&!h&&(0,l.Y)(w.Button,{variant:"ghost",compact:!0,size:"sm",w:"fit-content",rightIcon:(0,l.Y)("img",{src:"".concat(y.nS,"/chevronDownBlue.svg"),alt:"see-more",loading:"lazy"}),onClick:()=>m(!0),children:v({id:"expert.content.seeMore",defaultMessage:"See more"})})]})})},_Education=e=>{var t,i,a,o,c,s;let{...v}=e,{formatMessage:h}=(0,p.A)(),[m,g]=(0,n.useState)(!0),{currentExpert:f}=(0,r.T3)(e=>({currentExpert:e.currentExpert}));return(0,l.Y)(l.FK,{children:(null==f?void 0:null===(t=f.fields)||void 0===t?void 0:t.educations)&&Array.isArray(null==f?void 0:null===(i=f.fields)||void 0===i?void 0:i.educations)&&(null==f?void 0:null===(a=f.fields)||void 0===a?void 0:a.educations.length)>0&&(0,l.FD)(w.Stack,{spacing:16,...v,children:[(0,l.Y)(C.Text,{weight:"bold",size:"c2",color:u.w.colors.gray400,children:h({id:"expert.content.education",defaultMessage:"Education"}).toUpperCase()}),(0,l.Y)(w.List,{styles:{itemIcon:{marginRight:0}},spacing:12,icon:(0,l.Y)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:(0,l.Y)("circle",{cx:"12",cy:"12",r:"2",fill:"#2D87F3"})}),children:(m?null==f?void 0:null===(o=f.fields)||void 0===o?void 0:o.educations:null==f?void 0:null===(c=f.fields)||void 0===c?void 0:c.educations.slice(0,3)).map((e,t)=>(0,l.Y)(w.List.Item,{children:(0,l.FD)(w.Stack,{spacing:0,children:[(0,l.Y)(d.H,{tag:"h6",color:u.w.colors.gray800,children:(0,l.Y)("span",{dangerouslySetInnerHTML:{__html:e.study}})}),(0,l.Y)(C.Text,{size:"p3",color:u.w.colors.gray500,children:(0,l.Y)("span",{dangerouslySetInnerHTML:{__html:(null==e?void 0:e.school_name)||""}})})]})},"item-".concat(t)))}),(null==f?void 0:null===(s=f.fields)||void 0===s?void 0:s.educations.length)>3&&!m&&(0,l.Y)(C.Button,{variant:"ghost",compact:!0,size:"sm",w:"fit-content",onClick:()=>g(!0),rightIcon:(0,l.Y)("img",{src:"".concat(y.nS,"/chevronDownBlue.svg"),alt:"see-more",loading:"lazy"}),children:h({id:"expert.content.seeMore",defaultMessage:"See more"})})]})})},_Experience=e=>{var t,i,a,o,c,s;let{...v}=e,[h,m]=(0,n.useState)(!0),{currentExpert:g}=(0,r.T3)(e=>({currentExpert:e.currentExpert})),{formatMessage:f}=(0,p.A)();return(0,l.Y)(l.FK,{children:(null==g?void 0:null===(t=g.fields)||void 0===t?void 0:t.experiences)&&Array.isArray(null==g?void 0:null===(i=g.fields)||void 0===i?void 0:i.experiences)&&(null==g?void 0:null===(a=g.fields)||void 0===a?void 0:a.experiences.length)>0&&(0,l.FD)(w.Stack,{spacing:16,...v,children:[(0,l.Y)(C.Text,{weight:"bold",size:"c2",color:u.w.colors.gray400,children:f({id:"expert.content.experiences",defaultMessage:"Experiences"}).toUpperCase()}),(0,l.Y)(w.List,{styles:{itemIcon:{marginRight:0}},spacing:12,icon:(0,l.Y)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:(0,l.Y)("circle",{cx:"12",cy:"12",r:"2",fill:"#2D87F3"})}),children:(h?null==g?void 0:null===(o=g.fields)||void 0===o?void 0:o.experiences:null==g?void 0:null===(c=g.fields)||void 0===c?void 0:c.experiences.slice(0,3)).map((e,t)=>(0,l.Y)(w.List.Item,{children:(0,l.FD)(w.Stack,{spacing:0,children:[(0,l.Y)(d.H,{tag:"h6",color:u.w.colors.gray800,children:(0,l.Y)("span",{dangerouslySetInnerHTML:{__html:(null==e?void 0:e.title)||""}})}),(0,l.Y)(C.Text,{size:"p3",color:u.w.colors.gray500,children:(0,l.Y)("span",{dangerouslySetInnerHTML:{__html:(null==e?void 0:e.organization)||""}})})]})},"item-".concat(t)))}),(null==g?void 0:null===(s=g.fields)||void 0===s?void 0:s.experiences.length)>3&&!h&&(0,l.Y)(C.Button,{variant:"ghost",compact:!0,size:"sm",w:"fit-content",rightIcon:(0,l.Y)("img",{src:"".concat(y.nS,"/chevronDownBlue.svg"),alt:"see-more",loading:"lazy"}),onClick:()=>m(!0),children:f({id:"expert.content.seeMore",defaultMessage:"See more"})})]})})},D=["url","facebook","instagram","linkedin","myspace","pinterest","soundcloud","tumblr","twitter","youtube","wikipedia","tiktok"],F=(0,n.forwardRef)(function(e,t){let{...i}=e,{currentExpert:n}=(0,r.T3)(e=>({currentExpert:e.currentExpert})),a=(0,x.a)();return n?(0,l.Y)(w.Box,{...i,children:(0,l.Y)(Y.bf,{children:(0,l.FD)(w.Flex,{ref:t,gap:{base:16,md:40},h:"fit-content",direction:{base:"column",md:"row"},ta:{base:"center",md:"left"},sx:{transform:"translateY(20%)",[b.M.mbUp]:{transform:"translateY(30%)"}},children:[(0,l.Y)("div",{children:(0,l.Y)(C.Avatar,{sx:{border:"4px solid #ffffff"},bg:"#ffffff",size:a?100:168,radius:"100%",pos:"relative",src:n.avatar||n.avatarThumbnail||y.Iu,withIndicator:!!n.role,indicatorConfig:n.role?{offset:a?14:20,size:a?18:40,label:(0,l.Y)("img",{width:a?"18":"40",height:a?"18":"40",src:"".concat(y.nS,"/article-").concat(n.role,".svg"),alt:"",loading:"lazy"})}:void 0})}),(0,l.FD)(w.Stack,{maw:568,justify:"flex-end",spacing:a?6:8,px:{base:16,md:0},children:[(0,l.Y)(d.H,{tag:"h3",as:"h1",children:n.displayName}),(0,l.FD)(w.Text,{size:"p3",children:[n.fields.specialty&&(0,l.Y)(w.Text,{span:!0,inherit:!0,children:n.fields.specialty}),n.fields.organisation&&(0,l.FD)(w.Text,{span:!0,inherit:!0,children:[" ","\xb7"," ",n.organisationUrl?(0,l.Y)("a",{href:n.organisationUrl,target:"_blank",style:{textDecoration:"underline"},children:n.fields.organisation}):n.fields.organisation]})]}),(0,l.Y)(w.Flex,{gap:16,justify:a?"center":"start",children:D.map((e,t)=>{var i;let a=null===(i=n.fields)||void 0===i?void 0:i.contact,o=null==a?void 0:a[e];return o?(0,l.Y)(Y.E$,{href:o||"",className:"no-replace-click",target:"_blank",children:(0,l.Y)("img",{src:"".concat(y.Mp,"/").concat(e,".svg"),className:"social-icons",alt:"",loading:"lazy"})},t):null})})]})]})})}):null});var E=i("cHEW");let _RelatedPostCards=e=>{let{...t}=e,{relatedCardPosts:i,relatedCardPostComments:n}=(0,r.T3)(e=>({relatedCardPosts:e.relatedCardPosts,relatedCardPostComments:e.relatedCardPostComments}));return(0,l.FD)(w.Box,{sx:e=>({display:"flex",flexWrap:"wrap",alignItems:"stretch",gap:(0,w.rem)(24),[e.fn.smallerThan("md")]:{flexDirection:"column",gap:(0,w.rem)(16)}}),...t,children:[null==i?void 0:i.map(e=>(0,l.Y)(E.MY,{post:e,sx:e=>({display:"flex",flexWrap:"wrap",alignItems:"stretch",width:"100%",gap:(0,w.rem)(12),[e.fn.largerThan("md")]:{width:"calc(50% - ".concat((0,w.rem)(24),")"),gap:(0,w.rem)(24)}})},String(e.id))),null==n?void 0:n.map(e=>(0,l.Y)(E.MY,{post:e,hasExpertComment:!0,sx:e=>({display:"flex",flexWrap:"wrap",alignItems:"stretch",width:"100%",gap:(0,w.rem)(12),[e.fn.largerThan("md")]:{width:"calc(50% - ".concat((0,w.rem)(24),")"),gap:(0,w.rem)(24)}})},String(e.id)))]})};var _=i("vKRh"),S=i("a5vB"),A=i("bPK4"),N=i("q8dt"),M=i("AG8C");let _NormalGrid=e=>{let{articles:t,...i}=e,{locale:n}=(0,M.$)(),a=(0,x.a)();return(0,l.Y)(w.Container,{fluid:!0,p:0,mx:0,w:"100%",...i,children:(0,l.FD)(w.Grid,{columns:12,gutter:0,gutterMd:"xl",children:[(0,l.Y)(w.Grid.Col,{span:12,md:7,children:(0,l.Y)(N.ArticleCardWrapper,{article:t[0],dataEventCategoryForTitle:"Top Article Title",dataEventActionForTitle:"Click ".concat(1),dataEventLabelForTitle:"".concat((0,A.oN)(n)).concat(t[0].permalinkDecode),dataEventCategoryForBanner:"Top Article Banner",dataEventActionForBanner:"Click ".concat(1),dataEventLabelForBanner:"".concat((0,A.oN)(n)).concat(t[0].permalinkDecode),dataEventCategoryForCategory:"Top Category Title",dataEventActionForCategory:"Click ".concat(1),dataEventLabelForCategory:"".concat((0,A.oN)(n)).concat(t[0].category.permalinkDecode),type:"author",size:a?"sm":"md",direction:"vertical"})}),a&&(0,l.Y)(w.Grid.Col,{children:(0,l.Y)(w.Divider,{variant:"dashed",color:"neutral.1",my:16})}),(0,l.Y)(w.Grid.Col,{span:12,md:5,children:(0,l.Y)(w.Stack,{align:"space-between",spacing:a?0:16,children:t.slice(1,3).map((e,t)=>(0,l.FD)(w.Box,{sx:{...0===t?{article:{padding:"0 0 10px 0 !important",[b.M.mbUp]:{".banner":{minHeight:"300px",maxHeight:"300px"}}}}:{},...1===t?{[b.M.mbUp]:{article:{flexDirection:"row-reverse",gap:16,padding:0}},article:{padding:"10px 0 !important",[b.M.mbDown]:{borderBottom:"1px dashed ".concat(C.themeColors.neutral[1])}}}:{}},children:[(0,l.Y)(N.ArticleCardWrapper,{article:e,dataEventCategoryForTitle:"Top Article Title",dataEventActionForTitle:"Click ".concat(t+2),dataEventLabelForTitle:"".concat((0,A.oN)(n)).concat(e.permalinkDecode),dataEventCategoryForCategory:"Top Category Title",dataEventActionForCategory:"Click ".concat(t+2),dataEventLabelForCategory:"".concat((0,A.oN)(n)).concat(e.category.permalinkDecode),dataEventCategoryForBanner:"Top Article Banner",dataEventActionForBanner:"Click ".concat(t+2),dataEventLabelForBanner:"".concat((0,A.oN)(n)).concat(e.permalinkDecode),type:"author",size:"sm",direction:0===t?a?"horizontal":"vertical":"horizontal",text:"",bannerImageWrapProps:{"data-event-category":"Top Article Banner","data-event-action":"Click ".concat(t+2),"data-event-label":"".concat((0,A.oN)(n)).concat(e.permalinkDecode)}}),0===t&&(0,l.Y)(w.Divider,{variant:"dashed",color:"neutral.1"})]},e.id))})}),!a&&(0,l.Y)(w.Grid.Col,{children:(0,l.Y)(w.Divider,{variant:"dashed",color:"neutral.1"})}),t.slice(3).map((e,i)=>(0,l.Y)(l.FK,{children:(0,l.Y)(w.Grid.Col,{span:12,md:3,sx:{paddingBlock:"20px !important",borderBottom:"1px dashed ".concat(C.themeColors.neutral[1]),[b.M.mbDown]:{paddingBlock:"16px !important",borderBottom:i+3{let{articles:t,...i}=e,{locale:n}=(0,M.$)(),a=(0,x.a)();return(0,l.Y)(w.Container,{fluid:!0,p:0,mx:0,w:"100%",...i,children:(0,l.Y)(w.Stack,{children:t.map((e,t)=>(0,l.Y)(w.Box,{sx:{[b.M.mbUp]:{article:{padding:"0 !important",".banner":{minWidth:"264px",maxWidth:"264px",minHeight:"176px",maxHeight:"1176px"},".footer":{marginTop:"initial !important"}}}},children:(0,l.Y)(N.ArticleCardWrapper,{article:e,dataEventCategoryForTitle:"Top Article Title",dataEventActionForTitle:"Click ".concat(t+4),dataEventLabelForTitle:"".concat((0,A.oN)(n)).concat(e.permalink),dataEventCategoryForBanner:"Top Article Banner",dataEventActionForBanner:"Click ".concat(t+4),dataEventLabelForBanner:"".concat((0,A.oN)(n)).concat(e.permalinkDecode),dataEventCategoryForCategory:"Top Category Title",dataEventActionForCategory:"Click ".concat(t+4),dataEventLabelForCategory:"".concat((0,A.oN)(n)).concat(e.category.permalinkDecode),type:"author",size:0===t&&a?"lg":"sm",direction:0===t&&a?"vertical":"horizontal",bannerImageWrapProps:{"data-event-category":"Top Article Banner","data-event-action":"Click ".concat(t+4),"data-event-label":"".concat((0,A.oN)(n)).concat(e.permalinkDecode)},text:""})},e.id))})})},_GridArticle=e=>{let{articles:t}=e;return t&&0!==t.length?t.length>=3?(0,l.Y)(_NormalGrid,{...e,articles:t}):(0,l.Y)(_Stacking,{...e,articles:t}):null},_RelatedPosts=e=>{let{...t}=e,{formatMessage:i}=(0,p.A)(),[a,o]=(0,n.useState)("0"),[d,c]=(0,n.useState)(0),[s,u]=(0,n.useState)(0),v=(0,x.a)(),[h,m]=(0,n.useState)(!1),{scrollIntoView:g,targetRef:f}=(0,_.q)({duration:0,offset:60,easing:e=>1-(1-e)*(1-e)}),{currentExpert:y,currentExpertMedicalReviewed:k=[],currentExpertRelativePosts:T=[],currentExpertMedicalReviewedPagination:D,currentExpertRelativePostsPagination:F,setCurrentExpertMedicalReviewedPagination:E,setCurrentExpertRelativePostsPagination:A,setCurrentExpertMedicalReviewed:N,setCurrentExpertRelativePosts:M}=(0,r.T3)(e=>e,S.x);(0,n.useEffect)(()=>{(async()=>{if(d<1)return;m(!0);let{articles:e,pagination:t}=await (0,r.fr)({id:(null==y?void 0:y.id)||"",type:0,page:d,numberOfPost:4,offset:7});M(e),A(t),m(!1)})()},[d]),(0,n.useEffect)(()=>{(async()=>{if(s<1)return;m(!0);let{articles:e,pagination:t}=await (0,r.fr)({id:(null==y?void 0:y.id)||"",type:1,page:s,numberOfPost:4,offset:7});N(e),E(t),m(!1)})()},[s]);let B=(0,n.useMemo)(()=>Number(null==F?void 0:F.current_page)>=Number(null==F?void 0:F.max_num_pages),[F]),z=(0,n.useMemo)(()=>((null==D?void 0:D.current_page)||0)>=((null==D?void 0:D.max_num_pages)||0),[null==D?void 0:D.current_page,null==D?void 0:D.max_num_pages]),P=[...k.length>0?[{id:"0",name:i({id:"expert.tab.medical",defaultMessage:"Medically reviewed by expert"})}]:[],...T.length>0?[{id:"1",name:i({id:"expert.tab.expert",defaultMessage:"Expert’s article"})}]:[]];return T.length>0||k.length>0?(0,l.FD)(w.Stack,{...t,children:[(0,l.Y)(w.Box,{maw:400,pos:"relative"}),(0,l.Y)("div",{ref:f,children:(0,l.Y)(Y.qD,{tag:"h4",children:i({id:"expert.content.latestArticles",defaultMessage:"Latest Expert Articles"})})}),(0,l.FD)(C.Tabs,{defaultValue:"0",value:a,onTabChange:e=>{g({alignment:"start"}),o(e)},pos:"relative",children:[(0,l.Y)(w.ScrollArea,{offsetScrollbars:!0,scrollbarSize:4,style:{position:"sticky",top:0,zIndex:1,backgroundColor:"#ffffff"},children:(0,l.Y)(w.Flex,{justify:"space-between",children:(0,l.Y)(C.Tabs.List,{grow:!0,sx:{[b.M.mbDown]:{position:"sticky",top:0,zIndex:1,backgroundColor:"#ffffff"}},children:P.map(e=>(0,l.Y)(C.Tabs.Tab,{value:e.id,children:(0,l.Y)(C.Text,{size:"s3",weight:"semiBold",color:"inherit",children:e.name})},e.id))})})}),T.length>0&&(0,l.Y)(C.Tabs.Panel,{value:"1",pos:"relative",pt:{base:16,md:24},children:(0,l.FD)(w.Stack,{justify:"center",align:"center",children:[(0,l.Y)(_GridArticle,{articles:T}),!B&&(0,l.Y)(C.Button,{mt:{base:0,md:24},loading:h,variant:"tertiary",w:v?"100%":"fit-content",fullWidth:v,onClick:()=>c(e=>++e),children:i({id:"expert.loadMore",defaultMessage:"Load more"})})]})}),k.length>0&&(0,l.Y)(C.Tabs.Panel,{value:"0",pos:"relative",pt:{base:16,md:24},children:(0,l.FD)(w.Stack,{justify:"center",align:"center",children:[(0,l.Y)(_GridArticle,{articles:k}),!z&&(0,l.Y)(C.Button,{mt:{base:0,md:24},loading:h,variant:"tertiary",w:v?"100%":"fit-content",fullWidth:v,onClick:()=>u(e=>++e),children:i({id:"expert.loadMore",defaultMessage:"Load more"})})]})})]})]}):null};function withExpertTemplate(e){let t=e.displayName||e.name||"Component",ComponentWithExpertTemplate=t=>{let{footerInfo:i,dataNavMenuContent:n,...a}=t,{currentExpert:d}=(0,r.T3)(e=>({currentExpert:e.currentExpert}));return(0,l.Y)(o.s,{SEOData:{apiMetaData:null==d?void 0:d.metaTag,isIndexable:!0},type:"profile",footerInfo:i,dataNavMenuContent:n,children:(0,l.Y)(e,{...a})})};return ComponentWithExpertTemplate.displayName="withExpertTemplate(".concat(t,")"),ComponentWithExpertTemplate}let B=a().memo(withExpertTemplate(e=>{var t,i,n,a,o;let{formatMessage:d}=(0,p.A)(),{currentExpert:c,relatedCardPosts:s=[],relatedCardPostComments:u=[]}=(0,r.T3)(e=>({currentExpert:e.currentExpert,relatedCardPosts:e.relatedCardPosts,relatedCardPostComments:e.relatedCardPostComments})),v=(0,x.a)(),{ref:h,height:g}=(0,k.L)();return c?(0,l.FD)(w.Container,{fluid:!0,p:0,bg:"#e3f2ff",...e,children:[(0,l.Y)(w.Container,{fluid:!0,p:0,bg:"#ffffff",pb:1,children:(0,l.Y)(m.s,{bg:"#ffffff",pageItem:[{label:d({id:"experts.allExperts",defaultMessage:"Experts"}),value:"/expert"},{label:c.displayName,value:c.profileUrl}]})}),(0,l.Y)(F,{ref:h}),(0,l.FD)(w.Container,{fluid:!0,bg:"#ffffff",pt:g||160,sx:{borderRadius:"20px 20px 0 0",[b.M.mbUp]:{borderRadius:"40px 40px 0 0"}},children:[(0,l.Y)(w.Container,{size:"lg",px:0,children:(0,l.FD)(w.Stack,{spacing:24,mb:48,children:[!!c.description&&(0,l.FD)(w.Stack,{spacing:16,children:[(0,l.Y)(Y.qD,{tag:"h4",children:d({id:"expert.content.about",defaultMessage:"About"})}),(0,l.Y)(C.Text,{as:"div",size:"p2",children:(0,l.Y)(Y.sN,{className:"expert-description",dangerouslySetInnerHTML:{__html:c.description}})})]}),!!((null==c?void 0:c.fields)&&(c.fields.educations||c.fields.experiences||c.fields.awards_accreditations))&&(0,l.FD)(w.Stack,{spacing:16,children:[(0,l.Y)(Y.qD,{tag:"h4",children:d({id:"expert.content.highlight",defaultMessage:"Credentials & Highlights"})}),(0,l.FD)(w.SimpleGrid,{cols:v?1:3,spacing:24,children:[(0,l.Y)(_Education,{}),(0,l.Y)(_Experience,{}),(0,l.Y)(_Certificate,{})]})]}),(null==s?void 0:s.length)+(null==u?void 0:u.length)>0&&(0,l.FD)(w.Stack,{spacing:16,children:[(0,l.Y)(Y.qD,{tag:"h4",children:d({id:"expert.content.relatedPosts",defaultMessage:"Related posts"})}),(0,l.Y)(_RelatedPostCards,{})]}),(null==c?void 0:null===(t=c.fields)||void 0===t?void 0:t.sources)&&Array.isArray(null==c?void 0:null===(i=c.fields)||void 0===i?void 0:i.sources)&&(null==c?void 0:null===(n=c.fields)||void 0===n?void 0:n.sources.length)>0&&(0,l.Y)(T.j,{title:d({id:"expert.content.publishedPapers",defaultMessage:"{number} Published papers"},{number:null==c?void 0:null===(a=c.fields)||void 0===a?void 0:a.sources.length}).toUpperCase(),sources:null==c?void 0:null===(o=c.fields)||void 0===o?void 0:o.sources.map(e=>e.url?'').concat(e.title,""):e.title)}),(0,l.Y)(_RelatedPosts,{mt:16})]})}),(0,l.Y)(f.default,{})]})]}):null}));withExpertTemplate(e=>{var t,i,a,r,b,C,w,k,T,D,F,E,_,S,A,N,M,B,z,P,I,L,H,R,U,K,O,W,G,q,j,Q,V,X,$,Z,J,ee,et,ei,el,en,ea,eo,er,ed,ec,es,eu,ep,ev,eh,em,eg,ef,ex,ey,eY,eb,eC,ew;let{type:ek,expert:eT,footerInfo:eD,dataNavMenuContent:eF}=e,[eE,e_]=(0,n.useState)(!1),eS=(0,x.a)(),{formatMessage:eA}=(0,p.A)(),[eN,eM]=(0,n.useState)(!1),[eB,ez]=(0,n.useState)(!1),[eP,eI]=(0,n.useState)(!1);return(0,l.Y)(o.s,{SEOData:{apiMetaData:eT.metaTag,isIndexable:!0},type:"profile",footerInfo:eD,dataNavMenuContent:eF,children:eS?(0,l.FD)(v.m,{children:[(0,l.Y)(m.s,{pageItem:[..."expert"===ek?[{label:eA({id:"experts.allExperts",defaultMessage:"Experts"}),value:"/expert"}]:[],{label:eT.displayName,value:eT.profileUrl}]}),(0,l.FD)(Y.oC,{children:[(0,l.FD)(Y.bf,{children:[(0,l.Y)(Y.es,{children:(0,l.Y)("div",{className:"image-container",children:(0,l.FD)("div",{style:{position:"relative"},children:[(0,l.Y)("img",{src:eT.avatarThumbnail||eT.avatar||y.Iu,className:"profile-image",alt:"avatar",onError:e=>e.currentTarget.src=y.Iu,loading:"lazy"}),(null==eT?void 0:eT.role)&&(0,l.Y)("img",{className:"badge-avatar",src:"".concat(y.nS,"/reviewer-").concat(eT.role||"",".svg"),alt:"badge",loading:"lazy"})]})})}),(0,l.FD)(Y.TS,{children:[(0,l.Y)(d.H,{tag:"h3",children:eT.displayName}),(0,l.Y)(g.J,{size:"md",contents:[...(null==eT?void 0:eT.fields.specialty)?[(0,l.Y)(c.T,{size:"p3",color:u.w.colors.gray800,children:null==eT?void 0:eT.fields.specialty},"1")]:[],...(null==eT?void 0:eT.fields.organisation)?[(0,l.Y)(c.T,{size:"p3",className:"organisation",color:u.w.colors.gray500,children:(0,l.Y)("a",{href:(null==eT?void 0:eT.organisation_url)||void 0,className:"organisation",target:"_blank",children:(0,l.Y)("span",{dangerouslySetInnerHTML:{__html:null==eT?void 0:eT.fields.organisation}})})},"2")]:[]],separator:(0,l.Y)(Y.kt,{}),className:"position-container"}),(0,l.Y)(Y.kz,{children:Object.keys(null==eT?void 0:null===(t=eT.fields)||void 0===t?void 0:t.contact).map((e,t)=>{var i,n,a,o;return(null==eT?void 0:null===(n=eT.fields)||void 0===n?void 0:null===(i=n.contact)||void 0===i?void 0:i[e])?(0,l.Y)(Y.E$,{href:(null==eT?void 0:null===(o=eT.fields)||void 0===o?void 0:null===(a=o.contact)||void 0===a?void 0:a[e])||"",className:"no-replace-click",target:"_blank",children:(0,l.Y)("img",{src:"".concat(y.Mp,"/").concat(e,".svg"),className:"social-icons",alt:"",loading:"lazy"})},t):null})})]})]}),!!eT.description&&(0,l.FD)(l.FK,{children:[(0,l.FD)(Y.UB,{children:["author"===ek?(0,l.Y)(d.H,{tag:"h3",children:eA({id:"author.content.about",defaultMessage:"About"})}):(0,l.Y)(d.H,{tag:"h3",children:eA({id:"expert.content.about",defaultMessage:"About"})}),(0,l.Y)(c.T,{size:"p1",children:(0,l.Y)("div",{className:"expert-description",dangerouslySetInnerHTML:{__html:eT.description}})})]}),(0,l.Y)(s.D,{type:"solid",className:"divider"})]}),(0,l.FD)(Y.UB,{children:[(null==eT?void 0:null===(i=eT.fields)||void 0===i?void 0:i.educations)||(null==eT?void 0:null===(a=eT.fields)||void 0===a?void 0:a.experiences)||(null==eT?void 0:null===(r=eT.fields)||void 0===r?void 0:r.awards_accreditations)?(0,l.Y)(d.H,{tag:"h3",children:eA({id:"expert.content.highlight",defaultMessage:"Credentials & Highlights"})}):null,(null==eT?void 0:null===(b=eT.fields)||void 0===b?void 0:b.educations)&&Array.isArray(null==eT?void 0:null===(C=eT.fields)||void 0===C?void 0:C.educations)&&(null==eT?void 0:null===(w=eT.fields)||void 0===w?void 0:w.educations.length)>0&&(0,l.FD)(l.FK,{children:[(0,l.Y)(c.T,{type:"bold",size:"c2",color:u.w.colors.gray400,style:{marginTop:16},children:eA({id:"expert.content.education",defaultMessage:"Education"}).toUpperCase()}),(0,l.Y)(Y.KP,{children:(eN?null==eT?void 0:null===(k=eT.fields)||void 0===k?void 0:k.educations:null==eT?void 0:null===(T=eT.fields)||void 0===T?void 0:T.educations.slice(0,3)).map((e,t)=>(0,l.FD)(Y.Nu,{children:[(0,l.Y)("img",{className:"bullet-point",src:"".concat(y.nS,"/bullet-point.svg"),alt:"point",loading:"lazy"}),(0,l.FD)("div",{className:"text-contain",children:[(0,l.Y)(d.H,{tag:"h6",color:u.w.colors.gray800,children:(0,l.Y)("span",{dangerouslySetInnerHTML:{__html:e.study}})}),(0,l.Y)(c.T,{size:"p3",color:u.w.colors.gray500,dangerouslySetInnerHTML:{__html:(null==e?void 0:e.school_name)||""}})]})]},"item-".concat(t)))}),(null==eT?void 0:null===(D=eT.fields)||void 0===D?void 0:D.educations.length)>3&&!eN?(0,l.FD)("div",{className:"see-more",onClick:()=>eM(!0),children:[eA({id:"expert.content.seeMore",defaultMessage:"See more"}),(0,l.Y)("img",{src:"".concat(y.nS,"/chevronDownBlue.svg"),alt:"see-more",loading:"lazy"})]}):null,(0,l.Y)(s.D,{type:"solid",className:"list-divider"})]}),"expert"===ek&&(null==eT?void 0:null===(F=eT.fields)||void 0===F?void 0:F.experiences)&&Array.isArray(null==eT?void 0:null===(E=eT.fields)||void 0===E?void 0:E.experiences)&&(null==eT?void 0:null===(_=eT.fields)||void 0===_?void 0:_.experiences.length)>0&&(0,l.FD)(l.FK,{children:[(0,l.Y)(c.T,{type:"bold",size:"c2",color:u.w.colors.gray400,style:{marginTop:16},children:eA({id:"expert.content.experiences",defaultMessage:"Experiences"}).toUpperCase()}),(0,l.Y)(Y.KP,{children:(eB?null==eT?void 0:null===(S=eT.fields)||void 0===S?void 0:S.experiences:null==eT?void 0:null===(A=eT.fields)||void 0===A?void 0:A.experiences.slice(0,3)).map((e,t)=>(0,l.FD)(Y.Nu,{children:[(0,l.Y)("img",{className:"bullet-point",src:"".concat(y.nS,"/bullet-point.svg"),alt:"point",loading:"lazy"}),(0,l.FD)("div",{className:"text-contain",children:[(0,l.Y)(d.H,{tag:"h6",color:u.w.colors.gray800,children:(0,l.Y)("span",{dangerouslySetInnerHTML:{__html:(null==e?void 0:e.title)||""}})}),(0,l.Y)(c.T,{size:"p3",color:u.w.colors.gray500,dangerouslySetInnerHTML:{__html:(null==e?void 0:e.organization)||""}})]})]},"item-".concat(t)))}),(null==eT?void 0:null===(N=eT.fields)||void 0===N?void 0:N.experiences.length)>3&&!eB?(0,l.FD)("div",{className:"see-more",onClick:()=>ez(!0),children:[eA({id:"expert.content.seeMore",defaultMessage:"See more"}),(0,l.Y)("img",{src:"".concat(y.nS,"/chevronDownBlue.svg"),alt:"see-more",loading:"lazy"})]}):null,(0,l.Y)(s.D,{type:"solid",className:"list-divider"})]}),"expert"===ek&&(null==eT?void 0:null===(M=eT.fields)||void 0===M?void 0:M.awards_accreditations)&&Array.isArray(null==eT?void 0:null===(B=eT.fields)||void 0===B?void 0:B.awards_accreditations)&&(null==eT?void 0:null===(z=eT.fields)||void 0===z?void 0:z.awards_accreditations.length)>0&&(0,l.FD)(l.FK,{children:[(0,l.Y)(c.T,{type:"bold",size:"c2",color:u.w.colors.gray400,style:{marginTop:16},children:eA({id:"expert.content.awards",defaultMessage:"Awards & Accreditations"}).toUpperCase()}),(0,l.Y)(Y.KP,{children:(eP?null==eT?void 0:null===(P=eT.fields)||void 0===P?void 0:P.awards_accreditations:null==eT?void 0:null===(I=eT.fields)||void 0===I?void 0:I.awards_accreditations.slice(0,3)).map((e,t)=>(0,l.FD)(Y.Nu,{children:[(0,l.Y)("img",{className:"bullet-point",src:"".concat(y.nS,"/bullet-point.svg"),alt:"point",loading:"lazy"}),(0,l.Y)("div",{className:"text-contain",children:(0,l.Y)(c.T,{size:"p3",color:u.w.colors.gray800,children:(0,l.Y)("span",{dangerouslySetInnerHTML:{__html:e.title}})})})]},"item-".concat(t)))}),(null==eT?void 0:null===(L=eT.fields)||void 0===L?void 0:L.awards_accreditations.length)>3&&!eP?(0,l.FD)("div",{className:"see-more",onClick:()=>eI(!0),children:[eA({id:"expert.content.seeMore",defaultMessage:"See more"}),(0,l.Y)("img",{src:"".concat(y.nS,"/chevronDownBlue.svg"),alt:"see-more",loading:"lazy"})]}):null,(0,l.Y)(s.D,{type:"solid",className:"list-divider"})]}),(null==eT?void 0:null===(H=eT.fields)||void 0===H?void 0:H.sources)&&Array.isArray(null==eT?void 0:null===(R=eT.fields)||void 0===R?void 0:R.sources)&&(null==eT?void 0:null===(U=eT.fields)||void 0===U?void 0:U.sources.length)>0&&(0,l.FD)(l.FK,{children:[(0,l.Y)(Y.RW,{onClick:()=>e_(e=>!e),children:(0,l.FD)(c.T,{type:"bold",size:"c2",color:u.w.colors.gray500,style:{marginTop:16},children:[(0,l.Y)("img",{className:"heading-icons",src:"".concat(y.Mp,"/").concat(eE?"minus":"plus",".svg"),alt:"plus-icon",loading:"lazy"}),eA({id:"expert.content.publishedPapers",defaultMessage:"{number} Published papers"},{number:null==eT?void 0:null===(K=eT.fields)||void 0===K?void 0:K.sources.length}).toUpperCase()]})}),(0,l.Y)(Y.Rw,{"data-is-open":eE,children:(0,l.Y)("div",{className:"link-container",children:null==eT?void 0:null===(O=eT.fields)||void 0===O?void 0:O.sources.map((e,t)=>(0,l.Y)("div",{className:"paper-link","data-is-url-disabled":!e.url,children:(0,l.Y)("a",{href:e.url,target:"_blank",children:e.title||e.url})},t))})})]}),(null==eT?void 0:eT.relatedPost)&&Array.isArray(null==eT?void 0:eT.relatedPost)&&(null==eT?void 0:eT.relatedPost.length)>0?(0,l.FD)(l.FK,{children:[(0,l.Y)(s.D,{type:"solid",className:"divider"}),(0,l.FD)(Y.UB,{children:[(0,l.Y)(d.H,{tag:"h3",children:eA({id:"expert.content.latestArticles",defaultMessage:"Latest Expert Articles"})}),(0,l.Y)(h.z,{isMobile:eS,trendingPosts:eT.relatedPost})]})]}):null,eT.fields.policies?(0,l.FD)(l.FK,{children:[(0,l.Y)(s.D,{type:"solid",className:"divider"}),(0,l.FD)(Y.UB,{children:[(0,l.Y)(d.H,{tag:"h3",style:{marginBottom:20},children:null===(W=eT.fields.policies)||void 0===W?void 0:W.title}),(0,l.Y)(c.T,{size:"p1",children:(0,l.Y)("div",{dangerouslySetInnerHTML:{__html:eT.fields.policies.content}})}),(null===(G=eT.fields.policies)||void 0===G?void 0:G.readmore)?(0,l.FD)(Y.bd,{href:eT.fields.policies.readmore_url||"",children:[(0,l.Y)(d.H,{fontWeight:"bold",tag:"h6",color:u.w.colors.primaryActive,children:eT.fields.policies.readmore}),(0,l.Y)("img",{src:"".concat(y.nS,"/chevronRightBlue.svg"),alt:"right-chevron",loading:"lazy"})]}):null]})]}):null]}),(0,l.Y)(f.default,{})]})]}):(0,l.FD)(l.FK,{children:[(0,l.Y)(v.m,{children:(0,l.Y)(m.s,{pageItem:[..."expert"===ek?[{label:eA({id:"experts.allExperts",defaultMessage:"Experts"}),value:"/expert"}]:[],{label:eT.displayName,value:eT.profileUrl}]})}),(0,l.FD)(Y.oC,{children:[(0,l.FD)(Y.bf,{children:[(0,l.FD)("div",{className:"avatar-title",children:[(0,l.Y)(Y.es,{children:(0,l.Y)("div",{className:"image-container",children:(0,l.FD)("div",{style:{position:"relative"},children:[(0,l.Y)("img",{src:eT.avatar||eT.avatarThumbnail||y.Iu,style:{width:"168px",height:"168px"},className:"profile-image",loading:"lazy",alt:"avatar",onError:e=>e.currentTarget.src=y.Iu}),(null==eT?void 0:eT.role)&&(0,l.Y)("img",{className:"badge-avatar",src:"".concat(y.nS,"/reviewer-").concat(eT.role||"",".svg"),alt:"badge",loading:"lazy"})]})})}),(0,l.FD)(Y.TS,{children:[(0,l.Y)(d.H,{tag:"h3",children:eT.displayName}),(0,l.Y)(g.J,{size:"md",contents:[...(null==eT?void 0:eT.fields.specialty)?[(0,l.Y)(c.T,{size:"p3",color:u.w.colors.gray800,children:null==eT?void 0:eT.fields.specialty},"1")]:[],...(null==eT?void 0:eT.fields.organisation)?[(0,l.Y)(c.T,{size:"p3",color:u.w.colors.gray500,children:(0,l.Y)("a",{href:(null==eT?void 0:eT.organisation_url)||void 0,className:"organisation",target:"_blank",children:(0,l.Y)("span",{dangerouslySetInnerHTML:{__html:null==eT?void 0:eT.fields.organisation}})})},"2")]:[]],separator:(0,l.Y)(Y.kt,{}),className:"position-container"}),(0,l.Y)(Y.kz,{children:Object.keys(null==eT?void 0:null===(q=eT.fields)||void 0===q?void 0:q.contact).map((e,t)=>{var i,n,a,o;return(null==eT?void 0:null===(n=eT.fields)||void 0===n?void 0:null===(i=n.contact)||void 0===i?void 0:i[e])?(0,l.Y)(Y.E$,{href:(null==eT?void 0:null===(o=eT.fields)||void 0===o?void 0:null===(a=o.contact)||void 0===a?void 0:a[e])||"",className:"no-replace-click",target:"_blank",children:(0,l.Y)("img",{src:"".concat(y.Mp,"/").concat(e,".svg"),className:"social-icons",alt:"",loading:"lazy"})},t):null})})]})]}),(0,l.Y)("div",{className:"border-banner"})]}),(0,l.FD)(v.m,{children:[eT.description?(0,l.Y)(l.FK,{children:(0,l.FD)(Y.UB,{children:["author"===ek?(0,l.Y)(d.H,{tag:"h3",children:eA({id:"author.content.about",defaultMessage:"About"})}):(0,l.Y)(d.H,{tag:"h3",children:eA({id:"expert.content.about",defaultMessage:"About"})}),(0,l.Y)(c.T,{size:"p1",children:(0,l.Y)("div",{className:"expert-description",dangerouslySetInnerHTML:{__html:eT.description}})})]})}):null,(0,l.FD)(Y.UB,{children:[(null==eT?void 0:null===(j=eT.fields)||void 0===j?void 0:j.educations)||(null==eT?void 0:null===(Q=eT.fields)||void 0===Q?void 0:Q.experiences)||(null==eT?void 0:null===(V=eT.fields)||void 0===V?void 0:V.awards_accreditations)?(0,l.Y)(d.H,{tag:"h3",children:eA({id:"expert.content.highlight",defaultMessage:"Credentials & Highlights"})}):null,(null==eT?void 0:null===(X=eT.fields)||void 0===X?void 0:X.educations)||(null==eT?void 0:null===($=eT.fields)||void 0===$?void 0:$.experiences)||(null==eT?void 0:null===(Z=eT.fields)||void 0===Z?void 0:Z.awards_accreditations)?(0,l.FD)(l.FK,{children:[(0,l.FD)("div",{className:"highlight-wrapper",children:[(null==eT?void 0:null===(J=eT.fields)||void 0===J?void 0:J.educations)&&Array.isArray(null==eT?void 0:null===(ee=eT.fields)||void 0===ee?void 0:ee.educations)&&(null==eT?void 0:null===(et=eT.fields)||void 0===et?void 0:et.educations.length)>0&&(0,l.FD)("div",{className:"highlight-item",children:[(0,l.Y)(c.T,{type:"bold",size:"c2",color:u.w.colors.gray400,style:{marginTop:16},children:eA({id:"expert.content.education",defaultMessage:"Education"}).toUpperCase()}),(0,l.Y)(Y.KP,{children:(eN?null==eT?void 0:null===(ei=eT.fields)||void 0===ei?void 0:ei.educations:null==eT?void 0:null===(el=eT.fields)||void 0===el?void 0:el.educations.slice(0,3)).map((e,t)=>(0,l.FD)(Y.Nu,{children:[(0,l.Y)("img",{className:"bullet-point",src:"".concat(y.nS,"/bullet-point.svg"),alt:"point",loading:"lazy"}),(0,l.FD)("div",{className:"text-contain",children:[(0,l.Y)(d.H,{tag:"h6",color:u.w.colors.gray800,children:(0,l.Y)("span",{dangerouslySetInnerHTML:{__html:e.study}})}),(0,l.Y)(c.T,{size:"p3",color:u.w.colors.gray500,dangerouslySetInnerHTML:{__html:(null==e?void 0:e.school_name)||""}})]})]},"item-".concat(t)))}),(null==eT?void 0:null===(en=eT.fields)||void 0===en?void 0:en.educations.length)>3&&!eN?(0,l.FD)("div",{className:"see-more",onClick:()=>eM(!0),children:[eA({id:"expert.content.seeMore",defaultMessage:"See more"}),(0,l.Y)("img",{src:"".concat(y.nS,"/chevronDownBlue.svg"),alt:"see-more",loading:"lazy"})]}):null]}),"expert"===ek&&(null==eT?void 0:null===(ea=eT.fields)||void 0===ea?void 0:ea.experiences)&&Array.isArray(null==eT?void 0:null===(eo=eT.fields)||void 0===eo?void 0:eo.experiences)&&(null==eT?void 0:null===(er=eT.fields)||void 0===er?void 0:er.experiences.length)>0&&(0,l.FD)("div",{className:"highlight-item",children:[(0,l.Y)(c.T,{type:"bold",size:"c2",color:u.w.colors.gray400,style:{marginTop:16},children:eA({id:"expert.content.experiences",defaultMessage:"Experiences"}).toUpperCase()}),(0,l.Y)(Y.KP,{children:(eB?null==eT?void 0:null===(ed=eT.fields)||void 0===ed?void 0:ed.experiences:null==eT?void 0:null===(ec=eT.fields)||void 0===ec?void 0:ec.experiences.slice(0,3)).map((e,t)=>(0,l.FD)(Y.Nu,{children:[(0,l.Y)("img",{className:"bullet-point",src:"".concat(y.nS,"/bullet-point.svg"),alt:"point",loading:"lazy"}),(0,l.FD)("div",{className:"text-contain",children:[(0,l.Y)(d.H,{tag:"h6",color:u.w.colors.gray800,children:(0,l.Y)("span",{dangerouslySetInnerHTML:{__html:e.title}})}),(0,l.Y)(c.T,{size:"p3",color:u.w.colors.gray500,dangerouslySetInnerHTML:{__html:(null==e?void 0:e.organization)||""}})]})]},"item-".concat(t)))}),(null==eT?void 0:null===(es=eT.fields)||void 0===es?void 0:es.experiences.length)>3&&!eB?(0,l.FD)("div",{className:"see-more",onClick:()=>ez(!0),children:[eA({id:"expert.content.seeMore",defaultMessage:"See more"}),(0,l.Y)("img",{src:"".concat(y.nS,"/chevronDownBlue.svg"),alt:"see-more",loading:"lazy"})]}):null]}),"expert"===ek&&(null==eT?void 0:null===(eu=eT.fields)||void 0===eu?void 0:eu.awards_accreditations)&&Array.isArray(null==eT?void 0:null===(ep=eT.fields)||void 0===ep?void 0:ep.awards_accreditations)&&(null==eT?void 0:null===(ev=eT.fields)||void 0===ev?void 0:ev.awards_accreditations.length)>0&&(0,l.FD)("div",{className:"highlight-item",children:[(0,l.Y)(c.T,{type:"bold",size:"c2",color:u.w.colors.gray400,style:{marginTop:16},children:eA({id:"expert.content.awards",defaultMessage:"Awards & Accreditations"}).toUpperCase()}),(0,l.Y)(Y.KP,{children:(eP?null==eT?void 0:null===(eh=eT.fields)||void 0===eh?void 0:eh.awards_accreditations:null==eT?void 0:null===(em=eT.fields)||void 0===em?void 0:em.awards_accreditations.slice(0,3)).map((e,t)=>(0,l.FD)(Y.Nu,{children:[(0,l.Y)("img",{className:"bullet-point",src:"".concat(y.nS,"/bullet-point.svg"),alt:"point",loading:"lazy"}),(0,l.Y)("div",{className:"text-contain",children:(0,l.Y)(c.T,{size:"p3",color:u.w.colors.gray800,dangerouslySetInnerHTML:{__html:null==e?void 0:e.title}})})]},"item-".concat(t)))}),(null==eT?void 0:null===(eg=eT.fields)||void 0===eg?void 0:eg.awards_accreditations.length)>3&&!eP?(0,l.FD)("div",{className:"see-more",onClick:()=>eI(!0),children:[eA({id:"expert.content.seeMore",defaultMessage:"See more"}),(0,l.Y)("img",{src:"".concat(y.nS,"/chevronDownBlue.svg"),alt:"see-more",loading:"lazy"})]}):null]})]}),(0,l.Y)(s.D,{type:"solid",className:"list-divider"})]}):null,(null==eT?void 0:null===(ef=eT.fields)||void 0===ef?void 0:ef.sources)&&Array.isArray(null==eT?void 0:null===(ex=eT.fields)||void 0===ex?void 0:ex.sources)&&(null==eT?void 0:null===(ey=eT.fields)||void 0===ey?void 0:ey.sources.length)>0&&(0,l.FD)(l.FK,{children:[(0,l.Y)(Y.RW,{onClick:()=>e_(e=>!e),children:(0,l.FD)(c.T,{type:"bold",size:"c2",color:u.w.colors.gray500,style:{marginTop:16,marginBottom:8,cursor:"pointer"},children:[(0,l.Y)("img",{className:"heading-icons",src:"".concat(y.Mp,"/").concat(eE?"minus":"plus",".svg"),alt:"plus-icon",loading:"lazy"}),eA({id:"expert.content.publishedPapers",defaultMessage:"{number} Published papers"},{number:null==eT?void 0:null===(eY=eT.fields)||void 0===eY?void 0:eY.sources.length}).toUpperCase()]})}),(0,l.Y)(Y.Rw,{"data-is-open":eE,children:(0,l.Y)("div",{className:"link-container",children:null==eT?void 0:null===(eb=eT.fields)||void 0===eb?void 0:eb.sources.map((e,t)=>(0,l.Y)("div",{className:"paper-link","data-is-url-disabled":!e.url,children:(0,l.Y)("a",{href:e.url,target:"_blank",children:e.title||e.url})},t))})}),(0,l.Y)(s.D,{type:"solid",className:"list-divider"})]}),(null==eT?void 0:eT.relatedPost)&&Array.isArray(null==eT?void 0:eT.relatedPost)&&(null==eT?void 0:eT.relatedPost.length)>0?(0,l.FD)(l.FK,{children:[(0,l.Y)(d.H,{tag:"h3",style:{marginTop:80},children:eA({id:"expert.content.latestArticles",defaultMessage:"Latest Expert Articles"})}),(0,l.Y)(h.z,{isMobile:eS,trendingPosts:eT.relatedPost})]}):null,eT.fields.policies?(0,l.FD)(l.FK,{children:[(0,l.Y)(d.H,{tag:"h3",style:{marginBottom:20,marginTop:80},children:null===(eC=eT.fields.policies)||void 0===eC?void 0:eC.title}),(0,l.Y)(c.T,{size:"p1",children:(0,l.Y)("div",{dangerouslySetInnerHTML:{__html:eT.fields.policies.content}})}),(null===(ew=eT.fields.policies)||void 0===ew?void 0:ew.readmore)?(0,l.FD)(Y.bd,{href:eT.fields.policies.readmore_url||"",children:[(0,l.Y)(d.H,{fontWeight:"bold",tag:"h6",as:"h6",color:u.w.colors.primaryActive,children:eT.fields.policies.readmore}),(0,l.Y)("img",{src:"".concat(y.nS,"/chevronRightBlue.svg"),alt:"right-chevron",loading:"lazy"})]}):null]}):null]})]})]})]})})});var z=!0,_slug_=e=>{let{expert:t,isMobileSsr:i,footerInfo:n,dataNavMenuContent:a,currentExpertRelativePosts:o,currentExpertMedicalReviewed:d,relatedCardPosts:c,relatedCardPostComments:s}=e;return(0,l.Y)(r.Bx,{init:{currentExpert:t,currentExpertRelativePosts:(null==o?void 0:o.articles)||[],currentExpertMedicalReviewed:(null==d?void 0:d.articles)||[],currentExpertMedicalReviewedPagination:null==d?void 0:d.pagination,currentExpertRelativePostsPagination:null==o?void 0:o.pagination,relatedCardPosts:c,relatedCardPostComments:s},refreshKey:String(t.id||""),children:(0,l.Y)(B,{expert:t,isMobileSsr:i,footerInfo:n,dataNavMenuContent:a})})}},TinB:function(e,t,i){"use strict";i.d(t,{Bx:function(){return ExpertStoreProvider},T3:function(){return useExpertStore},fr:function(){return fetchRelatedPosts}});var l=i("BGKE"),n=i("+OUp"),a=i("oWg6"),o=i("VNqU"),r=i("JOt+"),d=i("ROQx"),c=i("LSb+");let s=(0,n.createContext)(null),fetchRelatedPosts=async e=>{let{id:t,type:i=0,page:l=1,numberOfPost:n,offset:a=0}=e;try{var o,s;let e=await (0,r.callApiNew)(c.PATHS.EXPERT.GET_EXPERT_POST,{params:{reviewedByExpert:i,numberOfPost:n,userId:t,page:l,offset:a}});return{articles:((null==e?void 0:null===(o=e.data)||void 0===o?void 0:o.articles)||[]).map(d.W0),pagination:null==e?void 0:null===(s=e.data)||void 0===s?void 0:s.paging}}catch(e){return{articles:[],pagination:null}}finally{}},createExpertStore=e=>(0,a.y)((t,i)=>({...e||{},setExpertList(e){t({expertList:e})},async setCurrentExpert(e){t({currentExpert:e})},setCurrentExpertRelativePosts(e){t(t=>({currentExpertRelativePosts:[...t.currentExpertRelativePosts||[],...e]}))},setCurrentExpertMedicalReviewed(e){t({currentExpertMedicalReviewed:[...i().currentExpertMedicalReviewed||[],...e]})},setCurrentExpertRelativePostsPagination(e){t({currentExpertRelativePostsPagination:e})},setCurrentExpertMedicalReviewedPagination(e){t({currentExpertMedicalReviewedPagination:e})}})),ExpertStoreProvider=e=>{let{init:t,refreshKey:i,children:a}=e,o=(0,n.useRef)(createExpertStore(t)),r=o.current;return(0,n.useEffect)(()=>{i&&o.current.setState(t)},[i]),(0,l.Y)(s.Provider,{value:r,children:a})},useExpertStore=(e,t)=>{let i=(0,n.useContext)(s),l=(0,o.Pj)(i,e,t);return l}},EYOB:function(e,t,i){"use strict";i.d(t,{F:function(){return renderDate}});var l=i("+u84"),n=i("4BRW"),a=i("8BcA"),o=i.n(a),r=i("9brV");function renderDate(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n.L.PhilippinesEnglish,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:r.Sj;return o()(e,i).isValid()?o()(e,i).format(l.I[t].dateFormat):e}}},function(e){_N_E=Promise.all([e.f.consumes||function(e,t){},e.f.remotes||function(e,t){}].reduce(function(e,t){return t("3510",e),e},[])).then(function(){return e.X(0,[6444,5008,6132,6060,1813,3184,1809,1509,2277,8287,3430,2486,1891,2794,2808,8210,8e3,5e3,9862,5512,2213,3775,9144,448,9249,3231,3664,381,9418,5185,2654,3028,7469,6983,3069,4039,9872,873,9106,3739,9091,636,8792],function(){return e(e.s="8RA9")})})}]);