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

  var _reporterNs, _cclegacy, __checkObsolete__, __checkObsoleteInNamespace__, _decorator, Component, Prefab, instantiate, find, Label, tween, v3, Utils, _class, _crd, ccclass, property, MsgHints;

  function _reportPossibleCrUseOfUtils(extras) {
    _reporterNs.report("Utils", "../utils/Utils", _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;
      Prefab = _cc.Prefab;
      instantiate = _cc.instantiate;
      find = _cc.find;
      Label = _cc.Label;
      tween = _cc.tween;
      v3 = _cc.v3;
    }, function (_unresolved_2) {
      Utils = _unresolved_2.default;
    }],
    execute: function () {
      _crd = true;

      _cclegacy._RF.push({}, "de116ie6JpEB7N+yP2G1fwL", "MsgHints", undefined);

      __checkObsolete__(['_decorator', 'Node', 'Component', 'Prefab', 'instantiate', 'find', 'Label', 'tween', 'v3']);

      ({
        ccclass,
        property
      } = _decorator);

      _export("default", MsgHints = ccclass(_class = class MsgHints extends Component {
        setMsg(str) {
          this.node.getComponentInChildren(Label).string = str;
          this.node.setScale(v3(0, 0, 0));
          tween(this.node).to(0.1, {
            scale: v3(1.1, 1.1, 1)
          }).to(0.1, {
            scale: v3(0.9, 0.9, 1)
          }).to(0.1, {
            scale: v3(1, 1, 1)
          }).delay(0.5).by(0.5, {
            worldPosition: v3(0, 100, 0)
          }).removeSelf().start();
        }

        static show(msg) {
          (_crd && Utils === void 0 ? (_reportPossibleCrUseOfUtils({
            error: Error()
          }), Utils) : Utils).loadRes("common/MsgHints", "prefabs", Prefab, (err, res) => {
            let win = instantiate(res);
            win.parent = find("Canvas");
            win.getComponent(MsgHints).setMsg(msg);
          });
        }

      }) || _class);

      _cclegacy._RF.pop();

      _crd = false;
    }
  };
});
//# sourceMappingURL=83ff57775874666256e8ca400ee48c6648ca45a5.js.map