import{_ as y}from"./index.vue_vue_type_script_setup_true_lang-D8O2mMsP.js?v=1773287522785";import{o as v}from"./ssh-g_xvV-TS.js?v=1773287522785";import{k as b,R as h,e as H,$ as B,Z as w,a0 as s,a9 as l,_ as c,S as a,N as K}from"./vue-core-DJjvd5ZC.js?v=1773287522785";import{a1 as x,a6 as C}from"./naive-ui--dJnpVcV.js?v=1773287522785";import"./index-BTglIPU2.js?v=1773287522785";import"./prismjs-BZPoR7_J.js?v=1773287522785";const k={class:"p-20px"},$={class:"w-200px"},A={class:"w-200px"},I=b({__name:"open",emits:["refresh"],setup(N,{expose:r,emit:u}){const S=u,{t}=h(),e=H({ssh:"yes",type:"ed25519"}),m=[{label:t("Security.SSH.Basic.SSHKey.open_3"),value:"yes"},{label:t("Security.SSH.Basic.SSHKey.open_4"),value:"no"}],d=[{label:t("Security.SSH.Basic.SSHKey.open_5"),value:"ed25519"},{label:"ECDSA",value:"ecdsa"},{label:"RSA",value:"rsa"},{label:"DSA",value:"dsa"}];return r({onConfirm:async()=>{await v(K(e)),S("refresh")}}),(i,o)=>{const p=C,_=x,f=y;return B(),w("div",k,[s(f,{"label-width":"150"},{default:l(()=>[s(_,{label:i.$t("Security.SSH.Basic.SSHKey.open_1")},{default:l(()=>[c("div",$,[s(p,{value:a(e).ssh,"onUpdate:value":o[0]||(o[0]=n=>a(e).ssh=n),options:m},null,8,["value"])])]),_:1},8,["label"]),s(_,{label:i.$t("Security.SSH.Basic.SSHKey.open_2"),"show-feedback":!1},{default:l(()=>[c("div",A,[s(p,{value:a(e).type,"onUpdate:value":o[1]||(o[1]=n=>a(e).type=n),options:d},null,8,["value"])])]),_:1},8,["label"])]),_:1})])}}});export{I as default};
