var __spreadArray=this&&this.__spreadArray||function(e,i){for(var r=0,t=i.length,a=e.length;r<t;r++,a++)e[a]=i[r];return e};System.register(["./p-3bb22ffb.system.js","./p-51036327.system.js","./p-1a9bd5bf.system.js","./p-dbc597c0.system.js","./p-ff50522c.system.js","./p-58d2deca.system.js","./p-d200c939.system.js"],(function(e){"use strict";var i,r,t,a,n,s,d,l,o,c,u,f,m;return{setters:[function(e){i=e.d;r=e.T},function(e){t=e.D},function(e){a=e.A},function(e){n=e.d;s=e.e},function(e){d=e.c},function(e){l=e.p},function(e){o=e.g;c=e.f;u=e.a;f=e.c;m=e.b}],execute:function(){e({a:y,b:w,c:b,g:g});var p={view:{accept:"Accept",fetchConfigurationError:"Getting configuration failed.",fetchListError:"Fetching list failed.",noPairsMessage:"You don't have any pairs.",noReceivedRequests:"There are no pending requests.",pairs:"Pairs",receivedRequests:"Received Requests",reject:"Reject",selectionCardActionTint:"secondary",selectionCardActionLabel:"Go to selection page",selectionCardMessage:"You can view all available users and send them requests.",selectionCardTint:"primary",selectionCardTitle:"Selection is on!",sentOnDateFormat:"DD MMM YYYY, HH:mm",statusLabels:{accepted:"Accepted",canceled:"Canceled",completed:"Completed",rejected:"Rejected",requested:"Requested"},viewAndMeet:"View & Meet"}};var v={view:{accept:"Kabul Et",fetchConfigurationError:"Ayarlar alınırken hata oluştu.",fetchListError:"Seçim listesi alınırken hata oluştu.",noPairsMessage:"Eşleştiğiniz kimse yok.",noReceivedRequests:"Onay bekleyen istek yok.",pairs:"Eşleşmeler",receivedRequests:"Alınan İstekler",reject:"Reddet",selectionCardActionTint:"secondary",selectionCardActionLabel:"Seçim sayfasına git",selectionCardMessage:"Müsait olan tüm kullanıcıları görüp onlara istek gönderebilirsiniz.",selectionCardTint:"primary",selectionCardTitle:"Seçim başladı!",sentOnDateFormat:"DD MMM YYYY, HH:mm",statusLabels:{accepted:"Onaylandı",canceled:"Reddedildi",completed:"Sonlandırıldı",rejected:"Reddedildi",requested:"Gönderildi"},viewAndMeet:"Detay & Toplantılar"}};function b(e){var i=e.role;var r=i==="mentor"?"subscribed":"subscriber";var t=i==="mentor"?"subscriber":"subscribed";return{memberToViewRefFieldId:t,userRefFieldId:r,viewIdToNavigateToSelectPair:"pair-selection-page",viewIdToViewRequestSender:"user-page"}}function g(e,i,r,t){var s=i==="tr"?v:p;var d=e.role;var b=d==="mentor"&&r.menteeType==="group";var g=[];var y=d==="mentor"?n.MenteePairList:n.MentorPairList;var w=o(t,y);if(w){var h=w.dvnAppViewConfig;g=c(d,r,h.ui.main.cardViewConfig.body.fields)}else{var A=d==="mentor"?r.profileFieldVisibilities.mentee:r.profileFieldVisibilities.mentor;var M=["title","bio","skills","imagePlaceholderValue"].filter((function(e){return A[e]})).map((function(e){return{fieldId:e}}));var _=["description","imagePlaceholderValue"].map((function(e){return{fieldId:e}}));var C=b?[]:u(d,r);g=(b?_:__spreadArray(__spreadArray([],M),f(C))).slice(0,3).map((function(e){return Object.assign(Object.assign({},e),{lines:1})})).filter((function(e){return!["name","imageUrl","imagePlaceholderValue"].includes(e.fieldId)}))}return a.decode({_id:"pair-overview-page",ui:{i18n:s.view,main:{cardViewConfig:{header:{cover:{size:100},image:{fieldId:"imageUrl",placeholderFieldId:"imagePlaceholderValue",shape:b?"rounded":undefined,size:72},title:{fieldId:b?"title":"name"}},body:{fields:g},footer:{actions:[{data:{type:"navigation",direction:"forward",placement:"view",viewId:"subscriptions",params:{conversionConfig:{"item._id":"memberToViewRefFieldValue","item.subscription._id":"pairId"}}},ui:{label:s.view.viewAndMeet||"View & Meet",name:"open-pair-detail-view",view:"ghost"}}]}}}},params:{},table:l(r,undefined,m(r))})}function y(e){return{itemId:e.params.item._id}}function w(e,a){if(!a){return undefined}var n=e.organisationId,l=e.role;var o=l==="mentor"?a.profileFieldVisibilities.mentee:a.profileFieldVisibilities.mentor;var c=["title","bio","skills"].filter((function(e){return o[e]})).map((function(e){return{fieldId:e}}));var m=u(l,a);var p=i(__spreadArray(__spreadArray([],d),m));var v=__spreadArray(__spreadArray([],c),f(m)).filter((function(e){return!["name","imageUrl"].includes(e.fieldId)}));var b=[s.allMentees,s.everyone].includes(a.conversationPermissions.mentor);return t.decode({table:r.decode({base:n,name:"mentees"}),ui:{fields:p,cardConfig:{header:{title:{fieldId:"name"},actions:b?[{ui:{label:"Send Message",name:"send-message"}}]:[]},body:{fields:v}}}})}}}}));