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';

let MentornityHomeMessageWrapper = class {
  constructor(hostRef) {
    registerInstance(this, hostRef);
  }
  async componentWillLoad() {
    const { context, headers } = getSessionDetails();
    this.config = await createMentornityApiInstance(mentornityApiEndpoint, headers)
      .getOrganisationConfig(context.organisationId);
  }
  render() {
    const { config: { adminWebAppHomeMessage: { content } } } = this;
    return (h(Host, null, h("mentornity-root-wrapper", null, h("dvn-rich-content", { value: content }))));
  }
};

export { MentornityHomeMessageWrapper as mentornity_home_message_wrapper };
