import{c as a,r as t,v as s,x as o,e as l,B as n,z as c,A as e,y as i,b1 as r,aX as p}from"./base-lib.js?v=1761009159";import{l as d}from"./utils-lib.js?v=1761009159";import{bF as _}from"./firewall.js?v=1761009159";import"./__commonjsHelpers__.js?v=1761009159";const u={class:"p-[20px]"},m={class:"card-header"},f={class:"text-extraLarge font-bold text-default mb-[10px]"},x={class:"title"},b={class:"mb-[20px] p-[10px] bg-light rounded-base"},v={class:"text-default text-medium font-bold"},y=a({__name:"datails",props:{compData:{}},setup(a){const y=a,j=t({locationInfo:"",total_scan_count:"",daily_scan_count_list:[]}),h=[{label:"日期",prop:"date",width:150},{label:"扫描次数",render:a=>a.scan_count.toLocaleString()||0}];return(async()=>{const{data:a}=await _({ip:y.compData.ip}),{ip_detail:t,total_scan_count:s,daily_scan_count_list:o}=a;"局域网"===t.country?j.value.locationInfo="局域网":j.value.locationInfo=[t.country,t.province,t.city].filter(Boolean).join("."),j.value.total_scan_count=s,j.value.daily_scan_count_list=o})(),(a,t)=>{const _=r,g=d,w=p;return s(),o("div",u,[l(w,{shadow:"never",class:"p-[20px]"},{default:n(()=>[c("div",m,[c("h3",f,e(y.compData.ip),1),c("div",x,e(i(j).locationInfo),1),l(_,{class:"my-[10px]"}),c("div",b,[t[0]||(t[0]=c("span",{class:"text-secondary mr-[10px]"},"总扫描次数：",-1)),c("span",v,e(i(j).total_scan_count),1)]),l(g,{data:i(j).daily_scan_count_list,column:h},null,8,["data"])])]),_:1})])}}});export{y as default};
