var __extends=this&&this.__extends||function(){var e=function(t,n){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n))e[n]=t[n]};return e(t,n)};return function(t,n){if(typeof n!=="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}();System.register(["./p-cb044807.system.js","./p-b1e4c9f9.system.js","./p-90b7d919.system.js","./p-417ebfe3.system.js"],(function(e){"use strict";var t,n,r,o,i,u;return{setters:[function(e){t=e.D},function(e){n=e.T;r=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 n=Object.assign(Object.create(t.prototype),e);n.fields=r(n.fields);n.space=o.decode(n.space);return n};t.prototype.roleNameCapital=function(){return i(this.roleName)};return t}(n);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 n=e.consents||[];return t.filter((function(e){return!n.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 n=0;n<t.length;n++){var r=t[n];if(r.required&&!e[r.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 n=Object.assign(Object.create(t.prototype),e);n.config=c.decode(n.config);n.user=u.decode(n.user);return n};t.prototype.requireDataCompletion=function(){if(!this.config.enforceRequiredInfo){return false}var e=this.config.fields||[];for(var t=0;t<e.length;t++){var n=e[t];if(n.required&&!this[n.id]){return true}}return false};return t}(t);e("M",p)}}}));