"use strict";var a=Object.defineProperty;var m=Object.getOwnPropertyDescriptor;var g=Object.getOwnPropertyNames;var b=Object.prototype.hasOwnProperty;var h=(n,i)=>a(n,"name",{value:i,configurable:true});var f=(n,i)=>{for(var r in i)a(n,r,{get:i[r],enumerable:true})};var p=(n,i,r,o)=>{if(i&&typeof i==="object"||typeof i==="function"){for(let l of g(i))if(!b.call(n,l)&&l!==r)a(n,l,{get:()=>i[l],enumerable:!(o=m(i,l))||o.enumerable})}return n};var w=n=>p(a({},"__esModule",{value:true}),n);var e=(n,i,r,o)=>{var l=o>1?void 0:o?m(i,r):i;for(var u=n.length-1,c;u>=0;u--)if(c=n[u])l=(o?c(i,r,l):c(l))||l;if(o&&l)a(i,r,l);return l};var O={};f(O,{default:()=>t});module.exports=w(O);var s=require("mobx");class t{id=null;email=null;firstname=null;lastname=null;organization=null;accountType=null;subscription={};isSubscriptionOwner=false;beta=false;locale=null;team={};constructor(i){(0,s.makeObservable)(this);if(!i){throw new Error("User config not valid")}if(!i.id){throw new Error("User requires Id")}this.id=i.id;this.email=i.email||this.email;this.firstname=i.firstname||this.firstname;this.lastname=i.lastname||this.lastname;this.organization=i.organization||this.organization;this.accountType=i.accountType||this.accountType;this.beta=i.beta||this.beta;this.locale=i.locale||this.locale;this.isSubscriptionOwner=i.isSubscriptionOwner||this.isSubscriptionOwner;this.team=i.team||this.team}}h(t,"User");e([s.observable],t.prototype,"email",2);e([s.observable],t.prototype,"firstname",2);e([s.observable],t.prototype,"lastname",2);e([s.observable],t.prototype,"organization",2);e([s.observable],t.prototype,"accountType",2);e([s.observable],t.prototype,"subscription",2);e([s.observable],t.prototype,"isSubscriptionOwner",2);e([s.observable],t.prototype,"beta",2);e([s.observable],t.prototype,"locale",2);e([s.observable],t.prototype,"team",2);
