import{d as e,r as s,o as a,s as t,c as n,u as l,f as i,e as r,t as o,m as c,F as m,k as d,i as u,b as p,_ as v}from"./index-93b7fc46.js";import{S as g}from"./Service-6e15808c.js";import{T as f}from"./Title-acbf3c4c.js";import{u as h}from"./homepage-e83eed78.js";import"./swiper.min-824b1e6f.js";const k={class:"newsmessage"},w={key:0,class:"news"},y={key:1},b={class:"news-message"},j={class:"news-title"},x={key:0},_={key:1},T={class:"content"},M={key:0,class:"contentmessage"},N={key:0,class:"content-img","text-align":"left"},S=["src","alt"],z=["innerHTML"],C={key:0,class:"item-img"},H=["src","alt"],I=v(e({__name:"NewsMessage",setup(e){let v=h(),I=s({}),L=s({title:"News",desc:""});const R=()=>{localStorage.setItem("scrollPosition","informationCenter"),u.push("/")};return a((()=>{t((()=>u.currentRoute.value.params.name),(e=>{v.$state.News.map((s=>{s.position==e&&(I.value=s)}))}),{immediate:!0,deep:!0})})),(e,s)=>(p(),n("div",k,["all"==l(u).currentRoute.value.params.name?(p(),n("div",w,[i(f,{value:l(L)},null,8,["value"]),i(g,{index:2})])):(p(),n("div",y,[r("div",b,[r("div",j,[l(I).title?(p(),n("h1",x,[r("strong",null,o(l(I).title),1)])):c("",!0),l(I).date?(p(),n("h4",_,o(l(I).date),1)):c("",!0)]),r("div",T,[l(I).others&&0!=l(I).others.length?(p(),n("div",M,[l(I).banner?(p(),n("div",N,[r("img",{src:l(I).banner.detail,alt:l(I).banner.name,"text-align":"left"},null,8,S)])):c("",!0),(p(!0),n(m,null,d(l(I).others,((e,s)=>(p(),n("div",{class:"content-item",key:s},[r("h3",null,[r("strong",null,o(e.position+". "+e.title),1)]),r("span",{innerHTML:e.content,class:"font-size-18"},null,8,z),e.children?(p(),n("div",C,[r("img",{src:e.children.detail,alt:e.children.name},null,8,H)])):c("",!0)])))),128))])):c("",!0)]),r("div",{class:"btn font-size-24",onClick:R},"Back")])]))]))}}),[["__scopeId","data-v-07dbf3a3"]]);export{I as default};
