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