import{a as p,Y as w,L as y}from"./index.17037962789732.js";import"./index.170379627897317.js";import"./index.170379627897333.js";import{a as N}from"./comm.1703796278973.js";import{h as L}from"./system.1703796278973.js";import{a as b}from"./dayjs.min.1703796278973.js";import{d as x,o as s,x as o,z as e,F as S,h as k,u as l,t as A,A as r,b as i,a as D,D as d,G as E,H as I}from"./vue.1703796278973.js";import{_ as j}from"./_plugin-vue_export-helper.1703796278973.js";import"./index.17037962789733.js";import"./isArray.1703796278973.js";import"./editor.api.1703796278973.js";import"./preload-helper.1703796278973.js";import"./monaco.contribution.1703796278973.js";import"./index.170379627897332.js";import"./index.170379627897315.js";import"./index.170379627897334.js";import"./default.1703796278973.js";import"./permission.1703796278973.js";import"./consts.1703796278973.js";import"./404.1703796278973.js";const C=a=>(E("data-v-b8a40409"),a=a(),I(),a),M={class:"new-alarm"},Y=C(()=>e("div",{class:"title"},"最新告警",-1)),B={key:0,class:"new-alarm-items"},T={class:"new-alarm-item"},H={class:"new-alarm-item-time"},P=["src"],V={class:"new-alarm-item-content"},z=["onClick"],F={class:"new-alarm-item-state"},G={key:1,class:"empty-body"},J=x({__name:"NewAlarm",props:{alarmList:{type:Array,default:[]}},setup(a){const u=L(),v=m=>{u.jumpPage("rule-engine/Alarm/Log/Detail",{id:m.id,detail:!0})};return(m,R)=>{const h=w,f=y,g=p;return s(),o("div",M,[Y,a.alarmList.length?(s(),o("div",B,[e("ul",null,[(s(!0),o(S,null,k(a.alarmList.slice(0,3),t=>{var n,c,_;return s(),o("li",{key:t},[e("div",T,[e("div",H,[e("img",{src:l(N)("/alarm/bashboard.png"),alt:""},null,8,P),A(r(l(b)(t.alarmTime).format("YYYY-MM-DD HH:mm:ss")),1)]),e("div",V,[i(h,{title:t.alarmName,placement:"topLeft"},{default:D(()=>[e("a",{onClick:()=>v(t)},r(t.alarmName),9,z)]),_:2},1032,["title"])]),e("div",F,[i(f,{status:((n=t.state)==null?void 0:n.value)==="warning"?"error":"default"},null,8,["status"]),e("span",{class:d(((c=t.state)==null?void 0:c.value)==="warning"?"error":"default")},r((_=t.state)==null?void 0:_.text),3)]),e("div",{class:d(["new-alarm-item-level",`level-${t.level}`])},r(t.levelName),3)])])}),128))])])):(s(),o("div",G,[i(g,{image:l(p).PRESENTED_IMAGE_SIMPLE},null,8,["image"])]))])}}});const _t=j(J,[["__scopeId","data-v-b8a40409"]]);export{_t as default};
