PageSourceSearch

https://cdn.forbes.ru/_nuxt/3FmoFKbi.js

js forbes.ru collected 2026-10-01 06:19:31 UTC 5,911 bytes, 1 lines download raw bytes

1import Z from"./rw6lZ29y.js";import G from"./BE0W-C68.js";import K from"./c5dgDvDu.js";import Q from"./B-_UDQML.js";import ee from"./DWzZ61EU.js";import te from"./CaOqB26v.js";import oe from"./CGB6CXIl.js";import ne from"./59THdc-D.js";import{aV as se,bj as re,aY as ae,aX as le,cy as ie,b1 as z,br as s,by as m,bw as o,bs as $,bv as r,bx as H,b2 as D,bu as T,bz as J,bM as ce,bP as fe,b6 as B,bF as F,bt as ue,c7 as de,a$ as b,b9 as S,cd as P,bC as pe}from"./EBpBARSw.js";import{n as me,i as ye}from"./BAnaog4m.js";import{u as ve}from"./BEofBrSw.js";import{u as _e}from"./1kWrGCv_.js";import{A as d}from"./CSLGp06j.js";import"./Dy2xinyL.js";import"./DpZ7f565.js";import"./B05eGCFr.js";import"./CbDlNXSx.js";import"./Lmb05Apy.js";import"./DiN8x0mA.js";import"./DNIs4AQh.js";import"./Bq_376aw.js";import"./Df6GUClV.js";import"./BHuojVLH.js";import"./BpkgrXpV.js";import"./De1uZK4E.js";import"./DL71b4LM.js";import"./DjXNlYmM.js";import"./EOf1V2Z2.js";import"./Fv6MJwKN.js";(function(){try{var g=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},c=new g.Error().stack;c&&(g._sentryDebugIds=g._sentryDebugIds||{},g._sentryDebugIds[c]="becc9e40-58a8-478d-9828-5ff4324b80a7",g._sentryDebugIdIdentifier="sentry-dbid-becc9e40-58a8-478d-9828-5ff4324b80a7")}catch{}})();const R={4:{adfoxConfig:d.waterfall_240x400_1,type:"adfox-banner"},7:{adfoxConfig:d.waterfall_1,type:"adfox-partner"},10:{adfoxConfig:d.waterfall_2,type:"adfox-partner"},13:{adfoxConfig:d.waterfall_240x400_2,type:"adfox-banner"},16:{adfoxConfig:d.waterfall_3,type:"adfox-partner"},19:{adfoxConfig:d.waterfall_1,type:"adfox-partner"},22:{adfoxConfig:d.waterfall_240x400_3,type:"adfox-banner"},25:{adfoxConfig:d.waterfall_2,type:"adfox-partner"},28:{adfoxConfig:d.waterfall_3,type:"adfox-partner"}},be=["data-interval"],ge=se({__name:"TheWaterfall",setup(g){const c=ve(),k=re(),x=_e(),l=b(""),I=b(),E=b(""),L=b([]),y=b([]),W=b(0),U=S(()=>c.isFixed?{marginTop:`${c.lastScroll}px`}:""),N=S(()=>k.path.startsWith("/education")||k.path.startsWith("/tegi/education")),X=S(()=>{let e="Новости";return(x.state.mode==="education"||N.value)&&(e="Образование"),(x.state.mode==="sport"||k.path.startsWith("/sport"))&&(e="Forbes Sport"),e}),Y=S(()=>{const e={},{items:t}=x.state,[f]=Object.keys(R);let i=JSON.parse(JSON.stringify(R)),p=0;for(let n=0,O=t.length;n<O;n++){const h=new Intl.DateTimeFormat("ru").format(Number(t[n].time)*1e3);Array.isArray(e[h])?e[h].push(t[n]):e[h]=[t[n]];for(const u in i){const v=Number.parseInt(u,10);v===Number.parseInt(f,10)&&(i[u].adfoxConfig.shouldSyncSession=!0),v===n&&e[h].splice(n,0,i[u]),p=v}n<=p||(i=Object.entries(i).reduce((u,[v,a])=>{const w=Number.parseInt(v,10);return u[w]=a,u[w+p]=a,u},{}))}return e}),C=b(0),A=me(250,e=>{const t=y.value;if(!t.length)return;const f=e.target;C.value=f.scrollTop;const i=t[0];if(C.value<=i.value){l.value=i.key;return}const p=t[t.length-1];if(C.value>=p.value){l.value=p.key;return}for(const n of t)if(!(n.value<C.value)){l.value=n.key;return}});function M(){E.value=location.pathname.substr(1)}function V(){const e=window.scrollY;I.value&&(I.value.scrollTop+=e-W.value),W.value=e}ae(()=>{window.removeEventListener("scroll",V),window.removeEventListener("historyupdate",M)}),le(()=>{window.addEventListener("scroll",V),window.addEventListener("historyupdate",M),ie(()=>{E.value=k.path.substr(1)}),z(C,async()=>{await P(500),y.value?.length&&I.value?.scrollTop===0&&(l.value=y.value[0].key)})}),z(L,async e=>{await P(500),y.value=e.reduce((t,f)=>(t.push({key:f.dataset.interval,value:f.offsetTop+f.offsetHeight}),t),[]),l.value||(l.value=y.value[0].key)},{deep:!0});const j=ye(500,()=>{y.value=L.value.reduce((e,t)=>(e.push({key:t.dataset.interval,value:t.offsetTop+t.offsetHeight}),e),[]),l.value||(l.value=y.value[0].key)});return(e,t)=>{const f=Z,i=G,p=K,n=Q,O=ee,h=te,u=oe,v=ne;return s(),m("div",{class:r({[e.$style.root]:!0,[e.$style.isEducation]:o(N)}),style:de(o(U)),onMouseenter:t[1]||(t[1]=a=>o(c).lock()),onMouseleave:t[2]||(t[2]=a=>o(c).unlock()),onTouchend:t[3]||(t[3]=a=>o(c).unlock()),onTouchmove:t[4]||(t[4]=a=>o(c).lock())},[o(N)?H("",!0):(s(),$(f,{key:0,class:r(e.$style.carousel)},null,8,["class"])),D(i,{class:r(e.$style.feed)},null,8,["class"]),T("div",{class:r(e.$style.header)},[T("p",{class:r(e.$style.title)},J(o(X)),3),ce((s(),m("div",{key:o(l),class:r(e.$style.date)},J(o(l)),3)),[[fe,o(l)]])],2),T("div",{ref_key:"containerEl",ref:I,class:r(e.$style.container),onScroll:t[0]||(t[0]=(...a)=>o(A)&&o(A)(...a))},[o(x).isPending?(s(),m("ul",{key:0,class:r(e.$style.items)},[(s(),m(B,null,F(20,a=>T("li",{key:a,class:r(e.$style.item)},[D(p,{class:r(e.$style.itemLoader)},null,8,["class"])],2)),64))],2)):(s(!0),m(B,{key:1},F(o(Y),(a,w)=>(s(),m("ul",{key:w,ref_for:!0,ref_key:"intervalsElements",ref:L,class:r(e.$style.interval),"data-interval":w},[(s(!0),m(B,null,F(a,(_,q)=>(s(),m("li",{key:`${w}__${_.id||q}`,class:r(e.$style.item)},[_.type==="adfox-banner"?(s(),$(n,{key:0,config:_.adfoxConfig,onComplete:o(j)},null,8,["config","onComplete"])):_.type==="adfox-partner"?(s(),$(O,{key:1,config:_.adfoxConfig,onComplete:o(j)},null,8,["config","onComplete"])):(s(),$(h,{key:2,"is-active":o(E)===_.url,item:_},null,8,["is-active","item"]))],2))),128))],10,be))),128)),o(x).fetchStatus.isDone?H("",!0):(s(),$(v,{key:2,class:r(e.$style.intersectionObserver),options:{rootMargin:"0px 0px 100%"},onIntersect:o(x).fetch},{default:ue(()=>[D(u)]),_:1},8,["class","onIntersect"]))],34)],38)}}}),xe="-bNhd",he="Ix-yg",we="wK9JF",ke="frGHf",Ce="xSVb-",$e="_978Z5",Ie="jNJtr",Te="_0ZD1T",Se="_5bISc",Ee="_-516g",Le="gCwUQ",Ne="_9ociR",Oe="lIozy",De="FqVqE",Be={root:xe,carousel:he,feed:we,header:ke,title:Ce,date:$e,container:Ie,isEducation:Te,items:Se,item:Ee,intersectionObserver:Le,itemLoader:Ne,interval:Oe,description:De},Fe={$style:Be},ut=pe(ge,[["__cssModules",Fe]]);export{ut 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.