import{_ as e}from"./index100.js?v=1753954525509";import{cH as s,m as t,c as a}from"./page_layout.js?v=1753954525509";import{c as i,i as o}from"./public.js?v=1753954525509";import{o as r,g as p}from"./index58.js?v=1753954525509";import{ay as _,bY as u}from"./naive.js?v=1753954525509";import{k as n,P as l,r as c,U as m,V as d,Q as y,X as v,ah as j,a2 as g,j as x,a3 as f}from"./vue.js?v=1753954525509";import"./common.js?v=1753954525509";import"./__commonjsHelpers__.js?v=1753954525509";import"./index102.js?v=1753954525509";import"./index.js?v=1753954525509";import"./index.vue_vue_type_script_setup_true_lang.js?v=1753954525509";import"./index.vue_vue_type_script_setup_true_lang2.js?v=1753954525509";import"./index96.js?v=1753954525509";import"./config3.js?v=1753954525509";import"./index.vue_vue_type_script_setup_true_lang4.js?v=1753954525509";import"./index.vue_vue_type_script_setup_true_lang7.js?v=1753954525509";import"./index.vue_vue_type_script_setup_true_lang5.js?v=1753954525509";import"./index.vue_vue_type_script_setup_true_lang6.js?v=1753954525509";const w={class:"p-20px"},S=n({__name:"view",setup(n){const{t:S}=l(),H=c(""),k=()=>{o(H.value)},b=()=>{window.open("".concat(s(),"/ssh_security?action=download_key"))},B=async()=>{await r({ssh:"yes",type:"ed25519"},!1),await P(),t.success(S("Security.SSH.Basic.SSHKey.view_2"))},{loading:C,setLoading:h}=i(),P=async()=>{try{h(!0);const{message:e}=await p();a(e)&&(H.value=e.result)}finally{h(!1)}};return P(),(s,t)=>{const a=e,i=_,o=u;return m(),d("div",w,[y(a,{value:v(H),"onUpdate:value":t[0]||(t[0]=e=>j(H)?H.value=e:null),loading:v(C),rows:10},null,8,["value","loading"]),y(o,{class:"mt-16px",size:12},{default:g((()=>[y(i,{type:"primary",onClick:k},{default:g((()=>[x(f(s.$t("Public.Btn.Copy")),1)])),_:1}),y(i,{type:"primary",onClick:b},{default:g((()=>[x(f(s.$t("Public.Btn.Download")),1)])),_:1}),y(i,{onClick:B},{default:g((()=>[x(f(s.$t("Security.SSH.Basic.SSHKey.view_1")),1)])),_:1})])),_:1})])}}});export{S as default};
