import{L as h,aG as f}from"./index.17037962789732.js";import"./index.170379627897314.js";import"./index.170379627897315.js";import"./index.170379627897333.js";import{h as x}from"./moment.1703796278973.js";import{d as b,k as B,r as C,o as s,x as r,z as t,F as D,h as M,u as n,c as u,b as g,t as w,A as m,B as N,D as O}from"./vue.1703796278973.js";import{_ as V}from"./_plugin-vue_export-helper.1703796278973.js";import"./index.17037962789733.js";import"./dayjs.min.1703796278973.js";import"./isArray.1703796278973.js";import"./editor.api.1703796278973.js";import"./preload-helper.1703796278973.js";import"./monaco.contribution.1703796278973.js";const Y={class:"dialog-card"},j=["onClick"],z={class:"dialog-box"},A={class:"dialog-header"},I={class:"dialog-title"},E={class:"dialog-time"},F={key:0,class:"dialog-editor"},H=b({__name:"index",props:{data:{type:Object,default:()=>{}}},setup(c){const o=new Map;o.set("connection","连接"),o.set("auth","权限验证"),o.set("decode","解码"),o.set("encode","编码"),o.set("request","请求"),o.set("response","响应"),o.set("downstream","下行消息"),o.set("upstream","上行消息");const d=new Map;d.set("error","#E50012"),d.set("success","#24B276");const a=B([]),v=i=>{const l=a.value.indexOf(i.key);l===-1?a.value.push(i.key):a.value.splice(l,1)};return(i,l)=>{var p;const _=C("AIcon"),k=h,y=f;return s(),r("div",{class:O(["dialog-item",{"dialog-active":!((p=c.data)!=null&&p.upstream)}]),key:c.data.key},[t("div",Y,[(s(!0),r(D,null,M(c.data.list,e=>(s(),r("div",{class:"dialog-list",key:e.key},[t("div",{class:"dialog-icon",onClick:L=>v(e)},[n(a).includes(e.key)?(s(),u(_,{key:0,type:"DownOutlined"})):(s(),u(_,{key:1,type:"RightOutlined"}))],8,j),t("div",z,[t("div",A,[t("div",I,[g(k,{color:n(d).get(e.error?"error":"success"),style:{"margin-right":"5px"}},null,8,["color"]),w(" "+m(n(o).get(e.operation)||(e==null?void 0:e.operation)),1)]),t("div",E,m(n(x)(e.endTime).format("YYYY-MM-DD HH:mm:ss")),1)]),n(a).includes(e.key)?(s(),r("div",F,[g(y,{autoSize:"",bordered:!1,value:e==null?void 0:e.detail},null,8,["value"])])):N("",!0)])]))),128))])],2)}}});const Z=V(H,[["__scopeId","data-v-125b677b"]]);export{Z as default};
