import{c as a,v as e,x as t,e as s,B as l,C as o,A as c,y as i,z as n,bO as r,bN as d,G as m}from"./base-lib.js?v=1761009159";import{V as p,p as f,P as _,e as u,_ as b}from"./utils-lib.js?v=1761009159";import{am as w}from"./firewall.js?v=1761009159";import"./__commonjsHelpers__.js?v=1761009159";const x={class:"p-[2rem]"},D={class:"mb-[1.2rem] flex flex-col"},v={class:"detail-content"},j={class:"mb-[1.2rem] flex flex-col"},g={class:"detail-content"},U={class:"mb-[1.2rem] flex flex-col"},L={class:"flex justify-between items-end"},R={class:"detail-content"},y={class:"mb-[1.2rem] flex flex-col"},k={class:"detail-content"},C=b(a({__name:"log-detail",props:{compData:{default:{}}},setup(a){const b=a,C=()=>{b.compData.addIpWhiteEvent(b.compData.row)},I=async()=>{await f({title:"加入URL白名单",content:"加入URL白名单后此URL将不再进行防御，是否继续操作？",icon:"warning-filled"}),await _({loading:"正在加入URL白名单...",request:w({url_rule:b.compData.row.url}),message:!0})};return(a,f)=>{const _=r,b=u,w=d,h=m;return e(),t("div",x,[s(w,{title:"",direction:"vertical",column:4,border:"",class:"mb-[1.2rem] table-descriptions"},{default:l(()=>[s(_,{label:"时间"},{default:l(()=>[o(c(i(p)(a.compData.row.addtime)),1)]),_:1}),s(_,{label:"用户Ip"},{default:l(()=>[s(b,{onClick:C},{default:l(()=>[o(c(a.compData.row.address),1)]),_:1})]),_:1}),s(_,{label:"触发函数"},{default:l(()=>[o(c(a.compData.row.fun_name),1)]),_:1}),s(_,{label:"过滤器"},{default:l(()=>[o(c(a.compData.row.intercept),1)]),_:1})]),_:1}),n("div",D,[f[0]||(f[0]=n("span",{class:"detail-title"},"URL地址",-1)),n("span",v,c(a.compData.row.url),1)]),n("div",j,[f[1]||(f[1]=n("span",{class:"detail-title"},"User-Agent",-1)),n("span",g,c(a.compData.row.data_info.data.request.headers["user-agent"]),1)]),n("div",U,[n("div",L,[f[3]||(f[3]=n("span",{class:"detail-title"},"传入值",-1)),s(h,{type:"text",onClick:I},{default:l(()=>f[2]||(f[2]=[o("URL加白",-1)])),_:1,__:[2]})]),n("span",R,c(a.compData.row.data_info.data.args.join("\n")),1)]),n("div",y,[f[4]||(f[4]=n("span",{class:"detail-title"},"调用栈",-1)),n("span",k,c(a.compData.row.data_info.data.stack_trace.join("\n")),1)])])}}}),[["__scopeId","data-v-947d3c38"]]);export{C as default};
