System.register(["cc"], function (_export, _context) {
  "use strict";

  var _cclegacy, __checkObsolete__, __checkObsoleteInNamespace__, _decorator, Component, find, _cc, _dec, _class, _crd, cc, ccclass, property, onbug;

  return {
    setters: [function (_cc2) {
      _cclegacy = _cc2.cclegacy;
      __checkObsolete__ = _cc2.__checkObsolete__;
      __checkObsoleteInNamespace__ = _cc2.__checkObsoleteInNamespace__;
      _decorator = _cc2._decorator;
      Component = _cc2.Component;
      find = _cc2.find;
      _cc = _cc2;
    }],
    execute: function () {
      _crd = true;

      _cclegacy._RF.push({}, "d0bbeMzZadN3qHSpAq3Q0cx", "onbug", undefined);

      __checkObsolete__(['_decorator', 'Component', 'find', 'Node']);

      cc = __checkObsoleteInNamespace__(_cc);
      ({
        ccclass,
        property
      } = _decorator);

      _export("onbug", onbug = (_dec = ccclass('onbug'), _dec(_class = class onbug extends Component {
        start() {
          var Button = find('Canvas/Button');
          Button.on(cc.Node.EventType.TOUCH_END, () => {
            console.log('click');
          });
          this.scheduleOnce(() => {
            this.node.pauseSystemEvents(true);
            Button.active = false;
            this.node.resumeSystemEvents(true);
          }, 1);
          this.scheduleOnce(() => {
            Button.active = true; // this.node.active = false;
            // this.node.active = true;
          }, 3);
        }

        update(deltaTime) {}

      }) || _class));

      _cclegacy._RF.pop();

      _crd = false;
    }
  };
});
//# sourceMappingURL=832cef8b441d65e34c851b9aa45f6b172c239786.js.map