var C=Object.defineProperty;var y=Object.getOwnPropertySymbols;var L=Object.prototype.hasOwnProperty,S=Object.prototype.propertyIsEnumerable;var E=(a,s,e)=>s in a?C(a,s,{enumerable:!0,configurable:!0,writable:!0,value:e}):a[s]=e,T=(a,s)=>{for(var e in s||(s={}))L.call(s,e)&&E(a,e,s[e]);if(y)for(var e of y(s))S.call(s,e)&&E(a,e,s[e]);return a};import{as as F,c as w,at as x,bW as b,f as _,O as I,P as c,R as i,$ as l,bX as p,h as r,W as h,n as k,ax as H,V as M,bY as D,g as m,F as v,t as $}from"./index.52cbd38b.js";const N={class:"expand-area"},B={class:"left"},V={class:"page"},W=["innerHTML"],z={class:"right"},A=["src"],O={class:"page"},P=["innerHTML"],j=["src"],J=w({name:"ErrorTable",props:{list:null,file:null},setup(a){const s=a,e=x(),d=b(()=>{const f=[];return s.list.forEach(g=>{f.push(T({file:s.file},g))}),f}),o=b(()=>`width:${e.systemInfo.screenWidth}px;height:${e.systemInfo.screenHeight}px`),n=b(()=>`width:${e.systemInfo.screenWidth/5}px;height:${e.systemInfo.screenHeight/5}px`);function u({column:f,columnIndex:g}){let t="";return g===0&&(t="expand-column"),f.label==="Stack"&&(t="stack"),f.label==="Message"&&(t="message"),t}return(f,g)=>(_(),I(l(D),{data:l(d),style:{width:"100%","margin-bottom":"20px"},"header-row-class-name":"header-row",class:"el-table","cell-class-name":u},{default:c(()=>[i(l(p),{label:a.file,"label-class-name":"file"},{default:c(()=>[i(l(p),{type:"expand"},{default:c(t=>[r("div",N,[r("div",B,[r("div",V,"\u9875\u9762\u8DEF\u5F84\uFF1A"+h(t.row.page),1),r("pre",{class:"stack",innerHTML:t.row.stack},null,8,W)]),r("div",z,[r("img",{class:"image",style:k(l(o)),src:t.row.src},null,12,A)])])]),_:1}),i(l(p),{label:"Message","min-width":"100","show-overflow-tooltip":""},{default:c(t=>[i(l(H),{size:"large",type:"warning",effect:"dark"},{default:c(()=>[M(h(t.row.message),1)]),_:2},1024)]),_:1}),i(l(p),{label:"Stack","min-width":"500"},{default:c(t=>[r("div",O,"\u9875\u9762\u8DEF\u5F84\uFF1A"+h(t.row.page),1),r("pre",{class:"stack",innerHTML:t.row.stack},null,8,P)]),_:1}),i(l(p),{label:"Thumbnail",width:"130"},{default:c(t=>[r("img",{style:k(l(n)),src:t.row.src},null,12,j)]),_:1})]),_:1},8,["label"])]),_:1},8,["data"]))}});var R=F(J,[["__scopeId","data-v-1f3263b8"]]);const X={class:"info"},Y={class:"label"},q={class:"message"},G=w({name:"InfoCard",setup(a){const s=x();return(e,d)=>(_(),m("div",X,[(_(!0),m(v,null,$(Object.entries(l(s).systemInfo),([o,n])=>(_(),m("div",{class:"info-item",key:o},[r("span",Y,h(o)+":",1),r("span",q,h(n),1)]))),128))]))}});var K=F(G,[["__scopeId","data-v-fc1c8ad6"]]);const Z=w({name:"JSError",setup(a){const s=x(),e=b(()=>{const d=[];return s.reportList.forEach(o=>{var u;const n={lists:[],file:""};((u=o.errorList)==null?void 0:u.length)>0&&(n.lists=o.errorList,n.file=o.testFilePath.split(/\/|\\/).pop()||"",d.push(n))}),d});return(d,o)=>(_(),m(v,null,[i(K),(_(!0),m(v,null,$(l(e),(n,u)=>(_(),I(R,{key:u,list:n.lists,file:n.file},null,8,["list","file"]))),128))],64))}});export{Z as default};
