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

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

  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({}, "0cda7ZYozdK66j6u7xTNQgu", "widgetTest", undefined);

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

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

      _export("widgetTest", widgetTest = (_dec = ccclass('widgetTest'), _dec(_class = class widgetTest extends Component {
        start() {
          let item1 = find("Canvas/item1");
          let item2 = find("Canvas/item2");
          let widget = item2.addComponent(cc.Widget);
          widget.isAlignRight = true;
          widget.isAlignLeft = true;
          widget.left = widget.right = 0;
          widget.updateAlignment();
          this.scheduleOnce(() => {
            widget.updateAlignment();
          }, 1);
        }

        update(deltaTime) {}

      }) || _class));

      _cclegacy._RF.pop();

      _crd = false;
    }
  };
});
//# sourceMappingURL=4799d0a1069c850840b005f3d8098b06cf307194.js.map