"use strict";var E=Object.create;var n=Object.defineProperty;var g=Object.getOwnPropertyDescriptor;var I=Object.getOwnPropertyNames;var R=Object.getPrototypeOf;var y=Object.prototype.hasOwnProperty;var p=(r,e)=>n(r,"name",{value:e,configurable:true});var U=(r,e)=>{for(var s in e)n(r,s,{get:e[s],enumerable:true})};var u=(r,e,s,o)=>{if(e&&typeof e==="object"||typeof e==="function"){for(let t of I(e))if(!y.call(r,t)&&t!==s)n(r,t,{get:()=>e[t],enumerable:!(o=g(e,t))||o.enumerable})}return r};var m=(r,e,s)=>(s=r!=null?E(R(r)):{},u(e||!r||!r.__esModule?n(s,"default",{value:r,enumerable:true}):s,r));var q=r=>u(n({},"__esModule",{value:true}),r);var b={};U(b,{default:()=>_});module.exports=q(b);var i=require("react/jsx-runtime");var a=require("mobx-react");var c=require("react");var f=m(require("../../components/settings/team/TeamDashboard"));var l=m(require("../../components/util/ErrorBoundary"));var h=require("../../config");class d extends c.Component{handleWebsiteLink(e){const{actions:s,stores:o}=this.props;const t=`${h.DEV_API_FRANZ_WEBSITE}/${e}?authToken=${o.user.authToken}&utm_source=app&utm_medium=account_dashboard`;s.app.openExternalUrl({url:t})}reloadData(){const{user:e}=this.props.stores;e.getUserInfoRequest.reload()}render(){const{user:e,settings:s}=this.props.stores;const o=e.getUserInfoRequest.isExecuting;const{server:t}=s.app;return(0,i.jsx)(l.default,{children:(0,i.jsx)(f.default,{isLoading:o,userInfoRequestFailed:e.getUserInfoRequest.wasExecuted&&e.getUserInfoRequest.isError,retryUserInfoRequest:()=>this.reloadData(),openTeamManagement:()=>this.handleWebsiteLink("/user/team"),server:t})})}}p(d,"TeamScreen");var _=(0,a.inject)("stores","actions")((0,a.observer)(d));
