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-BYcXwl4U.js";import{P as d}from"./app-Doj30F-n.js";import{i as _,c as h}from"./app-a6cKceqE.js";import{_ as x}from"./app-CignoBaV.js";import{T as k}from"./app-CrjU8lgK.js";import{_ as b}from"./app-CQ-vNlMj.js";import{T as y}from"./app-5TZYCptM.js";import{D as B}from"./app-7GBSHA5C.js";import"./app-Ceh-tphd.js";import"./app-CrkKi1Ag.js";import"./app-SxAW7vhf.js";import"./app-yt37eDzA.js";import"./app-BG60hdvp.js";import"./app-BQ5ggxk2.js";import"./app-D3zbrzdO.js";import"./app-D2Wz0BUQ.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};
