'use strict';

Object.defineProperty(exports, '__esModule', { value: true });

const index = require('./index-ce58ddc5.js');
require('./apiBase-b14a8285.js');
require('./data-transfer-field-0ce05c1a.js');
require('./filter-d5040f65.js');
const instance = require('./instance-fba77445.js');
const env = require('./env-56a21d68.js');
const session = require('./session-fe19e012.js');
require('./BaseField-d019ade6.js');
require('./FieldModelGenerator-1af8e5c3.js');
require('./reference-field-dda66f2e.js');
require('./index-f92537c9.js');
require('./index-7e3bc620.js');
require('./date-25b104f6.js');
require('./index-9ea6c7b1.js');
require('./index-93271b8c.js');
require('./index-29b7cb16.js');
require('./index-792d710c.js');
require('./membership-310dd68e.js');
require('./data-model-9afb7f54.js');
require('./table-config-73a193be.js');
require('./string-de672b69.js');
require('./User-e15e0b6d.js');
require('./UserSettings-fc04eb54.js');
require('./cookie-ea977378.js');
require('./kimlikApi-f4f62100.js');
require('./_commonjsHelpers-206db00d.js');
require('./index-33e96540.js');

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

exports.mentornity_home_message_wrapper = MentornityHomeMessageWrapper;
