import{r as s,h as t,H as i}from"./p-a0569a5f.js";import{d as r}from"./p-5435f26b.js";import{D as o}from"./p-69daa26b.js";import{K as e}from"./p-31309282.js";import{i as p}from"./p-4ebc5d09.js";import{C as a}from"./p-1bea6126.js";import{A as n}from"./p-e476a838.js";import{p as m}from"./p-45b06e54.js";import"./p-6e24c7a4.js";import"./p-944da115.js";import"./p-eebad85b.js";import"./p-d343a062.js";import"./p-814af281.js";class h{constructor(s,t={}){this.createProduct=s=>this.api.post("products",s),this.getProducts=()=>this.api.get("products"),this.getProduct=s=>this.api.get(`products/${s}`),this.updateProduct=(s,t)=>this.api.put(`products/${s}`,t),this.deleteProduct=s=>this.api.delete(`products/${s}`),this.createWorkspace=s=>this.api.post("workspaces",{name:s}),this.updateWorkspace=(s,t)=>this.api.put(`workspaces/${s}`,t),this.deleteWorkspace=s=>this.api.delete(`workspaces/${s}`),this.getWorkspaceOwnerships=()=>this.api.get("workspace-ownerships"),this.api=new n(s,t)}}const l=s=>t(i,null,t("dvn-theme-provider",{theme:r,colorBackground:!0,fitHeight:!0},t("dvn-global-table",null),t("dvn-global-grid",null),t("dvn-global-text",null),t("notifier-wrapper",null,s)));let d=class{constructor(t){s(this,t)}render(){const s={Authorization:(new a).getAll().jwt?`Bearer ${(new a).getAll().jwt}`:void 0},i=new e(`${m.kimlik}/${m.base}`,s),r=new o(`${m.data}/${m.base}`,s),n=new h(m.devingen,s);return p()?l(t("devingen-router",{apiKimlik:i,apiDevingen:n,apiData:r})):l(t("devingen-login-page",{apiKimlik:i}))}};export{d as devingen_root}