PageSourceSearch

https://probig.in.ua/_nuxt/Bkky_sP5.js

js probig.in.ua collected 2026-10-02 21:36:39 UTC 2,448 bytes, 1 lines download raw bytes

1import{_ as D}from"./B0zqjCLW.js";import{_ as I}from"./BXmF6VY5.js";import{_ as N}from"./Cvv0B2nx.js";import{_ as $}from"./COxfYoUR.js";import{_ as O,z,A as E,r as b,B as F,a as L,e as u,n as U,f as m,h as k,m as d,s as j,q,F as G,k as M,l as i}from"./BmcAO6Wh.js";import{u as T}from"./DA9tXG26.js";import"./CqxGXz3O.js";import"./ByDLWqFL.js";const H={class:"news"},J={class:"container"},K={class:"card-block"},Q={__name:"index",async setup(R){var x;let c,p;const{t:v}=z(),{$api:w}=E(),l=b(1),V=b(10),f=async e=>await T(`mainPage-${e}`,async()=>{const t={},n=async(r,P)=>{try{return await r}catch(y){return console.error(`Помилка у ${P}:`,y),t[P]=y.message||"Невідома помилка",null}},[o,a]=await Promise.all([n(w.page.news(),"news"),n(w.collections.news_article(e,V.value),"news_article")]),_=(a==null?void 0:a.totalPosts)||0;return{news:o,news_article:a==null?void 0:a.data,totalPosts:_,errors:t}}),{data:s,error:S}=([c,p]=F(()=>f(l.value)),c=await c,p(),c);L(l,async e=>{const{data:t,error:n}=await f(e);t.value&&(s.value=t.value),window.scrollTo({top:0,behavior:"smooth"})}),(x=s.value)!=null&&x.errors&&Object.keys(s.value.errors).length&&console.warn("Отримані помилки:",s.value.errors);const g=u(()=>{var e,t,n,o,a;return(a=(o=(n=(t=(e=s.value)==null?void 0:e.news)==null?void 0:t[0])==null?void 0:n.acf)==null?void 0:o.content)==null?void 0:a.title}),h=u(()=>{var e;return Array.isArray((e=s.value)==null?void 0:e.news_article)?s.value.news_article:[]}),A=u(()=>{var e;return(e=s.value)==null?void 0:e.totalPosts}),B=async e=>{l.value=e},C=u(()=>[{name:v("header.main"),link:"/"},{name:v("header.news"),link:"/news"}]);return U(()=>{console.log("news_content:",h.value)}),(e,t)=>{const n=D,o=I,a=N,_=$;return i(),m("div",H,[k("div",J,[d(n,{list:C.value},null,8,["list"]),g.value?(i(),j(o,{key:0,text:g.value,tag:"h2",align:"center",size:"title",font:"e-Ukraine-LOGO",subtitle:!0},null,8,["text"])):q("",!0),k("div",K,[(i(!0),m(G,null,M(h.value,r=>(i(),m("div",{class:"card",key:r.id},[d(a,{content:r},null,8,["content"])]))),128))]),d(_,{totalItems:A.value,itemsPerPage:10,maxVisiblePages:100,"max-visible-elements":6,"first-pages-count":1,"last-pages-count":1,"show-first-and-lasts":!1,"show-prev-and-next":!0,onCurrentPage:B,modelValue:l.value,"onUpdate:modelValue":t[0]||(t[0]=r=>l.value=r)},null,8,["totalItems","modelValue"])])])}}},ne=O(Q,[["__scopeId","data-v-47941975"]]);export{ne 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.