1import{_}from"./ArticleContent-BRfu8pnj.js";import{A as g,B as u,C as p,_ as f,c as o,o as s,x as l,w,e as N,v as x,b as d}from"./index-ae80RWzP.js";import{_ as y}from"./animated-gradient-B6E7wigr.js";const A={name:"NewsPage",components:{ArticleContent:_,BaseTitle:p},data(){return{article:{},loading:!1}},computed:{...g(u,["currentLang"])},watch:{currentLang:{handler(t){this.fetchNews()}}},methods:{async fetchNews(){try{this.loading=!0,await this.$axiosApi.get("/gazprom-app/content/news/"+this.$route.params.id).then(t=>{var e;if(t!=null&&t.data&&Array.isArray(t.data)){const n=t.data.find(i=>i.lang===this.currentLang);n?this.article=n:this.article=t.data[0],(e=this.article)!=null&&e.title&&(document.title=`${this.article.title} - ÐазпÑом`)}})}catch(t){console.log(t)}this.loading=!1}},beforeMount(){this.fetchNews()}},v={class:"container"},B={key:0},k={key:1,class:"preloader"};function C(t,e,n,i,a,L){var c;const h=p,m=_;return s(),o("div",v,[!a.loading&&a.article?(s(),o("div",B,[l(h,{tag:"h2",size:"small"},{default:w(()=>{var r;return[N(x((r=a.article)==null?void 0:r.title),1)]}),_:1}),l(m,{content:(c=a.article)==null?void 0:c.content},null,8,["content"])])):(s(),o("div",k,e[0]||(e[0]=[d("div",{class:"loading"},[d("img",{src:y,alt:"loading"})],-1)])))])}const V=f(A,[["render",C],["__scopeId","data-v-8a4b0a94"]]);export{V 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.