var __spreadArray=this&&this.__spreadArray||function(e,i,t){if(t||arguments.length===2)for(var r=0,n=i.length,a;r<n;r++){if(a||!(r in i)){if(!a)a=Array.prototype.slice.call(i,0,r);a[r]=i[r]}}return e.concat(a||Array.prototype.slice.call(i))};System.register(["./p-97c19fd0.system.js","./p-9e2e7feb.system.js","./p-629394a0.system.js","./p-9817db3f.system.js","./p-8d8b20dc.system.js","./p-4ec8ba7a.system.js","./p-82bf1e2d.system.js","./p-cd60ed59.system.js"],(function(e){"use strict";var i,t,r,n,a,s,o,d,l,c,u,f,m,p;return{setters:[function(e){i=e.T},function(e){t=e.C},function(e){r=e.D},function(e){n=e.T},function(e){a=e.T},function(e){s=e.a;o=e.g},function(e){d=e.d;l=e.e;c=e.c;u=e.h;f=e.a},function(e){m=e.I;p=e.T}],execute:function(){e({a:g,b:v,g:y});function g(e,r,n,a,o){if(!n){return null}var g=e.role;var y=d(r,n,a,g);var v=l(r,n,a,e.role,true,4);var b=__spreadArray([],v,true);var h={};var _=g==="mentee"&&a==="mentor";var I=n.menteeType==="individual"||e.groupId;if(_&&I){h=Object.assign({customViewTag:"mentornity-schedule-meeting-button-on-card",language:r},o)}var w=[];var A=__spreadArray([{field:new i("search",s(r,"search"))}],c(__spreadArray(__spreadArray([],u(r,n,a).filter((function(e){return!["title","bio"].includes(e.id)})),true),f(e.role,a,n),true)),true);A.forEach((function(e){var i;var t=e.fieldId||((i=e.field)===null||i===void 0?void 0:i.id);if(t){w.push({fieldId:t,width:"200px"})}}));var j=[];if(a==="mentor"&&g!=="anonymous"){j.push({ui:{componentTag:"mentornity-follow-button"},data:{language:r,mentornityCookieContext:e,isOnUserList:true}})}if(g!=="anonymous"){j.push({ui:{label:s(r,"sendMessage"),name:"send-message",tint:"primary",scale:"small",view:"outline"}})}j.push.apply(j,[{ui:{label:s(r,"showMore"),name:"view-details",tint:"primary",scale:"small",view:"outline"}}]);return t.decode({_id:"".concat(a,"-card-list"),i18nEntryId:"mentornity-".concat(a,"-card-list"),ui:{quickSearch:{fields:A,fieldUIConfigs:w},main:{cardViewConfig:{header:{cover:{size:120},image:{fieldId:"user.imageUrl",placeholderFieldId:"user.initials",size:96,position:m.TopLeft},title:{fieldId:"user.name",position:p.RightOfImage},subtitleActions:j},body:{fields:b},footer:h}}},table:{fields:y,roleName:a,name:"".concat(a,"-card-list")},query:{fields:b}})}function y(e){if(!e){return undefined}return a.decode({_id:"user-card-list-page-available-time-picker-view",i18nEntryId:"user-card-list-page-available-time-picker-view",table:o(e),successNavigationAction:{type:"navigation",direction:"forward",name:"open-meeting-detail-after-creation",params:{conversionConfig:{"item._id":"meetingId"}}}})}function v(e,i,t,a){if(!t){return undefined}var o=d(i,t,a,e.role);var c=l(i,t,a,e.role,false);var u=e.organisationId;var f=[{ui:{label:s(i,"goToProfilePage"),name:"go-to-profile-page"}}];return r.decode({table:n.decode({fields:o,base:u,name:a==="mentee"?"mentees":"mentors"}),ui:{cardConfig:{header:{title:{fieldId:"name"},actions:f},body:{fields:c}}}})}}}}));