PageSourceSearch

https://www.asbis.ee/_nuxt/DePc6yaf.js

js asbis.ee collected 2026-10-06 04:06:41 UTC 2,024 bytes, 1 lines download raw bytes

1import B from"./Dj6_gdUe.js";import{_ as N}from"./fRfpImpt.js";import{p as S}from"./8qAshKBu.js";import{m as A,g as x,u as E,w as T,b as C,c as n,o as c,d as p,e as V,h as d,i,t as g,f as l,j as $,s as I,k as _}from"./BBlO09eZ.js";import"./CJVGfykD.js";import{u as j}from"./K_eyi66Q.js";import"./C-G-y9pc.js";import"./C7LjkDhy.js";/* empty css        *//* empty css        */import"./CqeuJoX-.js";import"./BC6Loo_6.js";import"./BLb2ADNI.js";const D="news";function K(y){const{$api:{newsService:s}}=A(),r=x();return{fetch:async()=>{try{const{data:o}=await s.getNewsArticle(String(r.params.slug),{type:D,...y});return o}catch(o){console.error("Fetch news article failed: ",o);return}}}}const P={key:0},R={class:"bg-gray-100 pb-6 pt-10 md:pt-[72px]"},q={class:"container"},F={class:"mx-auto max-w-[654px]"},G={key:0,class:"mb-6 text-sm text-gray-400"},H={key:1,class:"font-sans mb-6 text-xl font-bold md:mb-12 md:text-3xl"},L="page-settings",at={__name:"[slug]",async setup(y){let s,r;const u=e=>e.type==="json"&&e.content.type===L,o=x(),{locale:f}=E(),{fetch:b}=K({lang:f.value}),{data:t}=([s,r]=T(async()=>j(`news-${o.params.slug}-${f.value}`,async()=>{const e=await b();if(!e)throw I({statusCode:404,fatal:!0});return e})),s=await s,r(),s);C(()=>({title:t.value?.title,meta:[{property:"og:title",content:t.value?.title}]}));const m=_(()=>t.value?.blocks?.find(u)?.content.data??null),v=_(()=>t.value?.blocks?.filter(e=>!u(e))??null),w=_(()=>[...(t.value?.breadcrumbs||[]).map(S),{textKey:"news"},{text:t.value?.title}]);return(e,a)=>{const k=B,h=N;return n(t)?(c(),p("div",P,[V(k,{items:w.value},null,8,["items"]),a[2]||(a[2]=d()),i("div",R,[i("main",null,[i("div",q,[i("div",F,[m.value&&m.value.date?(c(),p("div",G,g(m.value.date),1)):l("",!0),a[0]||(a[0]=d()),n(t).title?(c(),p("h1",H,g(n(t).title),1)):l("",!0)])]),a[1]||(a[1]=d()),v.value?(c(),$(h,{key:0,blocks:v.value,"meta-info":{entityType:n(t).entity_type,entityId:n(t).entity_id}},null,8,["blocks","meta-info"])):l("",!0)])])])):l("",!0)}}};export{at 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.