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