"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getAppsCatalogForDevice = void 0;
const device_core_1 = require("@ledgerhq/device-core");
const HttpManagerApiRepositoryFactory_1 = require("../factories/HttpManagerApiRepositoryFactory");
const manager_1 = require("../../manager");
function getAppsCatalogForDevice(deviceInfo, managerApiRepository = HttpManagerApiRepositoryFactory_1.HttpManagerApiRepositoryFactory.getInstance()) {
    const { version: firmwareVersion, targetId } = deviceInfo;
    const provider = (0, manager_1.getProviderId)(deviceInfo);
    return (0, device_core_1.getAppsCatalogForDevice)({ firmwareVersion, targetId, provider }, managerApiRepository);
}
exports.getAppsCatalogForDevice = getAppsCatalogForDevice;
//# sourceMappingURL=getAppsCatalogForDevice.js.map