System.register(["./p-58f2f536.system.js","./p-e3b14038.system.js","./p-dbc597c0.system.js"],(function(e){"use strict";var i,n,t,s,o,r;return{setters:[function(e){i=e.B},function(e){n=e.P;t=e.R;s=e.C;o=e.a},function(e){r=e.e}],execute:function(){var c=e("p",(function(e,c,d){var u;return n.decode({actionPermissions:{subscriber:{completePair:false},subscribed:{completePair:!!(d===null||d===void 0?void 0:d.canMentorEndSubscription)}},fields:[{type:"reference",id:"subscriber",otherCollection:e.menteeType==="group"?"groups":"mentees"},{type:"reference",id:"subscribed",otherCollection:"mentors"}],selection:e.menteeType==="group"?undefined:{subscriber:{initiation:"approvingly",pairLimit:d===null||d===void 0?void 0:d.pairLimitForMentees,selectionLimit:d===null||d===void 0?void 0:d.selectionLimitForMentees,roleNameToSelect:"subscribed",rules:[new t([{firstField:i.decode({id:"city",type:"text"}),comparison:s.eq,secondField:i.decode({id:"city",type:"text"})}],o.comparison)],selectionUI:{showMessageButton:[r.allMentors,r.everyone].includes(e.conversationPermissions.mentee)},status:(d===null||d===void 0?void 0:d.isMentorSelectionOn)?"active":"passive"}},structure:c?{meetingConfigs:((u=c.meetingGoals)===null||u===void 0?void 0:u.map((function(e){return{id:e.identifier,name:e.meetingTitle,meetingCount:1,specifications:{subscriber:e.specifications.mentee,subscribed:e.specifications.mentor}}})))||[]}:undefined,calendarConfig:{_id:c?"mentornity-structured-calendar-config":"mentornity-calendar-config"}})}))}}}));