"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.PresenterTemplate = void 0;
const common_1 = require("@nestjs/common");
const stack_1 = require("../../utils/stack");
const position_template_decorator_1 = require("./position-template.decorator");
const PresenterTemplate = () => {
    return (target) => {
        const [, , , templateFile] = (0, stack_1.getStack)();
        try {
            const { appId, network } = (0, position_template_decorator_1.getTemplateFragments)(templateFile.getFileName());
            target.prototype.appId = appId;
            target.prototype.network = network;
        }
        catch (e) {
            console.error(e);
        }
        return (0, common_1.Injectable)()(target);
    };
};
exports.PresenterTemplate = PresenterTemplate;
//# sourceMappingURL=presenter-template.decorator.js.map