import{d as _,c as f,e as c,f as b,F as m,J as I,I as p,i as e,h as a,j as s,t as n}from"./index.5bb861d3.js";const k=_({name:"safeInfo"}),J=Object.assign(k,{props:{detailData:Object},setup(l){const y=u=>{if(typeof u=="string")try{var o=JSON.parse(u);return!!(typeof o=="object"&&o)}catch{return!1}};return(u,o)=>{const t=f("el-descriptions-item"),i=f("el-descriptions");return c(),b(m,null,[y(l.detailData.safetyInputDescribe)?(c(!0),b(m,{key:0},I(JSON.parse(l.detailData.safetyInputDescribe),(r,d)=>(c(),p(i,{key:d,column:1,border:"",class:"mb-16"},{default:e(()=>[a(t,{label:"\u6295\u5165\u9879"},{default:e(()=>[s(n(r.safetyInputTitle||"-"),1)]),_:2},1024),a(t,{label:"\u5185\u5BB9\u63CF\u8FF0\uFF1A"},{default:e(()=>[s(n(r.safetyInputDescribe||"-"),1)]),_:2},1024),a(t,{label:"\u91D1\u989D\uFF08\u4E07\u5143\uFF09\uFF1A"},{default:e(()=>[s(n(r.safetyInputAmount),1)]),_:2},1024)]),_:2},1024))),128)):(c(),p(i,{key:1,column:1,border:"",class:"mb-16"},{default:e(()=>[a(t,{label:"\u6295\u5165\u9879"},{default:e(()=>[s(n(l.detailData.safetyInputTitle||"-"),1)]),_:1}),a(t,{label:"\u5185\u5BB9\u63CF\u8FF0\uFF1A"},{default:e(()=>[s(n(l.detailData.safetyInputDescribe||"-"),1)]),_:1}),a(t,{label:"\u91D1\u989D\uFF08\u4E07\u5143\uFF09\uFF1A"},{default:e(()=>[s(n(l.detailData.safetyInputAmount),1)]),_:1})]),_:1})),a(i,{column:1,border:"",class:"mb-16"},{default:e(()=>[a(t,{label:"\u5B89\u5168\u6295\u5165\u5360\u6BD4\uFF1A"},{default:e(()=>{var r;return[s(n((((r=JSON.parse(l.detailData.safetyInputDescribe))==null?void 0:r.reduce((d,D)=>d+D.safetyInputAmount,0))/l.detailData.declareAmount*100).toFixed(2))+"% ",1)]}),_:1})]),_:1})],64)}}});export{J as default};
