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 a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r["throw"](e))}catch(e){o(e)}}function c(e){e.done?n(e.value):i(e.value).then(a,s)}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,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(e){return function(t){return c([e,t])}}function c(a){if(r)throw new TypeError("Generator is already executing.");while(n)try{if(r=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:n.label++;return{value:a[1],done:false};case 5:n.label++;i=a[1];a=[0];continue;case 7:a=n.ops.pop();n.trys.pop();continue;default:if(!(o=n.trys,o=o.length>0&&o[o.length-1])&&(a[0]===6||a[0]===2)){n=0;continue}if(a[0]===3&&(!o||a[1]>o[0]&&a[1]<o[3])){n.label=a[1];break}if(a[0]===6&&n.label<o[1]){n.label=o[1];o=a;break}if(o&&n.label<o[2]){n.label=o[2];n.ops.push(a);break}if(o[2])n.ops.pop();n.trys.pop();continue}a=t.call(e,n)}catch(e){a=[6,e];i=0}finally{r=o=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};import{r as registerInstance,h,H as Host}from"./index-ecdfb761.js";import"./apiBase-648a161d.js";import"./data-transfer-field-2f305919.js";import"./filter-cbaa3d7d.js";import{c as createMentornityApiInstance}from"./instance-db63ecb7.js";import{g as getSessionDetails,a as mentornityApiEndpoint}from"./session-a602596d.js";import"./BaseField-0b01dc2c.js";import"./FieldModelGenerator-03c7516c.js";import"./reference-field-a5b414d1.js";import"./index-61dcd269.js";import"./FieldGenerator-3ae403b2.js";import"./date-1bc489bd.js";import"./index-4e451db4.js";import"./index-32d8b974.js";import"./index-23baeeef.js";import"./index-09efdc01.js";import"./index-150b6a59.js";import"./membership-24db029a.js";import"./data-model-f7ccf826.js";import"./table-config-3820fb34.js";import"./string-3065a411.js";import"./User-9f1f4513.js";import"./UserSettings-27df01e6.js";import"./cookie-9f22e0fb.js";import"./kimlik-api-66e341bd.js";import"./_commonjsHelpers-27f122dd.js";import"./index-d3bd30bd.js";import"./mentorinty-bridge-api-f70621dd.js";import"./index-5f14b4fc.js";import"./attachment-d13ad547.js";import"./CalendarConfig-f8d4a70d.js";import"./index-3bf9b308.js";import"./i18n-4dcb85fe.js";import"./i18n-73c2e20d.js";import"./calendar-470c802a.js";import"./index-a3ca021c.js";import"./moment-65eca6b3.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};