System.register(["./p-5b6828db.system.js","./p-9c86ff48.system.js","./p-0a1c3d23.system.js","./p-d8cc0d95.system.js","./p-518df4dc.system.js","./p-9cd38fce.system.js","./p-398e3ad9.system.js","./p-ab3bf503.system.js","./p-cae65cfa.system.js","./p-4047a45a.system.js","./p-a4fd488c.system.js","./p-e847e88b.system.js","./p-805e81fb.system.js","./p-0bbf3c73.system.js","./p-58f2f536.system.js","./p-da593370.system.js","./p-23628d1c.system.js","./p-62034033.system.js","./p-1b089731.system.js","./p-9424fd5c.system.js","./p-f1345828.system.js","./p-fa32c614.system.js","./p-ac291838.system.js","./p-b42ad17a.system.js","./p-5f835359.system.js","./p-90b7d919.system.js","./p-2db4f08c.system.js","./p-66d9c61b.system.js","./p-fe1f76a3.system.js","./p-38aeb3ea.system.js","./p-f761eb50.system.js","./p-c6941fd6.system.js","./p-b70120a8.system.js","./p-d86a8e66.system.js","./p-c23ad828.system.js","./p-f50e8dbe.system.js","./p-fd018a28.system.js","./p-04a8d136.system.js","./p-dfb1d72b.system.js","./p-a0c1f16a.system.js","./p-3b429006.system.js","./p-75920676.system.js","./p-7062bf1a.system.js","./p-39056e1d.system.js","./p-daa1f26a.system.js"],(function(t){"use strict";var s,n,e,i,o,p,f,c,a,u,m,r,y,d,j,h,b;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},function(t){f=t.A},function(t){c=t.M},function(t){a=t.g},function(t){u=t.g;m=t.i},function(t){r=t.C},function(t){y=t.T},function(t){d=t.d;j=t.K;h=t.m;b=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(){}],execute:function(){var l=t("mentornity_console_app_context_injector",function(){function t(t){s(this,t)}t.prototype.componentWillLoad=function(){var t={"Session-Token":"NTdiMzY3NjBlNjNiY2UxZWViMDAwMDA0"};if(u().token){t["Authorization"]="Bearer "+u().token}this.storage=new r;this.logger=new p("MentornityConsoleAppContextInjector").setLevel("debug");this.logger.infoGroup("componentWillLoad");this.apiData=new o(d,{Authorization:t["Authorization"]});this.apiKimlik=new j(h,t);this.apiUye=new b(h,t)};t.prototype.componentDidLoad=function(){var t=this;if(!m()){return}var s=a(location.pathname).membershipId;var n=function(s){return t.apiUye.getAppConfigOfMembership(s).then((function(s){t.appConfig=f.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=c.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(y.Provider,{state:{apiAtama:this.apiAtama,apiData:this.apiData,apiKimlik:this.apiKimlik,apiUye:this.apiUye,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(l)}}}));