var __extends=this&&this.__extends||function(){var e=function(t,r){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r))e[r]=t[r]};return e(t,r)};return function(t,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();System.register(["./p-cb044807.system.js","./p-ea3ce2c4.system.js","./p-90b7d919.system.js","./p-58d55c18.system.js"],(function(e){"use strict";var t,r,n,o,i,u;return{setters:[function(e){t=e.D},function(e){r=e.T;n=e.d;o=e.S},function(e){i=e.c},function(e){u=e.U}],execute:function(){var c=function(e){__extends(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.decode=function(e){var r=Object.assign(Object.create(t.prototype),e);r.fields=n(r.fields);r.space=o.decode(r.space);return r};t.prototype.roleNameCapital=function(){return i(this.roleName)};return t}(r);e("b",c);var s=e("i",(function(e){return e.status==="active"}));var f=e("d",(function(e){var t=e.config.agreements||[];var r=e.consents||[];return t.filter((function(e){return!r.some((function(t){return t.agreement._id===e._id}))})).length>0}));var a=e("a",(function(e){if(!e.config.enforceRequiredInfo){return false}var t=e.config.fields||[];for(var r=0;r<t.length;r++){var n=t[r];if(n.required&&!e[n.id]){return true}}return false}));var p=function(e){__extends(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.decode=function(e){var r=Object.assign(Object.create(t.prototype),e);r.config=c.decode(r.config);r.user=r.user?u.decode(r.user):r.user;return r};t.prototype.requireDataCompletion=function(){if(!this.config.enforceRequiredInfo){return false}var e=this.config.fields||[];for(var t=0;t<e.length;t++){var r=e[t];if(r.required&&!this[r.id]){return true}}return false};return t}(t);e("M",p)}}}));