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