import{o as p,c as l,w as o,b as s,a as e,d as u,e as m,u as i,f as r,h as f}from"./app-DA7OTM4Q.js";import{P as d}from"./app-YXi6Hc2l.js";import{i as _,c as h}from"./app-BT68AfZ-.js";import{_ as x}from"./app-CKSEN_Rg.js";import{T as k}from"./app-Zes_jb7S.js";import{_ as b}from"./app-DokSVapq.js";import{T as y}from"./app-DTMYX6_v.js";import{D as B}from"./app-DNL2FXPk.js";import"./app-BlCBGn5D.js";import"./app-BxVwOz69.js";import"./app-BqY8p2gl.js";import"./app-D29bbm9n.js";import"./app-Dxa5h-uG.js";import"./app-B_5dka6q.js";import"./app-CQwVTjAx.js";import"./app-BkWUIifj.js";function T(){const{utils:n,Tea:t}=_(this);this.isRequesting=!1,this.before=function(){this.isRequesting=!0},this.done=function(){this.isRequesting=!1},this.successUpload=function(a){let c="html:成功上传"+a.data.count+"个证书";n.success(c,function(){this.$NotifyPopup(a)})}}const g=e("header",null,"批量上传证书",-1),R=e("td",{class:"title"},"选择要上传的证书和私钥文件 *",-1),q=e("p",{class:"comment"},"点击后在弹出的文件选择框中支持多选；不用担心文件名和顺序问题，系统会自动匹配。",-1),E={__name:"uploadBatchPopup",setup(n){const t=h(new T);return(a,c)=>(p(),l(d,null,{default:o(()=>[g,s(b,{onSuccess:i(t).successUpload,action:"$",onBefore:i(t).before,onDone:i(t).done,timeout:"600"},{default:o(()=>[s(B,null,{default:o(()=>[e("tbody",null,[e("tr",null,[R,e("td",null,[s(y,{type:"file",name:"certFiles",accept:"application/x-pem-file, application/pkcs10, application/x-pkcs12, application/x-x509-user-cert, application/x-x509-ca-cert, application/pkix-cert, application/pkcs8, .key, .pem",multiple:"multiple"}),q])])])]),_:1}),u(s(x,null,{default:o(()=>[r("上传")]),_:1},512),[[m,!i(t).isRequesting]]),i(t).isRequesting?(p(),l(k,{key:0,disabled:"",type:"button"},{default:o(()=>[r("上传中...")]),_:1})):f("",!0)]),_:1},8,["onSuccess","onBefore","onDone"])]),_:1}))}};export{E as default};
