import { r as registerInstance, h, H as Host } from './index-7159ffcd.js';
import { b as watchBlockNumber } from './chunk-LAFZBYO7-9a6189f1.js';
import { s as state } from './wallet-3e4cc9a4.js';
import { f as formatEther } from './index-263e5e50.js';

const NKEditionPriceText = class {
  constructor(hostRef) {
    registerInstance(this, hostRef);
    this.price = undefined;
    this.editionId = undefined;
  }
  componentWillLoad() {
    this.disconnect = watchBlockNumber({ listen: true }, async () => {
      this.price = formatEther(await state.diamond.apps.edition.getEditionPrice(this.editionId));
    });
  }
  disconnectedCallback() {
    this.disconnect();
  }
  render() {
    return (h(Host, null, this.price, h("slot", null)));
  }
};

export { NKEditionPriceText as nk_edition_price_text };

//# sourceMappingURL=nk-edition-price-text.entry.js.map