var __spreadArray=this&&this.__spreadArray||function(e,i,t){if(t||arguments.length===2)for(var r=0,a=i.length,n;r<a;r++){if(n||!(r in i)){if(!n)n=Array.prototype.slice.call(i,0,r);n[r]=i[r]}}return e.concat(n||Array.prototype.slice.call(i))};System.register(["./p-97c19fd0.system.js","./p-6865bfcd.system.js","./p-96d13b6e.system.js","./p-ea3ce2c4.system.js","./p-54a38b22.system.js","./p-e8fb2c75.system.js","./p-be1abbe7.system.js","./p-cd60ed59.system.js"],(function(e){"use strict";var i,t,r,a,n,o,s,d,l,c,f,u,m,p;return{setters:[function(e){i=e.T},function(e){t=e.C},function(e){r=e.D},function(e){a=e.T},function(e){n=e.T},function(e){o=e.a;s=e.g},function(e){d=e.d;l=e.e;c=e.c;f=e.h;u=e.a},function(e){m=e.I;p=e.T}],execute:function(){e({a:g,b:y,g:v});function g(e,r,a,n,s){if(!a){return null}var g=e.role;var v=d(r,a,n,g);var y=l(r,a,n,e.role,true,4);var b=__spreadArray([],y,true);var h={};var _=g==="mentee"&&n==="mentor";var I=a.menteeType==="individual"||e.groupId;if(_&&I){h=Object.assign({customViewTag:"mentornity-schedule-meeting-button-on-card",language:r},s)}var A=[];var j=__spreadArray([{field:new i("search",o(r,"search"))}],c(__spreadArray(__spreadArray([],f(r,a,n).filter((function(e){return!["title","bio"].includes(e.id)})),true),u(e.role,n,a),true)),true);j.forEach((function(e){var i;var t=e.fieldId||((i=e.field)===null||i===void 0?void 0:i.id);if(t){A.push({fieldId:t,width:"200px"})}}));return t.decode({_id:"".concat(n,"-card-list"),i18nEntryId:"mentornity-".concat(n,"-card-list"),ui:{quickSearch:{fields:j,fieldUIConfigs:A},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:[{ui:{label:o(r,"viewDetails"),name:"view-details",tint:"neutral"}},{ui:{label:o(r,"goToProfilePage"),name:"go-to-profile-page",tint:"neutral"}}]},body:{fields:b},footer:h}}},table:{fields:v,roleName:n,name:"".concat(n,"-card-list")},query:{fields:b}})}function v(e){if(!e){return undefined}return n.decode({_id:"user-card-list-page-available-time-picker-view",i18nEntryId:"user-card-list-page-available-time-picker-view",table:s(e),successNavigationAction:{type:"navigation",direction:"forward",name:"open-meeting-detail-after-creation",params:{conversionConfig:{"item._id":"meetingId"}}}})}function y(e,i,t,n){if(!t){return undefined}var s=d(i,t,n,e.role);var c=l(i,t,n,e.role,false);var f=e.organisationId;return r.decode({table:a.decode({fields:s,base:f,name:n==="mentee"?"mentees":"mentors"}),ui:{cardConfig:{header:{title:{fieldId:"name"},actions:[{ui:{label:o(i,"goToProfilePage"),name:"go-to-profile-page"}}]},body:{fields:c}}}})}}}}));