import { r as registerInstance, h, H as Host } from './index-ecdfb761.js';
import './apiBase-6015f41f.js';
import './data-transfer-field-2f305919.js';
import './filter-cbaa3d7d.js';
import { g as getSessionDetails, c as createMentornityApiInstance, m as mentornityApiEndpoint } from './session-2a491341.js';
import { S as SozlukApi } from './index-3bf9b308.js';
import './BaseField-0b01dc2c.js';
import './membership-b6639471.js';
import './data-model-88af49fc.js';
import './table-config-d73a72ab.js';
import './FieldModelGenerator-378c8613.js';
import './reference-field-a5b414d1.js';
import './index-61dcd269.js';
import './FieldGenerator-3ae403b2.js';
import './date-1bc489bd.js';
import './index-4e451db4.js';
import './index-23baeeef.js';
import './index-09efdc01.js';
import './index-150b6a59.js';
import './string-3065a411.js';
import './User-72c4643a.js';
import './UserSettings-7e4170a7.js';
import './cookie-5d9f5819.js';
import './kimlik-api-fddeac81.js';
import './_commonjsHelpers-27f122dd.js';
import './index-d3bd30bd.js';
import './mentorinty-bridge-api-5ca2d652.js';
import './index-e66e8eca.js';
import './attachment-961dd228.js';
import './CalendarConfig-412d1b0f.js';
import './sozluk-entries-1e8f5234.js';
import './i18n-09a07b97.js';
import './i18n-0e757ca5.js';
import './calendar-470c802a.js';
import './index-a3ca021c.js';
import './moment-65eca6b3.js';

const MentornityApplicationLegalFooter = class {
  constructor(hostRef) {
    registerInstance(this, hostRef);
  }
  async componentWillLoad() {
    const { context, headers } = getSessionDetails();
    this.api = createMentornityApiInstance(mentornityApiEndpoint, headers);
    this.wl = await this.api.getWhiteLabel(context.organisationId);
  }
  render() {
    var _a, _b;
    const termsUrl = ((_a = this.wl) === null || _a === void 0 ? void 0 : _a.termsUrl) || '/terms';
    const privacyUrl = ((_b = this.wl) === null || _b === void 0 ? void 0 : _b.privacyUrl) || '/privacy-policy';
    const { i18n } = this.field;
    return (h(Host, null, h("dvn-markdown", { content: SozlukApi.build(i18n.agreeTermsAndPrivacy, {
        privacyUrl,
        termsUrl
      }) })));
  }
};

export { MentornityApplicationLegalFooter as mentornity_application_legal_footer };
