import{r as s,h as t,H as i}from"./p-a8cad770.js";import{b as n}from"./p-3c0f264f.js";import{s as e}from"./p-317b4eec.js";const o=class{constructor(t){s(this,t);this.quantity=undefined;this.maxQuantity=undefined;this.editionId=undefined}componentWillLoad(){this.disconnect=n({listen:true},(async()=>{const s=await e.diamond.apps.edition.getEdition(this.editionId);this.quantity=s.quantity.toNumber();this.maxQuantity=s.maxQuantity.toNumber()}))}disconnectedCallback(){this.disconnect()}render(){return t(i,null,this.maxQuantity===0?this.quantity:`${this.quantity} / ${this.maxQuantity}`,t("slot",null))}};export{o as nk_edition_supply_text};
//# sourceMappingURL=p-bc0f7e2e.entry.js.map