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-ea3ce2c4.system.js","./p-96d13b6e.system.js","./p-a84fe562.system.js","./p-1708d7ff.system.js","./p-e8fb2c75.system.js","./p-423a092b.system.js","./p-be1abbe7.system.js"],(function(e){"use strict";var i,r,t,a,n,s,d,o,l,c,u,m,f;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){o=e.p},function(e){l=e.g;c=e.f;u=e.a;m=e.c;f=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 n=i==="tr"?v:p;var d=e.role;var b=d==="mentor"&&r.menteeType==="group";var g=[];var y=d==="mentor"?s.MenteePairList:s.MentorPairList;var w=l(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=d==="mentor"?"mentee":"mentor";var R=b?[]:u(d,C,r);g=(b?_:__spreadArray(__spreadArray([],M,true),m(R),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:n.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:n.view.viewAndMeet||"View & Meet",name:"open-pair-detail-view",view:"ghost"}}]}}}},params:{},table:o(r,undefined,f(r))})}function y(e){return{itemId:e.params.item._id}}function w(e,a){if(!a){return undefined}var s=e.organisationId,o=e.role;var l=o==="mentor"?a.profileFieldVisibilities.mentee:a.profileFieldVisibilities.mentor;var c=o==="mentor"?"mentee":"mentor";var f=["title","bio","skills"].filter((function(e){return l[e]})).map((function(e){return{fieldId:e}}));var p=u(o,c,a);var v=i(__spreadArray(__spreadArray([],d,true),p,true));var b=__spreadArray(__spreadArray([],f,true),m(p),true).filter((function(e){return!["name","imageUrl"].includes(e.fieldId)}));var g=[n.allMentees,n.everyone].includes(a.conversationPermissions.mentor);return t.decode({table:r.decode({base:s,name:"mentees",fields:v}),ui:{cardConfig:{header:{title:{fieldId:"name"},actions:g?[{ui:{label:"Send Message",name:"send-message"}}]:[]},body:{fields:b}}}})}}}}));