1import{v as k,o as a,e as f,n as V,an as S,h as v,i as z,c as y,bE as K,l as p,F as E,K as B,L as W,t as L,O as N,Y as q,k as c,j as b,x as o,H as O,u as G,E as U,ar as X,q as M,W as H,r as J}from"./index-CpN4Ps0J.js";import{S as Q}from"./StandardPage-C5FLsgv9.js";import{M as $,K as R,a as Z,b as tt,u as et}from"./use-company-DymQDzuG.js";import{B as Y,S as ot}from"./ScribeInsightsTabs-PROeOdYh.js";import{A as at}from"./AlertBox-DoIaC-lo.js";import{c as rt}from"./company-logo-placeholder-CIhGORQ0.js";import{g as nt}from"./lists-store-Dd3SknqE.js";import{o as j}from"./search-helpers-CKJKB1pu.js";import{s as st}from"./index-BhOZ4-pC.js";import{C as it}from"./CompanyInfoCard-D4ZjbVR8.js";import{u as lt}from"./use-signals-Cwu-BKYd.js";import{t as ct}from"./analytics.service-BXJwAjAV.js";import{_ as mt}from"./SignalsTabs.vue_vue_type_script_setup_true_lang-DERQtggT.js";import{_ as D}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./use-drawer-wsiMeGpI.js";import"./drawer-store-Csgm0HQp.js";import"./use-notifications-DXRSvblV.js";import"./GetCompanyLinkedinId.query-CUkn1bNn.js";import"./leads-store-C4-u5D9g.js";import"./BulkVerifyMyEmailsByDateRange.mutation-BVlfcOce.js";import"./GetLeadById.query-riEgiQEK.js";import"./campaign-DuvFZkNA.js";import"./search-filters-BjvCT-8O.js";import"./api-CeLwZ_J5.js";import"./GetLocationSuggestionsByZip.query-DxgIB_Zk.js";import"./Person.fragment-BfvFsbx8.js";import"./pick-DC8eRRfl.js";import"./uniq-D1y7zokF.js";import"./uniqBy-C3RewNdw.js";import"./_Set-BjfOml1V.js";import"./unnest-Bl0XNbvj.js";import"./_identity-BiaQ3Urd.js";import"./trim-BRTae1ET.js";import"./head-NF1W9Xgt.js";import"./use-set-universal-credit-limits-F1Cx7iWt.js";import"./GetUniversalCreditsInfo.query-DzLkfWRl.js";import"./use-universal-credits-plan-DSb_nW9P.js";import"./use-page-title-4QWFe5KN.js";import"./use-launch-darkly-Dx0kx62G.js";import"./use-captured-companies-Dn333rzw.js";import"./use-company-signals-DJE81tz5.js";import"./lensPath-FrGhR-dw.js";import"./search.service-CPK6WXUq.js";import"./accountSearch-B2NrZJ-B.js";import"./ts-utils-DHr1oMl_.js";import"./string-C2YBkVXd.js";import"./omit-Dtah3XFm.js";import"./account-search-store-VgXstJ5T.js";import"./prepend-COY1Ygre.js";import"./findIndex-Bybp4Xrw.js";import"./concat-V2RmrSz1.js";import"./integrations-store-CbrksNL2.js";import"./nooks-C5uFgqIQ.js";import"./groove-tusFlxEK.js";import"./constants-DfyEH9IE.js";import"./DsIcon-D0xrD8xs.js";import"./icons-kDofkFuu.js";import"./call-COqzf8CD.js";import"./document-DTirQSZS.js";import"./md-vnkpjRop.js";import"./index-BuUaMkAN.js";import"./index-CdNddd5b.js";import"./index-B7QWmSkO.js";import"./index-5vHZOB7Q.js";import"./index-DJQBHu-L.js";import"./index-CKK5ES5I.js";import"./SkeletonContainer-KUgwvAeE.js";import"./index-B9o7KKCU.js";import"./groupBy-CT-wgDlh.js";import"./reduceBy-C6f1qBsO.js";import"./_clone-gj2X9cnh.js";import"./index-CM32Cvtn.js";import"./index-DhsX9ssO.js";import"./last-C2RCWxBO.js";import"./difference-BLOHE0Cr.js";import"./indexBy-DEX-c9DZ.js";import"./profile-pic-fallback-CUhMgbT4.js";import"./use-feature-matrix-B5jsGKyZ.js";import"./index-B7QGWiQu.js";import"./index-Snaidc0h.js";import"./index-J0gNnpnU.js";import"./index-DgIOo7C7.js";import"./index-D4PBOE0W.js";import"./index-DrjXtd79.js";import"./index-yzsaMdHQ.js";import"./index-DTFvxdCP.js";import"./index-CX63nII5.js";import"./index-C-QNz3nt.js";import"./index-OPM6JPbZ.js";import"./index-CWUvMjsX.js";import"./index-vjECc1R2.js";import"./index-ByjkZf-J.js";import"./index-B2mzrQgj.js";import"./index-GWxZuJux.js";import"./SignalContentAi-DQwaAoTW.js";import"./SignalContentHubspot-CczKpiBl.js";import"./use-person-signals-BVfCj2AN.js";const A=k({__name:"FlexContainer",props:{align:{default:"start"},direction:{default:"row"},gap:{default:0},is:{default:"div"},justify:{default:"start"},wrap:{type:Boolean,default:!1}},setup(s){const e=s,u=y(()=>({alignItems:e.align,display:"flex",flex:1,flexDirection:e.direction,flexWrap:e.wrap?"wrap":"nowrap",gap:`${e.gap}
1px`,justifyContent:e.justify,minWidth:0}));return(n,t)=>(a(),f(V(e.is),{style:S(u.value)},{default:v(()=>[z(n.$slots,"default")]),_:3},8,["style"]))}}),pt=k({__name:"FluidColumns",props:{columnMinWidth:{},columnsMax:{},gap:{default:0},is:{default:"div"}},setup(s){K(t=>({b2cad048:e.columnMinWidth,v9b49e8bc:n.value,v589c7dce:e.columnsMax,v9f473b78:e.gap}));const e=s,u=y(()=>e.columnsMax-1),n=y(()=>e.gap*u.value);return(t,r)=>(a(),f(V(e.is),{class:"container"},{default:v(()=>[z(t.$slots,"default",{},void 0,!0)]),_:3}))}}),P=D(pt,[["__scopeId","data-v-28497e27"]]),ut="en-US",dt=new Intl.DateTimeFormat(ut,{month:"short",year:"numeric"});function _t(s){const e=s instanceof Date?s:new Date(s);return Number.isNaN(e.getTime())?"":dt.format(new Date(s))}const ft=["title"],ht=k({__name:"BarChartItem",props:{data:{},labelColors:{},size:{}},setup(s){const e=s;function u(){return{height:`${e.size*100}%`}}function n(r){const m=(r.value*100).toFixed(1);return`${_t(r.detail)} 2${r.label}: ${m}%`}function t(r){return{background:`${e.labelColors[r.label]}`,height:`${r.value*100}%`}}return(r,m)=>(a(),p("div",{class:"container",style:S(u())},[(a(!0),p(E,null,B(e.data,h=>(a(),p("div",{class:"item",key:h.label,style:S(t(h)),title:n(h)},null,12,ft))),128))],4))}}),yt=D(ht,[["__scopeId","data-v-9932d1f6"]]),vt=k({__name:"ChartLegend",props:{labelColors:{}},setup(s){const e=s;return(u,n)=>(a(),p("ul",null,[(a(!0),p(E,null,B(e.labelColors,(t,r)=>(a(),f(A,{is:"li",key:r,style:S(`--color: ${t}`),align:"center"},{default:v(()=>[W(L(r),1)]),_:2},1032,["style"]))),128))]))}}),gt=D(vt,[["__scopeId","data-v-cd12507b"]]),bt={class:"chart-wrap"},Ct=k({__name:"BarChart",props:{data:{}},setup(s){const e=s,u=Z.slice(),n=N($),t=N(Array($)),r=Object.fromEntries(Array.from(new Set(e.data.flatMap(l=>l.value.map(g=>g.label)))).map(l=>[l,l==="Other"?R:u.shift()??R])),m=new Date,h=m.getMonth()+1;q(()=>{const l=t.value.length-1;for(const[d,x]of e.data.entries()){const F=(m.getFullYear()-x.detail.date.getFullYear())*12+(m.getMonth()-x.detail.date.getMonth());F>l||F<0||(t.value[F]=d)}let g=t.value[t.value.length-1];for(let d=$-2;d>0;d--)t.value[d]=t.value[d]??g,g=t.value[d]});const w=y(()=>t.value.map(l=>+(l!=null))),I=y(()=>t.value.filter(l=>l!=null).map(l=>e.data[l])),C=y(()=>I.value.at(0)?.detail.date??new Date),i=y(()=>C.value.getMonth()),_=y(()=>Math.ceil(($-i.value)/12)),T=y(()=>Array.from({length:_.value}).map((l,g)=>C.value.getFullYear()-g));return(l,g)=>(a(),p(E,null,[c("div",bt,[b(A,{class:"y-axis",align:"end",direction:"column",justify:"space-between"},{default:v(()=>[...g[0]||(g[0]=[c("div",null,"100%",-1),c("div",null,"50%",-1),c("div",null,"0%",-1)])]),_:1}),b(P,{class:"chart","column-min-width":16,"columns-max":n.value,gap:8},{default:v(()=>[(a(!0),p(E,null,B(t.value,(d,x)=>(a(),f(yt,{key:x,data:e.data[d]?.value??[],"label-colors":o(r),size:w.value[x]??0},null,8,["data","label-colors","size"]))),128))]),_:1},8,["columns-max"]),b(P,{class:"x-axis","column-min-width":16,"columns-max":n.value,gap:8},{default:v(()=>[(a(!0),p(E,null,B(T.value,(d,x)=>(a(),f(A,{key:d,style:S(`grid-column: ${h+12*x};`),justify:"center"},{default:v(()=>[W(L(d),1)]),_:2},1032,["style"]))),128))]),_:1},8,["columns-max"])]),b(gt,{class:"legend","label-colors":o(r)},null,8,["label-colors"])],64))}}),xt=D(Ct,[["__scopeId","data-v-bdb46423"]]),kt=k({__name:"EmployeeMetrics",props:{trends:{}},setup(s){const e=s,u=y(()=>e.trends.toSorted((n,t)=>new Date(n.time).getTime()-new Date(t.time).getTime()).map(n=>{const t=n.buckets.filter(i=>i.bucket!=="Other").toSorted((i,_)=>i.bucket.localeCompare(_.bucket)).toSorted((i,_)=>_.count-i.count),r=(i,_)=>i+_.count,m=t.reduce(r,0),h=t.slice(0,tt),w=h.reduce(r,0),I=m-w,C=new Date(n.time);return{detail:{count:m,date:C},label:C.toDateString(),value:h.concat({__typename:"TrendBucketCount",bucket:"Other",count:I}).map(({bucket:i,count:_})=>({detail:C,label:i,value:m>0?_/m:0}))}}));return(n,t)=>(a(),f(xt,{data:u.value},null,8,["data"]))}}),wt={class:"company-details"},It={key:0,class:"top"},Et={key:0},St={key:1},Dt={class:"company-details-header"},Mt={class:"left flex-center"},$t=["src"],Bt={class:"profile flex-column"},Lt={key:0,class:"domain"}
2,Tt={class:"company-details-body"},Ft={class:"left-detail"},At={class:"right-detail"},Nt={class:"metrics"},Ot=k({__name:"CompanyDetails",setup(s){const e=G(),{hasSignals:u}=lt(),n=e.query.view??"search",{company:t,capturedCompany:r,error:m,companyInSearch:h,loading:w}=et(()=>({ids:[e.params.companyId]}),n),I=window.history.state.back?void 0:{name:n==="list"?"allLeads":"searchResult"};return ct(X.FullCompanyPageLoaded),(C,i)=>{const _=J("router-link"),T=U("loading");return O((a(),f(Q,{title:"Company","max-width":"1200px"},{default:v(()=>[O(c("div",wt,[o(t)?o(t)?(a(),p(E,{key:1},[c("div",Dt,[b(Y,{route:o(I)},null,8,["route"]),c("div",Mt,[c("img",{class:"company-img",width:"56",height:"56",src:o(t).linkedinId?o(nt)(o(t).linkedinId):o(rt),onError:i[0]||(i[0]=(...l)=>o(j)&&o(j)(...l))},null,40,$t),c("div",Bt,[c("h1",null,L(o(t).name),1),o(t).domain?(a(),p("div",Lt,L(o(t).domain),1)):M("",!0)]),b(_,{class:"see-empl-btn",to:{name:"companyEmployees",params:{companyId:o(t).id}}},{default:v(()=>[o(h)&&o(t).name&&o(t).linkedinId?(a(),f(o(st),{key:0,label:"SEE EMPLOYEES",link:""})):M("",!0)]),_:1},8,["to"])])]),c("div",Tt,[c("div",Ft,[o(t)?(a(),f(it,{key:0,"company-id":o(t).id,view:o(n),"hide-logo":""},null,8,["company-id","view"])):M("",!0)]),c("div",At,[o(u)&&o(r)?(a(),f(mt,{key:0,company:o(r)},null,8,["company"])):(a(),f(ot,{key:1,type:"company",input:{domain:o(t)?.domain}},null,8,["input"]))])]),c("div",Nt,[i[1]||(i[1]=c("h2",null,"Employee metrics",-1)),b(kt,{trends:o(t)?.functionTrends??[]},null,8,["trends"])])],64)):M("",!0):(a(),p("div",It,[b(Y,{route:o(I)},null,8,["route"]),b(at,null,{default:v(()=>[o(m)?(a(),p("span",Et,"An error occurred while retrieving the company details. Please try again later.")):(a(),p("span",St,"No company data found."))]),_:1})]))],512),[[H,!o(w)]])]),_:1})),[[T,o(w)]])}}}),Do=D(Ot,[["__scopeId","data-v-5b5c15f5"]]);export{Do as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.