import{l as i}from"./index-CmAiVN5e.js";class s{constructor(e){this._id=0,this._name="",this._icon="",this._example="",this._price="",i(this),this.setFromApi(e)}get id(){return this._id}get name(){return this._name}get icon(){return this._icon}get example(){return this._example}get priceValue(){return this._price?Number(this._price).valueOf():0}setFromApi(e){e&&(this._id=e.id,this._name=e.name,this._icon=e.icon,this._example=e.example,this._price=e.price??"")}}export{s as D};