var t = require; var e = module; var i = exports; e = (this && this.__decorate) || function (t, e, i, s) { var o, a = arguments.length, n = a < 3 ? e : null === s ? (s = Object.getOwnPropertyDescriptor(e, i)) : s; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) n = Reflect.decorate(t, e, i, s); else for (var r = t.length - 1; 0 <= r; r--) (o = t[r]) && (n = (a < 3 ? o(n) : 3 < a ? o(e, i, n) : o(e, i)) || n); return 3 < a && n && Object.defineProperty(e, i, n), n; }; Object.defineProperty(i, "__esModule", {value: !0}); const s = t("App"), o = t("GameText"), {ccclass: a, property: n} = cc._decorator; t = class extends cc.Component { constructor() { super(...arguments), (this.descLab = null), (this.typeTimer = null), (this.cb = null), (this.txt = ""); } hideText() { this.node.active = !1; } typerFinish() { (this.typeTimer = null), this.cb && (this.cb(), (this.cb = null)); } clearTimer() { (this.descLab.string = this.txt), this.typeTimer && (s.default.TimerManager.remove(this.typeTimer, null), (this.typeTimer = null), (this.cb = null)); } setText(t, e) { (this.node.active = !0), (this.cb = e); t = this.txt = t.i18 ? o.GameText.getTextByStr(t.i18) : t.str; t && ((this.descLab.node.active = !0), (this.descLab.string = t)); } }; e([n(cc.RichText)], t.prototype, "descLab", void 0), (t = e([a], t)), (i.default = t);