import"./p-5209de98.js";import{R as e}from"./p-0563ceba.js";import{T as n}from"./p-968ee2ec.js";import{b as t,l as r}from"./p-2c9430cc.js";import{a as s}from"./p-19efc983.js";function o(e){return e.map((e=>({fieldId:e.id})))}function i(e,n){return e.find((e=>e.viewName===n))}function a(t,r,o,i){return[...m(t,r,o),...f(i,o,r),new e("user","User","firstName","imageUrl","users",[new s("imageUrl",""),new n("firstName","First Name")])]}function c(e,n,t,r){return[...m(e,n,t),...f(r,t,n)]}function u(e,n,t,r,s,i){let a;return a=s?o(c(e,n,t,r)).map((e=>Object.assign(Object.assign({},e),{lines:1,maxItems:3}))):o(c(e,n,t,r)),i&&(a=a.slice(0,i)),a}function m(e,n,t){const s="mentor"===t?n.profileFieldVisibilities.mentor:n.profileFieldVisibilities.mentee;return r(e).filter((e=>s[e.id]))}function f(e,n,r){return("none"!==r.metadataVisibility[e]&&("mentor"===n?r.metadatas.mentor:r.metadatas.mentee)||[]).map((e=>t(e)))}function p(e,n,t){const r=("mentor"===e?n.metadatas.mentee:n.metadatas.mentor).map((e=>e.id));return t.filter((({fieldId:e})=>r.includes(e)))}function l(e){const{subscriptionConfig:n}=e;return{isMentorSelectionOn:"showAvailableMentors"===n.mentorVisibilityStatus,canMentorEndSubscription:n.mentorsCanEndSubscription,pairLimitForMentees:e.subscriptionConfig.menteeSubscriptionLimit,selectionLimitForMentees:e.subscriptionConfig.menteeSelectionLimit}}export{f as a,l as b,o as c,a as d,u as e,p as f,i as g,m as h}