var __spreadArray=this&&this.__spreadArray||function(e,n){for(var t=0,r=n.length,i=e.length;t<r;t++,i++)e[i]=n[t];return e};System.register(["./p-a9ea84b4.system.js","./p-e2e7329f.system.js","./p-637a7d5a.system.js","./p-ff50522c.system.js","./p-b70120a8.system.js"],(function(e){"use strict";var n,t,r,i,s;return{setters:[function(){},function(e){n=e.R},function(e){t=e.T},function(e){r=e.a;i=e.l},function(e){s=e.a}],execute:function(){e({a:d,b:p,c:a,d:u,e:c,f:l,g:o,h:m});function a(e){return e.map((function(e){return{fieldId:e.id}}))}function o(e,n){return e.find((function(e){return e.viewName===n}))}function u(e,r,i,a){return __spreadArray(__spreadArray(__spreadArray([],m(e,r,i)),d(a,r)),[new n("user","User","firstName","imageUrl","users",[new s("imageUrl",""),new t("firstName","First Name")])])}function f(e,n,t,r){return __spreadArray(__spreadArray([],m(e,n,t)),d(r,n))}function c(e,n,t,r,i,s){var o;if(i){o=a(f(e,n,t,r)).map((function(e){return Object.assign(Object.assign({},e),{lines:1,maxItems:3})}))}else{o=a(f(e,n,t,r))}if(s){o=o.slice(0,s)}return o}function m(e,n,t){var r=t==="mentor"?n.profileFieldVisibilities.mentor:n.profileFieldVisibilities.mentee;return i(e).filter((function(e){return r[e.id]}))}function d(e,n){var t=n.metadataVisibility[e]!=="none";return(t?(e==="mentor"?n.metadatas.mentee:n.metadatas.mentor)||[]:[]).map((function(e){return r(e)}))}function l(e,n,t){var r=e==="mentor"?n.metadatas.mentee:n.metadatas.mentor;var i=r.map((function(e){return e.id}));return t.filter((function(e){var n=e.fieldId;return i.includes(n)}))}function p(e){var n=e.subscriptionConfig;return{isMentorSelectionOn:n.mentorVisibilityStatus==="showAvailableMentors",canMentorEndSubscription:n.mentorsCanEndSubscription,pairLimitForMentees:e.subscriptionConfig.menteeSubscriptionLimit,selectionLimitForMentees:e.subscriptionConfig.menteeSelectionLimit}}}}}));