"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const live_network_1 = __importDefault(require("@ledgerhq/live-network"));
const live_env_1 = require("@ledgerhq/live-env");
const mock_json_1 = __importDefault(require("./mock.json"));
const api = {
    fetchRampCatalog: async () => {
        if ((0, live_env_1.getEnv)("MOCK")) {
            // TODO: replace this mock on playwright runs with controlled data
            return mock_json_1.default;
        }
        const { data } = await (0, live_network_1.default)({
            method: "GET",
            headers: {
                Origin: "http://localhost:3000",
            },
            url: `${(0, live_env_1.getEnv)("BUY_API_BASE")}/provider/currencies?currency=crypto`,
        });
        return data;
    },
};
exports.default = api;
//# sourceMappingURL=index.js.map