"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7543],{PoMi:function(e,l,t){t.r(l),t.d(l,{DynamicSpotlightPage:function(){return DynamicSpotlightPage}});var i=t("BGKE"),n=t("1cwP"),a=t("hXNO");let DynamicSpotlightPage=e=>{var l;let{spotlight:t,footerInfo:o,dataNavMenuContent:r,pageType:d=null}=e,c=(0,a.d)(),s=(null==r?void 0:null===(l=r.healthTools)||void 0===l?void 0:l.items)||[];return(0,i.tZ)(n.default,{isMobile:c,spotlight:t,healthTools:s,pageType:d,footerInfo:o,dataNavMenuContent:r},"".concat(t.groupIdActive,"-").concat(t.additionalSlugActive))}},zZjD:function(e,l,t){t.d(l,{F:function(){return _Breadcrumb}});var i=t("BGKE"),n=t("7Ci/"),a=t("dDsW"),o=t("2kea");let _Breadcrumb=e=>{let{formatMessage:l}=(0,a.Z)();return(0,i.tZ)(n.W,{fluid:!0,bg:"#ffffff",...e,children:(0,i.tZ)(o.d,{pb:16,pageItem:[{label:l({id:"experts.allExperts",defaultMessage:"Experts"}),value:"/expert"}]})})}},hui1:function(e,l,t){t.d(l,{KM:function(){return _CardPost},we:function(){return n}});var i,n,a=t("BGKE"),o=t("q1tI"),r=t("bJUT"),d=t("Idd8"),c=t("MFH/"),s=t("wp0n"),u=t("bVHi"),p=t("r+qb"),v=t("220y"),h=t("/npG"),g=t("8vDj"),m=t("Eso5"),C=t("mYVa"),f=t("dDsW"),Z=t("09QT"),y=t("oQBk"),x=t("CJtR"),b=t("P5LW"),B=t("rIrU"),T=t("o0qI");(i=n||(n={}))[i.post=1]="post",i[i.reply=2]="reply";let w=(0,h.k)(()=>({postContent:{position:"relative"},linkOverlay:{position:"absolute",top:0,left:0,right:0,bottom:0}})),_CardPostItem=e=>{var l,t;let{post:i,comment:n,children:h,hasExpertComment:M,..._}=e,{state:{isLoggedIn:E}}=(0,o.useContext)(T.I),{locale:k}=(0,b.h)(),A=(0,g.rZ)(),{classes:N}=w(),{formatMessage:S}=(0,f.Z)(),X=null==i?void 0:i.community,z=null==i?void 0:i.author,H=(null==z?void 0:z.name)||(null==z?void 0:z.username)||"",I=(null==z?void 0:z.username)||(null==z?void 0:z.name)||"",P=null==z?void 0:z.avatar,D=(null==i?void 0:i.isAnonymous)?void 0:null==z?void 0:z.role,L={isAnonymous:null==i?void 0:i.isAnonymous,avatar:P,name:H,username:I,email:null==z?void 0:z.email,timeText:null==i?void 0:i.createdTime,time:(null==i?void 0:i.scheduleDate)||(null==i?void 0:i.createdDate),community:X,className:"post-author with-popover",role:D,title:null==z?void 0:z.title,userId:null==z?void 0:z.id,expertId:String(null==i?void 0:null===(l=i.author)||void 0===l?void 0:l.partnerId),"data-testid":"name"},[F,U]=(0,o.useState)(i.liked),[W,R]=(0,o.useState)(!1),handleLikeClick=async()=>{E?(await (0,Z.d)(y.y.TOGETHER.POST_TOGETHER_LIKE_POST,{params:{postId:i.id}},"together"),U(e=>!e),R(!0)):B.Ew?u.u.getState().triggerLogin({returnUrl:"".concat((0,x.UC)(k),"/community/on-boarding/?returnUrl=").concat(encodeURIComponent("/".concat(null==X?void 0:X.slug,"/").concat(null==i?void 0:i.slug,"?postAction=like")))}):window.open((0,x.bT)("".concat((0,x.UC)(k),"/community/on-boarding/?returnUrl=").concat(encodeURIComponent("/".concat(null==X?void 0:X.slug,"/").concat(null==i?void 0:i.slug,"?postAction=like")))))},[K,G]=(0,o.useState)(null==i?void 0:i.likesCount),O="/community/".concat(X.slug,"/").concat(null==i?void 0:i.slug),onClickPost=(e,l)=>{null==e||e.preventDefault(),E?window.open("".concat(O).concat(l)):B.Ew?u.u.getState().triggerLogin({returnUrl:"".concat((0,x.UC)(k),"/community/on-boarding/?returnUrl=").concat(encodeURIComponent("/".concat(X.slug,"/").concat(null==i?void 0:i.slug).concat(l)))}):window.location.href=(0,x.bT)("".concat((0,x.UC)(k),"/community/on-boarding/?returnUrl=/").concat(X.slug,"/").concat(null==i?void 0:i.slug,"?source=communities&action=embeddedarticle&campaign=").concat(X.slug,"/").concat(null==i?void 0:i.slug).concat(l))};return(0,o.useEffect)(()=>{W&&(F?G(e=>++e):G(e=>--e))},[null==i?void 0:i.likesCount,W,F]),(0,a.BX)(m.x,{sx:e=>({display:"flex",flexDirection:"column",gap:(0,C.h)(12),border:"1px solid ".concat(e.colors.neutral[1]),padding:(0,C.h)(24),borderRadius:(0,C.h)(8),justifyContent:"space-between",[e.fn.smallerThan("md")]:{padding:(0,C.h)(16)}}),..._,children:[(0,a.BX)(m.x,{sx:()=>({display:"flex",flexDirection:"column",gap:(0,C.h)(12)}),children:[(0,a.BX)(r.C,{...L,children:[(0,a.tZ)(r.C.MainText,{children:M?(0,a.tZ)("a",{href:O,title:i.title,onClick:onClickPost,children:null==i?void 0:i.title}):H}),(0,a.tZ)(r.C.SubTextRow,{children:M?(0,a.BX)(a.HY,{children:[(0,a.tZ)(r.C.SubText,{children:null==i?void 0:null===(t=i.author)||void 0===t?void 0:t.name}),(0,a.tZ)(r.C.SubDivider,{}),(0,a.tZ)(r.C.SubText,{children:null==i?void 0:i.createdTime})]}):(0,a.tZ)(r.C.SubText,{children:null==i?void 0:i.createdTime})})]}),!M&&(0,a.BX)(m.x,{sx:{display:"flex",flexDirection:"column",gap:(0,C.h)(8)},children:[!n&&(null==i?void 0:i.title)&&(0,a.tZ)("a",{href:O,title:null==i?void 0:i.title,onClick:onClickPost,children:(0,a.tZ)(s.T,{size:"s3",as:"h4",weight:"semiBold",color:A.colors.gray[8],children:i.title})}),(0,a.BX)(s.T,{size:"p3",as:"div",className:N.postContent,children:[(0,a.tZ)(d.P,{className:"post-content-wrapper",description:(null==n?void 0:n.content)||(null==i?void 0:i.description),mentions:null==i?void 0:i.mentions,maxChars:200,style:{padding:0},hideShowAllBtn:!0},String(null==i?void 0:i.id)),(0,a.tZ)("a",{className:N.linkOverlay,href:O,title:null==i?void 0:i.title,onClick:onClickPost,children:"\xa0"})]})]}),h]}),(0,a.BX)(m.x,{sx:{display:"flex",justifyContent:"space-between",alignContent:"center"},children:[M?(0,a.tZ)("span",{children:"\xa0"}):(0,a.tZ)(c.C,{type:1,loveCount:i.likeCount,replyCount:i.commentCount,liked:null==i?void 0:i.liked,onCommentClick:()=>{onClickPost(void 0,"#comment")},onLikeClick:handleLikeClick,children:(0,a.BX)(m.x,{sx:{display:"flex",gap:(0,C.h)(24)},children:[(0,a.tZ)(c.C.LikeWrapper,{children:(0,a.BX)(m.x,{sx:{display:"flex",alignItems:"center",gap:(0,C.h)(4)},children:[(0,a.tZ)(p.Z,{size:20,isSolid:F,color:F?A.colors.red[8]:void 0,className:"txt-icon"}),(0,a.tZ)(s.T,{size:"p3",children:K})]})}),(0,a.tZ)(c.C.CommentWrapper,{children:(0,a.BX)(m.x,{sx:{display:"flex",alignItems:"center",gap:(0,C.h)(4)},children:[(0,a.tZ)(v.Z,{size:18}),(0,a.tZ)(s.T,{size:"p3",children:i.commentsCount})]})})]})}),(0,a.tZ)("a",{href:O,title:i.title,onClick:onClickPost,children:(0,a.tZ)(s.T,{size:"p4",color:A.fn.primaryColor(),children:S({id:"expert.cardPost.viewDetail"})})})]})]})},_CardComment=e=>{var l,t,i,n,c,p;let{post:v}=e,{state:{isLoggedIn:h}}=(0,o.useContext)(T.I),{classes:g}=w(),f=(null==v?void 0:null===(t=v.expertAnswer)||void 0===t?void 0:null===(l=t.answer)||void 0===l?void 0:l[0])||{},Z=null==v?void 0:v.community,y=null==v?void 0:null===(i=v.expertAnswer)||void 0===i?void 0:i.expert,b=(null==y?void 0:y.name)||(null==y?void 0:y.username)||"",M=(null==y?void 0:y.username)||(null==y?void 0:y.name)||"",_=null==y?void 0:y.avatar,E=(null==v?void 0:v.isAnonymous)?void 0:null==y?void 0:y.role,k={isAnonymous:null==f?void 0:f.isAnonymous,avatar:_,name:b,username:M,email:null==y?void 0:y.email,timeText:null==v?void 0:v.createdTime,time:(null==v?void 0:v.scheduleDate)||(null==v?void 0:v.createdDate),community:Z,className:"post-author with-popover",role:E,title:null==y?void 0:y.title,userId:null==y?void 0:y.id,expertId:String(null==v?void 0:null===(n=v.author)||void 0===n?void 0:n.partnerId),"data-testid":"name"},A="/community/".concat(Z.slug,"/").concat(null==v?void 0:v.slug);return(0,a.BX)(m.x,{sx:e=>({display:"flex",flexDirection:"column",gap:(0,C.h)(8),border:"1px solid ".concat(e.colors.neutral[1]),padding:(0,C.h)(12),borderRadius:(0,C.h)(8),background:e.colors.neutral[0]}),children:[(0,a.BX)(r.C,{...k,avatarProps:{size:32},children:[(0,a.tZ)(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.tZ)(r.C.SubTextRow,{children:(0,a.tZ)(r.C.SubText,{children:null==v?void 0:v.createdTime})})]}),(0,a.BX)(s.T,{size:"p3",as:"div",sx:{paddingLeft:"44px"},className:g.postContent,children:[(0,a.tZ)(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.tZ)("a",{className:g.linkOverlay,href:A,onClick:(e,l)=>{h||(null==e||e.preventDefault(),B.Ew?u.u.getState().triggerLogin({returnUrl:"".concat((0,x.UC)(locale),"/community/on-boarding/?returnUrl=").concat(encodeURIComponent("/".concat(Z.slug,"/").concat(null==v?void 0:v.slug).concat(l)))}):window.open((0,x.bT)("".concat((0,x.UC)(locale),"/community/on-boarding/?returnUrl=/").concat(Z.slug,"/").concat(null==v?void 0:v.slug,"?source=communities&action=embeddedarticle&campaign=").concat(Z.slug,"/").concat(null==v?void 0:v.slug).concat(l))))},title:v.title,children:"\xa0"})]})]})},_CardPost=e=>{var l,t;let{post:i,hasExpertComment:n,...o}=e;return(0,a.tZ)(m.x,{...o,children:(0,a.tZ)(_CardPostItem,{post:i,hasExpertComment:n,style:{width:"100%",height:"100%"},children:n&&(null==i?void 0:null===(t=i.expertAnswer)||void 0===t?void 0:null===(l=t.answer)||void 0===l?void 0:l[0])&&(0,a.tZ)(_CardComment,{post:i})})})}},RK4i:function(e,l,t){t.d(l,{Z:function(){return b}});var i=t("BGKE"),n=t("q1tI"),a=t("rYNE"),o=t("wp0n"),r=t("7Ci/"),d=t("OAL+"),c=t("KeOA"),s=t("dDsW"),u=t("a5vB"),p=t("09QT"),v=t("/tR3"),h=t("oQBk"),g=t("GO43"),m=t("ch66"),C=t("SPK5"),f=t("RZSM"),Z=t("0D4Z");let _Skeleton=e=>(0,i.tZ)(i.HY,{children:[...Array(10)].map((l,t)=>(0,i.BX)(C.k,{gap:16,...e,h:144,children:[(0,i.tZ)(f.o,{ratio:1,w:96,h:"fit-content",children:(0,i.tZ)(Z.O,{height:96,width:96,radius:"xl"})}),(0,i.BX)(d.K,{w:"100%",children:[(0,i.tZ)(Z.O,{height:19,width:"100%"}),(0,i.tZ)(Z.O,{height:48,mt:2})]})]},t))});var y=t("hXNO"),x=t("Y7A1"),b=(0,n.forwardRef)((e,l)=>{var t,C,f;let{formatMessage:Z}=(0,s.Z)(),b=(0,y.d)(),{expertList:B}=(0,x.ek)(e=>e,u.X),[T,w]=(0,n.useState)([]),[M,_]=(0,n.useState)(1),[E,k]=(0,n.useState)(!1);(0,n.useImperativeHandle)(l,()=>({setCurrentPage:_})),(0,n.useEffect)(()=>{w(null==B?void 0:B.experts)},[null==B?void 0:B.experts]);let handlePaging=async e=>{if(e!==M){var l,t;k(!0),_(e);let i=await (0,p.d)(h.y.EXPERT.GET_ALL_EXPERTS_PAGING,{params:{page:e,perPage:10}}),n=(null==i?void 0:null===(t=i.data)||void 0===t?void 0:null===(l=t.experts)||void 0===l?void 0:l.map(v.a5))||null;n&&(w(n),k(!1))}};return(0,i.BX)(r.W,{size:"lg",px:{base:0,md:16},...e,children:[(0,i.BX)(d.K,{spacing:4,mb:24,children:[(0,i.tZ)(o.T,{size:"s1",weight:"semiBold",children:Z({id:"experts.listOfExperts",defaultMessage:"List of Experts"})}),(0,i.tZ)(o.T,{size:"p3",color:"gray.6",children:Z({id:"searchPage.numberOfResults",defaultMessage:"{no} kết quả được t\xecm thấy"},{no:(null===(t=B.pagination)||void 0===t?void 0:t.get_total)||0})})]}),(null==T?void 0:T.length)>0?(0,i.BX)(i.HY,{children:[(0,i.tZ)(c.M,{cols:2,spacing:24,verticalSpacing:16,breakpoints:[{maxWidth:755,cols:1}],children:E?(0,i.tZ)(_Skeleton,{}):T.map(e=>(0,i.tZ)(g.B,{expert:e},e.id))}),B.pagination&&(null===(C=B.pagination)||void 0===C?void 0:C.max_num_pages)>1&&(0,i.tZ)(r.W,{px:0,fluid:b,my:24,style:{display:"flex",justifyContent:"center"},children:(0,i.tZ)(a.P,{pagesAmount:(null===(f=B.pagination)||void 0===f?void 0:f.max_num_pages)||0,currentPage:M,onChange:handlePaging,style:{justifyContent:"flex-start",gap:b?"2px":"10px"}})})]}):(0,i.tZ)(m.$,{w:"100%",ta:"center",my:{base:56,md:64}})]})})},ch66:function(e,l,t){t.d(l,{$:function(){return c}});var i=t("BGKE"),n=t("q1tI"),a=t("fdQd"),o=t("wp0n"),r=t("OAL+"),d=t("dDsW");let c=n.memo(function(e){let{formatMessage:l}=(0,d.Z)();return(0,i.BX)(r.K,{spacing:16,...e,justify:"center",align:"center",children:[(0,i.tZ)(a.c,{ratio:1,w:{base:80,md:120},children:(0,i.BX)("svg",{width:"120",height:"120",viewBox:"0 0 120 120",fill:"none",children:[(0,i.tZ)("rect",{width:"120",height:"120",rx:"60",fill:"#E4E8EC"}),(0,i.tZ)("path",{d:"M32.1291 119.14H87.1519C94.3805 119.14 98.2751 113.256 93.5895 107.751C91.8565 105.732 89.9741 103.846 87.9583 102.109C83.5455 98.2937 78.7978 94.884 73.7727 91.9212C72.2851 91.1763 70.9768 90.1174 69.9383 88.8176C69.4231 88.0675 69.0447 87.2321 68.8207 86.3501C68.7433 86.0664 68.6831 85.7741 68.623 85.456C68.4854 84.7854 68.3908 84.0289 68.3048 83.1777H50.9847C50.8987 84.0375 50.7956 84.8026 50.6666 85.4732C50.6064 85.7913 50.5376 86.0836 50.4603 86.3587C50.2296 87.2384 49.8517 88.0726 49.3426 88.8262C48.3114 90.131 47.0012 91.1885 45.5082 91.9212C40.4846 94.8861 35.737 98.2957 31.3227 102.109C29.3067 103.846 27.4243 105.732 25.6914 107.751C21.0059 113.256 24.9005 119.14 32.1291 119.14Z",fill:"#FF977B"}),(0,i.tZ)("path",{d:"M20.4707 120H98.8318C99.1084 119.999 99.3808 119.932 99.626 119.804C99.8712 119.676 100.082 119.491 100.241 119.264C100.399 119.038 100.501 118.776 100.538 118.502C100.574 118.228 100.544 117.949 100.45 117.689C98.4673 112.112 94.8564 106.377 87.9708 100.389C83.4572 96.469 78.3246 94.569 73.7853 91.921C72.3995 91.0234 71.1115 89.9832 69.9423 88.8174C66.9522 91.0003 63.3462 92.1774 59.6441 92.1789C55.942 92.1805 52.335 91.0064 49.3431 88.826C49.3279 88.86 49.3042 88.8896 49.2743 88.912C49.2586 88.946 49.2383 88.9778 49.2141 89.0065C48.1791 90.205 46.9243 91.1943 45.5173 91.921C40.9865 94.569 35.8453 96.469 31.3317 100.389C24.4461 106.377 20.8353 112.112 18.8527 117.689C18.7587 117.949 18.7286 118.228 18.765 118.502C18.8014 118.776 18.9032 119.038 19.0619 119.264C19.2205 119.491 19.4313 119.676 19.6765 119.804C19.9217 119.932 20.1941 119.999 20.4707 120Z",fill:"#BCDEFF"}),(0,i.tZ)("path",{d:"M47.0293 100.209C47.0293 108.093 52.3682 120 52.3682 120H66.1583C66.1583 120 70.8868 106.407 71.4972 100.424C71.7607 96.4898 71.2316 92.543 69.9411 88.8174C66.9511 91.0003 63.3451 92.1774 59.643 92.1789C55.9408 92.1805 52.3339 91.0064 49.342 88.826C49.3059 88.8664 49.2388 88.9721 49.213 89.0065C48.7574 89.8319 47.0293 93.374 47.0293 100.209Z",fill:"white"}),(0,i.tZ)("path",{d:"M54.8539 119.997C54.8539 119.997 47.7671 105.363 49.343 88.8267C46.8378 89.6296 44.5779 91.0561 42.7755 92.9723C39.6126 96.529 39.1973 103.755 39.2042 105.009C39.2093 106.026 44.1666 106.118 45.9049 106.12C45.9417 106.121 45.9771 106.134 46.0059 106.157C46.0347 106.18 46.0554 106.212 46.0651 106.247C46.0747 106.283 46.0727 106.32 46.0593 106.354C46.046 106.389 46.022 106.418 45.9909 106.437C42.7807 108.544 43.0884 109.704 43.3206 110.887C43.7934 113.311 48.5297 119.023 49.288 119.994L54.8539 119.997Z",fill:"#E3F2FF"}),(0,i.tZ)("path",{d:"M69.9961 119.996C70.7543 119.026 75.4906 113.314 75.9634 110.89C76.1956 109.703 76.5034 108.546 73.2931 106.44C73.262 106.421 73.238 106.391 73.2247 106.357C73.2113 106.323 73.2093 106.285 73.219 106.25C73.2286 106.214 73.2493 106.183 73.2781 106.16C73.307 106.137 73.3423 106.124 73.3791 106.123C75.1175 106.123 80.0747 106.028 80.0798 105.011C80.0867 103.754 79.6715 96.5283 76.5085 92.975C74.7068 91.0553 72.447 89.6247 69.941 88.8174C71.5169 105.353 64.4336 119.996 64.4336 119.996H69.9961Z",fill:"#E3F2FF"}),(0,i.tZ)("path",{d:"M50.6758 85.4732C53.3667 87.2615 56.2984 89.428 59.6428 89.428C62.9871 89.428 65.936 87.2529 68.6356 85.456C68.498 84.7854 68.4034 84.0289 68.3175 83.1777H50.9939C50.9079 84.0375 50.8047 84.8026 50.6758 85.4732Z",fill:"#E38E74"}),(0,i.tZ)("path",{d:"M57.9182 100.881H61.3709C63.1982 107.097 64.2283 113.52 64.4367 119.996H54.8516C55.0598 113.52 56.0903 107.097 57.9182 100.881Z",fill:"#626D7C"}),(0,i.tZ)("path",{d:"M55.8086 97.6805C55.8456 97.9277 55.9002 98.1719 55.9719 98.4113C56.548 99.5547 57.8032 101.489 59.643 101.489C61.4828 101.489 62.738 99.5547 63.314 98.4199C63.3855 98.178 63.4373 97.9307 63.4688 97.6805C63.4193 97.6377 63.3677 97.5976 63.314 97.5601C62.5317 96.9755 61.9643 96.3565 61.414 95.8923C60.942 95.4185 60.3109 95.1366 59.643 95.1013C58.2588 95.1013 57.5281 96.3823 55.9719 97.5516C55.9204 97.5945 55.8602 97.6375 55.8086 97.6805Z",fill:"#626D7C"}),(0,i.tZ)("path",{d:"M66.5875 100.332C66.7397 100.332 66.8918 100.324 67.0432 100.308C67.2148 100.295 67.3821 100.248 67.5352 100.17C67.6883 100.091 67.8242 99.9827 67.9348 99.8508C68.0454 99.7189 68.1284 99.5663 68.1791 99.4018C68.2297 99.2373 68.247 99.0644 68.2298 98.8932C68.2125 98.7219 68.1612 98.5559 68.0788 98.4048C67.9965 98.2537 67.8847 98.1206 67.75 98.0134C67.6154 97.9062 67.4607 97.827 67.295 97.7805C67.1293 97.734 66.956 97.7212 66.7853 97.7427C65.8301 97.8407 64.9343 97.1641 64.1416 96.5674C63.714 96.2379 63.305 95.8849 62.9165 95.51C62.0232 94.676 61.099 93.8137 59.6495 93.8137C58.2 93.8137 57.2715 94.6735 56.3825 95.5083C56.0094 95.8687 55.617 96.2088 55.2073 96.527C54.363 97.1632 53.474 97.8381 52.5111 97.7427C52.1757 97.7175 51.8437 97.8244 51.586 98.0405C51.3282 98.2567 51.1651 98.565 51.1315 98.8997C51.0978 99.2344 51.1963 99.569 51.4058 99.8321C51.6154 100.095 51.9195 100.266 52.2532 100.308C54.21 100.509 55.7136 99.3762 56.7101 98.6265C57.2116 98.2426 57.6912 97.8311 58.1467 97.3936C58.9075 96.6818 59.2575 96.3929 59.6521 96.3929C60.0467 96.3929 60.4018 96.6826 61.1643 97.3954C61.6036 97.8183 62.0657 98.217 62.5485 98.5895C63.6655 99.6005 65.0857 100.213 66.5875 100.332Z",fill:"#626D7C"}),(0,i.tZ)("path",{d:"M89.751 37.4604C89.2823 22.0976 78.2629 14.4964 71.4464 14.9201C70.3016 15.0118 69.1563 14.75 68.1651 14.1701C58.9448 8.56762 37.7957 9.96075 30.7176 27.8398C27.4982 37.8514 29.1445 46.6695 29.9104 53.6482H88.3701C89.136 46.6695 89.8664 41.2301 89.751 37.4604Z",fill:"#284A75"}),(0,i.tZ)("path",{d:"M29.9118 52.7107C27.1715 54.2698 27.1996 58.2635 27.8961 60.7395C28.7268 63.6963 32.7833 68.0248 38.0671 66.672L35.4271 52.1613C34.5202 51.864 33.5612 51.7592 32.6114 51.8538C31.6617 51.9484 30.7422 52.2403 29.9118 52.7107Z",fill:"#FF977B"}),(0,i.tZ)("path",{d:"M88.3711 52.7107C87.5406 52.2395 86.6209 51.947 85.6708 51.852C84.7207 51.7569 83.7613 51.8613 82.8539 52.1585L80.2148 66.6794C85.4986 68.0322 89.5552 63.7038 90.3867 60.7469C91.0823 58.2663 91.1142 54.2726 88.3711 52.7107Z",fill:"#FF977B"}),(0,i.tZ)("path",{d:"M37.5841 61.3481C37.3841 61.3484 37.1863 61.306 37.004 61.2235C36.8218 61.141 36.6593 61.0205 36.5276 60.8699C36.086 60.408 35.5389 60.0602 34.9331 59.8565C34.3274 59.6529 33.6813 59.5995 33.0504 59.7009C32.6872 59.7664 32.3128 59.6865 32.008 59.4785C31.7032 59.2704 31.4924 58.9509 31.4211 58.5889C31.3497 58.2268 31.4235 57.8512 31.6266 57.5431C31.8297 57.235 32.1458 57.019 32.5066 56.9418C33.6203 56.7501 34.7643 56.839 35.835 57.2006C36.9057 57.5622 37.8694 58.185 38.6388 59.0128C38.8175 59.2158 38.9338 59.466 38.9739 59.7334C39.014 60.0008 38.9761 60.2742 38.8648 60.5206C38.7535 60.7671 38.5735 60.9762 38.3463 61.123C38.1192 61.2697 37.8545 61.3479 37.5841 61.3481Z",fill:"#E38E74"}),(0,i.tZ)("path",{d:"M80.7071 61.3481C80.4366 61.3479 80.172 61.2697 79.9449 61.123C79.7177 60.9762 79.5377 60.7671 79.4264 60.5206C79.3151 60.2742 79.2772 60.0008 79.3173 59.7334C79.3574 59.466 79.4737 59.2158 79.6524 59.0128C80.4218 58.185 81.3855 57.5622 82.4562 57.2006C83.5269 56.839 84.6708 56.7501 85.7846 56.9418C85.966 56.9779 86.1385 57.0494 86.2922 57.1522C86.446 57.255 86.5779 57.3872 86.6805 57.5411C86.7831 57.695 86.8544 57.8676 86.8901 58.0491C86.9259 58.2305 86.9256 58.4173 86.8891 58.5986C86.8526 58.7799 86.7806 58.9523 86.6774 59.1058C86.5742 59.2593 86.4418 59.3909 86.2876 59.4931C86.1335 59.5953 85.9606 59.6661 85.7791 59.7015C85.5975 59.7368 85.4108 59.736 85.2295 59.699C84.5998 59.5987 83.955 59.6528 83.3508 59.8568C82.7466 60.0608 82.2009 60.4085 81.7608 60.8699C81.6291 61.0198 81.4671 61.14 81.2854 61.2224C81.1037 61.3048 80.9066 61.3477 80.7071 61.3481Z",fill:"#E38E74"}),(0,i.tZ)("path",{d:"M80.5319 36.6796C78.4806 32.5143 71.846 23.9943 68.6332 25.4296C65.396 28.8674 57.6719 38.2386 46.4894 33.2418C43.2766 31.8065 40.4266 33.7818 38.2394 36.4583C35.0425 40.3668 34.8503 50.3268 36.0222 58.2533C37.6882 69.5315 44.4935 85.5468 59.1457 85.5468C73.7978 85.5468 80.5947 69.5315 82.2616 58.2533C83.4335 50.3268 83.1297 41.953 80.5319 36.6796Z",fill:"#FFB497"}),(0,i.tZ)("path",{d:"M60.9964 61.0029C60.7863 61.0029 60.5789 61.05 60.3894 61.1407C60.2 61.2314 60.0332 61.3634 59.9014 61.527C59.6511 61.604 59.3923 61.6499 59.1308 61.6639C58.8652 61.6503 58.6023 61.604 58.348 61.5261C58.1653 61.2998 57.9169 61.1358 57.6371 61.0565C57.3573 60.9773 57.0598 60.9867 56.7856 61.0836C56.5114 61.1804 56.2739 61.3599 56.1059 61.5973C55.938 61.8347 55.8477 62.1184 55.8477 62.4092C55.8477 64.1051 58.2186 64.4764 59.1289 64.4764C59.1627 64.4764 62.4008 64.4201 62.4008 62.4092C62.4008 62.0365 62.2529 61.6791 61.9896 61.4155C61.7262 61.1518 61.369 61.0034 60.9964 61.0029Z",fill:"#E38E74"}),(0,i.tZ)("path",{d:"M55.3526 71.1617C54.9015 71.1768 54.4528 71.0897 54.0401 70.9067C53.7034 70.7455 53.4444 70.457 53.3203 70.1049C53.1962 69.7527 53.217 69.3657 53.3783 69.0289C53.5395 68.6921 53.8279 68.4332 54.1801 68.3091C54.5323 68.1849 54.9193 68.2058 55.2561 68.367C55.823 68.3338 56.3868 68.2611 56.9436 68.1495C57.6666 68.0112 58.399 67.9279 59.1345 67.9001C59.8693 67.9267 60.6013 68.0037 61.3255 68.1308C61.9055 68.2482 62.4962 68.305 63.088 68.3005C63.2519 68.2212 63.43 68.1755 63.6118 68.1659C63.7936 68.1563 63.9755 68.1831 64.1469 68.2446C64.3182 68.3062 64.4756 68.4013 64.6097 68.5243C64.7439 68.6474 64.8522 68.796 64.9283 68.9614C65.0848 69.3044 65.1006 69.6952 64.9723 70.0498C64.844 70.4043 64.5818 70.6945 64.242 70.858C63.1547 71.2012 61.9907 71.2191 60.8933 70.9095C60.3156 70.806 59.7319 70.7396 59.1458 70.7108C58.559 70.7407 57.9751 70.8118 57.3983 70.9236C56.7236 71.056 56.0397 71.1356 55.3526 71.1617Z",fill:"#E88060"}),(0,i.tZ)("path",{d:"M79.1079 48.3892C78.8495 48.3895 78.596 48.3181 78.3757 48.1829C76.121 46.8039 71.4673 45.7454 65.7673 47.2951C65.4068 47.3931 65.0221 47.3438 64.6979 47.1582C64.3737 46.9725 64.1365 46.6657 64.0386 46.3051C63.9406 45.9446 63.9899 45.5599 64.1755 45.2357C64.3612 44.9115 64.668 44.6743 65.0286 44.5764C71.5836 42.7951 76.9789 44.027 79.841 45.7783C80.1027 45.9381 80.305 46.1792 80.417 46.4646C80.529 46.7501 80.5446 47.0643 80.4615 47.3595C80.3783 47.6547 80.201 47.9146 79.9565 48.0996C79.7119 48.2847 79.4136 48.3847 79.107 48.3845L79.1079 48.3892Z",fill:"#284A75"}),(0,i.tZ)("path",{d:"M39.1855 48.3892C38.8788 48.3894 38.5805 48.2893 38.336 48.1043C38.0915 47.9193 37.9141 47.6594 37.831 47.3642C37.7479 47.069 37.7635 46.7548 37.8755 46.4693C37.9875 46.1839 38.1897 45.9428 38.4514 45.7829C41.3145 44.0326 46.7117 42.797 53.2639 44.5811C53.4424 44.6296 53.6096 44.7128 53.756 44.8259C53.9024 44.939 54.025 45.0799 54.1169 45.2404C54.2089 45.4009 54.2683 45.578 54.2918 45.7615C54.3153 45.945 54.3024 46.1313 54.2539 46.3098C54.2054 46.4883 54.1222 46.6556 54.0091 46.8019C53.8959 46.9483 53.7551 47.0709 53.5946 47.1629C53.434 47.2548 53.257 47.3142 53.0735 47.3377C52.89 47.3612 52.7037 47.3483 52.5252 47.2998C46.8242 45.7464 42.1714 46.8076 39.9167 48.1876C39.6962 48.3209 39.4431 48.3907 39.1855 48.3892Z",fill:"#284A75"}),(0,i.tZ)("path",{d:"M71.2156 55.3409C72.6421 55.3409 73.7984 54.1846 73.7984 52.7581C73.7984 51.3317 72.6421 50.1753 71.2156 50.1753C69.7892 50.1753 68.6328 51.3317 68.6328 52.7581C68.6328 54.1846 69.7892 55.3409 71.2156 55.3409Z",fill:"#1B3250"}),(0,i.tZ)("path",{d:"M76.1495 52.983C75.957 52.9831 75.7667 52.9437 75.5901 52.8672C75.4135 52.7908 75.2545 52.6789 75.1229 52.5386C74.027 51.7324 72.6789 51.345 71.3223 51.4464C70.4654 51.3756 69.6071 51.5658 68.8604 51.992C68.6122 52.267 68.2673 52.4355 67.8978 52.4622C67.5283 52.489 67.1628 52.3719 66.8776 52.1355C66.5974 51.9031 66.4205 51.5694 66.3853 51.2071C66.3502 50.8448 66.4598 50.4833 66.6901 50.2014C67.7373 48.9302 69.8579 48.677 71.0279 48.6395C73.0641 48.5739 75.7154 49.0614 77.1732 50.6148C77.3608 50.8149 77.4858 51.0655 77.5328 51.3357C77.5798 51.6059 77.5468 51.8839 77.4378 52.1356C77.3288 52.3873 77.1486 52.6016 76.9193 52.7521C76.6901 52.9027 76.4218 52.9829 76.1476 52.983H76.1495Z",fill:"#284A75"}),(0,i.tZ)("path",{d:"M47.075 55.3409C48.5014 55.3409 49.6578 54.1846 49.6578 52.7581C49.6578 51.3317 48.5014 50.1753 47.075 50.1753C45.6486 50.1753 44.4922 51.3317 44.4922 52.7581C44.4922 54.1846 45.6486 55.3409 47.075 55.3409Z",fill:"#1B3250"}),(0,i.tZ)("path",{d:"M42.1404 52.9829C41.8662 52.9828 41.5979 52.9026 41.3686 52.752C41.1394 52.6015 40.9592 52.3872 40.8502 52.1355C40.7412 51.8838 40.7082 51.6058 40.7552 51.3356C40.8022 51.0654 40.9272 50.8148 41.1148 50.6147C42.5707 49.0613 45.2182 48.5729 47.2601 48.6394C48.4301 48.6769 50.5507 48.9301 51.5979 50.2013C51.8289 50.4895 51.9372 50.8571 51.8995 51.2246C51.8617 51.592 51.6808 51.9299 51.396 52.1651C51.1112 52.4003 50.7452 52.514 50.3772 52.4816C50.0093 52.4492 49.6688 52.2733 49.4295 51.9919C48.6827 51.5658 47.8245 51.3756 46.9676 51.4463C45.6107 51.3422 44.2616 51.7299 43.167 52.5385C43.0354 52.6788 42.8764 52.7907 42.6998 52.8671C42.5232 52.9436 42.3328 52.983 42.1404 52.9829Z",fill:"#284A75"})]})}),(0,i.tZ)(o.T,{size:"p3",color:"gray.6",children:l({id:"expert.list.noResult",defaultMessage:"No doctor found. Please try another keyword"})})]})})},OJGO:function(e,l,t){t.d(l,{T:function(){return _Search}});var i=t("BGKE"),n=t("q1tI"),a=t("uuQu"),o=t("wp0n"),r=t("unQi"),d=t("fdQd"),c=t("8wjV"),s=t("DA0W"),u=t("jUTz"),p=t("7Ci/"),v=t("SPK5"),h=t("gxre"),g=t("sEfC"),m=t.n(g),C=t("dDsW"),f=t("a5vB"),Z=t("09QT"),y=t("/tR3"),x=t("oQBk"),b=t("hXNO"),B=t("Y7A1"),T=t("jZMZ"),w=t("c9pU"),M=t("ch66"),_=t("OAL+");let E=n.memo(function(){let{formatMessage:e}=(0,C.Z)();return(0,i.BX)(_.K,{align:"center",justify:"center",py:40,children:[(0,i.BX)("svg",{width:"120",height:"121",viewBox:"0 0 120 121",fill:"none",children:[(0,i.BX)("g",{clipPath:"url(#clip0_4315_31345)",children:[(0,i.tZ)("path",{d:"M59.9994 120.013C93.1362 120.013 119.999 93.1503 119.999 60.0136C119.999 26.8768 93.1362 0.0141602 59.9994 0.0141602C26.8626 0.0141602 0 26.8768 0 60.0136C0 93.1503 26.8626 120.013 59.9994 120.013Z",fill:"#F7F9FC"}),(0,i.tZ)("path",{d:"M100.965 79.5097C102.733 79.9785 104.271 81.0752 105.29 82.5948C106.309 84.1145 106.74 85.9532 106.503 87.7675C106.265 89.5818 105.375 91.2475 103.999 92.4535C102.623 93.6596 100.855 94.3234 99.0253 94.321C97.1955 94.3186 95.4292 93.6501 94.0564 92.4404C92.6835 91.2308 91.7979 89.5627 91.5651 87.7478C91.3323 85.9329 91.7682 84.0953 92.7914 82.5784C93.8145 81.0614 95.355 79.9688 97.1249 79.5047C97.7451 79.3377 98.3844 79.2526 99.0267 79.2515C99.6815 79.2487 100.334 79.3355 100.965 79.5097Z",fill:"#2D87F3"}),(0,i.tZ)("path",{d:"M100.965 55.7018V86.0017C100.971 86.4643 100.803 86.9124 100.496 87.2581C100.188 87.6038 99.7629 87.8223 99.3027 87.8706C99.2065 87.879 99.1129 87.8832 99.0251 87.8832H98.9188C98.4331 87.8631 97.9743 87.6548 97.6395 87.3023C97.3047 86.9499 97.1202 86.481 97.125 85.9949V55.7043C97.125 51.181 93.2066 47.5031 88.3854 47.5031C83.5643 47.5031 79.6459 51.181 79.6459 55.7043L79.6366 84.1893C79.6273 96.3672 69.245 106.269 56.4816 106.269C43.7182 106.269 33.3257 96.3545 33.3257 84.1775V63.6297C33.9261 63.9141 34.5821 64.0617 35.2465 64.0617C35.9108 64.0617 36.5669 63.9141 37.1673 63.6297V84.1775C37.1673 94.2418 45.8301 102.424 56.4799 102.424C67.1297 102.424 75.7933 94.2401 75.7933 84.1868L75.8026 55.7018C75.8026 49.0657 81.4498 43.6589 88.3838 43.6589C95.3177 43.6589 100.965 49.0657 100.965 55.7018Z",fill:"#BCDEFF"}),(0,i.tZ)("path",{d:"M39.1838 57.7791V63.2204C39.1615 63.8512 38.9599 64.4625 38.6028 64.983C38.2457 65.5034 37.7478 65.9114 37.1673 66.1592C36.5669 66.4436 35.9108 66.5912 35.2465 66.5912C34.5821 66.5912 33.9261 66.4436 33.3257 66.1592C33.0148 66.0109 32.7241 65.8235 32.4608 65.6015C32.1073 65.3124 31.8213 64.9495 31.6229 64.5381C31.4245 64.1268 31.3186 63.677 31.3125 63.2204V57.9326C32.4326 58.0648 33.5596 58.1291 34.6875 58.125C36.193 58.127 37.6964 58.0114 39.1838 57.7791Z",fill:"#2D87F3"}),(0,i.tZ)("path",{d:"M50.2025 13.7622V19.822H48.9225C48.1189 19.822 47.3482 19.5028 46.78 18.9346C46.2118 18.3664 45.8926 17.5957 45.8926 16.7921C45.8926 15.9885 46.2118 15.2179 46.78 14.6496C47.3482 14.0814 48.1189 13.7622 48.9225 13.7622H50.2025Z",fill:"#284A75"}),(0,i.tZ)("path",{d:"M22.6075 14.6456C23.0334 15.0688 23.3239 15.609 23.4421 16.1976C23.5603 16.7862 23.5009 17.3967 23.2714 17.9514C23.0419 18.5062 22.6527 18.9802 22.1532 19.3133C21.6537 19.6464 21.0665 19.8234 20.4661 19.822H19.0781V13.7622H20.4661C20.8636 13.7613 21.2574 13.8389 21.6249 13.9905C21.9923 14.1421 22.3263 14.3647 22.6075 14.6456Z",fill:"#284A75"}),(0,i.tZ)("path",{d:"M55.9501 18.7851V39.2409C55.9501 51.8415 48.4407 58.0161 39.1822 59.4665C37.6953 59.6987 36.1925 59.8143 34.6876 59.8124C33.5597 59.8165 32.4327 59.7522 31.3126 59.62C21.5512 58.5063 13.436 52.341 13.436 39.2409V18.7851C13.436 14.4347 16.7402 13.7622 18.7567 13.7622H19.4157V39.2435C19.4157 49.1263 26.2636 53.8319 34.6876 53.8319C43.1116 53.8319 49.967 49.1263 49.967 39.2435V13.7622H50.6344C52.6485 13.7622 55.9501 14.4347 55.9501 18.7851Z",fill:"#2D87F3"})]}),(0,i.tZ)("defs",{children:(0,i.tZ)("clipPath",{id:"clip0_4315_31345",children:(0,i.tZ)("rect",{width:"120",height:"120",fill:"white",transform:"translate(0 0.0141602)"})})})]}),(0,i.tZ)(o.T,{size:"p3",children:e({id:"expert.specialtyList.noResult",defaultMessage:"No specialty found. Please try another keyword"})})]})});var k=t("6F6o");let A=(0,n.forwardRef)(function(e,l){let{label:t,countExperts:n,...a}=e;return(0,i.tZ)("div",{ref:l,...a,children:(0,i.BX)(o.T,{size:"p4",children:[(0,i.tZ)(o.T,{span:!0,sx:{display:"inline",lineBreak:"auto",whiteSpace:"pre-line"},children:t}),(0,i.BX)(o.T,{span:!0,color:"gray.6",ml:4,sx:{display:"inline"},children:["(",n,")"]})]})})}),N=(0,n.forwardRef)(function(e,l){let{label:t,avatarThumbnail:n,...a}=e;return(0,i.tZ)("div",{ref:l,...a,children:(0,i.BX)(s.Z,{noWrap:!0,children:[(0,i.tZ)(u.q,{src:n,radius:"xl"}),(0,i.tZ)("div",{children:(0,i.tZ)(o.T,{size:"p4",children:t})})]})})}),S={nothingFound:{gridColumnStart:1,gridColumnEnd:3},item:{wordBreak:"break-word"}},_Search=e=>{let{onSearch:l,...t}=e,{formatMessage:s}=(0,C.Z)(),u=(0,b.d)(),{setExpertList:g}=(0,B.ek)(e=>e,f.X),[_,X]=(0,n.useState)(""),setSpecialtySearchValue=e=>{X(e),e||G(null)},[z,H]=(0,n.useState)(""),[I,P]=(0,n.useState)([]),[D,L]=(0,n.useState)(!1),[F,U]=(0,n.useState)(!1),W=(0,n.useRef)(()=>!1),{specialtyData:R,selectedSpecialty:K,handleSpecialtyChange:G,handleExpertChange:O}=(0,k.Z)(),Y=(0,n.useCallback)(async()=>{var e,l;let t=R.find(e=>e.termId===(null==K?void 0:K.termId)),i=await (0,Z.d)(x.y.EXPERT.GET_EXPERT_BY_NAME_AND_SPECIALTY,{params:{specialty:(null==t?void 0:t.termId)||"",...""!==z?{search_by:"display_name",name:z}:{}}});return{experts:null==i?void 0:null===(e=i.data)||void 0===e?void 0:e.experts.map(y.TM),pagination:null==i?void 0:null===(l=i.data)||void 0===l?void 0:l.paging}},[K,z]),V=(0,n.useCallback)(m()(async(e,l)=>{L(!0);let t=!1;W.current=()=>{t=!0};try{var i;let n=await (0,Z.d)(x.y.EXPERT.GET_EXPERT_BY_NAME_AND_SPECIALTY,{params:{specialty:l||"",search_by:"display_name",name:e}});if(t)return;P((0,T.x)((null==n?void 0:null===(i=n.data)||void 0===i?void 0:i.experts.map(y.TM))||[],"displayName","displayName"))}catch(e){console.error(e)}L(!1)},200),[]),handleSearch=async()=>{U(!0);let e=await Y();g(e),U(!1),null==l||l()},onClearExpert=async()=>{H("")};(0,n.useEffect)(()=>(V(z,String((null==K?void 0:K.termId)||"")),()=>{var e;null===(e=W.current)||void 0===e||e.call(W)}),[z,null==K?void 0:K.termId]);let j=(0,n.useMemo)(()=>e=>{let{children:l}=e;return(0,i.BX)("div",{style:{overflow:"auto",width:"100%"},children:[l,(0,i.tZ)(r.fz,{visible:D})]})},[D]);return(0,i.tZ)(p.W,{size:"lg",py:{base:8,md:24},px:{base:0,md:16},...t,children:(0,i.BX)(v.k,{w:"100%",justify:"space-between",gap:{base:16,md:24},direction:{base:"column",md:"row"},children:[(0,i.tZ)(d.S,{..._.length>0?{rightSection:(0,i.tZ)(h.A,{onClick:()=>{setSpecialtySearchValue("")},sx:{cursor:"pointer"},children:(0,i.tZ)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",children:(0,i.tZ)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M1.6665 9.99996C1.6665 5.39163 5.3915 1.66663 9.99984 1.66663C14.6082 1.66663 18.3332 5.39163 18.3332 9.99996C18.3332 14.6083 14.6082 18.3333 9.99984 18.3333C5.3915 18.3333 1.6665 14.6083 1.6665 9.99996ZM12.4083 13.5831C12.7333 13.9081 13.2583 13.9081 13.5833 13.5831C13.9 13.2581 13.9 12.7247 13.5833 12.4081L11.175 9.99973L13.5833 7.5914C13.9083 7.2664 13.9083 6.7414 13.5833 6.4164C13.2583 6.0914 12.7333 6.0914 12.4083 6.4164L10 8.82473L7.59167 6.4164C7.26667 6.0914 6.74167 6.0914 6.41667 6.4164C6.26063 6.57209 6.17293 6.78347 6.17293 7.0039C6.17293 7.22433 6.26063 7.43571 6.41667 7.5914L8.825 9.99973L6.41667 12.4081C6.26063 12.5638 6.17293 12.7751 6.17293 12.9956C6.17293 13.216 6.26063 13.4274 6.41667 13.5831C6.74167 13.9081 7.26667 13.9081 7.59167 13.5831L10 11.1747L12.4083 13.5831Z",fill:"#8C8C8C"})})})}:{},allowDeselect:!0,data:R,dropdownPosition:"bottom",itemComponent:A,keepSearch:!0,limit:100,nothingFound:(0,i.tZ)(E,{}),onChange:setSpecialtySearchValue,value:_,onItemSubmit:e=>G(e),searchable:!0,size:"lg",w:u?"100%":"30%",placeholder:s({id:"expertPage.search.specialty.placeholder",defaultMessage:"Choose a specialty"}),label:u&&(0,i.tZ)(o.T,{size:"label2",weight:"bold",children:s({id:"expert.search.specialty",defaultMessage:"Specialty"})}),styles:S,filter:(e,l)=>{var t,i;return(0,w.T)(null==l?void 0:null===(t=l.label)||void 0===t?void 0:t.toLowerCase()).includes((0,w.T)(e.toLowerCase()).trim())||(0,w.T)(null==l?void 0:null===(i=l.name)||void 0===i?void 0:i.toLowerCase()).includes((0,w.T)(e.toLowerCase()).trim())}}),(0,i.tZ)(d.S,{...z.length>0?{rightSection:(0,i.tZ)(h.A,{onClick:onClearExpert,sx:{cursor:"pointer"},children:(0,i.tZ)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",children:(0,i.tZ)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M1.6665 9.99996C1.6665 5.39163 5.3915 1.66663 9.99984 1.66663C14.6082 1.66663 18.3332 5.39163 18.3332 9.99996C18.3332 14.6083 14.6082 18.3333 9.99984 18.3333C5.3915 18.3333 1.6665 14.6083 1.6665 9.99996ZM12.4083 13.5831C12.7333 13.9081 13.2583 13.9081 13.5833 13.5831C13.9 13.2581 13.9 12.7247 13.5833 12.4081L11.175 9.99973L13.5833 7.5914C13.9083 7.2664 13.9083 6.7414 13.5833 6.4164C13.2583 6.0914 12.7333 6.0914 12.4083 6.4164L10 8.82473L7.59167 6.4164C7.26667 6.0914 6.74167 6.0914 6.41667 6.4164C6.26063 6.57209 6.17293 6.78347 6.17293 7.0039C6.17293 7.22433 6.26063 7.43571 6.41667 7.5914L8.825 9.99973L6.41667 12.4081C6.26063 12.5638 6.17293 12.7751 6.17293 12.9956C6.17293 13.216 6.26063 13.4274 6.41667 13.5831C6.74167 13.9081 7.26667 13.9081 7.59167 13.5831L10 11.1747L12.4083 13.5831Z",fill:"#8C8C8C"})})})}:{},allowDeselect:!0,data:I,dropdownPosition:"bottom",itemComponent:N,keepSearch:!0,limit:100,dropdownComponent:j,nothingFound:(0,i.tZ)(M.$,{py:40}),onChange:H,value:z,onItemSubmit:O,searchable:!0,size:"lg",sx:{flexGrow:1},placeholder:s({id:"expertPage.search.expert.placeholder",defaultMessage:"Search by expert's name"}),label:u&&(0,i.tZ)(o.T,{size:"label2",weight:"bold",children:s({id:"careBooking.doctor",defaultMessage:"Doctor"})}),styles:{...S,itemsWrapper:{[a.M.mbUp]:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:4}}},filter:()=>!0}),(0,i.tZ)(c.B,{size:"lg",onClick:handleSearch,loading:F,children:s({id:"navigation.search.input.placeholder",defaultMessage:"Search"})})]})})}},Vx7o:function(e,l,t){var i=t("BGKE"),n=t("q1tI"),a=t("DEkF"),o=t("MmHG"),r=t("NMBh"),d=t("iBNF"),c=t("dDsW"),s=t("gHFm"),u=t("w/Id"),p=t("2kea"),v=t("1dAL"),h=t("FxIt"),g=t("2su4"),m=t("hXNO"),C=t("rIrU"),f=t("tEVo");l.Z=e=>{var l,t,Z,y,x,b,B,T,w,M,_,E,k,A,N,S,X,z,H,I,P,D,L,F,U,W,R,K,G,O,Y,V,j,Q,q,J,$,ee,el,et,ei,en,ea,eo,er,ed,ec,es,eu,ep,ev,eh,eg,em,eC,ef,eZ,ey,ex,eb,eB;let{type:eT,expert:ew,footerInfo:eM,dataNavMenuContent:e_}=e,[eE,ek]=(0,n.useState)(!1),eA=(0,m.d)(),{formatMessage:eN}=(0,c.Z)(),[eS,eX]=(0,n.useState)(!1),[ez,eH]=(0,n.useState)(!1),[eI,eP]=(0,n.useState)(!1);return(0,i.tZ)(g.x,{SEOData:{apiMetaData:ew.metaTag,isIndexable:!0},type:"profile",footerInfo:eM,dataNavMenuContent:e_,children:eA?(0,i.BX)(s.W,{children:[(0,i.tZ)(p.d,{pageItem:[..."expert"===eT?[{label:eN({id:"experts.allExperts",defaultMessage:"Experts"}),value:"/expert"}]:[],{label:ew.displayName,value:ew.profileUrl}]}),(0,i.BX)(f.hZ,{children:[(0,i.BX)(f.pI,{children:[(0,i.tZ)(f.GM,{children:(0,i.tZ)("div",{className:"image-container",children:(0,i.BX)("div",{style:{position:"relative"},children:[(0,i.tZ)("img",{src:ew.avatarThumbnail||ew.avatar||C.DP,className:"profile-image",alt:"avatar",onError:e=>e.currentTarget.src=C.DP,loading:"lazy"}),(null==ew?void 0:ew.role)&&(0,i.tZ)("img",{className:"badge-avatar",src:"".concat(C.Nr,"/reviewer-").concat(ew.role||"",".svg"),alt:"badge",loading:"lazy"})]})})}),(0,i.BX)(f.mH,{children:[(0,i.tZ)(a.H,{tag:"h3",children:ew.displayName}),(0,i.tZ)(v.T,{size:"md",contents:[...(null==ew?void 0:ew.fields.specialty)?[(0,i.tZ)(o.T,{size:"p3",color:d.r.colors.gray800,children:null==ew?void 0:ew.fields.specialty},"1")]:[],...(null==ew?void 0:ew.fields.organisation)?[(0,i.tZ)(o.T,{size:"p3",className:"organisation",color:d.r.colors.gray500,children:(0,i.tZ)("a",{href:(null==ew?void 0:ew.organisation_url)||void 0,className:"organisation",target:"_blank",children:(0,i.tZ)("span",{dangerouslySetInnerHTML:{__html:null==ew?void 0:ew.fields.organisation}})})},"2")]:[]],separator:(0,i.tZ)(f.g4,{}),className:"position-container"}),(0,i.tZ)(f.S1,{children:Object.keys(null==ew?void 0:null===(l=ew.fields)||void 0===l?void 0:l.contact).map((e,l)=>{var t,n,a,o;return(null==ew?void 0:null===(n=ew.fields)||void 0===n?void 0:null===(t=n.contact)||void 0===t?void 0:t[e])?(0,i.tZ)(f.En,{href:(null==ew?void 0:null===(o=ew.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,i.tZ)("img",{src:"".concat(C.uQ,"/").concat(e,".svg"),className:"social-icons",alt:"",loading:"lazy"})},l):null})})]})]}),!!ew.description&&(0,i.BX)(i.HY,{children:[(0,i.BX)(f.NA,{children:["author"===eT?(0,i.tZ)(a.H,{tag:"h3",children:eN({id:"author.content.about",defaultMessage:"About"})}):(0,i.tZ)(a.H,{tag:"h3",children:eN({id:"expert.content.about",defaultMessage:"About"})}),(0,i.tZ)(o.T,{size:"p1",children:(0,i.tZ)("div",{className:"expert-description",dangerouslySetInnerHTML:{__html:ew.description}})})]}),(0,i.tZ)(r.D,{type:"solid",className:"divider"})]}),(0,i.BX)(f.NA,{children:[(null==ew?void 0:null===(t=ew.fields)||void 0===t?void 0:t.educations)||(null==ew?void 0:null===(Z=ew.fields)||void 0===Z?void 0:Z.experiences)||(null==ew?void 0:null===(y=ew.fields)||void 0===y?void 0:y.awards_accreditations)?(0,i.tZ)(a.H,{tag:"h3",children:eN({id:"expert.content.highlight",defaultMessage:"Credentials & Highlights"})}):null,(null==ew?void 0:null===(x=ew.fields)||void 0===x?void 0:x.educations)&&Array.isArray(null==ew?void 0:null===(b=ew.fields)||void 0===b?void 0:b.educations)&&(null==ew?void 0:null===(B=ew.fields)||void 0===B?void 0:B.educations.length)>0&&(0,i.BX)(i.HY,{children:[(0,i.tZ)(o.T,{type:"bold",size:"c2",color:d.r.colors.gray400,style:{marginTop:16},children:eN({id:"expert.content.education",defaultMessage:"Education"}).toUpperCase()}),(0,i.tZ)(f.l6,{children:(eS?null==ew?void 0:null===(T=ew.fields)||void 0===T?void 0:T.educations:null==ew?void 0:null===(w=ew.fields)||void 0===w?void 0:w.educations.slice(0,3)).map((e,l)=>(0,i.BX)(f.MZ,{children:[(0,i.tZ)("img",{className:"bullet-point",src:"".concat(C.Nr,"/bullet-point.svg"),alt:"point",loading:"lazy"}),(0,i.BX)("div",{className:"text-contain",children:[(0,i.tZ)(a.H,{tag:"h6",color:d.r.colors.gray800,children:(0,i.tZ)("span",{dangerouslySetInnerHTML:{__html:e.study}})}),(0,i.tZ)(o.T,{size:"p3",color:d.r.colors.gray500,dangerouslySetInnerHTML:{__html:(null==e?void 0:e.school_name)||""}})]})]},"item-".concat(l)))}),(null==ew?void 0:null===(M=ew.fields)||void 0===M?void 0:M.educations.length)>3&&!eS?(0,i.BX)("div",{className:"see-more",onClick:()=>eX(!0),children:[eN({id:"expert.content.seeMore",defaultMessage:"See more"}),(0,i.tZ)("img",{src:"".concat(C.Nr,"/chevronDownBlue.svg"),alt:"see-more",loading:"lazy"})]}):null,(0,i.tZ)(r.D,{type:"solid",className:"list-divider"})]}),"expert"===eT&&(null==ew?void 0:null===(_=ew.fields)||void 0===_?void 0:_.experiences)&&Array.isArray(null==ew?void 0:null===(E=ew.fields)||void 0===E?void 0:E.experiences)&&(null==ew?void 0:null===(k=ew.fields)||void 0===k?void 0:k.experiences.length)>0&&(0,i.BX)(i.HY,{children:[(0,i.tZ)(o.T,{type:"bold",size:"c2",color:d.r.colors.gray400,style:{marginTop:16},children:eN({id:"expert.content.experiences",defaultMessage:"Experiences"}).toUpperCase()}),(0,i.tZ)(f.l6,{children:(ez?null==ew?void 0:null===(A=ew.fields)||void 0===A?void 0:A.experiences:null==ew?void 0:null===(N=ew.fields)||void 0===N?void 0:N.experiences.slice(0,3)).map((e,l)=>(0,i.BX)(f.MZ,{children:[(0,i.tZ)("img",{className:"bullet-point",src:"".concat(C.Nr,"/bullet-point.svg"),alt:"point",loading:"lazy"}),(0,i.BX)("div",{className:"text-contain",children:[(0,i.tZ)(a.H,{tag:"h6",color:d.r.colors.gray800,children:(0,i.tZ)("span",{dangerouslySetInnerHTML:{__html:(null==e?void 0:e.title)||""}})}),(0,i.tZ)(o.T,{size:"p3",color:d.r.colors.gray500,dangerouslySetInnerHTML:{__html:(null==e?void 0:e.organization)||""}})]})]},"item-".concat(l)))}),(null==ew?void 0:null===(S=ew.fields)||void 0===S?void 0:S.experiences.length)>3&&!ez?(0,i.BX)("div",{className:"see-more",onClick:()=>eH(!0),children:[eN({id:"expert.content.seeMore",defaultMessage:"See more"}),(0,i.tZ)("img",{src:"".concat(C.Nr,"/chevronDownBlue.svg"),alt:"see-more",loading:"lazy"})]}):null,(0,i.tZ)(r.D,{type:"solid",className:"list-divider"})]}),"expert"===eT&&(null==ew?void 0:null===(X=ew.fields)||void 0===X?void 0:X.awards_accreditations)&&Array.isArray(null==ew?void 0:null===(z=ew.fields)||void 0===z?void 0:z.awards_accreditations)&&(null==ew?void 0:null===(H=ew.fields)||void 0===H?void 0:H.awards_accreditations.length)>0&&(0,i.BX)(i.HY,{children:[(0,i.tZ)(o.T,{type:"bold",size:"c2",color:d.r.colors.gray400,style:{marginTop:16},children:eN({id:"expert.content.awards",defaultMessage:"Awards & Accreditations"}).toUpperCase()}),(0,i.tZ)(f.l6,{children:(eI?null==ew?void 0:null===(I=ew.fields)||void 0===I?void 0:I.awards_accreditations:null==ew?void 0:null===(P=ew.fields)||void 0===P?void 0:P.awards_accreditations.slice(0,3)).map((e,l)=>(0,i.BX)(f.MZ,{children:[(0,i.tZ)("img",{className:"bullet-point",src:"".concat(C.Nr,"/bullet-point.svg"),alt:"point",loading:"lazy"}),(0,i.tZ)("div",{className:"text-contain",children:(0,i.tZ)(o.T,{size:"p3",color:d.r.colors.gray800,children:(0,i.tZ)("span",{dangerouslySetInnerHTML:{__html:e.title}})})})]},"item-".concat(l)))}),(null==ew?void 0:null===(D=ew.fields)||void 0===D?void 0:D.awards_accreditations.length)>3&&!eI?(0,i.BX)("div",{className:"see-more",onClick:()=>eP(!0),children:[eN({id:"expert.content.seeMore",defaultMessage:"See more"}),(0,i.tZ)("img",{src:"".concat(C.Nr,"/chevronDownBlue.svg"),alt:"see-more",loading:"lazy"})]}):null,(0,i.tZ)(r.D,{type:"solid",className:"list-divider"})]}),(null==ew?void 0:null===(L=ew.fields)||void 0===L?void 0:L.sources)&&Array.isArray(null==ew?void 0:null===(F=ew.fields)||void 0===F?void 0:F.sources)&&(null==ew?void 0:null===(U=ew.fields)||void 0===U?void 0:U.sources.length)>0&&(0,i.BX)(i.HY,{children:[(0,i.tZ)(f.P_,{onClick:()=>ek(e=>!e),children:(0,i.BX)(o.T,{type:"bold",size:"c2",color:d.r.colors.gray500,style:{marginTop:16},children:[(0,i.tZ)("img",{className:"heading-icons",src:"".concat(C.uQ,"/").concat(eE?"minus":"plus",".svg"),alt:"plus-icon",loading:"lazy"}),eN({id:"expert.content.publishedPapers",defaultMessage:"{number} Published papers"},{number:null==ew?void 0:null===(W=ew.fields)||void 0===W?void 0:W.sources.length}).toUpperCase()]})}),(0,i.tZ)(f.M_,{"data-is-open":eE,children:(0,i.tZ)("div",{className:"link-container",children:null==ew?void 0:null===(R=ew.fields)||void 0===R?void 0:R.sources.map((e,l)=>(0,i.tZ)("div",{className:"paper-link","data-is-url-disabled":!e.url,children:(0,i.tZ)("a",{href:e.url,target:"_blank",children:e.title||e.url})},l))})})]}),(null==ew?void 0:ew.relatedPost)&&Array.isArray(null==ew?void 0:ew.relatedPost)&&(null==ew?void 0:ew.relatedPost.length)>0?(0,i.BX)(i.HY,{children:[(0,i.tZ)(r.D,{type:"solid",className:"divider"}),(0,i.BX)(f.NA,{children:[(0,i.tZ)(a.H,{tag:"h3",children:eN({id:"expert.content.latestArticles",defaultMessage:"Latest Expert Articles"})}),(0,i.tZ)(u.T,{isMobile:eA,trendingPosts:ew.relatedPost})]})]}):null,ew.fields.policies?(0,i.BX)(i.HY,{children:[(0,i.tZ)(r.D,{type:"solid",className:"divider"}),(0,i.BX)(f.NA,{children:[(0,i.tZ)(a.H,{tag:"h3",style:{marginBottom:20},children:null===(K=ew.fields.policies)||void 0===K?void 0:K.title}),(0,i.tZ)(o.T,{size:"p1",children:(0,i.tZ)("div",{dangerouslySetInnerHTML:{__html:ew.fields.policies.content}})}),(null===(G=ew.fields.policies)||void 0===G?void 0:G.readmore)?(0,i.BX)(f.pJ,{href:ew.fields.policies.readmore_url||"",children:[(0,i.tZ)(a.H,{fontWeight:"bold",tag:"h6",color:d.r.colors.primaryActive,children:ew.fields.policies.readmore}),(0,i.tZ)("img",{src:"".concat(C.Nr,"/chevronRightBlue.svg"),alt:"right-chevron",loading:"lazy"})]}):null]})]}):null]}),(0,i.tZ)(h.default,{})]})]}):(0,i.BX)(i.HY,{children:[(0,i.tZ)(s.W,{children:(0,i.tZ)(p.d,{pageItem:[..."expert"===eT?[{label:eN({id:"experts.allExperts",defaultMessage:"Experts"}),value:"/expert"}]:[],{label:ew.displayName,value:ew.profileUrl}]})}),(0,i.BX)(f.hZ,{children:[(0,i.BX)(f.pI,{children:[(0,i.BX)("div",{className:"avatar-title",children:[(0,i.tZ)(f.GM,{children:(0,i.tZ)("div",{className:"image-container",children:(0,i.BX)("div",{style:{position:"relative"},children:[(0,i.tZ)("img",{src:ew.avatar||ew.avatarThumbnail||C.DP,style:{width:"168px",height:"168px"},className:"profile-image",loading:"lazy",alt:"avatar",onError:e=>e.currentTarget.src=C.DP}),(null==ew?void 0:ew.role)&&(0,i.tZ)("img",{className:"badge-avatar",src:"".concat(C.Nr,"/reviewer-").concat(ew.role||"",".svg"),alt:"badge",loading:"lazy"})]})})}),(0,i.BX)(f.mH,{children:[(0,i.tZ)(a.H,{tag:"h3",children:ew.displayName}),(0,i.tZ)(v.T,{size:"md",contents:[...(null==ew?void 0:ew.fields.specialty)?[(0,i.tZ)(o.T,{size:"p3",color:d.r.colors.gray800,children:null==ew?void 0:ew.fields.specialty},"1")]:[],...(null==ew?void 0:ew.fields.organisation)?[(0,i.tZ)(o.T,{size:"p3",color:d.r.colors.gray500,children:(0,i.tZ)("a",{href:(null==ew?void 0:ew.organisation_url)||void 0,className:"organisation",target:"_blank",children:(0,i.tZ)("span",{dangerouslySetInnerHTML:{__html:null==ew?void 0:ew.fields.organisation}})})},"2")]:[]],separator:(0,i.tZ)(f.g4,{}),className:"position-container"}),(0,i.tZ)(f.S1,{children:Object.keys(null==ew?void 0:null===(O=ew.fields)||void 0===O?void 0:O.contact).map((e,l)=>{var t,n,a,o;return(null==ew?void 0:null===(n=ew.fields)||void 0===n?void 0:null===(t=n.contact)||void 0===t?void 0:t[e])?(0,i.tZ)(f.En,{href:(null==ew?void 0:null===(o=ew.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,i.tZ)("img",{src:"".concat(C.uQ,"/").concat(e,".svg"),className:"social-icons",alt:"",loading:"lazy"})},l):null})})]})]}),(0,i.tZ)("div",{className:"border-banner"})]}),(0,i.BX)(s.W,{children:[ew.description?(0,i.tZ)(i.HY,{children:(0,i.BX)(f.NA,{children:["author"===eT?(0,i.tZ)(a.H,{tag:"h3",children:eN({id:"author.content.about",defaultMessage:"About"})}):(0,i.tZ)(a.H,{tag:"h3",children:eN({id:"expert.content.about",defaultMessage:"About"})}),(0,i.tZ)(o.T,{size:"p1",children:(0,i.tZ)("div",{className:"expert-description",dangerouslySetInnerHTML:{__html:ew.description}})})]})}):null,(0,i.BX)(f.NA,{children:[(null==ew?void 0:null===(Y=ew.fields)||void 0===Y?void 0:Y.educations)||(null==ew?void 0:null===(V=ew.fields)||void 0===V?void 0:V.experiences)||(null==ew?void 0:null===(j=ew.fields)||void 0===j?void 0:j.awards_accreditations)?(0,i.tZ)(a.H,{tag:"h3",children:eN({id:"expert.content.highlight",defaultMessage:"Credentials & Highlights"})}):null,(null==ew?void 0:null===(Q=ew.fields)||void 0===Q?void 0:Q.educations)||(null==ew?void 0:null===(q=ew.fields)||void 0===q?void 0:q.experiences)||(null==ew?void 0:null===(J=ew.fields)||void 0===J?void 0:J.awards_accreditations)?(0,i.BX)(i.HY,{children:[(0,i.BX)("div",{className:"highlight-wrapper",children:[(null==ew?void 0:null===($=ew.fields)||void 0===$?void 0:$.educations)&&Array.isArray(null==ew?void 0:null===(ee=ew.fields)||void 0===ee?void 0:ee.educations)&&(null==ew?void 0:null===(el=ew.fields)||void 0===el?void 0:el.educations.length)>0&&(0,i.BX)("div",{className:"highlight-item",children:[(0,i.tZ)(o.T,{type:"bold",size:"c2",color:d.r.colors.gray400,style:{marginTop:16},children:eN({id:"expert.content.education",defaultMessage:"Education"}).toUpperCase()}),(0,i.tZ)(f.l6,{children:(eS?null==ew?void 0:null===(et=ew.fields)||void 0===et?void 0:et.educations:null==ew?void 0:null===(ei=ew.fields)||void 0===ei?void 0:ei.educations.slice(0,3)).map((e,l)=>(0,i.BX)(f.MZ,{children:[(0,i.tZ)("img",{className:"bullet-point",src:"".concat(C.Nr,"/bullet-point.svg"),alt:"point",loading:"lazy"}),(0,i.BX)("div",{className:"text-contain",children:[(0,i.tZ)(a.H,{tag:"h6",color:d.r.colors.gray800,children:(0,i.tZ)("span",{dangerouslySetInnerHTML:{__html:e.study}})}),(0,i.tZ)(o.T,{size:"p3",color:d.r.colors.gray500,dangerouslySetInnerHTML:{__html:(null==e?void 0:e.school_name)||""}})]})]},"item-".concat(l)))}),(null==ew?void 0:null===(en=ew.fields)||void 0===en?void 0:en.educations.length)>3&&!eS?(0,i.BX)("div",{className:"see-more",onClick:()=>eX(!0),children:[eN({id:"expert.content.seeMore",defaultMessage:"See more"}),(0,i.tZ)("img",{src:"".concat(C.Nr,"/chevronDownBlue.svg"),alt:"see-more",loading:"lazy"})]}):null]}),"expert"===eT&&(null==ew?void 0:null===(ea=ew.fields)||void 0===ea?void 0:ea.experiences)&&Array.isArray(null==ew?void 0:null===(eo=ew.fields)||void 0===eo?void 0:eo.experiences)&&(null==ew?void 0:null===(er=ew.fields)||void 0===er?void 0:er.experiences.length)>0&&(0,i.BX)("div",{className:"highlight-item",children:[(0,i.tZ)(o.T,{type:"bold",size:"c2",color:d.r.colors.gray400,style:{marginTop:16},children:eN({id:"expert.content.experiences",defaultMessage:"Experiences"}).toUpperCase()}),(0,i.tZ)(f.l6,{children:(ez?null==ew?void 0:null===(ed=ew.fields)||void 0===ed?void 0:ed.experiences:null==ew?void 0:null===(ec=ew.fields)||void 0===ec?void 0:ec.experiences.slice(0,3)).map((e,l)=>(0,i.BX)(f.MZ,{children:[(0,i.tZ)("img",{className:"bullet-point",src:"".concat(C.Nr,"/bullet-point.svg"),alt:"point",loading:"lazy"}),(0,i.BX)("div",{className:"text-contain",children:[(0,i.tZ)(a.H,{tag:"h6",color:d.r.colors.gray800,children:(0,i.tZ)("span",{dangerouslySetInnerHTML:{__html:e.title}})}),(0,i.tZ)(o.T,{size:"p3",color:d.r.colors.gray500,dangerouslySetInnerHTML:{__html:(null==e?void 0:e.organization)||""}})]})]},"item-".concat(l)))}),(null==ew?void 0:null===(es=ew.fields)||void 0===es?void 0:es.experiences.length)>3&&!ez?(0,i.BX)("div",{className:"see-more",onClick:()=>eH(!0),children:[eN({id:"expert.content.seeMore",defaultMessage:"See more"}),(0,i.tZ)("img",{src:"".concat(C.Nr,"/chevronDownBlue.svg"),alt:"see-more",loading:"lazy"})]}):null]}),"expert"===eT&&(null==ew?void 0:null===(eu=ew.fields)||void 0===eu?void 0:eu.awards_accreditations)&&Array.isArray(null==ew?void 0:null===(ep=ew.fields)||void 0===ep?void 0:ep.awards_accreditations)&&(null==ew?void 0:null===(ev=ew.fields)||void 0===ev?void 0:ev.awards_accreditations.length)>0&&(0,i.BX)("div",{className:"highlight-item",children:[(0,i.tZ)(o.T,{type:"bold",size:"c2",color:d.r.colors.gray400,style:{marginTop:16},children:eN({id:"expert.content.awards",defaultMessage:"Awards & Accreditations"}).toUpperCase()}),(0,i.tZ)(f.l6,{children:(eI?null==ew?void 0:null===(eh=ew.fields)||void 0===eh?void 0:eh.awards_accreditations:null==ew?void 0:null===(eg=ew.fields)||void 0===eg?void 0:eg.awards_accreditations.slice(0,3)).map((e,l)=>(0,i.BX)(f.MZ,{children:[(0,i.tZ)("img",{className:"bullet-point",src:"".concat(C.Nr,"/bullet-point.svg"),alt:"point",loading:"lazy"}),(0,i.tZ)("div",{className:"text-contain",children:(0,i.tZ)(o.T,{size:"p3",color:d.r.colors.gray800,dangerouslySetInnerHTML:{__html:null==e?void 0:e.title}})})]},"item-".concat(l)))}),(null==ew?void 0:null===(em=ew.fields)||void 0===em?void 0:em.awards_accreditations.length)>3&&!eI?(0,i.BX)("div",{className:"see-more",onClick:()=>eP(!0),children:[eN({id:"expert.content.seeMore",defaultMessage:"See more"}),(0,i.tZ)("img",{src:"".concat(C.Nr,"/chevronDownBlue.svg"),alt:"see-more",loading:"lazy"})]}):null]})]}),(0,i.tZ)(r.D,{type:"solid",className:"list-divider"})]}):null,(null==ew?void 0:null===(eC=ew.fields)||void 0===eC?void 0:eC.sources)&&Array.isArray(null==ew?void 0:null===(ef=ew.fields)||void 0===ef?void 0:ef.sources)&&(null==ew?void 0:null===(eZ=ew.fields)||void 0===eZ?void 0:eZ.sources.length)>0&&(0,i.BX)(i.HY,{children:[(0,i.tZ)(f.P_,{onClick:()=>ek(e=>!e),children:(0,i.BX)(o.T,{type:"bold",size:"c2",color:d.r.colors.gray500,style:{marginTop:16,marginBottom:8,cursor:"pointer"},children:[(0,i.tZ)("img",{className:"heading-icons",src:"".concat(C.uQ,"/").concat(eE?"minus":"plus",".svg"),alt:"plus-icon",loading:"lazy"}),eN({id:"expert.content.publishedPapers",defaultMessage:"{number} Published papers"},{number:null==ew?void 0:null===(ey=ew.fields)||void 0===ey?void 0:ey.sources.length}).toUpperCase()]})}),(0,i.tZ)(f.M_,{"data-is-open":eE,children:(0,i.tZ)("div",{className:"link-container",children:null==ew?void 0:null===(ex=ew.fields)||void 0===ex?void 0:ex.sources.map((e,l)=>(0,i.tZ)("div",{className:"paper-link","data-is-url-disabled":!e.url,children:(0,i.tZ)("a",{href:e.url,target:"_blank",children:e.title||e.url})},l))})}),(0,i.tZ)(r.D,{type:"solid",className:"list-divider"})]}),(null==ew?void 0:ew.relatedPost)&&Array.isArray(null==ew?void 0:ew.relatedPost)&&(null==ew?void 0:ew.relatedPost.length)>0?(0,i.BX)(i.HY,{children:[(0,i.tZ)(a.H,{tag:"h3",style:{marginTop:80},children:eN({id:"expert.content.latestArticles",defaultMessage:"Latest Expert Articles"})}),(0,i.tZ)(u.T,{isMobile:eA,trendingPosts:ew.relatedPost})]}):null,ew.fields.policies?(0,i.BX)(i.HY,{children:[(0,i.tZ)(a.H,{tag:"h3",style:{marginBottom:20,marginTop:80},children:null===(eb=ew.fields.policies)||void 0===eb?void 0:eb.title}),(0,i.tZ)(o.T,{size:"p1",children:(0,i.tZ)("div",{dangerouslySetInnerHTML:{__html:ew.fields.policies.content}})}),(null===(eB=ew.fields.policies)||void 0===eB?void 0:eB.readmore)?(0,i.BX)(f.pJ,{href:ew.fields.policies.readmore_url||"",children:[(0,i.tZ)(a.H,{fontWeight:"bold",tag:"h6",as:"h6",color:d.r.colors.primaryActive,children:ew.fields.policies.readmore}),(0,i.tZ)("img",{src:"".concat(C.Nr,"/chevronRightBlue.svg"),alt:"right-chevron",loading:"lazy"})]}):null]}):null]})]})]})]})})}},wvZN:function(e,l,t){t.d(l,{Z:function(){return expert}});var i=t("BGKE"),n=t("uuQu"),a=t("wp0n"),o=t("7Ci/"),r=t("OAL+"),d=t("KeOA"),c=t("xjta"),s=t("dDsW"),u=t("2kea"),p=t("S5Gw"),v=t("FxIt"),h=t("hXNO"),g=t("Y7A1"),m=t("q1tI"),C=t("iBNF"),f=t("zLsJ"),Z=t("mAfZ"),y=t("rIrU");let _Certificate=e=>{var l,t,n,o,d,c;let{...u}=e,{formatMessage:p}=(0,s.Z)(),[v,h]=(0,m.useState)(!0),{currentExpert:x}=(0,g.ek)(e=>({currentExpert:e.currentExpert}));return(0,i.tZ)(i.HY,{children:(null==x?void 0:null===(l=x.fields)||void 0===l?void 0:l.awards_accreditations)&&Array.isArray(null==x?void 0:null===(t=x.fields)||void 0===t?void 0:t.awards_accreditations)&&(null==x?void 0:null===(n=x.fields)||void 0===n?void 0:n.awards_accreditations.length)>0&&(0,i.BX)(r.K,{spacing:16,...u,children:[(0,i.tZ)(a.T,{weight:"bold",size:"c2",color:C.r.colors.gray400,children:p({id:"expert.content.awards",defaultMessage:"Awards & Accreditations"}).toUpperCase()}),(0,i.tZ)(f.a,{styles:{itemIcon:{marginRight:0}},spacing:12,icon:(0,i.tZ)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:(0,i.tZ)("circle",{cx:"12",cy:"12",r:"2",fill:"#2D87F3"})}),children:(v?null==x?void 0:null===(o=x.fields)||void 0===o?void 0:o.awards_accreditations:null==x?void 0:null===(d=x.fields)||void 0===d?void 0:d.awards_accreditations.slice(0,3)).map((e,l)=>(0,i.tZ)(f.a.Item,{children:(0,i.tZ)(r.K,{spacing:0,children:(0,i.tZ)(a.T,{size:"p3",color:C.r.colors.gray800,children:(0,i.tZ)("span",{dangerouslySetInnerHTML:{__html:e.title}})})})},"item-".concat(l)))}),(null==x?void 0:null===(c=x.fields)||void 0===c?void 0:c.awards_accreditations.length)>3&&!v&&(0,i.tZ)(Z.z,{variant:"ghost",compact:!0,size:"sm",w:"fit-content",rightIcon:(0,i.tZ)("img",{src:"".concat(y.Nr,"/chevronDownBlue.svg"),alt:"see-more",loading:"lazy"}),onClick:()=>h(!0),children:p({id:"expert.content.seeMore",defaultMessage:"See more"})})]})})};var x=t("DEkF"),b=t("8wjV");let _Education=e=>{var l,t,n,o,d,c;let{...u}=e,{formatMessage:p}=(0,s.Z)(),[v,h]=(0,m.useState)(!0),{currentExpert:Z}=(0,g.ek)(e=>({currentExpert:e.currentExpert}));return(0,i.tZ)(i.HY,{children:(null==Z?void 0:null===(l=Z.fields)||void 0===l?void 0:l.educations)&&Array.isArray(null==Z?void 0:null===(t=Z.fields)||void 0===t?void 0:t.educations)&&(null==Z?void 0:null===(n=Z.fields)||void 0===n?void 0:n.educations.length)>0&&(0,i.BX)(r.K,{spacing:16,...u,children:[(0,i.tZ)(a.T,{weight:"bold",size:"c2",color:C.r.colors.gray400,children:p({id:"expert.content.education",defaultMessage:"Education"}).toUpperCase()}),(0,i.tZ)(f.a,{styles:{itemIcon:{marginRight:0}},spacing:12,icon:(0,i.tZ)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:(0,i.tZ)("circle",{cx:"12",cy:"12",r:"2",fill:"#2D87F3"})}),children:(v?null==Z?void 0:null===(o=Z.fields)||void 0===o?void 0:o.educations:null==Z?void 0:null===(d=Z.fields)||void 0===d?void 0:d.educations.slice(0,3)).map((e,l)=>(0,i.tZ)(f.a.Item,{children:(0,i.BX)(r.K,{spacing:0,children:[(0,i.tZ)(x.H,{tag:"h6",color:C.r.colors.gray800,children:(0,i.tZ)("span",{dangerouslySetInnerHTML:{__html:e.study}})}),(0,i.tZ)(a.T,{size:"p3",color:C.r.colors.gray500,children:(0,i.tZ)("span",{dangerouslySetInnerHTML:{__html:(null==e?void 0:e.school_name)||""}})})]})},"item-".concat(l)))}),(null==Z?void 0:null===(c=Z.fields)||void 0===c?void 0:c.educations.length)>3&&!v&&(0,i.tZ)(b.B,{variant:"ghost",compact:!0,size:"sm",w:"fit-content",onClick:()=>h(!0),rightIcon:(0,i.tZ)("img",{src:"".concat(y.Nr,"/chevronDownBlue.svg"),alt:"see-more",loading:"lazy"}),children:p({id:"expert.content.seeMore",defaultMessage:"See more"})})]})})},_Experience=e=>{var l,t,n,o,d,c;let{...u}=e,[p,v]=(0,m.useState)(!0),{currentExpert:h}=(0,g.ek)(e=>({currentExpert:e.currentExpert})),{formatMessage:Z}=(0,s.Z)();return(0,i.tZ)(i.HY,{children:(null==h?void 0:null===(l=h.fields)||void 0===l?void 0:l.experiences)&&Array.isArray(null==h?void 0:null===(t=h.fields)||void 0===t?void 0:t.experiences)&&(null==h?void 0:null===(n=h.fields)||void 0===n?void 0:n.experiences.length)>0&&(0,i.BX)(r.K,{spacing:16,...u,children:[(0,i.tZ)(a.T,{weight:"bold",size:"c2",color:C.r.colors.gray400,children:Z({id:"expert.content.experiences",defaultMessage:"Experiences"}).toUpperCase()}),(0,i.tZ)(f.a,{styles:{itemIcon:{marginRight:0}},spacing:12,icon:(0,i.tZ)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:(0,i.tZ)("circle",{cx:"12",cy:"12",r:"2",fill:"#2D87F3"})}),children:(p?null==h?void 0:null===(o=h.fields)||void 0===o?void 0:o.experiences:null==h?void 0:null===(d=h.fields)||void 0===d?void 0:d.experiences.slice(0,3)).map((e,l)=>(0,i.tZ)(f.a.Item,{children:(0,i.BX)(r.K,{spacing:0,children:[(0,i.tZ)(x.H,{tag:"h6",color:C.r.colors.gray800,children:(0,i.tZ)("span",{dangerouslySetInnerHTML:{__html:(null==e?void 0:e.title)||""}})}),(0,i.tZ)(a.T,{size:"p3",color:C.r.colors.gray500,children:(0,i.tZ)("span",{dangerouslySetInnerHTML:{__html:(null==e?void 0:e.organization)||""}})})]})},"item-".concat(l)))}),(null==h?void 0:null===(c=h.fields)||void 0===c?void 0:c.experiences.length)>3&&!p&&(0,i.tZ)(b.B,{variant:"ghost",compact:!0,size:"sm",w:"fit-content",rightIcon:(0,i.tZ)("img",{src:"".concat(y.Nr,"/chevronDownBlue.svg"),alt:"see-more",loading:"lazy"}),onClick:()=>v(!0),children:Z({id:"expert.content.seeMore",defaultMessage:"See more"})})]})})};var B=t("fdQd"),T=t("Eso5"),w=t("SPK5"),M=t("TIp3"),_=t("tEVo");let E=["url","facebook","instagram","linkedin","myspace","pinterest","soundcloud","tumblr","twitter","youtube","wikipedia","tiktok"],k=(0,m.forwardRef)(function(e,l){let{...t}=e,{currentExpert:a}=(0,g.ek)(e=>({currentExpert:e.currentExpert})),o=(0,h.d)();return a?(0,i.tZ)(T.x,{...t,children:(0,i.tZ)(_.pI,{children:(0,i.BX)(w.k,{ref:l,gap:{base:16,md:40},h:"fit-content",direction:{base:"column",md:"row"},ta:{base:"center",md:"left"},sx:{transform:"translateY(20%)",[n.M.mbUp]:{transform:"translateY(30%)"}},children:[(0,i.tZ)("div",{children:(0,i.tZ)(B.A,{sx:{border:"4px solid #ffffff"},bg:"#ffffff",size:o?100:168,radius:"100%",pos:"relative",src:a.avatar||a.avatarThumbnail||y.DP,withIndicator:!!a.role,indicatorConfig:a.role?{offset:o?14:20,size:o?18:40,label:(0,i.tZ)("img",{width:o?"18":"40",height:o?"18":"40",src:"".concat(y.Nr,"/article-").concat(a.role,".svg"),alt:"",loading:"lazy"})}:void 0})}),(0,i.BX)(r.K,{maw:568,justify:"flex-end",spacing:o?6:8,px:{base:16,md:0},children:[(0,i.tZ)(x.H,{tag:"h3",as:"h1",children:a.displayName}),(0,i.BX)(M.x,{size:"p3",children:[a.fields.specialty&&(0,i.tZ)(M.x,{span:!0,inherit:!0,children:a.fields.specialty}),a.fields.organisation&&(0,i.BX)(M.x,{span:!0,inherit:!0,children:[" ","\xb7"," ",a.organisationUrl?(0,i.tZ)("a",{href:a.organisationUrl,target:"_blank",style:{textDecoration:"underline"},children:a.fields.organisation}):a.fields.organisation]})]}),(0,i.tZ)(w.k,{gap:16,justify:o?"center":"start",children:E.map((e,l)=>{var t;let n=null===(t=a.fields)||void 0===t?void 0:t.contact,o=null==n?void 0:n[e];return o?(0,i.tZ)(_.En,{href:o||"",className:"no-replace-click",target:"_blank",children:(0,i.tZ)("img",{src:"".concat(y.uQ,"/").concat(e,".svg"),className:"social-icons",alt:"",loading:"lazy"})},l):null})})]})]})})}):null});var A=t("mYVa"),N=t("hui1");let _RelatedPostCards=e=>{let{...l}=e,{relatedCardPosts:t,relatedCardPostComments:n}=(0,g.ek)(e=>({relatedCardPosts:e.relatedCardPosts,relatedCardPostComments:e.relatedCardPostComments}));return(0,i.BX)(T.x,{sx:e=>({display:"flex",flexWrap:"wrap",alignItems:"stretch",gap:(0,A.h)(24),[e.fn.smallerThan("md")]:{flexDirection:"column",gap:(0,A.h)(16)}}),...l,children:[null==t?void 0:t.map(e=>(0,i.tZ)(N.KM,{post:e,sx:e=>({display:"flex",flexWrap:"wrap",alignItems:"stretch",width:"100%",gap:(0,A.h)(12),[e.fn.largerThan("md")]:{width:"calc(50% - ".concat((0,A.h)(24),")"),gap:(0,A.h)(24)}})},String(e.id))),null==n?void 0:n.map(e=>(0,i.tZ)(N.KM,{post:e,hasExpertComment:!0,sx:e=>({display:"flex",flexWrap:"wrap",alignItems:"stretch",width:"100%",gap:(0,A.h)(12),[e.fn.largerThan("md")]:{width:"calc(50% - ".concat((0,A.h)(24),")"),gap:(0,A.h)(24)}})},String(e.id)))]})};var S=t("5w/N"),X=t("vaps"),z=t("vKRh"),H=t("a5vB"),I=t("XFb3"),P=t("C/sX"),D=t("NEaA"),L=t("CJtR"),F=t("1KiM"),U=t("P5LW");let _NormalGrid=e=>{let{articles:l,...t}=e,{locale:a}=(0,U.h)(),d=(0,h.d)();return(0,i.tZ)(o.W,{fluid:!0,p:0,mx:0,w:"100%",...t,children:(0,i.BX)(P.r,{columns:12,gutter:0,gutterMd:"xl",children:[(0,i.tZ)(P.r.Col,{span:12,md:7,children:(0,i.tZ)(F.ArticleCardWrapper,{article:l[0],dataEventCategoryForTitle:"Top Article Title",dataEventActionForTitle:"Click ".concat(1),dataEventLabelForTitle:"".concat((0,L.UC)(a)).concat(l[0].permalinkDecode),dataEventCategoryForBanner:"Top Article Banner",dataEventActionForBanner:"Click ".concat(1),dataEventLabelForBanner:"".concat((0,L.UC)(a)).concat(l[0].permalinkDecode),dataEventCategoryForCategory:"Top Category Title",dataEventActionForCategory:"Click ".concat(1),dataEventLabelForCategory:"".concat((0,L.UC)(a)).concat(l[0].category.permalinkDecode),type:"author",size:d?"sm":"md",direction:"vertical"})}),d&&(0,i.tZ)(P.r.Col,{children:(0,i.tZ)(D.i,{variant:"dashed",color:"neutral.1",my:16})}),(0,i.tZ)(P.r.Col,{span:12,md:5,children:(0,i.tZ)(r.K,{align:"space-between",spacing:d?0:16,children:l.slice(1,3).map((e,l)=>(0,i.BX)(T.x,{sx:{...0===l?{article:{padding:"0 0 10px 0 !important",[n.M.mbUp]:{".banner":{minHeight:"300px",maxHeight:"300px"}}}}:{},...1===l?{[n.M.mbUp]:{article:{flexDirection:"row-reverse",gap:16,padding:0}},article:{padding:"10px 0 !important",[n.M.mbDown]:{borderBottom:"1px dashed ".concat(I.t.neutral[1])}}}:{}},children:[(0,i.tZ)(F.ArticleCardWrapper,{article:e,dataEventCategoryForTitle:"Top Article Title",dataEventActionForTitle:"Click ".concat(l+2),dataEventLabelForTitle:"".concat((0,L.UC)(a)).concat(e.permalinkDecode),dataEventCategoryForCategory:"Top Category Title",dataEventActionForCategory:"Click ".concat(l+2),dataEventLabelForCategory:"".concat((0,L.UC)(a)).concat(e.category.permalinkDecode),dataEventCategoryForBanner:"Top Article Banner",dataEventActionForBanner:"Click ".concat(l+2),dataEventLabelForBanner:"".concat((0,L.UC)(a)).concat(e.permalinkDecode),type:"author",size:"sm",direction:0===l?d?"horizontal":"vertical":"horizontal",text:"",bannerImageWrapProps:{"data-event-category":"Top Article Banner","data-event-action":"Click ".concat(l+2),"data-event-label":"".concat((0,L.UC)(a)).concat(e.permalinkDecode)}}),0===l&&(0,i.tZ)(D.i,{variant:"dashed",color:"neutral.1"})]},e.id))})}),!d&&(0,i.tZ)(P.r.Col,{children:(0,i.tZ)(D.i,{variant:"dashed",color:"neutral.1"})}),l.slice(3).map((e,t)=>(0,i.tZ)(i.HY,{children:(0,i.tZ)(P.r.Col,{span:12,md:3,sx:{paddingBlock:"20px !important",borderBottom:"1px dashed ".concat(I.t.neutral[1]),[n.M.mbDown]:{paddingBlock:"16px !important",borderBottom:t+3{let{articles:l,...t}=e,{locale:a}=(0,U.h)(),d=(0,h.d)();return(0,i.tZ)(o.W,{fluid:!0,p:0,mx:0,w:"100%",...t,children:(0,i.tZ)(r.K,{children:l.map((e,l)=>(0,i.tZ)(T.x,{sx:{[n.M.mbUp]:{article:{padding:"0 !important",".banner":{minWidth:"264px",maxWidth:"264px",minHeight:"176px",maxHeight:"1176px"},".footer":{marginTop:"initial !important"}}}},children:(0,i.tZ)(F.ArticleCardWrapper,{article:e,dataEventCategoryForTitle:"Top Article Title",dataEventActionForTitle:"Click ".concat(l+4),dataEventLabelForTitle:"".concat((0,L.UC)(a)).concat(e.permalink),dataEventCategoryForBanner:"Top Article Banner",dataEventActionForBanner:"Click ".concat(l+4),dataEventLabelForBanner:"".concat((0,L.UC)(a)).concat(e.permalinkDecode),dataEventCategoryForCategory:"Top Category Title",dataEventActionForCategory:"Click ".concat(l+4),dataEventLabelForCategory:"".concat((0,L.UC)(a)).concat(e.category.permalinkDecode),type:"author",size:0===l&&d?"lg":"sm",direction:0===l&&d?"vertical":"horizontal",bannerImageWrapProps:{"data-event-category":"Top Article Banner","data-event-action":"Click ".concat(l+4),"data-event-label":"".concat((0,L.UC)(a)).concat(e.permalinkDecode)},text:""})},e.id))})})},_GridArticle=e=>{let{articles:l}=e;return l&&0!==l.length?l.length>=3?(0,i.tZ)(_NormalGrid,{...e,articles:l}):(0,i.tZ)(_Stacking,{...e,articles:l}):null},_RelatedPosts=e=>{let{...l}=e,{formatMessage:t}=(0,s.Z)(),[o,d]=(0,m.useState)("0"),[c,u]=(0,m.useState)(0),[p,v]=(0,m.useState)(0),C=(0,h.d)(),[f,Z]=(0,m.useState)(!1),{scrollIntoView:y,targetRef:x}=(0,z.g)({duration:0,offset:60,easing:e=>1-(1-e)*(1-e)}),{currentExpert:B,currentExpertMedicalReviewed:M=[],currentExpertRelativePosts:E=[],currentExpertMedicalReviewedPagination:k,currentExpertRelativePostsPagination:A,setCurrentExpertMedicalReviewedPagination:N,setCurrentExpertRelativePostsPagination:I,setCurrentExpertMedicalReviewed:P,setCurrentExpertRelativePosts:D}=(0,g.ek)(e=>e,H.X);(0,m.useEffect)(()=>{(async()=>{if(c<1)return;Z(!0);let{articles:e,pagination:l}=await (0,g.nv)({id:(null==B?void 0:B.id)||"",type:0,page:c,numberOfPost:4,offset:7});D(e),I(l),Z(!1)})()},[c]),(0,m.useEffect)(()=>{(async()=>{if(p<1)return;Z(!0);let{articles:e,pagination:l}=await (0,g.nv)({id:(null==B?void 0:B.id)||"",type:1,page:p,numberOfPost:4,offset:7});P(e),N(l),Z(!1)})()},[p]);let L=(0,m.useMemo)(()=>Number(null==A?void 0:A.current_page)>=Number(null==A?void 0:A.max_num_pages),[A]),F=(0,m.useMemo)(()=>((null==k?void 0:k.current_page)||0)>=((null==k?void 0:k.max_num_pages)||0),[null==k?void 0:k.current_page,null==k?void 0:k.max_num_pages]),U=[...M.length>0?[{id:"0",name:t({id:"expert.tab.medical",defaultMessage:"Medically reviewed by expert"})}]:[],...E.length>0?[{id:"1",name:t({id:"expert.tab.expert",defaultMessage:"Expert’s article"})}]:[]];return E.length>0||M.length>0?(0,i.BX)(r.K,{...l,children:[(0,i.tZ)(T.x,{maw:400,pos:"relative"}),(0,i.tZ)("div",{ref:x,children:(0,i.tZ)(_.SG,{tag:"h4",children:t({id:"expert.content.latestArticles",defaultMessage:"Latest Expert Articles"})})}),(0,i.BX)(S.T,{defaultValue:"0",value:o,onTabChange:e=>{y({alignment:"start"}),d(e)},pos:"relative",children:[(0,i.tZ)(X.x,{offsetScrollbars:!0,scrollbarSize:4,style:{position:"sticky",top:0,zIndex:1,backgroundColor:"#ffffff"},children:(0,i.tZ)(w.k,{justify:"space-between",children:(0,i.tZ)(S.T.List,{grow:!0,sx:{[n.M.mbDown]:{position:"sticky",top:0,zIndex:1,backgroundColor:"#ffffff"}},children:U.map(e=>(0,i.tZ)(S.T.Tab,{value:e.id,children:(0,i.tZ)(a.T,{size:"s3",weight:"semiBold",color:"inherit",children:e.name})},e.id))})})}),E.length>0&&(0,i.tZ)(S.T.Panel,{value:"1",pos:"relative",pt:{base:16,md:24},children:(0,i.BX)(r.K,{justify:"center",align:"center",children:[(0,i.tZ)(_GridArticle,{articles:E}),!L&&(0,i.tZ)(b.B,{mt:{base:0,md:24},loading:f,variant:"tertiary",w:C?"100%":"fit-content",fullWidth:C,onClick:()=>u(e=>++e),children:t({id:"expert.loadMore",defaultMessage:"Load more"})})]})}),M.length>0&&(0,i.tZ)(S.T.Panel,{value:"0",pos:"relative",pt:{base:16,md:24},children:(0,i.BX)(r.K,{justify:"center",align:"center",children:[(0,i.tZ)(_GridArticle,{articles:M}),!F&&(0,i.tZ)(b.B,{mt:{base:0,md:24},loading:f,variant:"tertiary",w:C?"100%":"fit-content",fullWidth:C,onClick:()=>v(e=>++e),children:t({id:"expert.loadMore",defaultMessage:"Load more"})})]})})]})]}):null};var expert=e=>{var l,t,m,C,f;let{formatMessage:Z}=(0,s.Z)(),{currentExpert:y,relatedCardPosts:x=[],relatedCardPostComments:b=[]}=(0,g.ek)(e=>({currentExpert:e.currentExpert,relatedCardPosts:e.relatedCardPosts,relatedCardPostComments:e.relatedCardPostComments})),B=(0,h.d)(),{ref:T,height:w}=(0,c.h)();return y?(0,i.BX)(o.W,{fluid:!0,p:0,bg:"#e3f2ff",...e,children:[(0,i.tZ)(o.W,{fluid:!0,p:0,bg:"#ffffff",pb:1,children:(0,i.tZ)(u.d,{bg:"#ffffff",pageItem:[{label:Z({id:"experts.allExperts",defaultMessage:"Experts"}),value:"/expert"},{label:y.displayName,value:y.profileUrl}]})}),(0,i.tZ)(k,{ref:T}),(0,i.BX)(o.W,{fluid:!0,bg:"#ffffff",pt:w||160,sx:{borderRadius:"20px 20px 0 0",[n.M.mbUp]:{borderRadius:"40px 40px 0 0"}},children:[(0,i.tZ)(o.W,{size:"lg",px:0,children:(0,i.BX)(r.K,{spacing:24,mb:48,children:[!!y.description&&(0,i.BX)(r.K,{spacing:16,children:[(0,i.tZ)(_.SG,{tag:"h4",children:Z({id:"expert.content.about",defaultMessage:"About"})}),(0,i.tZ)(a.T,{as:"div",size:"p2",children:(0,i.tZ)(_.sO,{className:"expert-description",dangerouslySetInnerHTML:{__html:y.description}})})]}),!!((null==y?void 0:y.fields)&&(y.fields.educations||y.fields.experiences||y.fields.awards_accreditations))&&(0,i.BX)(r.K,{spacing:16,children:[(0,i.tZ)(_.SG,{tag:"h4",children:Z({id:"expert.content.highlight",defaultMessage:"Credentials & Highlights"})}),(0,i.BX)(d.M,{cols:B?1:3,spacing:24,children:[(0,i.tZ)(_Education,{}),(0,i.tZ)(_Experience,{}),(0,i.tZ)(_Certificate,{})]})]}),(null==x?void 0:x.length)+(null==b?void 0:b.length)>0&&(0,i.BX)(r.K,{spacing:16,children:[(0,i.tZ)(_.SG,{tag:"h4",children:Z({id:"expert.content.relatedPosts",defaultMessage:"Related posts"})}),(0,i.tZ)(_RelatedPostCards,{})]}),(null==y?void 0:null===(l=y.fields)||void 0===l?void 0:l.sources)&&Array.isArray(null==y?void 0:null===(t=y.fields)||void 0===t?void 0:t.sources)&&(null==y?void 0:null===(m=y.fields)||void 0===m?void 0:m.sources.length)>0&&(0,i.tZ)(p.Sources,{title:Z({id:"expert.content.publishedPapers",defaultMessage:"{number} Published papers"},{number:null==y?void 0:null===(C=y.fields)||void 0===C?void 0:C.sources.length}).toUpperCase(),sources:null==y?void 0:null===(f=y.fields)||void 0===f?void 0:f.sources.map(e=>e.url?'').concat(e.title,""):e.title)}),(0,i.tZ)(_RelatedPosts,{mt:16})]})}),(0,i.tZ)(v.default,{})]})]}):null}}}]);