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