"use strict";var P=Object.create;var a=Object.defineProperty;var d=Object.getOwnPropertyDescriptor;var b=Object.getOwnPropertyNames;var C=Object.getPrototypeOf;var g=Object.prototype.hasOwnProperty;var n=(r,e)=>a(r,"name",{value:e,configurable:true});var h=(r,e)=>{for(var o in e)a(r,o,{get:e[o],enumerable:true})};var f=(r,e,o,p)=>{if(e&&typeof e==="object"||typeof e==="function"){for(let s of b(e))if(!g.call(r,s)&&s!==o)a(r,s,{get:()=>e[s],enumerable:!(p=d(e,s))||p.enumerable})}return r};var W=(r,e,o)=>(o=r!=null?P(C(r)):{},f(e||!r||!r.__esModule?a(o,"default",{value:r,enumerable:true}):o,r));var x=r=>f(a({},"__esModule",{value:true}),r);var q=(r,e,o,p)=>{var s=p>1?void 0:p?d(e,o):e;for(var i=r.length-1,k;i>=0;i--)if(k=r[i])s=(p?k(e,o,s):k(s))||s;if(p&&s)a(e,o,s);return s};var E={};h(E,{default:()=>B});module.exports=x(E);var u=require("react/jsx-runtime");var m=require("mobx-react");var R=require("react");var l=W(require("../../../components/util/ErrorBoundary"));var t=require("../api");var y=W(require("../components/WorkspacesDashboard"));var w=require("../index");let c=class extends R.Component{render(){const{actions:e}=this.props;return(0,u.jsx)(l.default,{children:(0,u.jsx)(y.default,{workspaces:w.workspaceStore.workspaces,getUserWorkspacesRequest:t.getUserWorkspacesRequest,createWorkspaceRequest:t.createWorkspaceRequest,deleteWorkspaceRequest:t.deleteWorkspaceRequest,updateWorkspaceRequest:t.updateWorkspaceRequest,onCreateWorkspaceSubmit:o=>e.workspaces.create(o),onWorkspaceClick:o=>e.workspaces.edit({workspace:o})})})}};n(c,"WorkspacesScreen");c=q([(0,m.inject)("stores","actions"),m.observer],c);var B=c;
