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-BYcXwl4U.js";import{P as C}from"./app-Doj30F-n.js";import{i as b,c as w}from"./app-a6cKceqE.js";import{_ as y}from"./app-CQ-vNlMj.js";import{_ as a}from"./app-Ufpj4Ll4.js";import{_ as B,a as f}from"./app-DxbU-QrX.js";import{_ as V}from"./app-CignoBaV.js";import{D as $}from"./app-7GBSHA5C.js";import"./app-Ceh-tphd.js";import"./app-ysQ8KbGS.js";import"./app-Cp3gmk2J.js";import"./app--MWyBMkA.js";import"./app-BG60hdvp.js";import"./app-CNARLpXE.js";import"./app-SxAW7vhf.js";import"./app-D5k1HLu9.js";import"./app-BDgR0DSb.js";import"./app-CrjU8lgK.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};
