import{d as s,b as a,c as r,w as c,aI as i,u as d,c0 as f}from"./outputWidgets.8a1294ac.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="012c0933-36db-48fa-a7fe-524ab024f56f",t._sentryDebugIdIdentifier="sentry-dbid-012c0933-36db-48fa-a7fe-524ab024f56f")}catch{}})();class p{async get(){return(await fetch("/_editor/api/login")).json()}async create(e){return(await fetch("/_editor/api/login",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({token:e})})).json()}async delete(){await fetch("/_editor/api/login",{method:"DELETE"})}async getProjectInfo(){return(await fetch("/_editor/api/project-info")).json()}}const l=new p,_=s({__name:"DocsButton",props:{path:{}},setup(t){return(e,n)=>{var o;return a(),r(d(f),{class:"docs-button",href:`https://docs.abstra.io/${(o=e.path)!=null?o:""}`,target:"_blank"},{default:c(()=>[i(" Docs ")]),_:1},8,["href"])}}});export{_,l};
//# sourceMappingURL=DocsButton.vue_vue_type_script_setup_true_lang.417f95a4.js.map
