var __awaiter=this&&this.__awaiter||function(e,t,n,r){function i(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r["throw"](e))}catch(e){o(e)}}function c(e){e.done?n(e.value):i(e.value).then(s,a)}c((r=r.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,s;return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(e){return function(t){return c([e,t])}}function c(s){if(r)throw new TypeError("Generator is already executing.");while(n)try{if(r=1,i&&(o=s[0]&2?i["return"]:s[0]?i["throw"]||((o=i["return"])&&o.call(i),0):i.next)&&!(o=o.call(i,s[1])).done)return o;if(i=0,o)s=[s[0]&2,o.value];switch(s[0]){case 0:case 1:o=s;break;case 4:n.label++;return{value:s[1],done:false};case 5:n.label++;i=s[1];s=[0];continue;case 7:s=n.ops.pop();n.trys.pop();continue;default:if(!(o=n.trys,o=o.length>0&&o[o.length-1])&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]<o[3])){n.label=s[1];break}if(s[0]===6&&n.label<o[1]){n.label=o[1];o=s;break}if(o&&n.label<o[2]){n.label=o[2];n.ops.push(s);break}if(o[2])n.ops.pop();n.trys.pop();continue}s=t.call(e,n)}catch(e){s=[6,e];i=0}finally{r=o=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};import{r as registerInstance,h,H as Host}from"./index-b7735e0d.js";import"./apiBase-d573f009.js";import"./data-transfer-field-918730a3.js";import"./filter-cbaa3d7d.js";import{c as createMentornityApiInstance}from"./instance-7b02ef1d.js";import{m as mentornityApiEndpoint}from"./env-4ec3c807.js";import{g as getSessionDetails}from"./session-b16a440c.js";import"./BaseField-461b6d0c.js";import"./FieldModelGenerator-020f4a04.js";import"./reference-field-0e7cd534.js";import"./index-7b119e61.js";import"./index-403101cb.js";import"./date-ce777316.js";import"./index-1d3efe49.js";import"./index-eb14fd2d.js";import"./index-80ec23ef.js";import"./index-4c39b6a6.js";import"./membership-e92743d1.js";import"./data-model-f7ccf826.js";import"./table-config-0c06fb1f.js";import"./string-3065a411.js";import"./User-1ef5a482.js";import"./UserSettings-27df01e6.js";import"./cookie-1686830b.js";import"./kimlikApi-0d7e6ce7.js";import"./_commonjsHelpers-27f122dd.js";import"./index-d3bd30bd.js";var MentornityHomeMessageWrapper=function(){function e(e){registerInstance(this,e)}e.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){var e,t,n,r;return __generator(this,(function(i){switch(i.label){case 0:e=getSessionDetails(),t=e.context,n=e.headers;r=this;return[4,createMentornityApiInstance(mentornityApiEndpoint,n).getOrganisationConfig(t.organisationId)];case 1:r.config=i.sent();return[2]}}))}))};e.prototype.render=function(){var e=this.config.adminWebAppHomeMessage.content;return h(Host,null,h("mentornity-root-wrapper",null,h("dvn-rich-content",{value:e})))};return e}();export{MentornityHomeMessageWrapper as mentornity_home_message_wrapper};