import { r as registerInstance, B as Build, h } from './index-33e43734.js';
import { F as FireEnjin } from './index-1e725a5a.js';
import { g as getSdk } from './sdk-7996fde4.js';
import './index-a60aeb71.js';
import './global-e1c7e609.js';
import './index.esm2017-d49ffaf0.js';
import './tslib.es6-78d2ab52.js';
import './localforage-9915b7c8.js';
import './_commonjsHelpers-cca61ea8.js';

let Init = class {
  constructor(hostRef) {
    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, client } = new FireEnjin({
      getSdk,
      debug: Build === null || Build === void 0 ? void 0 : Build.isDev,
      token: this.token,
      connections: [
        {
          name: "default",
          type: "graphql",
          url: this.host || "https://theflood.team/graphql",
        },
      ],
    });
    this.sdk = sdk;
    this.client = client;
    console.log(this.sdk, this.client);
  }
  render() {
    return h("slot", null);
  }
};

export { Init as floodteam_init };

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