import{_ as o,B as i,f as l,d as c,e as d,g as t,n as r,t as n,F as _}from"./app-ad835f92.js";const p={data(){return{isAuthenticated:i(),id:this.$route.params.id??null,newsType:[this.$t("global.system"),this.$t("global.notification")],news:{}}},mounted(){this.fetchData()},methods:{fetchData:async function(){const e=this;await l.get(`/api/getNewsById/${e.id}`).then(s=>{e.news=s.data.data})}}},u={class:"area1"},h={class:"title"},m={class:"news-main col-12 col-md-8"},f={class:"title"},w={class:"date"},v={class:"content"},b={class:"text-start col-12 col-md-8"};function g(e,s,y,$,a,k){return c(),d(_,null,[t("div",u,[t("div",{class:r(["container d-flex flex-column align-items-center",{mt:!a.isAuthenticated}])},[t("h1",h,n(e.$t("backend.news.latest_news")),1),s[1]||(s[1]=t("hr",{class:"styled-hr"},null,-1)),t("div",m,[t("p",f,n(a.news.title),1),t("p",w,n(a.news.post_date),1),t("pre",v,n(a.news.content),1)]),t("div",b,[t("button",{class:"btn-goback",onClick:s[0]||(s[0]=B=>e.$router.back())}," ← "+n(e.$t("global.back")),1)])],2)]),s[2]||(s[2]=t("div",{class:"area2"},null,-1))],64)}const A=o(p,[["render",g],["__scopeId","data-v-744ba26c"]]);export{A as default};
