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