"use strict";(self.webpackChunk_1js_people_in_taskbar=self.webpackChunk_1js_people_in_taskbar||[]).push([[4528],{19436:(e,t,i)=>{i.r(t),i.d(t,{default:()=>D});var a=i(76992),n=i(55825),l=i(71719),o=i(8618),r=i(88224),c=i(35952),s=i(70297),p=i(54001),d=i(20532),m=i(46374),u=i(10660),b=i(51028),k=i(71124),g=i(75456);const x=(0,i(51634).Ex)("lpc-topic-ui.disambiguationPanel.ariaLabel");var f=i(27623),v=i(42124);const E=(0,f.PK)((e=>({text:[v.YX.medium,{padding:"4px 24px",color:e.palette.neutralPrimary,paddingTop:0,paddingBottom:0,lineHeight:"20px"}],definition:{marginTop:"12px"},title:{color:e.palette.themePrimary,fontSize:"24px",lineHeight:"32px",fontWeight:"600",margin:"0px",overflow:"hidden",textOverflow:"ellipsis",...h(2),wordBreak:"break-word",selectors:{":hover":{color:e.palette.themeDark,textDecorationColor:e.palette.themeDark,textDecoration:"underline"}}}}))),h=e=>({display:"-webkit-box","-webkit-line-clamp":e.toString(),"-webkit-box-orient":"vertical"});function C(e){let{title:t,definitionProperties:i,topicId:a,state:n,disambiguationContext:f,topicPageUrl:v}=e;var h;const{isExpandedViewEnabled:C,openExpandedView:w}=(0,c.n)(),y=(0,p.Zp)(),P=(0,o.Lh)(x),_=(0,s.q)(),D=(0,g.D)(_),T=E(_),{cardData:N}=(0,l.yM)(),L=null==N||null===(h=N.identifiers)||void 0===h?void 0:h.topicMetadata,M=k.useCallback((()=>{y((0,p.ex)(a),"Topic",a,"TopicBlockDisambiguationClickAction",L)}),[a,y,L]),S=k.useCallback((()=>{null==N||N.closeCard()}),[N]),U=k.useCallback((()=>{w&&w("Overview")}),[w]),B={disambiguationContext:f,isSuggestedTopic:!1,theme:_,topicPageUrl:v,onLinkClick:S};return C&&(B.topicPageUrl=void 0,B.onLinkClick=U),k.createElement(r.Z,{logName:"TopicDisambiguation",accessibilityLabel:P,tabbableElements:u.l.all},k.createElement("div",{className:T.text},k.createElement(b.N,{target:"_blank"},k.createElement("h1",{onClick:M,className:T.title},t)),k.createElement(d.f,B),k.createElement("div",{className:T.definition},k.createElement(m.z,{styles:D,state:n,scenario:"Card",definitionProperties:i,defaultToExpanded:!1}))))}var w=i(76799),y=i(82541);var P=i(2738),_=i(79680);const D=function(e){let{queryKey:t,identifiers:i}=e;const o=function(e,t){const{topic:i}=(0,l.yM)(),a=(0,y.bS)(e,t);return(0,w.EW)(a)||i}(t,i),r=(0,P.n)(t,o,i),{source:c}=(0,l.yM)(),s=(0,a.U)(),p=(0,_.V)(),d=k.useMemo((()=>(0,n.Km)(r||[],c||s.source)),[r]);return r?k.createElement("div",{id:"l2container",className:p.l2container},d.map((e=>k.createElement(C,{key:e.topicId,...e})))):null}}}]);