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-SC54XQDl.js";import{P as d}from"./app-BGgVpkqZ.js";import{i as _,c as h}from"./app-Ba7ZqSpq.js";import{_ as x}from"./app-DWUwCFNm.js";import{T as k}from"./app-CNHjdV6U.js";import{_ as b}from"./app-DFulsyXy.js";import{T as y}from"./app-B9vRijk4.js";import{D as B}from"./app-ZeVDYyDS.js";import"./app-yUrwy8EY.js";import"./app-CmrRgGIA.js";import"./app-Ch8j4za4.js";import"./app-CkINxBL9.js";import"./app-PPG0ZS4d.js";import"./app--Lj8zATS.js";import"./app-C2mBgI5Z.js";import"./app-DoVkxbmA.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};
