import { initCatalogue } from '../../../components/_catalogue/catalogue/utils.js';
import { initUserReports } from '../../../components/user-reports/utils.js';

class MyReportsCatalogueController {
    layoutPath;
    services;
    constructor(layoutPath, services) {
        this.layoutPath = layoutPath;
        this.services = services;
    }
    GET = async (req, res) => {
        const args = { res, req, services: this.services };
        const catalogue = await initCatalogue(args);
        const userReportsLists = await initUserReports({ ...args, maxRows: 20 });
        res.render(`dpr/routes/journeys/my-reports-catalogue/view`, {
            layoutPath: this.layoutPath,
            catalogue,
            userReportsLists,
        });
    };
}

export { MyReportsCatalogueController as default };
//# sourceMappingURL=controller.js.map
