import{_ as T}from"./index.vue.14df99eb.js";import{_ as V}from"./nuxt-link.4148f43f.js";import{_ as M}from"./card.vue.fd88f257.js";import{u as j}from"./asyncData.302e4745.js";import{A as S,a7 as q,f as x,M as E,r as L,J as H,G as K,o as s,c as i,W as N,O as h,k as e,_ as A,a8 as O,$ as R,a,m as v,w as l,a9 as G,R as J,t as n,L as W,a2 as Q,a3 as U,a5 as X,g as Y,D as Z,d as u,b as c,n as $,E as ee,aa as B}from"./entry.71eeda7b.js";import{u as te}from"./useLockFn.4a8cfc15.js";import{a as ae,c as se,b as oe}from"./news.fce18aa1.js";import"./_plugin-vue_export-helper.c27b6911.js";import"./items.vue.d4079bf4.js";import"./empty_news.24f37b85.js";import"./debounce.951bba8a.js";const D=Symbol("breadcrumbKey"),re=S({separator:{type:String,default:"/"},separatorIcon:{type:q}}),ne=x({name:"ElBreadcrumb"}),ce=x({...ne,props:re,setup(y){const o=y,d=E("breadcrumb"),r=L();return H(D,o),K(()=>{const t=r.value.querySelectorAll(`.${d.e("item")}`);t.length&&t[t.length-1].setAttribute("aria-current","page")}),(t,m)=>(s(),i("div",{ref_key:"breadcrumb",ref:r,class:h(e(d).b()),"aria-label":"Breadcrumb",role:"navigation"},[N(t.$slots,"default")],2))}});var le=A(ce,[["__file","breadcrumb.vue"]]);const ie=S({to:{type:O([String,Object]),default:""},replace:{type:Boolean,default:!1}}),de=x({name:"ElBreadcrumbItem"}),ue=x({...de,props:ie,setup(y){const o=y,d=W(),r=R(D,void 0),t=E("breadcrumb"),m=d.appContext.config.globalProperties.$router,k=L(),g=()=>{!o.to||!m||(o.replace?m.replace(o.to):m.push(o.to))};return(_,P)=>{var p,f;return s(),i("span",{class:h(e(t).e("item"))},[a("span",{ref_key:"link",ref:k,class:h([e(t).e("inner"),e(t).is("link",!!_.to)]),role:"link",onClick:g},[N(_.$slots,"default")],2),(p=e(r))!=null&&p.separatorIcon?(s(),v(e(J),{key:0,class:h(e(t).e("separator"))},{default:l(()=>[(s(),v(G(e(r).separatorIcon)))]),_:1},8,["class"])):(s(),i("span",{key:1,class:h(e(t).e("separator")),role:"presentation"},n((f=e(r))==null?void 0:f.separator),3))],2)}}});var F=A(ue,[["__file","breadcrumb-item.vue"]]);const me=Q(le,{BreadcrumbItem:F}),w=U(F),_e={class:"flex items-center"},pe={class:"flex gap-4 mt-5"},fe={class:"w-[750px] bg-body rounded-[8px] flex-none p-5"},be={class:"border-b border-br pb-4"},he={class:"font-medium text-[22px]"},xe={class:"mt-3 text-tx-secondary flex items-center flex-wrap"},ye={key:0},ve={class:"mr-5"},ke={class:"flex items-center"},ge={key:0,class:"bg-page mt-4 p-3 rounded-lg"},we=["innerHTML"],Ce={class:"flex justify-center mt-[40px]"},Ie={class:"border-t border-br mt-[30px]"},$e={class:"mt-5 flex"},Be=a("span",{class:"text-tx-regular"},"上一篇：",-1),Se={key:1},Ee={class:"mt-5 flex"},Le=a("span",{class:"text-tx-regular"},"下一篇：",-1),Ne={key:1},Ke=x({__name:"[id]",async setup(y){let o,d;const r=X(),{data:t,refresh:m}=([o,d]=Y(()=>j(()=>ae({id:r.params.id,source:r.params.source}),{initialCache:!1},"$hLmIawyfea")),o=await o,d(),o);Z(()=>{switch(r.params.source){case"hot":return"热门资讯";case"new":return" 最新资讯";default:return"全部资讯"}});const k=async()=>{const _=r.params.id;t.value.collect?(await se({id:_}),B.msgSuccess("已取消收藏")):(await oe({id:_}),B.msgSuccess("收藏成功")),m()},{lockFn:g}=te(k);return(_,P)=>{var C,I;const p=T,f=V,z=M;return s(),i("div",null,[a("div",_e,[u(" 当前位置： "),c(e(me),{separator:"/"},{default:l(()=>[c(e(w),{to:{path:"/information"}},{default:l(()=>[u(" 资讯中心 ")]),_:1}),c(e(w),{to:{path:"/information/default",query:{cid:e(t).cid,name:e(t).cate_name}}},{default:l(()=>[u(n(e(t).cate_name),1)]),_:1},8,["to"]),c(e(w),null,{default:l(()=>[u("文章详情")]),_:1})]),_:1})]),a("div",pe,[a("div",fe,[a("div",be,[a("span",he,n(e(t).title),1),a("div",xe,[e(t).author?(s(),i("span",ye,n(e(t).author)+" |  ",1)):$("",!0),a("span",ve,n(e(t).create_time),1),a("div",ke,[c(p,{name:"el-icon-View"}),a("span",null," "+n(e(t).click)+"人浏览",1)])])]),e(t).abstract?(s(),i("div",ge," 摘要："+n(e(t).abstract),1)):$("",!0),a("div",{class:"py-4",innerHTML:e(t).content},null,8,we),a("div",Ce,[c(e(ee),{size:"large",round:"",onClick:e(g)},{default:l(()=>[c(p,{name:`el-icon-${e(t).collect?"StarFilled":"Star"}`,size:e(t).collect?20:16,color:e(t).collect?"#FF2C2F":"inherit"},null,8,["name","size","color"]),u(" "+n(e(t).collect?"取消收藏":"点击收藏"),1)]),_:1},8,["onClick"])]),a("div",Ie,[a("div",$e,[Be,e(t).last.id?(s(),v(f,{key:0,class:"flex-1 hover:underline",to:`/information/detail/${(C=e(t).last)==null?void 0:C.id}`},{default:l(()=>{var b;return[u(n((b=e(t).last)==null?void 0:b.title),1)]}),_:1},8,["to"])):(s(),i("span",Se," 暂无相关文章 "))]),a("div",Ee,[Le,e(t).next.id?(s(),v(f,{key:0,class:"flex-1 hover:underline",to:`/information/detail/${(I=e(t).next)==null?void 0:I.id}`},{default:l(()=>{var b;return[u(n((b=e(t).next)==null?void 0:b.title),1)]}),_:1},8,["to"])):(s(),i("span",Ne," 暂无相关文章 "))])])]),c(z,{class:"flex-1",header:"相关资讯",data:e(t).new,"only-title":!1,"image-size":"mini","show-author":!1,"show-desc":!1,"show-click":!1,border:!1,"title-line":2,source:"new"},null,8,["data"])])])}}});export{Ke as default};
