import{c as a,r as e,g as s,q as t,H as l,v as o,x as n,I as r,y as i,N as p,e as u,B as c,C as d,A as _,z as m,D as b,bO as f,bN as y}from"./base-lib.js?v=1761009159";import{_ as v}from"./index119.js?v=1761009159";import{V as g,jz as h,ak as x,fF as j}from"./utils-lib.js?v=1761009159";import"./__commonjsHelpers__.js?v=1761009159";const k={key:1,class:"p-24px"},D=["innerHTML"],w=a({__name:"details",props:{compData:{}},setup(a){const w=a,z=e(""),H=e(!1),C=s(()=>w.compData.id),L=e({data:"",id:0,pid:0,push_title:"",push_type:"",self_type:""}),M=async a=>{const{data:e}=await j({path:a.file_name});z.value=e.data};return t(()=>{(async()=>{try{H.value=!0;const{data:a}=await h({msg_id:C.value});if(a){const{sub:e}=a;if(!x(e))return;switch(a.sub_type){case"push_msg":L.value=e,L.value.data=L.value.data.replace(/\n/g,"<br>");break;case"soft_install":await M(e)}}}finally{H.value=!1}})()}),(a,e)=>{const s=v,t=f,h=y,x=l("bt-loading");return o(),n("div",null,["soft_install"===a.compData.sub_type?r((o(),p(s,{key:0,class:"h-50rem !rounded-none",content:i(z),"element-loading-background":"rgba(var(--el-color-black-rgb), 0.6)"},null,8,["content"])),[[x,i(H)]]):"push_msg"===a.compData.sub_type?r((o(),n("div",k,[u(h,{column:1,border:!0,"content-style":{color:"var(--el-base-primary)",fontSize:"13px"},"label-style":{width:"100px",backgroundColor:"var(--el-fill-color-light)",color:"var(--el-base-primary)",fontSize:"13px"}},{default:c(()=>[u(t,{label:"消息名称"},{default:c(()=>[d(_(i(L).push_title||"--"),1)]),_:1}),u(t,{label:"类型"},{default:c(()=>[d(_(i(L).push_type||"--"),1)]),_:1}),u(t,{label:"来源"},{default:c(()=>[d(_(a.compData.msg_types.join(">")),1)]),_:1}),u(t,{label:"时间"},{default:c(()=>[d(_(i(g)(a.compData.create_time)),1)]),_:1}),u(t,{label:"消息内容"},{default:c(()=>[m("div",{class:"leading-24px",innerHTML:i(L).data||"--"},null,8,D)]),_:1})]),_:1})])),[[x,i(H)]]):b("",!0)])}}});export{w as default};
