var t = require; var e = module; var i = exports; Object.defineProperty(i, "__esModule", {value: !0}); const s = t("App"), o = t("DeskService"), a = t("CookData"); i.default = class { constructor() { (this.customer = null), (this.machine = null), (this.display = null), (this.cnt = 1), (this.cookingCnt = 0); } canCook() { return this.cnt > this.cookingCnt ? this.machine.getEmpSlot() : null; } getFoodValue() { return this.machine.attr.value; } finishCook() {} finishOrder() { this.cnt--, this.cookingCnt--, this.cnt ? this.display.setCnt(this.cnt) : (this.display.destroySelf(), (this.display = null), this.customer.exit(this)); } startCook() { const t = this.machine.getEmpSlot(); t.startCook(), (t.order = this); const e = new a.default(); return ( (e.order = this), (e.slot = t), (e.passSectionData = s.default.RandomUtils.randomArray(o.default.ins.passSectionDatas)), e ); } };