'use strict';

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

const index = require('./index-fd2bbf0b.js');
const index$1 = require('./index-8b5329bd.js');
const sdk = require('./sdk-578db22f.js');
require('./index-c9259e34.js');
require('./global-9027a413.js');
require('./index.esm2017-895d5dfe.js');
require('./tslib.es6-8eb3c9db.js');
require('./localforage-af1b8c0e.js');
require('./_commonjsHelpers-a5111d61.js');

let Init = class {
  constructor(hostRef) {
    index.registerInstance(this, hostRef);
  }
  /**
   * Get the SDK
   * @returns The instance of Flood Team SDK
   */
  async getSdk() {
    return this.sdk;
  }
  /**
   * Get the GraphQL Client
   * @returns The instance of GraphQL SDK
   */
  async getClient() {
    return this.client;
  }
  componentDidLoad() {
    const { sdk: sdk$1, client } = new index$1.FireEnjin({
      getSdk: sdk.getSdk,
      debug: index.Build === null || index.Build === void 0 ? void 0 : index.Build.isDev,
      token: this.token,
      connections: [
        {
          name: "default",
          type: "graphql",
          url: this.host || "https://theflood.team/graphql",
        },
      ],
    });
    this.sdk = sdk$1;
    this.client = client;
    console.log(this.sdk, this.client);
  }
  render() {
    return index.h("slot", null);
  }
};

exports.floodteam_init = Init;

//# sourceMappingURL=floodteam-init.cjs.entry.js.map