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