"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.HttpManagerApiRepositoryFactory = exports.StubManagerApiRepository = void 0;
const live_env_1 = require("@ledgerhq/live-env");
const package_json_1 = require("../../../package.json");
const device_core_1 = require("@ledgerhq/device-core");
var device_core_2 = require("@ledgerhq/device-core");
Object.defineProperty(exports, "StubManagerApiRepository", { enumerable: true, get: function () { return device_core_2.StubManagerApiRepository; } });
class HttpManagerApiRepositoryFactory {
    static instance;
    static getInstance() {
        if (!this.instance) {
            this.instance = new device_core_1.HttpManagerApiRepository((0, live_env_1.getEnv)("MANAGER_API_BASE"), package_json_1.version);
        }
        return this.instance;
    }
}
exports.HttpManagerApiRepositoryFactory = HttpManagerApiRepositoryFactory;
//# sourceMappingURL=HttpManagerApiRepositoryFactory.js.map