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

  var _cclegacy, __checkObsolete__, __checkObsoleteInNamespace__, _decorator, Component, Node, tween, v3, easing, UIOpacity, Tween, _dec, _dec2, _class, _class2, _descriptor, _crd, ccclass, property, Hello;

  function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }

  function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }

  function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'proposal-class-properties is enabled and runs after the decorators transform.'); }

  return {
    setters: [function (_cc) {
      _cclegacy = _cc.cclegacy;
      __checkObsolete__ = _cc.__checkObsolete__;
      __checkObsoleteInNamespace__ = _cc.__checkObsoleteInNamespace__;
      _decorator = _cc._decorator;
      Component = _cc.Component;
      Node = _cc.Node;
      tween = _cc.tween;
      v3 = _cc.v3;
      easing = _cc.easing;
      UIOpacity = _cc.UIOpacity;
      Tween = _cc.Tween;
    }],
    execute: function () {
      _crd = true;

      _cclegacy._RF.push({}, "d60a29i9kdMcaL7WFCrT0KW", "Hello", undefined);

      __checkObsolete__(['_decorator', 'Component', 'Node', 'tween', 'v3', 'easing', 'UIOpacity', 'Tween']);

      ({
        ccclass,
        property
      } = _decorator);

      _export("Hello", Hello = (_dec = ccclass('Hello'), _dec2 = property(Node), _dec(_class = (_class2 = class Hello extends Component {
        constructor(...args) {
          super(...args);

          _initializerDefineProperty(this, "spineNode", _descriptor, this);
        }

        async onClick1() {
          console.log("on click sign in.");
          this.spineNode.active = true;
          tween(this.spineNode).set({
            scale: v3(0.8, 0.8, 1)
          }).to(5, {
            scale: v3(1, 1, 1.0)
          }, {
            easing: easing.backOut
          }).start();
          let uiOpacity = this.spineNode.getComponent(UIOpacity);
          Tween.stopAllByTarget(uiOpacity);
          uiOpacity.opacity = 0; // this.scheduleOnce(()=>{
          //     uiOpacity.opacity = 255
          // },2);

          tween(uiOpacity).to(5, {
            opacity: 255
          }).start();
        }

        onClick2() {
          let uiOpacity = this.spineNode.getComponent(UIOpacity);
          Tween.stopAllByTarget(this.spineNode);
          Tween.stopAllByTarget(uiOpacity);
          this.spineNode.active = false;
        }

      }, (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "spineNode", [_dec2], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: function () {
          return null;
        }
      })), _class2)) || _class));

      _cclegacy._RF.pop();

      _crd = false;
    }
  };
});
//# sourceMappingURL=4629810711292b379724d245d63390dd99c6a7e1.js.map