System.register(["./p-343b3b10.system.js","./p-031ec8fa.system.js","./p-ece63a69.system.js","./p-5f7bc72e.system.js","./p-da593370.system.js","./p-5ba1db18.system.js","./p-cc5f8574.system.js","./p-e847e88b.system.js","./p-a56cdd14.system.js","./p-fa86b497.system.js","./p-86f17250.system.js","./p-9817db3f.system.js","./p-b3db1eb6.system.js","./p-6e679e9d.system.js","./p-abcb59d4.system.js","./p-ebdd1444.system.js","./p-6c3e6bdc.system.js","./p-356c131c.system.js","./p-0aeb0fcc.system.js","./p-dd468f04.system.js","./p-97c19fd0.system.js","./p-90b7d919.system.js","./p-7e6f8eaa.system.js","./p-da38856a.system.js","./p-dd9cd9b3.system.js","./p-d33249d4.system.js","./p-fe1f76a3.system.js","./p-66d9c61b.system.js","./p-4ec8ba7a.system.js","./p-a6ad0410.system.js","./p-d254e73a.system.js","./p-27f59a1b.system.js","./p-83b75450.system.js","./p-577b99c3.system.js","./p-451fa62c.system.js","./p-520803d3.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-c0eda5bd.system.js","./p-d6a7761b.system.js","./p-82bf1e2d.system.js","./p-2975a410.system.js","./p-a0c1f16a.system.js"],(function(t){"use strict";var n,s,e,i,o,f,r,c,a;return{setters:[function(t){n=t.r;s=t.h},function(t){e=t.i},function(){},function(){},function(){},function(t){i=t.g;o=t.c;f=t.m;r=t.h},function(t){c=t.a;a=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 u=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=i(),s=n.context,e=s.organisationId,c=s.role,a=s.userId,u=n.headers;var p=o(f,u);p.getOrganisationConfig(e).then((function(n){t.organisationConfig=n}));var m=c==="mentor"?r.MentorInfoForm:r.MenteeInfoForm;p.getViewConfig(e,m).then((function(n){t.viewConfigWrapper=n})).finally((function(){return t.isViewConfigWrapperLoaded=true}));p.get("users",a).then((function(n){t.user=n}));p.getMetadataOfUser(e,c==="mentor"?"mentors":"mentees",a).then((function(n){t.userMetadata=n}));if(c==="mentor"){p.getMentorshipOfUser(e,a).then((function(n){t.userMentorship=n}))}};t.prototype.render=function(){var t=this,n=t.isViewConfigWrapperLoaded,e=t.language,o=t.organisationConfig,f=t.user,r=t.userMentorship,u=t.userMetadata,p=t.viewConfigWrapper;var m=i().context;if(!n||!o||!f||!u||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,o,p,f,u,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:a(m,o,f,u,r),view:b})))};return t}());e(u)}}}));