import { runSet } from "@corejam/run";
import { Component, h, Host, Prop, Watch } from "@stencil/core";
export class Init {
  constructor() {
    this.router = null;
  }
  async componentWillLoad() {
    if (!this.router)
      return;
    runSet("router", this.router);
  }
  newRouter(newval) {
    runSet("router", newval);
  }
  render() {
    return (h(Host, null,
      h("slot", null)));
  }
  static get is() { return "corejam-init"; }
  static get properties() { return {
    "router": {
      "type": "any",
      "mutable": false,
      "complexType": {
        "original": "any",
        "resolved": "any",
        "references": {}
      },
      "required": false,
      "optional": false,
      "docs": {
        "tags": [],
        "text": ""
      },
      "attribute": "router",
      "reflect": false,
      "defaultValue": "null"
    }
  }; }
  static get watchers() { return [{
      "propName": "router",
      "methodName": "newRouter"
    }]; }
}
