"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.typeArray = exports.revokeJsonProxy2 = exports.revokeJsonProxy = exports.revokeImageProxy = exports.jsonProxy2 = exports.jsonProxy = exports.imageProxy = exports.defaultplatformInExplore = exports.defaultplatform = exports.avatarProxy = exports.StorageType = exports.SortType = exports.SortBy = exports.ShareBoxPosition = exports.PAGE = exports.LATEST_VERSION = exports.IpfsGateway = exports.FeedsType = exports.EventType = exports.DEFAULT_COLLECTIONS = exports.CollectionType = exports.BookmarkType = void 0;
var _compatibility = require("./compatibility");
const jsonProxyUrl = process.env.PROXY1;
const jsonProxyUrl2 = process.env.PROXY2;
const imageProxyStart = 'https://ik.imagekit.io/p/';
const imageProxyEnd = '?tr=n-card';
const jsonProxy = url => `${jsonProxyUrl}${encodeURIComponent(url)}`;
exports.jsonProxy = jsonProxy;
const jsonProxy2 = url => `${jsonProxyUrl2}${encodeURIComponent(url)}`;
exports.jsonProxy2 = jsonProxy2;
const imageProxy = url => `${imageProxyStart}${encodeURIComponent(url)}${imageProxyEnd}`;
exports.imageProxy = imageProxy;
const avatarProxy = address => `https://context.app/api/avatar/${address}?size=40`;
exports.avatarProxy = avatarProxy;
const revokeJsonProxy = url => decodeURIComponent(url.replaceAll(jsonProxyUrl, '').replaceAll(encodeURIComponent(jsonProxyUrl), ''));
exports.revokeJsonProxy = revokeJsonProxy;
const revokeJsonProxy2 = url => decodeURIComponent(url.replaceAll(jsonProxyUrl2, '').replaceAll(encodeURIComponent(jsonProxyUrl2), ''));
exports.revokeJsonProxy2 = revokeJsonProxy2;
const revokeImageProxy = url => decodeURIComponent(url.replaceAll(imageProxyStart, '').replaceAll(imageProxyEnd, ''));
exports.revokeImageProxy = revokeImageProxy;
let version = '0.5.11';
if ((0, _compatibility.isFireFox)()) {
  version = '0.4.8';
}
const LATEST_VERSION = version;
exports.LATEST_VERSION = LATEST_VERSION;
const defaultplatform = 'Marketplace';
exports.defaultplatform = defaultplatform;
const defaultplatformInExplore = 'Marketplace';
exports.defaultplatformInExplore = defaultplatformInExplore;
let PAGE;
exports.PAGE = PAGE;
(function (PAGE) {
  PAGE["LOGIN"] = "Login";
  PAGE["HOME"] = "Home";
  PAGE["SPACE"] = "Space";
  PAGE["EXPLORE"] = "Explore";
  PAGE["FEEDS"] = "Feeds";
  PAGE["DATA"] = "Data";
  PAGE["SETTINGS"] = "Settings";
})(PAGE || (exports.PAGE = PAGE = {}));
let CollectionType;
exports.CollectionType = CollectionType;
(function (CollectionType) {
  CollectionType["ALL"] = "Curated";
  CollectionType["CREATED"] = "Created";
  CollectionType["OWNED"] = "Owned";
  CollectionType["PAID"] = "Paid";
  CollectionType["UNTITLED"] = "Untitled";
  CollectionType["Collections"] = "Collections";
  CollectionType["EXPLORE"] = "Explore";
  CollectionType["FEEDS"] = "Feeds";
})(CollectionType || (exports.CollectionType = CollectionType = {}));
let StorageType;
exports.StorageType = StorageType;
(function (StorageType) {
  StorageType["DID"] = "DID";
  StorageType["AVATAR"] = "AVATAR";
  StorageType["LNG"] = "i18nextLng";
  StorageType["TUTORIAL_VISIBLE"] = "TUTORIAL_VISIBLE";
  StorageType["API_TOKEN"] = "API_TOKEN";
})(StorageType || (exports.StorageType = StorageType = {}));
let FeedsType;
exports.FeedsType = FeedsType;
(function (FeedsType) {
  FeedsType["Community"] = "Community";
  FeedsType["Collectors"] = "Collectors";
  FeedsType["Artists"] = "Artists";
  FeedsType["Loot"] = "Loot";
  FeedsType["Punk"] = "CryptoPunk";
  FeedsType["FWB"] = "FWB";
  FeedsType["FingerprintsDAO"] = "Fingerprint";
  FeedsType["Followings"] = "Followings";
})(FeedsType || (exports.FeedsType = FeedsType = {}));
let EventType;
exports.EventType = EventType;
(function (EventType) {
  EventType["mint"] = "minted";
  EventType["bid"] = "bid";
  EventType["buy"] = "purchased";
  EventType["sale"] = "sold";
  EventType["transfer"] = "transferred";
})(EventType || (exports.EventType = EventType = {}));
const typeArray = ['NFT', 'Mirror', 'Video', 'File', 'Website', 'Folder'];
exports.typeArray = typeArray;
let BookmarkType;
exports.BookmarkType = BookmarkType;
(function (BookmarkType) {
  BookmarkType[BookmarkType["COLLECTION"] = 0] = "COLLECTION";
  BookmarkType[BookmarkType["CURATION"] = 1] = "CURATION";
})(BookmarkType || (exports.BookmarkType = BookmarkType = {}));
let ShareBoxPosition;
exports.ShareBoxPosition = ShareBoxPosition;
(function (ShareBoxPosition) {
  ShareBoxPosition[ShareBoxPosition["top"] = 0] = "top";
  ShareBoxPosition[ShareBoxPosition["bottom"] = 1] = "bottom";
})(ShareBoxPosition || (exports.ShareBoxPosition = ShareBoxPosition = {}));
let SortType;
exports.SortType = SortType;
(function (SortType) {
  SortType["cell"] = "cell";
  SortType["list"] = "list";
})(SortType || (exports.SortType = SortType = {}));
let SortBy;
exports.SortBy = SortBy;
(function (SortBy) {
  SortBy["normal"] = "normal";
  SortBy["date"] = "date";
  SortBy["collectionName"] = "collectionName";
  SortBy["type"] = "type";
  SortBy["chain"] = "chain";
})(SortBy || (exports.SortBy = SortBy = {}));
const DEFAULT_COLLECTIONS = [CollectionType.ALL, CollectionType.CREATED, CollectionType.OWNED];
exports.DEFAULT_COLLECTIONS = DEFAULT_COLLECTIONS;
let IpfsGateway;
exports.IpfsGateway = IpfsGateway;
(function (IpfsGateway) {
  IpfsGateway[IpfsGateway["NFTStorage"] = 0] = "NFTStorage";
  IpfsGateway[IpfsGateway["Web3Storage"] = 1] = "Web3Storage";
})(IpfsGateway || (exports.IpfsGateway = IpfsGateway = {}));