'use strict';

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

const index = require('./index-1141a245.js');
const index$1 = require('./index-a2e99c85.js');
require('./apiBase-6c66ff1b.js');
require('./data-transfer-field-e8417d5f.js');
require('./filter-d5040f65.js');
const session = require('./session-f588baa3.js');
const sozlukEntries = require('./sozluk-entries-3b9686e7.js');
require('./BaseField-381327a9.js');
require('./membership-e87e02ed.js');
require('./data-model-01c368bc.js');
require('./table-config-969d3038.js');
require('./FieldModelGenerator-d61f01d4.js');
require('./reference-field-1239b0c3.js');
require('./index-2eea69a0.js');
require('./FieldGenerator-279a646b.js');
require('./date-a24d7714.js');
require('./index-0783d14f.js');
require('./index-9d3d3d15.js');
require('./index-9fd84b93.js');
require('./index-61f9621a.js');
require('./string-de672b69.js');
require('./User-dbfbd45e.js');
require('./UserSettings-2a2399b1.js');
require('./cookie-e64bc800.js');
require('./kimlik-api-663f4884.js');
require('./_commonjsHelpers-206db00d.js');
require('./index-33e96540.js');
require('./mentorinty-bridge-api-b1eaa56d.js');
require('./index-b7855ed6.js');
require('./attachment-a0cdf203.js');
require('./CalendarConfig-998f742e.js');
require('./calendar-e4b7baeb.js');
require('./index-b776fc14.js');
require('./moment-7a3433f2.js');
require('./i18n-0bcf144d.js');
require('./i18n-77d45414.js');

const MentornityAcceptInvitationWrapper = class {
  constructor(hostRef) {
    index.registerInstance(this, hostRef);
    this.getInvitation = async () => {
      this.invitation = await this.api.getInvitation(this.paramsId);
    };
  }
  componentWillLoad() {
    const { headers } = session.getSessionDetails();
    this.api = session.createMentornityApiInstance(session.mentornityApiEndpoint, headers);
    this.apiSozluk = new index$1.SozlukApi().setLanguage(this.language).setContents(sozlukEntries.sozlukEntries);
    this.getInvitation();
  }
  render() {
    if (!this.invitation)
      return;
    const { invitation, apiSozluk, isLoggedIn, api, language } = this;
    const { organisation } = invitation;
    return (index.h(index.Host, null, index.h("mentornity-root-wrapper", { class: "d-block" }, index.h("div", { class: "pt-2", style: { background: 'var(--color-background-secondary)' } }, index.h("mentornity-accept-invitation-widget", { organisation: organisation, invitation: invitation, apiSozluk: apiSozluk, api: api, isLoggedIn: isLoggedIn, language: language })))));
  }
};

exports.mentornity_accept_invitation_wrapper = MentornityAcceptInvitationWrapper;
