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("SwitchFrame"), {ccclass: o, property: a} = cc._decorator; t = class extends cc.Component { constructor() { super(...arguments), (this.str = null), (this.lockNode = null), (this.switchFrame = null); } setData(t, e, i, s) { (this.str.string = t), (this.lockNode.active = !i), (this.switchFrame.frameIndex = s ? 0 : 1); } }; e([a(cc.RichText)], t.prototype, "str", void 0), e([a(cc.Node)], t.prototype, "lockNode", void 0), e([a(s.default)], t.prototype, "switchFrame", void 0), (t = e([o], t)), (i.default = t);