import { r as registerInstance, h, H as Host } from './index-8dc1a0b7.js';
import './index-2f7827f5.js';
import { b as runSet } from './runStore-08a7baa7.js';

const Init = class {
  constructor(hostRef) {
    registerInstance(this, hostRef);
    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 watchers() { return {
    "router": ["newRouter"]
  }; }
};

export { Init as corejam_init };
