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

  var _reporterNs, _cclegacy, __checkObsolete__, __checkObsoleteInNamespace__, _decorator, Component, tween, EventManager, LogMgr, _class, _crd, ccclass, property, PageBase;

  function _reportPossibleCrUseOfEventManager(extras) {
    _reporterNs.report("EventManager", "../Manager/EventManager", _context.meta, extras);
  }

  function _reportPossibleCrUseOfLogMgr(extras) {
    _reporterNs.report("LogMgr", "../Manager/LogMgr", _context.meta, extras);
  }

  return {
    setters: [function (_unresolved_) {
      _reporterNs = _unresolved_;
    }, function (_cc) {
      _cclegacy = _cc.cclegacy;
      __checkObsolete__ = _cc.__checkObsolete__;
      __checkObsoleteInNamespace__ = _cc.__checkObsoleteInNamespace__;
      _decorator = _cc._decorator;
      Component = _cc.Component;
      tween = _cc.tween;
    }, function (_unresolved_2) {
      EventManager = _unresolved_2.default;
    }, function (_unresolved_3) {
      LogMgr = _unresolved_3.default;
    }],
    execute: function () {
      _crd = true;

      _cclegacy._RF.push({}, "6b01ej6DbBEfIE/9llNX5eS", "PageBase", undefined);

      __checkObsolete__(['_decorator', 'Component', 'tween']);

      ({
        ccclass,
        property
      } = _decorator);

      _export("default", PageBase = ccclass(_class = class PageBase extends Component {
        onInit(params = null) {
          //打开页面后，隐藏加载中页面
          //LogMgr.warn(`打开页面后，隐藏加载中页面,${this.node.name}`);
          (_crd && EventManager === void 0 ? (_reportPossibleCrUseOfEventManager({
            error: Error()
          }), EventManager) : EventManager).emit('showHideLoading', false);
          (_crd && LogMgr === void 0 ? (_reportPossibleCrUseOfLogMgr({
            error: Error()
          }), LogMgr) : LogMgr).log(`打开页面后，onInit参数：${JSON.stringify(params)}`);

          if (params && params['noAnim']) {//不需要动画
          } else {
            //需要进入动画
            this.node.x = 500;
            tween(this.node).to(0.1, {
              x: 0
            }).start();
          }
        } //haoyu add


        onHideClick() {
          // LogMgr.warn(`隐藏页面按钮被点击：${this.node.name}`);
          //this.node.active = false;
          (_crd && EventManager === void 0 ? (_reportPossibleCrUseOfEventManager({
            error: Error()
          }), EventManager) : EventManager).emit('closePage', this.node.name); //GFunc.closePage();
        } // protected onEnable() {
        //     LogMgr.log('pageBase 设置电报返回按钮可用,当前页面的名字：', this.node.name);
        //     UIHelp.setBackBtnVisible(true);
        // }


      }) || _class);

      _cclegacy._RF.pop();

      _crd = false;
    }
  };
});
//# sourceMappingURL=7ca952980f6bde2c7f979ad6669c21110bde9624.js.map