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