import{c as s,r as a,q as e,v as t,x as i,z as r,F as l,b0 as d,C as o,A as c,K as n,e as p,B as u,I as m,J as v,y as _,ce as x}from"./base-lib.js?v=1761009159";import{_ as f}from"./utils-lib.js?v=1761009159";import"./__commonjsHelpers__.js?v=1761009159";const y={class:"deploy-status-info"},b={class:"site-list"},E=["onClick"],j={class:"error-details"},w={class:"error-content"},h=f(s({__name:"index",props:{compData:{}},setup(s){const f=s,{faildList:h,successList:k}=f.compData,C=a([]);return e(()=>{C.value=Array.prototype.concat(h,k).map(s=>({url:s.siteName,details:s.error_msg||"暂无错误日志",isExpanded:!1,status:s.status}))}),(s,a)=>{const e=x;return t(),i("div",y,[r("div",b,[a[0]||(a[0]=r("div",{class:"site-item"},[r("div",{class:"site-header"},"网站")],-1)),(t(!0),i(l,null,d(_(C),(s,a)=>(t(),i("div",{key:s.url,class:"site-item"},[r("div",{class:"site-header",onClick:s=>(s=>{C.value[s].isExpanded=!C.value[s].isExpanded})(a)},[r("span",null,[o(c(s.url),1),r("span",{class:n(["ml-[1rem]",s.status?"text-primary":"text-red-500"])},c(s.status?"(部署成功)":"(部署失败)"),3)]),r("i",{class:n(["arrow",s.isExpanded?"arrow-down":"arrow-right"])},null,2)],8,E),p(e,null,{default:u(()=>[m(r("div",j,[r("div",w,c(s.details),1)],512),[[v,s.isExpanded]])]),_:2},1024)]))),128))])])}}}),[["__scopeId","data-v-48df3b0d"]]);export{h as default};
