PageSourceSearch

https://cdn.forbes.ru/_nuxt/eo8wB7Mk.js

js forbes.ru collected 2026-10-01 06:25:20 UTC 2,841 bytes, 1 lines download raw bytes

1import T from"./BjuL7wtg.js";import{_ as V}from"./Dy2xinyL.js";import{aV as H,aW as W,bm as B,aY as D,aX as O,a$ as c,bJ as N,b9 as _,bC as z,br as g,by as E,bu as k,b2 as m,bv as v,bM as C,bP as $,bt as J,bA as P,bx as U}from"./EBpBARSw.js";import"./vujTilPU.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="ded369ec-dc27-41d2-b745-12e92b6f8ccd",e._sentryDebugIdIdentifier="sentry-dbid-ded369ec-dc27-41d2-b745-12e92b6f8ccd")}catch{}})();const Z=H({name:"ArticleHeaderAuthors",props:{article:{default:()=>({}),type:Object}},setup(e){const o=W(),t=c([]),b=B(),d=c(),u=c(),a=c(),n=c(),h=o.$viewport,p=N({isActive:!1,isVisible:_(()=>t.value.length),items:_(()=>t.value.map(s=>e.article.authors[s]))});function y(s){a.value?.contains(s.target)||(p.isActive=!1)}function w(s){s.code==="Escape"&&(p.isActive=!1)}return D(()=>{u.value?.disconnect(),window.removeEventListener("click",y),window.removeEventListener("keyup",w)}),O(async()=>{if(e.article.authors.length<2||!n.value||!d.value)return;await new Promise(i=>setTimeout(i));const s=d.value.firstChild;if(!s)return;const l=Array.from(s.children||[]),I=l.map(i=>i.offsetWidth+i.offsetLeft);u.value=new ResizeObserver(()=>{if(h.isLessThan("tablet")){if(!t.value.length)return;for(const f of l)f.removeAttribute("style");t.value=[];return}const i=Math.floor(n.value?.offsetWidth||0);let r=l.length;for(;r--;){const f=l[r],L=I[r];if(i-32<L){if(f.setAttribute("style","display: none"),t.value.includes(r))continue;t.value.unshift(r)}else{f.removeAttribute("style");const A=t.value.findIndex(M=>M===r);if(A===-1)continue;t.value.splice(A,1)}}}),u.value.observe(n.value),window.addEventListener("click",y),window.addEventListener("keyup",w)}),{authorsHidden:t,css:b,listElement:d,moreElement:a,rootElement:n,tooltip:p}}}),j="_3r1fJ",x="oVCF0",F="dZfZM",G="zxLTk",K={articleHeaderAuthors:j,container:x,more:F,tooltip:G};function R(e,o,t,b,d,u){const a=T,n=V;return g(),E("div",{ref:"rootElement",class:v(e.css.articleHeaderAuthors)},[k("div",{ref:"listElement",class:v(e.css.container)},[m(a,{items:e.article.authors},null,8,["items"])],2),e.$viewport.isGreaterThan("mobileWide")?C((g(),E("div",{key:0,ref:"moreElement",class:v(e.css.more)},[m(n,{"is-active":e.tooltip.isActive,name:"dots-column",theme:"light",title:"Показать еще",onClick:o[0]||(o[0]=h=>e.tooltip.isActive=!e.tooltip.isActive)},null,8,["is-active"]),m(P,{name:"fade"},{default:J(()=>[C(k("div",{class:v(e.css.tooltip)},[m(a,{items:e.tooltip.items,type:"tooltip"},null,8,["items"])],2),[[$,e.tooltip.isActive]])]),_:1})],2)),[[$,e.tooltip.isVisible]]):U("",!0)],2)}const S={$style:K},ee=z(Z,[["render",R],["__cssModules",S]]);export{ee 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.