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

  var _cclegacy, _decorator, Component, MeshRenderer, primitives, utils, _dec, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _crd, ccclass, property, PlaneMesh;

  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;
      _decorator = _cc._decorator;
      Component = _cc.Component;
      MeshRenderer = _cc.MeshRenderer;
      primitives = _cc.primitives;
      utils = _cc.utils;
    }],
    execute: function () {
      _crd = true;

      _cclegacy._RF.push({}, "740409eUuBMPa4uZWR06Nj5", "PlaneMesh", undefined);

      ({
        ccclass,
        property
      } = _decorator);

      _export("PlaneMesh", PlaneMesh = (_dec = ccclass('PlaneMesh'), _dec(_class = (_class2 = class PlaneMesh extends Component {
        constructor() {
          super(...arguments);

          _initializerDefineProperty(this, "segmentX", _descriptor, this);

          _initializerDefineProperty(this, "segmentY", _descriptor2, this);

          _initializerDefineProperty(this, "width", _descriptor3, this);

          _initializerDefineProperty(this, "length", _descriptor4, this);
        }

        start() {
          var renderer = this.node.getComponent(MeshRenderer);

          if (!renderer) {
            return;
          }

          var plane = primitives.plane({
            width: this.width,
            length: this.length,
            widthSegments: this.segmentX,
            lengthSegments: this.segmentY
          });
          renderer.mesh = utils.createMesh(plane);
        }

      }, (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "segmentX", [property], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: function initializer() {
          return 100;
        }
      }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, "segmentY", [property], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: function initializer() {
          return 100;
        }
      }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, "width", [property], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: function initializer() {
          return 30;
        }
      }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, "length", [property], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: function initializer() {
          return 30;
        }
      })), _class2)) || _class));

      _cclegacy._RF.pop();

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