import{_ as d}from"./EmptyStateBlock-D6U_EDq6.js";import{_ as p}from"./BlockBalanceAgreement-2iQbaweR.js";import{c as a,b as r,a as t,C as f,w as u,E as g,t as i,F as h,f as k,g as w,o as n,e as x}from"./index-CipWZKo_.js";import{u as T}from"./content-DjwNX1Ep.js";import{b as v,s as N}from"./time-DenPiOX5.js";import{_ as b}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./contracts-CILh9uSu.js";import"./ButtonDefault-CghIUDY0.js";const B={async setup(){const s=T(),o=w(),c=k(()=>s?.newsList[o.params.id]);return await s.fetchNews(),{getArticle:c,secondToDate:N,formNormalTextDate:v}}},A={class:"section"},D={class:"container"},y={class:"section-header"},C={class:"section-label-wrapper"},S={class:"section-title"},E={class:"section-label"},L={key:0,class:"news-content text"},V=["innerHTML"];function F(s,o,c,e,H,M){const l=p,_=g("router-link"),m=d;return n(),a(h,null,[r(l),t("section",A,[t("div",D,[t("div",y,[t("div",C,[r(_,{class:"section-label link",to:"/News"},{default:u(()=>o[0]||(o[0]=[x("Новости",-1)])),_:1,__:[0]})]),t("h1",S,i(e.getArticle?.Title),1),t("div",E,i(e.formNormalTextDate(e.secondToDate(e.getArticle?.PublicDate))),1)]),e.getArticle?(n(),a("div",L,[t("div",{innerHTML:e.getArticle?.Text},null,8,V)])):(n(),f(m,{key:1,label:"Новость не найдена"}))])])],64)}const K=b(B,[["render",F],["__scopeId","data-v-f6fd3c09"]]);export{K as default};
