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