var p=(i,v,d)=>new Promise((x,_)=>{var a=n=>{try{l(d.next(n))}catch(h){_(h)}},S=n=>{try{l(d.throw(n))}catch(h){_(h)}},l=n=>n.done?x(n.value):Promise.resolve(n.value).then(a,S);l((d=d.apply(i,v)).next())});import R,{__tla as T}from"./EmptyBox-109f9f7e.js";import{g as z,__tla as V}from"./index-c53afdf5.js";import{d as B,__tla as D}from"./download-801edd56.js";import{d as G,f as $,n as H,y as k,o as f,l as I,c as E,u,w as g,N as K,b as A,t as N,H as U,e as P,a4 as W,b$ as j,_ as q,__tla as J}from"./index-b5895273.js";import{__tla as M}from"./Index-281ee613.js";import"./base64Conver-39fc0d26.js";let F,Q=Promise.all([(()=>{try{return T}catch(i){}})(),(()=>{try{return V}catch(i){}})(),(()=>{try{return D}catch(i){}})(),(()=>{try{return J}catch(i){}})(),(()=>{try{return M}catch(i){}})()]).then(()=>p(void 0,null,function*(){const i={key:1,class:"flex"},v=["src"],d=G({__name:"SummaryOfAttachments",props:{processId:{default:""}},setup(x){const _=x,{t:a}=W(),S=[{title:a("\u5E8F\u53F7"),align:"center",customRender:({index:t})=>`${t+1}`,width:80},{title:a("\u9644\u4EF6\u540D\u79F0"),dataIndex:"fileName",sorter:{multiple:4}},{title:a("\u9644\u4EF6\u683C\u5F0F"),dataIndex:"fileType"},{title:a("\u6240\u5C5E\u7EC4\u4EF6"),dataIndex:"components"},{title:a("\u4E0A\u4F20\u4EBA\u5458"),dataIndex:"createUserName"},{title:a("\u4E0A\u4F20\u65F6\u95F4"),dataIndex:"createDate"},{title:a("\u64CD\u4F5C"),dataIndex:"operation",width:120,align:"center"}],l=$({dataSource:[],showPreview:!1,fileUrl:""});H(()=>p(this,null,function*(){if(_.processId)try{let t=yield z({processId:_.processId});l.dataSource=t}catch(t){}}));function n(t){return p(this,null,function*(){l.fileUrl=j().VITE_GLOB_FFFILEVIEW_URL+encodeURIComponent(L(t)),l.showPreview=!0})}function h(t,e){return p(this,null,function*(){B({url:t,fileName:e})})}function L(t){let e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",o="",r,m,s,c,y,b,C,w=0;for(t=O(t);w>2,y=(r&3)<<4|m>>4,b=(m&15)<<2|s>>6,C=s&63,isNaN(m)?b=C=64:isNaN(s)&&(C=64),o=o+e.charAt(c)+e.charAt(y)+e.charAt(b)+e.charAt(C);return o}function O(t){t=t.replace(/\r\n/g,` `);let e="";for(let o=0;o127&&r<2048?(e+=String.fromCharCode(r>>6|192),e+=String.fromCharCode(r&63|128)):(e+=String.fromCharCode(r>>12|224),e+=String.fromCharCode(r>>6&63|128),e+=String.fromCharCode(r&63|128))}return e}return(t,e)=>{const o=k("a-button"),r=k("a-table"),m=k("a-modal");return f(),I("div",null,[l.dataSource.length==0?(f(),E(R,{key:0,title:u(a)("\u5F53\u524D\u65E0\u76F8\u5173\u9644\u4EF6\u8BB0\u5F55"),desc:u(a)("\u6D41\u7A0B\u9700\u53D1\u8D77\u5E76\u5728\u8868\u5355\u4E2D\u4E0A\u4F20\u9644\u4EF6\u624D\u4F1A\u6709\u9644\u4EF6\u8BB0\u5F55\u4EA7\u751F")},null,8,["title","desc"])):(f(),E(r,{key:1,class:"p-4",pagination:!1,dataSource:l.dataSource,columns:S},{bodyCell:g(({column:s,record:c})=>[s.dataIndex==="components"?(f(),I(K,{key:0},[A(N(u(a)("\u4E0A\u4F20")),1)],64)):U("",!0),s.dataIndex==="operation"?(f(),I("div",i,[P(o,{size:"small",type:"primary",class:"mr-2",onClick:y=>n(c.fileUrl)},{default:g(()=>[A(N(u(a)("\u9884\u89C8")),1)]),_:2},1032,["onClick"]),P(o,{size:"small",type:"primary",onClick:y=>h(c.fileUrl,c.fileName+c.fileType)},{default:g(()=>[A(N(u(a)("\u4E0B\u8F7D")),1)]),_:2},1032,["onClick"])])):U("",!0)]),_:1},8,["dataSource"])),P(m,{visible:l.showPreview,"onUpdate:visible":e[0]||(e[0]=s=>l.showPreview=s),title:u(a)("\u9884\u89C8\u6587\u4EF6"),width:"100%","wrap-class-name":"full-modal",footer:null,onOk:e[1]||(e[1]=s=>l.showPreview=!1)},{default:g(()=>[l.showPreview?(f(),I("iframe",{key:0,src:l.fileUrl,class:"iframe-box"},null,8,v)):U("",!0)]),_:1},8,["visible","title"])])}}});F=q(d,[["__scopeId","data-v-e4b556e7"]])}));export{Q as __tla,F as default};