"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.INTERNAL_APP_IDS = exports.LEDGER_SHOP_ID = exports.WC_ID = exports.CARD_APP_ID = exports.BUY_SELL_UI_APP_ID = exports.DEFAULT_MULTIBUY_APP_ID = exports.DISCOVER_INITIAL_CATEGORY = exports.DISCOVER_STORE_KEY = exports.DAPP_DISCLAIMER_ID = exports.MAX_RECENTLY_USED_LENGTH = exports.INITIAL_PLATFORM_STATE = exports.HTTP_REGEX = exports.BROWSE_SEARCH_OPTIONS = exports.WALLET_API_VERSION = exports.WALLET_API_FAMILIES = exports.FAMILIES_MAPPING_LL_TO_WAPI = exports.FAMILIES_MAPPING_WAPI_TO_LL = void 0;
const wallet_api_core_1 = require("@ledgerhq/wallet-api-core");
const helpers_1 = require("../helpers");
exports.FAMILIES_MAPPING_WAPI_TO_LL = {
    ethereum: "evm",
    ripple: "xrp",
    elrond: "multiversx",
};
exports.FAMILIES_MAPPING_LL_TO_WAPI = (0, helpers_1.reverseRecord)(exports.FAMILIES_MAPPING_WAPI_TO_LL);
/**
 * FIXME
 * This is not robust, we should have an explicit adapter between the wallet API currencies (families) and live currencies (families)
 * For example here, the `ethereum` family on `wallet-api` should be mapped to the `evm` family on LL
 */
exports.WALLET_API_FAMILIES = [...wallet_api_core_1.FAMILIES, ...Object.values(exports.FAMILIES_MAPPING_WAPI_TO_LL)];
exports.WALLET_API_VERSION = "2.0.0";
exports.BROWSE_SEARCH_OPTIONS = {
    keys: ["name", "categories"],
    threshold: 0.1,
};
exports.HTTP_REGEX = new RegExp(/[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_+.~#?&//=]*)?/gi);
exports.INITIAL_PLATFORM_STATE = {
    recentlyUsed: [],
    currentAccountHist: {},
    cacheBustedLiveApps: { init: 1 },
    localLiveApp: [],
};
exports.MAX_RECENTLY_USED_LENGTH = 10;
exports.DAPP_DISCLAIMER_ID = "PlatformAppDisclaimer";
exports.DISCOVER_STORE_KEY = "discover";
exports.DISCOVER_INITIAL_CATEGORY = "all";
exports.DEFAULT_MULTIBUY_APP_ID = "multibuy-v2";
exports.BUY_SELL_UI_APP_ID = "buy-sell-ui";
exports.CARD_APP_ID = "card-program";
exports.WC_ID = "ledger-wallet-connect";
exports.LEDGER_SHOP_ID = "ledger-shop";
exports.INTERNAL_APP_IDS = [exports.DEFAULT_MULTIBUY_APP_ID, exports.BUY_SELL_UI_APP_ID, exports.CARD_APP_ID];
//# sourceMappingURL=constants.js.map