System.register(["./p-343b3b10.system.js","./p-031ec8fa.system.js","./p-b195a819.system.js","./p-5f7bc72e.system.js","./p-da593370.system.js","./p-1708d7ff.system.js","./p-867d31c0.system.js","./p-0ff3178e.system.js","./p-e847e88b.system.js","./p-a56cdd14.system.js","./p-6e7162e6.system.js","./p-6e679e9d.system.js","./p-abcb59d4.system.js","./p-ebdd1444.system.js","./p-6c3e6bdc.system.js","./p-356c131c.system.js","./p-d65f6afe.system.js","./p-0aeb0fcc.system.js","./p-dd468f04.system.js","./p-97c19fd0.system.js","./p-d309ff13.system.js","./p-cb044807.system.js","./p-ea3ce2c4.system.js","./p-90b7d919.system.js","./p-58d55c18.system.js","./p-83a23a40.system.js","./p-1e21bde6.system.js","./p-d3ef0b9c.system.js","./p-fe1f76a3.system.js","./p-66d9c61b.system.js","./p-e8fb2c75.system.js","./p-5a92fdf2.system.js","./p-93d5c6db.system.js","./p-26d154e9.system.js","./p-83b75450.system.js","./p-b20bab7e.system.js","./p-4e674be5.system.js","./p-48ea6857.system.js","./p-b0e93f3a.system.js","./p-b3cf23d4.system.js","./p-e1b18076.system.js","./p-d86a8e66.system.js","./p-dfb1d72b.system.js","./p-87c8155f.system.js","./p-bbc2ae3f.system.js","./p-be1abbe7.system.js","./p-2975a410.system.js","./p-a0c1f16a.system.js"],(function(t){"use strict";var n,s,e,i,o,f,r,c,u;return{setters:[function(t){n=t.r;s=t.h},function(t){e=t.i},function(){},function(){},function(){},function(t){i=t.c;o=t.e},function(t){f=t.g;r=t.a},function(t){c=t.a;u=t.b},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){}],execute:function(){var a=t("mentornity_membership_settings_wrapper",function(){function t(t){n(this,t);this.isViewConfigWrapperLoaded=false}t.prototype.onInvalidation=function(t){this.notifier.showCustomNotification(t.detail.notification)};t.prototype.componentWillLoad=function(){var t=this;var n=f(),s=n.context,e=s.organisationId,c=s.role,u=s.userId,a=n.headers;var p=i(r,a);p.getOrganisationConfig(e).then((function(n){t.organisationConfig=n}));var m=c==="mentor"?o.MentorInfoForm:o.MenteeInfoForm;p.getViewConfig(e,m).then((function(n){t.viewConfigWrapper=n})).finally((function(){return t.isViewConfigWrapperLoaded=true}));p.get("users",u).then((function(n){t.user=n}));p.getMetadataOfUser(e,c==="mentor"?"mentors":"mentees",u).then((function(n){t.userMetadata=n}));if(c==="mentor"){p.getMentorshipOfUser(e,u).then((function(n){t.userMentorship=n}))}};t.prototype.render=function(){var t=this,n=t.isViewConfigWrapperLoaded,e=t.language,i=t.organisationConfig,o=t.user,r=t.userMentorship,a=t.userMetadata,p=t.viewConfigWrapper;var m=f().context;if(!n||!i||!o||!a||m.role==="mentor"&&!r){return s("mentornity-root-wrapper",null,s("div",{class:"d-flex justify-content-center pt-3"},s("dvn-progress",{indefinite:true})))}var d={firstName:true,lastName:true};var y=["bio","skills","title"];var j=!this.organisationConfig.webAppConfiguration.membershipForm;var b=c(m,e,i,p,o,a,r);if(p){(p.dvnAppViewConfig.table.fields||[]).forEach((function(t){var n=!y.includes(t.id);if(j||n){d[t.id]=true}}));b.ui.fields=b.ui.fields.filter((function(t){return d[t.fieldId]}))}return s("mentornity-root-wrapper",null,s("dvn-card",null,s("dvn-app-view-form-view",{params:u(m,i,o,a,r),view:b})))};return t}());e(a)}}}));