var __spreadArray=this&&this.__spreadArray||function(e,i,r){if(r||arguments.length===2)for(var t=0,a=i.length,n;t<a;t++){if(n||!(t in i)){if(!n)n=Array.prototype.slice.call(i,0,t);n[t]=i[t]}}return e.concat(n||Array.prototype.slice.call(i))};System.register(["./p-b1e4c9f9.system.js","./p-62ace946.system.js","./p-b881bbfe.system.js","./p-512597e1.system.js","./p-17ac6394.system.js","./p-5cca5856.system.js","./p-cf414e13.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:g,g:b});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 g(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 b(e,i,r,t){var s=i==="tr"?v:p;var d=e.role;var g=d==="mentor"&&r.menteeType==="group";var b=[];var y=d==="mentor"?n.MenteePairList:n.MentorPairList;var w=o(t,y);if(w){var h=w.dvnAppViewConfig;b=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=g?[]:u(d,r);b=(g?_:__spreadArray(__spreadArray([],M,true),f(C),true)).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:g?"rounded":undefined,size:72},title:{fieldId:g?"title":"name"}},body:{fields:b},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,true),m,true));var v=__spreadArray(__spreadArray([],c,true),f(m),true).filter((function(e){return!["name","imageUrl"].includes(e.fieldId)}));var g=[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:g?[{ui:{label:"Send Message",name:"send-message"}}]:[]},body:{fields:v}}}})}}}}));