System.register(["./index-legacy-DEYz4m3y.js?v=1773287522785","./index-legacy-DQdImDha.js?v=1773287522785","./copy-legacy-CoXPjkKf.js?v=1773287522785","./useLoading-legacy-IiShPpjk.js?v=1773287522785","./ssh-legacy-DyU8FGQu.js?v=1773287522785","./naive-ui-legacy-BW82sq8q.js?v=1773287522785","./vue-core-legacy-Cn1vuJ3s.js?v=1773287522785","./prismjs-legacy-BN0FEcG9.js?v=1773287522785"],(function(e,a){"use strict";var s,t,l,i,n,c,u,o,y,r,d,g,p,v,S,w,_,j,f,m,k;return{setters:[e=>{s=e._},e=>{t=e.g,l=e.m,i=e.i},e=>{n=e.c},e=>{c=e.u},e=>{u=e.o,o=e.b},e=>{y=e.B,r=e.k},e=>{d=e.k,g=e.R,p=e.r,v=e.$,S=e.Z,w=e.a0,_=e.S,j=e.X,f=e.a9,m=e.j,k=e.aa},null],execute:function(){const a={class:"p-20px"};e("default",d({__name:"view",setup(e){const{t:d}=g(),x=p(""),B=()=>{n(x.value)},$=()=>{window.open(`${t()}/ssh_security?action=download_key`)},h=async()=>{await u({ssh:"yes",type:"ed25519"},!1),await b(),l.success(d("Security.SSH.Basic.SSHKey.view_2"))},{loading:C,setLoading:H}=c(),b=async()=>{try{H(!0);const{message:e}=await o();i(e)&&(x.value=e.result)}finally{H(!1)}};return b(),(e,t)=>{const l=s,i=y,n=r;return v(),S("div",a,[w(l,{value:_(x),"onUpdate:value":t[0]||(t[0]=e=>j(x)?x.value=e:null),loading:_(C),rows:10},null,8,["value","loading"]),w(n,{class:"mt-16px",size:12},{default:f((()=>[w(i,{type:"primary",onClick:B},{default:f((()=>[m(k(e.$t("Public.Btn.Copy")),1)])),_:1}),w(i,{type:"primary",onClick:$},{default:f((()=>[m(k(e.$t("Public.Btn.Download")),1)])),_:1}),w(i,{onClick:h},{default:f((()=>[m(k(e.$t("Security.SSH.Basic.SSHKey.view_1")),1)])),_:1})])),_:1})])}}}))}}}));
