PageSourceSearch

https://ruscorpora.ru/_nuxt/BHnYvxLv.js

js ruscorpora.ru collected 2026-09-24 08:50:11 UTC 3,071 bytes, 1 lines download raw bytes

1import{u as q,a8 as B,z as P,w as f,v as z,A as D,e as O,D as S,a4 as V,an as v,q as x,o as p,c as u,f as s,t as k,g as n,h as c,i as _,F as j,r as F,aB as R,m as I}from"./DB7MF3Yk.js";import{u as b}from"./CTalo9DJ.js";import{T as U}from"./DIvHg_UZ.js";import"./Ch4Rz2p5.js";import"./BGfWuNRa.js";import"./E__oZa-R.js";import"./DTcfEEB2.js";import"./DTTYHR2R.js";import"./DZ3q9Lx3.js";import"./ZgS4mzI9.js";import"./DyC0a4Hd.js";import"./BLMwvtqw.js";import"./BRo3ZrTY.js";const T='<span class="word-toggle__setting-list"><span class="word-toggle__setting-item ico-st-code"><a href="javascript:void(0);"></a></span></span>',W=a=>{const t=a.lastElementChild;let e=t;["UL","OL"].includes(t.tagName)&&(e=e.lastElementChild),e.insertAdjacentHTML("beforeend",T)},A=(a,t)=>{const e=document.createElement("div"),r=t==="1"||a.getAttribute("data-opened")==="1";r?e.innerHTML=a.getAttribute("data-wrapped-text").replace(T,""):e.innerHTML=a.getAttribute("data-origin-text"),W(e),a.innerHTML=e.innerHTML,a.setAttribute("data-opened",r?"0":"1")},L=()=>{const a=document.querySelectorAll(".word-toggle");a.length&&a.forEach(t=>{t.getAttribute("data-wrapped-inited")!=="1"&&(!t.hasAttribute("data-wrapped-text")||!t.getAttribute("data-wrapped-text")||(t.setAttribute("data-wrapped-inited","1"),A(t,"1"),t.addEventListener("click",function(e){e.target.tagName==="A"&&e.target.closest(".ico-st-code")&&A(t)})))})},G={class:"container"},J={class:"ld-result"},K={class:"ld-archive"},Q={class:"ld-archive__header"},X={role:"list"},Y=["id"],Z={datetime:"{{ item.publish_date }}"},$=["innerHTML","data-origin-text","data-wrapped-text"],_t={__name:"index",async setup(a){let t,e;const r=q(),y=B(),i=P(()=>Number(r.query.page??1)),{data:g}=([t,e]=f(()=>b("/nuxt-api/tech-page/news")),t=await t,e(),t),{data:h,pending:l,error:m}=([t,e]=f(()=>b("/api/content/news/",{watch:[i],query:{page:i}})),t=await t,e(),t),w=z(!1);if(m.value)throw D({statusCode:m.value.statusCode});O({...g.value.meta});const C=({page:d})=>{y.push({query:{page:d}})};return S([l,i],([d,M])=>{d||v(L)},{immediate:!0}),V(()=>{w.value=!0,v(()=>{L()})}),(d,M)=>{const H=I,E=x("a-spin"),N=x("a-skeleton");return p(),u("div",G,[s("div",J,[s("div",K,[s("div",Q,[s("h1",null,k(n(g).title),1)]),s("div",X,[c(E,{spinning:n(l)},{default:_(()=>[(p(!0),u(j,null,F(n(h).results,o=>(p(),u("div",{class:"ld-archive__el",role:"listitem",id:o.pk,key:o.pk},[s("div",{class:R(["ld-archive__title",{highlight:n(r).query.mark==o.pk}])},[c(H,{class:"link link--no-under",to:{name:"news-id",params:{id:o.pk}}},{default:_(()=>[s("time",Z,k(o.formatted_publish_date),1)]),_:2},1032,["to"])],2),s("div",{class:"ld-archive__text word-toggle typography",innerHTML:o.wrapped_content,"data-origin-text":o.content,"data-wrapped-text":o.wrapped_content,"data-opened":0},null,8,$)],8,Y))),128))]),_:1},8,["spinning"])])]),c(N,{loading:!n(w),active:"",paragraph:{rows:1}},{default:_(()=>[c(n(U),{"page-size":10,current:n(i),total:n(h).count,onChange:C,disabled:n(l)},null,8,["current","total","disabled"])]),_:1},8,["loading"])])])}}};export{_t 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.