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-SC54XQDl.js";import{P as C}from"./app-BGgVpkqZ.js";import{i as b,c as w}from"./app-Ba7ZqSpq.js";import{_ as y}from"./app-DFulsyXy.js";import{_ as a}from"./app-CVQkwzlf.js";import{_ as B,a as f}from"./app-PrSv7rSt.js";import{_ as V}from"./app-DWUwCFNm.js";import{D as $}from"./app-ZeVDYyDS.js";import"./app-yUrwy8EY.js";import"./app-DnXuoh8P.js";import"./app-BZGObKCm.js";import"./app-BPIIxVwk.js";import"./app-PPG0ZS4d.js";import"./app-DgoEZtNT.js";import"./app-Ch8j4za4.js";import"./app-Dw0jKdCD.js";import"./app-CCkWSX4Q.js";import"./app-CNHjdV6U.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};
