import{_ as d}from"./index.vue_vue_type_script_setup_true_lang-D8O2mMsP.js?v=1773287522785";import{q as y}from"./php-D3q5Oj7O.js?v=1773287522785";import{i as g,m as h}from"./index-BTglIPU2.js?v=1773287522785";import{k,R as x,e as S,$ as v,Z as b,a0 as m,a9 as r,S as s,_ as G}from"./vue-core-DJjvd5ZC.js?v=1773287522785";import{a1 as N,b as w}from"./naive-ui--dJnpVcV.js?v=1773287522785";const E="/static/vite/images/git-ps-BGhlH-jp.png",B={class:"w-440px p-20px pt-28px"},C={class:"w-240px"},F=k({__name:"create-ssh-key",props:{refresh:{type:Function}},setup(c,{expose:i}){const{t}=x(),n=c,a=S({key_name:""}),_={key_name:{required:!0,message:t("Site.Git.pleaseInputSshKeyName"),trigger:"blur"}};return i({onConfirm:async()=>{var e;const{message:o}=await y({key_name:a.key_name});g(o)&&(h.success(t("Site.Git.generateNewKeySuccess")),(e=n.refresh)==null||e.call(n,o.result))}}),(o,e)=>{const p=w,l=N,u=d;return v(),b("div",B,[m(u,{model:s(a),rules:_},{default:r(()=>[m(l,{label:s(t)("Site.Git.keyName"),key:"key_name"},{default:r(()=>[G("div",C,[m(p,{value:s(a).key_name,"onUpdate:value":e[0]||(e[0]=f=>s(a).key_name=f),placeholder:s(t)("Site.Git.sshKeyNamePlaceholder")},null,8,["value","placeholder"])])]),_:1},8,["label"])]),_:1},8,["model"])])}}});export{F as _,E as g};
