const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["MkTokenGenerateWindow-Pr3eS6cf.js","app-QjDgb7aF.js","vue-Cm77DuTi.js","charts-3gEHPHRq.js","media-DuCIZ-3n.js","app-CV_aoXZ3.css"])))=>i.map(i=>d[i]);
import{aA as _,b as o,M as f,a as u,d as k,q as g,l as h}from"./app-QjDgb7aF.js";import{F as i}from"./link-DQNFdX6e.js";import{b as A,j as v,p as w,k as s,i as t,J as a,D as r,u as c,a as y,d as B}from"./vue-Cm77DuTi.js";import"./charts-3gEHPHRq.js";import"./media-DuCIZ-3n.js";const b={class:"_formRoot"},I=A({__name:"api",setup(x){const l=y(window.innerWidth>=1100);function p(){u(B(()=>h(()=>import("./MkTokenGenerateWindow-Pr3eS6cf.js"),__vite__mapDeps([0,1,2,3,4,5]))),{},{done:async n=>{const{name:e,permissions:m}=n,{token:d}=await k("miauth/gen-token",{session:null,name:e,permission:m});g({type:"success",title:o.ts.token,text:d})}},"closed")}return _({title:"API",icon:"ph-key ph-bold ph-lg"}),(n,e)=>(v(),w("div",b,[s(f,{primary:"",class:"_formBlock",onClick:p},{default:t(()=>[a(r(c(o).ts.generateAccessToken),1)]),_:1}),s(i,{to:"/settings/apps",class:"_formBlock"},{default:t(()=>[a(r(c(o).ts.manageAccessTokens),1)]),_:1}),s(i,{to:"/api-console",behavior:l.value?"window":null,class:"_formBlock"},{default:t(()=>[...e[0]||(e[0]=[a("API console",-1)])]),_:1},8,["behavior"])]))}});export{I as default};
//# sourceMappingURL=api-DWK3lzYG.js.map
