System.register(["./p-5e377a26.system.js","./p-4166d436.system.js","./p-d29cc7ae.system.js","./p-974ab902.system.js","./p-36ea68a3.system.js","./p-9e8049b8.system.js","./p-398e3ad9.system.js","./p-6f3c3cb9.system.js","./p-91343653.system.js","./p-cf4e1257.system.js","./p-2955577f.system.js","./p-ab31f231.system.js","./p-e847e88b.system.js","./p-db5487c5.system.js","./p-0bbf3c73.system.js","./p-58f2f536.system.js","./p-da593370.system.js","./p-cb044807.system.js","./p-b1e4c9f9.system.js","./p-7a93391b.system.js","./p-942ebda3.system.js","./p-61f711e3.system.js","./p-34aaddc8.system.js","./p-ac291838.system.js","./p-a1a7dc06.system.js","./p-d548b705.system.js","./p-02dbbe4e.system.js","./p-f8bf4b87.system.js","./p-90b7d919.system.js","./p-417ebfe3.system.js","./p-66d9c61b.system.js","./p-fe1f76a3.system.js","./p-8e4283bf.system.js","./p-98b4ef7a.system.js","./p-e938e2f1.system.js","./p-51cac02e.system.js","./p-d86a8e66.system.js","./p-62ace946.system.js","./p-c8cd0c1c.system.js","./p-01d3bf86.system.js","./p-b70120a8.system.js","./p-fd018a28.system.js","./p-e1b18076.system.js","./p-dfb1d72b.system.js","./p-2c94eaa0.system.js","./p-a0c1f16a.system.js","./p-512597e1.system.js","./p-39056e1d.system.js","./p-31a38db5.system.js","./p-70552f4e.system.js","./p-4785c63b.system.js","./p-98bba942.system.js","./p-fed348c1.system.js","./p-daa1f26a.system.js"],(function(t){"use strict";var s,e,n,i,o,p,c,f,u,a,m,r,y,j,d,h,b,l;return{setters:[function(t){s=t.r;e=t.h;n=t.H},function(t){i=t.i},function(t){o=t.D},function(t){p=t.L;c=t.S},function(t){f=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){j=t.T},function(t){d=t.K;h=t.U},function(t){b=t.d;l=t.m},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(){},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 ".concat(m().token)}this.storage=new y;this.logger=new p("MentornityConsoleAppContextInjector").setLevel("debug");this.logger.infoGroup("componentWillLoad");this.apiData=new o(b,{Authorization:t["Authorization"]});this.apiKimlik=new d(l,t);this.apiUye=new h(l,t);this.apiSozluk=new c};t.prototype.componentDidLoad=function(){var t=this;if(!r()){return}var s=a(location.pathname).membershipId;var e=function(s){return t.apiUye.getAppConfigOfMembership(s).then((function(s){t.appConfig=f.decode(s)}))};this.apiKimlik.getSession().then((function(n){t.user=n.user;t.apiUye.getMembershipsOfUser(n.user._id).then((function(n){var i=n.results;t.memberships=i;if(!i||i.length===0){return}if(s){t.membership=i.find((function(t){return t._id===s}));e(t.membership.config._id);return}t.membership=u.decode(i[0]);e(i[0].config._id)}))}))};t.prototype.invalidateAppContext=function(){this.logger.debug("invalidateAppContext")};t.prototype.render=function(){var t=this;return e(n,null,e(j.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}},e("slot",null)))};return t}());i(g)}}}));