PageSourceSearch

https://www.bashinform.ru/_nuxt/idx6sWO4.js

js bashinform.ru collected 2026-09-24 17:55:00 UTC 4,423 bytes, 1 lines download raw bytes

1import{_ as E}from"./Bs4nE4Eu.js";import{u as R,_ as S}from"./BSR-_4--.js";import{d as A,C as D,f as N,k as P,l as j,y as I,m as e,z as T,q as p,s as _,e as M,a as O,j as z,t as k,w as H,c as K,g as V,D as U,E as G,p as $,v as B}from"./BbK48jDV.js";import{_ as J}from"./BvjxUkJT.js";import{_ as Q}from"./DJQ4JrRd.js";import{_ as W}from"./BU5R-nVJ.js";import{_ as X}from"./BAKSvUm1.js";import{_ as Y}from"./By9dsBdk.js";import{u as Z}from"./iSCYD0T_.js";import{u as tt}from"./CPPNavpD.js";import"./DNlgRzTP.js";import"./CmfWrmgU.js";import"./BtaTsMzc.js";import"./C4K-aaFK.js";import"./DlAUqK2U.js";import"./ClJfOpMG.js";import"./w5knbIRL.js";import"./LsIT53o-.js";import"./73vHwTxX.js";import"./DE6sD2I8.js";import"./DkvXUnAK.js";import"./B2BtF2iw.js";const q=A({__name:"Top",emits:["change"],setup(f,{emit:t}){const{t:d}=D({useScope:"local"}),{platform:g}=N(),u=_([]),s=_([]),h=t,b=()=>{h("change",{rubrics:u.value,kind:s.value})},r=c=>{u.value=g.rubrics.filter(l=>c.includes(l.slug)),b()},{matterKinds:o}=R();return(c,l)=>{const y=S;return P(),j("div",{class:I(e(T)("flex items-center gap-4",c.$device.isDesktopOrTablet&&"xl:mr-[210px]"))},[p(y,{value:e(u).map(m=>m.slug),search:!0,options:e(g).rubrics.map(m=>({id:m.slug,title:m.title})),multiple:!0,label:e(d)("rubrics"),"content-class":"w-[250px] left-auto right-0","item-class":"whitespace-normal",onChange:r},null,8,["value","options","label"]),p(y,{label:e(d)("type"),options:e(o),value:e(s),"content-class":"left-auto right-0",onChange:l[0]||(l[0]=m=>{s.value=m,b()})},null,8,["label","options","value"])],2)}}});function F(f){const t=f;t.__i18n=t.__i18n||[],t.__i18n.push({locale:"",resource:{rus:{rubrics:{t:0,b:{t:2,i:[{t:3}],s:"Рубрики"}},type:{t:0,b:{t:2,i:[{t:3}],s:"Тип"}}},bak:{rubrics:{t:0,b:{t:2,i:[{t:3}],s:"Рубрикалар"}},type:{t:0,b:{t:2,i:[{t:3}],s:"Төр"}}},eng:{rubrics:{t:0,b:{t:2,i:[{t:3}],s:"Categories"}},type:{t:0,b:{t:2,i:[{t:3}],s:"Type"}}}}})}typeof F=="function"&&F(q);const et=Object.assign(q,{__name:"FeedTop"}),st=f=>{const{platform:t}=N(),{showFooter:d,hideFooter:g}=M(),{$api:u}=O(),s=_(f.initialItems),h=_([]),b=_([]),r=_(!1),o=_(!1),c=_(f.initialItems.at(-1)?.published_at??null),l=_(new AbortController),y=k(()=>o.value&&!r.value),m=k(()=>r.value&&!s.value.length),x=k(()=>{let n=[...s.value];const i=t.news_feed_promo_blocks.promo.filter(a=>!!a.matter),v=i.map(a=>a.matter.id);n=n.filter(a=>a&&!v.includes(a.id));for(const a of i)n.splice(a.position,0,a.matter);return Z(n,"id")}),w=async(n=!1)=>{if(n&&(c.value=null,o.value=!1,r.value=!1,s.value=[]),!(o.value||r.value)){o.value=!0,g();try{l.value.abort(),l.value=new AbortController;const i=await u("/matters",{query:{in_feed:!0,published_at_end:c.value,"rubric[]":h.value.map(v=>v.slug),"kind[]":b.value},signal:l.value.signal});i.matters.forEach(v=>{s.value.push(v)}),o.value=!1,c.value=i.matters.at(-1)?.published_at??null,i.matters.length||(d(),r.value=!0,o.value=!0)}catch(i){console.error(i)}}},C=async n=>{h.value=n.rubrics,b.value=n.kind,await w(!0)};return z(()=>{d()}),{allLoaded:r,loading:y,noResults:m,filteredItems:x,processParamsChange:C,getItems:w,busy:o}},ot=A({__name:"feed",async setup(f){let t,d;const{t:g}=D({useScope:"local"}),{data:u,error:s}=([t,d]=H(()=>tt("matters",{query:{in_feed:!0}})),t=await t,d(),t);if(s.value||!u.value)throw K({statusCode:s.value?.statusCode??500});const{getItems:h,processParamsChange:b,filteredItems:r,busy:o,noResults:c,loading:l}=st({initialItems:u.value.matters});return V({script:[{type:"application/ld+json",innerHTML:u.value.schema_org}]}),(y,m)=>{const x=E,w=et,C=J,n=Q,i=W,v=X,a=Y;return P(),j("div",{class:I(e(T)("container"))},[U("div",{class:I(e(T)("my-12 flex flex-col gap-6 pl-5",y.$device.isDesktopOrTablet&&"my-16 flex-row items-center justify-between pl-0"))},[p(x,{items:[{title:e(g)("title")}],class:"my-0"},null,8,["items"]),p(w,{onChange:e(b)},null,8,["onChange"])],2),p(a,null,{default:G(()=>[p(C,{matters:e(r)},null,8,["matters"]),$(p(n,null,null,512),[[B,e(l)]]),$(p(i,null,null,512),[[B,e(c)]]),p(v,{busy:e(o),onLoad:e(h)},null,8,["busy","onLoad"])]),_:1})],2)}}});function L(f){const t=f;t.__i18n=t.__i18n||[],t.__i18n.push({locale:"",resource:{rus:{title:{t:0,b:{t:2,i:[{t:3}],s:"Вся лента"}}},bak:{title:{t:0,b:{t:2,i:[{t:3}],s:"Яңылыҡтар таҫмаһы"}}},eng:{title:{t:0,b:{t:2,i:[{t:3}],s:"Newsfeed"}}}}})}typeof L=="function"&&L(ot);export{ot 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.