'use strict';

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

const index = require('./index-04930e74.js');
const chunkLAFZBYO7 = require('./chunk-LAFZBYO7-25f2fb11.js');
const wallet = require('./wallet-59d2a109.js');
const index$1 = require('./index-f2f155d2.js');

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

exports.nk_edition_price_text = NKEditionPriceText;

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