import{o as l,c as m,w as n,b as r,a as e,u as o,f as _,g as i,D as h,t as v,F as x,h as p,d as P,e as g}from"./app-DA7OTM4Q.js";import{P as C}from"./app-YXi6Hc2l.js";import{i as b,c as w}from"./app-BT68AfZ-.js";import{_ as y}from"./app-DokSVapq.js";import{_ as a}from"./app-DuUYZNNT.js";import{_ as B,a as f}from"./app-BHFzVhjx.js";import{_ as V}from"./app-CKSEN_Rg.js";import{D as $}from"./app-DNL2FXPk.js";import"./app-BlCBGn5D.js";import"./app-DSiZNBrr.js";import"./app-C5ROEzFd.js";import"./app-Bnbo6OlJ.js";import"./app-Dxa5h-uG.js";import"./app-AbPAjGV5.js";import"./app-BqY8p2gl.js";import"./app-C-GI59rl.js";import"./app-BotiHebp.js";import"./app-Zes_jb7S.js";function k(){b(this),this.selectedProvider=null,this.changeProvider=function(){if(this.providerCode.length==0){this.selectedProvider=null;return}let d=this;this.selectedProvider=this.providers.$find(function(t,c){return c.code==d.providerCode})},this.changeProvider()}const D=e("header",null,"添加账号",-1),L=e("td",null,"账号名称 *",-1),T=e("td",{class:"title"},"证书服务商 *",-1),H=["innerHTML"],M=e("td",null,"EAB Kid *",-1),A=["innerHTML"],E=e("td",null,"EAB HMAC Key *",-1),ee={__name:"createPopup",setup(d){const t=w(new k);return(c,u)=>(l(),m(C,null,{default:n(()=>[D,r(y,{action:"$",onSuccess:o(t).success},{default:n(()=>[r($,null,{default:n(()=>[e("tbody",null,[e("tr",null,[L,e("td",null,[r(a,{name:"name",maxlength:"50",autofocus:"",tabindex:1,class:"w-full"})])]),e("tr",null,[T,e("td",null,[r(B,{name:"providerCode",modelValue:o(t).providerCode,"onUpdate:modelValue":u[0]||(u[0]=s=>o(t).providerCode=s),onChange:o(t).changeProvider,tabindex:2},{default:n(()=>[r(f,{value:""},{default:n(()=>[_("[选择服务商]")]),_:1}),(l(!0),i(x,null,h(o(t).providers,s=>(l(),m(f,{value:s.code},{default:n(()=>[_(v(s.name),1)]),_:2},1032,["value"]))),256))]),_:1},8,["modelValue","onChange"]),o(t).selectedProvider!=null?(l(),i("p",{key:0,class:"comment",innerHTML:o(t).selectedProvider.description},null,8,H)):p("",!0)])])]),P(e("tbody",null,[e("tr",null,[M,e("td",null,[r(a,{name:"eabKid",maxlength:"100",tabindex:3,class:"w-full"}),o(t).selectedProvider!=null?(l(),i("p",{key:0,class:"comment",innerHTML:o(t).selectedProvider.eabDescription},null,8,A)):p("",!0)])]),e("tr",null,[E,e("td",null,[r(a,{name:"eabKey",maxlength:"300",tabindex:4,class:"w-full"})])])],512),[[g,o(t).selectedProvider!=null&&o(t).selectedProvider.requireEAB]])]),_:1}),r(V)]),_:1},8,["onSuccess"])]),_:1}))}};export{ee as default};
