var __awaiter=this&&this.__awaiter||function(t,n,e,s){function i(t){return t instanceof e?t:new e((function(n){n(t)}))}return new(e||(e=Promise))((function(e,o){function a(t){try{r(s.next(t))}catch(t){o(t)}}function c(t){try{r(s["throw"](t))}catch(t){o(t)}}function r(t){t.done?e(t.value):i(t.value).then(a,c)}r((s=s.apply(t,n||[])).next())}))};var __generator=this&&this.__generator||function(t,n){var e={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},s,i,o,a;return a={next:c(0),throw:c(1),return:c(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function c(t){return function(n){return r([t,n])}}function r(a){if(s)throw new TypeError("Generator is already executing.");while(e)try{if(s=1,i&&(o=a[0]&2?i["return"]:a[0]?i["throw"]||((o=i["return"])&&o.call(i),0):i.next)&&!(o=o.call(i,a[1])).done)return o;if(i=0,o)a=[a[0]&2,o.value];switch(a[0]){case 0:case 1:o=a;break;case 4:e.label++;return{value:a[1],done:false};case 5:e.label++;i=a[1];a=[0];continue;case 7:a=e.ops.pop();e.trys.pop();continue;default:if(!(o=e.trys,o=o.length>0&&o[o.length-1])&&(a[0]===6||a[0]===2)){e=0;continue}if(a[0]===3&&(!o||a[1]>o[0]&&a[1]<o[3])){e.label=a[1];break}if(a[0]===6&&e.label<o[1]){e.label=o[1];o=a;break}if(o&&e.label<o[2]){e.label=o[2];e.ops.push(a);break}if(o[2])e.ops.pop();e.trys.pop();continue}a=n.call(t,e)}catch(t){a=[6,t];i=0}finally{s=o=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};System.register(["./p-343b3b10.system.js","./p-83b75450.system.js","./p-ece63a69.system.js","./p-5f7bc72e.system.js","./p-da593370.system.js","./p-5ba1db18.system.js","./p-577b99c3.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-48ea6857.system.js","./p-b0e93f3a.system.js","./p-b3cf23d4.system.js","./p-451fa62c.system.js","./p-520803d3.system.js"],(function(t){"use strict";var n,e,s,i,o,a,c,r;return{setters:[function(t){n=t.r;e=t.h;s=t.H},function(t){i=t.S},function(){},function(){},function(){},function(t){o=t.g;a=t.c;c=t.m},function(t){r=t.s},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_accept_invitation_wrapper",function(){function t(t){var e=this;n(this,t);this.getInvitation=function(){return __awaiter(e,void 0,void 0,(function(){var t;return __generator(this,(function(n){switch(n.label){case 0:t=this;return[4,this.api.getInvitation(this.paramsId)];case 1:t.invitation=n.sent();return[2]}}))}))}}t.prototype.componentWillLoad=function(){var t=o().headers;this.api=a(c,t);this.apiSozluk=(new i).setLanguage(this.language).setContents(r);this.getInvitation()};t.prototype.render=function(){if(!this.invitation)return;var t=this,n=t.invitation,i=t.apiSozluk,o=t.isLoggedIn,a=t.api,c=t.language;var r=n.organisation;return e(s,null,e("mentornity-root-wrapper",{class:"d-block"},e("div",{class:"pt-2",style:{background:"var(--color-background-secondary)"}},e("mentornity-accept-invitation-widget",{organisation:r,invitation:n,apiSozluk:i,api:a,isLoggedIn:o,language:c}))))};return t}())}}}));