import { Component, getAssetPath, h, Host } from '@stencil/core';
/**
 * Given;
 *   there is a no active session
 *   membership is active and belongs to an active user
 * When;
 *   user visits the application
 * Then;
 *   login required message should be shown
 */
export class KhanguruUITestMembershipActivation3 {
  render() {
    const assetsPath = getAssetPath(`./assets`);
    const space = {
      _id: 'acme-summer-camp',
      _created: new Date(),
      _updated: new Date(),
      name: 'Acme Summer Camp',
      logoUrl: `${assetsPath}/img/spaces/hexadrop.png`,
    };
    const teachersConfig = {
      _id: 'teachers',
      agreements: [],
      base: 'khanguru',
      fields: [],
      name: 'teachers-table',
      roleName: 'teacher',
      space,
    };
    const user = {
      _id: 'user_1',
      email: 'ata.turk@acme.com',
      firstName: 'Ata',
      lastName: 'Türk',
      status: 'active'
    };
    const database = {
      uyeMembershipConfigs: {
        'teachers': teachersConfig,
      },
      'teachers-table': {
        'teacher-1': {
          _id: 'teacher-1',
          config: teachersConfig,
          status: 'active',
          user,
        }
      },
      kimlikUsers: {
        'user_1': user
      },
      dvnAppConfigs: {
        'app-config-1': {
          mainContent: {
            centered: true,
          },
          mainNavigation: {
            items: []
          },
          membership: {
            _id: 'teachers'
          }
        }
      }
    };
    return (h(Host, { style: { overflow: 'auto' } },
      h("khanguru-ui-test-wrapper", { database: database, initialPath: "/acme-summer-camp/teachers/teacher-1", testKey: "khanguru-ui-test-membership-activation-3" })));
  }
  static get is() { return "khanguru-ui-test-membership-activation-3"; }
  static get encapsulation() { return "scoped"; }
  static get assetsDirs() { return ["assets"]; }
}
