"use strict";var y=Object.create;var s=Object.defineProperty;var R=Object.getOwnPropertyDescriptor;var l=Object.getOwnPropertyNames;var E=Object.getPrototypeOf;var q=Object.prototype.hasOwnProperty;var u=(e,t)=>s(e,"name",{value:t,configurable:true});var S=(e,t)=>{for(var o in t)s(e,o,{get:t[o],enumerable:true})};var m=(e,t,o,p)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let r of l(t))if(!q.call(e,r)&&r!==o)s(e,r,{get:()=>t[r],enumerable:!(p=R(t,r))||p.enumerable})}return e};var c=(e,t,o)=>(o=e!=null?y(E(e)):{},m(t||!e||!e.__esModule?s(o,"default",{value:e,enumerable:true}):o,e));var b=e=>m(s({},"__esModule",{value:true}),e);var x={};S(x,{default:()=>h});module.exports=b(x);var n=require("react/jsx-runtime");var i=require("mobx-react");var v=require("react");var a=c(require("../../components/auth/Invite"));var f=c(require("../../components/util/ErrorBoundary"));class d extends v.Component{componentWillUnmount(){this.props.stores.user.inviteRequest.reset()}render(){const{actions:t}=this.props;const{user:o}=this.props.stores;return(0,n.jsx)(f.default,{children:(0,n.jsx)(a.default,{onSubmit:t.user.invite,isLoadingInvite:o.inviteRequest.isExecuting,isInviteSuccessful:o.inviteRequest.wasExecuted&&!o.inviteRequest.isError,embed:true})})}}u(d,"InviteScreen");var h=(0,i.inject)("stores","actions")((0,i.observer)(d));
