System.register(["__unresolved_0", "cc", "__unresolved_1"], function (_export, _context) { "use strict"; var _reporterNs, _cclegacy, __checkObsolete__, __checkObsoleteInNamespace__, _decorator, Component, instantiate, Label, Prefab, Container_Manager, _dec, _dec2, _class, _class2, _descriptor, _class3, _crd, ccclass, property, UI_Idioms; 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 ' + 'transform-class-properties is enabled and runs after the decorators transform.'); } function _reportPossibleCrUseOfContainer_Manager(extras) { _reporterNs.report("Container_Manager", "./Container_Manager", _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; instantiate = _cc.instantiate; Label = _cc.Label; Prefab = _cc.Prefab; }, function (_unresolved_2) { Container_Manager = _unresolved_2.Container_Manager; }], execute: function () { _crd = true; _cclegacy._RF.push({}, "efc87WIo/pPjbu6aYJ5woDB", "UI_Idiom", undefined); __checkObsolete__(['_decorator', 'Component', 'DynamicAtlasManager', 'instantiate', 'Label', 'macro', 'Node', 'Prefab']); ({ ccclass, property } = _decorator); _export("UI_Idioms", UI_Idioms = (_dec = ccclass('UI_Idioms'), _dec2 = property(Prefab), _dec(_class = (_class2 = (_class3 = class UI_Idioms extends Component { constructor() { super(...arguments); // 明确初始化为 null this.count = 20; _initializerDefineProperty(this, "idiom", _descriptor, this); } start() { if (!UI_Idioms.instance) { UI_Idioms.instance = this; } } update(deltaTime) {} init() { console.log("init"); for (var i = 0; i < this.count; i++) { var node = instantiate(this.idiom); node.parent = this.node; console.log("label" + (_crd && Container_Manager === void 0 ? (_reportPossibleCrUseOfContainer_Manager({ error: Error() }), Container_Manager) : Container_Manager).instance.idioms[i]); node.getChildByName('Label').getComponent(Label).string = (_crd && Container_Manager === void 0 ? (_reportPossibleCrUseOfContainer_Manager({ error: Error() }), Container_Manager) : Container_Manager).instance.idioms[i].idiom; } } }, _class3.instance = null, _class3), (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "idiom", [_dec2], { configurable: true, enumerable: true, writable: true, initializer: function initializer() { return null; } })), _class2)) || _class)); _cclegacy._RF.pop(); _crd = false; } }; }); //# sourceMappingURL=faf10dfefd001bb481c92770ae8c9f6ef5360f2f.js.map