import{_ as f}from"./EmptyStateBlock-Dt7jmbAi.js";import{_ as d}from"./HtmlContent-DrkJBX3e.js";import{_ as k}from"./BlockBalanceAgreement-396E9Da8.js";import{g,x as v,o as e,c,b as o,a as s,w as y,F as _,t as l,B,m as h,d as N,j as b,f as C}from"./index-Bb2UEb_P.js";import{u as S}from"./content-Be03vzee.js";import{f as D}from"./time-CsiTV-I2.js";import"./index-Dax_IkAt.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./ButtonDefault-CzWpVlv6.js";import"./common-U_VzDrmL.js";const R={class:"tw-px-4 md:tw-px-8 tw-mb-8"},T={class:"tw-text-xl sm:tw-text-4xl tw-mt-4"},V={class:"tw-text-gray-500 tw-text-sm tw-mt-2"},J={__name:"NewsId",async setup(A){let n,a;const r=S(),i=b(),t=g(()=>r.news[i.params.id]);return[n,a]=v(()=>r.fetchNews()),await n,a(),(E,m)=>{const p=k,u=N("RouterLink"),w=d,x=f;return e(),c(_,null,[o(p),s("div",R,[o(u,{class:"tw-block tw-text-gray-500 hover:tw-text-orange-500 tw-mt-4",to:"/News"},{default:y(()=>m[0]||(m[0]=[C(" Новости ",-1)])),_:1,__:[0]}),t.value?(e(),c(_,{key:0},[s("h1",T,l(t.value.Title),1),s("div",V,l(B(D)(t.value.PublicDate)),1),o(w,{content:t.value.Text},null,8,["content"])],64)):(e(),h(x,{key:1,label:"Новость не найдена",class:"tw-mt-4"}))])],64)}}};export{J as default};
