import"./p-a86d8cf2.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-905285ef.js";import{a as s}from"./p-3ccedaa0.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[...f(t,r,o),...m(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[...f(e,n,t),...m(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 f(e,n,t){const s="mentor"===t?n.profileFieldVisibilities.mentor:n.profileFieldVisibilities.mentee;return r(e).filter((e=>s[e.id]))}function m(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{m as a,l as b,o as c,a as d,u as e,p as f,i as g,f as h}