System.register(["./p-c4df9d4b.system.js","./p-6d4bc86a.system.js","./p-f98ac2dc.system.js","./p-974ab902.system.js","./p-518df4dc.system.js","./p-d1d51081.system.js","./p-398e3ad9.system.js","./p-e8c71d59.system.js","./p-c0811bf8.system.js","./p-cf907cf9.system.js","./p-1d094810.system.js","./p-e847e88b.system.js","./p-77e9a1cf.system.js","./p-0bbf3c73.system.js","./p-58f2f536.system.js","./p-da593370.system.js","./p-23628d1c.system.js","./p-1e8d4d2d.system.js","./p-3bb22ffb.system.js","./p-8fde6e09.system.js","./p-e2e7329f.system.js","./p-637a7d5a.system.js","./p-ac291838.system.js","./p-1f1c7f78.system.js","./p-a333270e.system.js","./p-90b7d919.system.js","./p-2db4f08c.system.js","./p-66d9c61b.system.js","./p-fe1f76a3.system.js","./p-90da8e26.system.js","./p-24c78794.system.js","./p-7055ba7b.system.js","./p-a9ea84b4.system.js","./p-b70120a8.system.js","./p-d86a8e66.system.js","./p-5a06f6ce.system.js","./p-51036327.system.js","./p-fd018a28.system.js","./p-118612f6.system.js","./p-dfb1d72b.system.js","./p-a0c1f16a.system.js","./p-dbc597c0.system.js","./p-39056e1d.system.js","./p-8032ffdc.system.js","./p-75920676.system.js","./p-daa1f26a.system.js"],(function(t){"use strict";var s,n,e,i,o,p,f,c,u,a,m,r,y,d,j,h,b,l;return{setters:[function(t){s=t.r;n=t.h;e=t.H},function(t){i=t.i},function(t){o=t.D},function(t){p=t.L;f=t.S},function(t){c=t.A},function(t){u=t.M},function(t){a=t.g},function(t){m=t.g;r=t.i},function(t){y=t.C},function(t){d=t.T},function(t){j=t.d;h=t.K;b=t.m;l=t.U},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 g=t("mentornity_console_app_context_injector",function(){function t(t){s(this,t)}t.prototype.componentWillLoad=function(){var t={"Session-Token":"NTdiMzY3NjBlNjNiY2UxZWViMDAwMDA0"};if(m().token){t["Authorization"]="Bearer "+m().token}this.storage=new y;this.logger=new p("MentornityConsoleAppContextInjector").setLevel("debug");this.logger.infoGroup("componentWillLoad");this.apiData=new o(j,{Authorization:t["Authorization"]});this.apiKimlik=new h(b,t);this.apiUye=new l(b,t);this.apiSozluk=new f};t.prototype.componentDidLoad=function(){var t=this;if(!r()){return}var s=a(location.pathname).membershipId;var n=function(s){return t.apiUye.getAppConfigOfMembership(s).then((function(s){t.appConfig=c.decode(s)}))};this.apiKimlik.getSession().then((function(e){t.user=e.user;t.apiUye.getMembershipsOfUser(e.user._id).then((function(e){var i=e.results;t.memberships=i;if(!i||i.length===0){return}if(s){t.membership=i.find((function(t){return t._id===s}));n(t.membership.config._id);return}t.membership=u.decode(i[0]);n(i[0].config._id)}))}))};t.prototype.invalidateAppContext=function(){this.logger.debug("invalidateAppContext")};t.prototype.render=function(){var t=this;return n(e,null,n(d.Provider,{state:{apiAtama:this.apiAtama,apiData:this.apiData,apiKimlik:this.apiKimlik,apiUye:this.apiUye,apiSozluk:this.apiSozluk,logger:this.logger,storage:this.storage,appContextInvalidator:function(){return t.invalidateAppContext()},appConfig:this.appConfig,membership:this.membership,memberships:this.memberships,notifier:this.notifier,user:this.user,theme:this.theme}},n("slot",null)))};return t}());i(g)}}}));