var a=Object.defineProperty;var d=(i,t,s)=>t in i?a(i,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):i[t]=s;var e=(i,t,s)=>d(i,typeof t!="symbol"?t+"":t,s);import{a2 as r}from"./DpdQcRr7.js";class m{constructor(t={}){e(this,"id");e(this,"name");e(this,"displayName");e(this,"description");e(this,"modLoader");e(this,"minecraftVersion");e(this,"unit");e(this,"templatePath");e(this,"status");e(this,"orderIndex");e(this,"createdAt");e(this,"updatedAt");this.id=Number(t.id),this.name=t.name||"",this.displayName=t.displayName||t.display_name||void 0,this.description=t.description||void 0,this.modLoader=t.modLoader||t.mod_loader||"Fabric",this.minecraftVersion=t.minecraftVersion||t.minecraft_version||"1.20.1",this.unit=t.unit||void 0,this.templatePath=t.templatePath||t.template_path||"",this.status=t.status||"active",this.orderIndex=Number(t.orderIndex??t.order_index??0),this.createdAt=r(t.createdAt||t.created_at),this.updatedAt=r(t.updatedAt||t.updated_at)}get label(){return this.displayName||this.name}get statusLabel(){return this.status==="active"?"有効":"アーカイブ"}get statusClass(){return this.status==="active"?"active":"archived"}get isActive(){return this.status==="active"}get createdAtFormatted(){return this.createdAt.format("YYYY/MM/DD HH:mm")}get updatedAtFormatted(){return this.updatedAt.format("YYYY/MM/DD HH:mm")}}e(m,"ModelName","ModTemplate");export{m as M};
