"use strict";
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
const artblocks_logo = require("../assets/logo/artblocks logo.ico.js");
const AsyncArt_logo = require("../assets/logo/AsyncArt_logo.jpg.js");
const azuki_logo = require("../assets/logo/azuki logo.ico.js");
const bilibili_logo = require("../assets/logo/bilibili logo.ico.js");
const binance_logo = require("../assets/logo/binance logo.ico.js");
const coinbase_logo = require("../assets/logo/coinbase logo.png.js");
const foundation_logo = require("../assets/logo/foundation logo.png.js");
const gem_logo = require("../assets/logo/gem logo.png.js");
const ipfs_logo = require("../assets/logo/ipfs logo.ico.js");
const kalamint_logo = require("../assets/logo/kalamint logo.png.js");
const KnownOrigin_logo = require("../assets/logo/KnownOrigin logo.png.js");
const looksrare_logo = require("../assets/logo/looksrare logo.png.js");
const magiceden_logo = require("../assets/logo/magiceden logo.png.js");
const MakersPlace_logo = require("../assets/logo/MakersPlace logo.png.js");
const mirror_logo = require("../assets/logo/mirror logo.png.js");
const nftgo_logo = require("../assets/logo/nftgo logo.ico.js");
const nftscan_logo = require("../assets/logo/nftscan logo.png.js");
const nifty_logo = require("../assets/logo/nifty logo.png.js");
const objkt_logo = require("../assets/logo/objkt logo.png.js");
const opensea_logo = require("../assets/logo/opensea logo.png.js");
const raribleLogo = require("../assets/logo/rarible-logo.jpeg.js");
const solanart_logo = require("../assets/logo/solanart logo.webp.js");
const superrare_logo = require("../assets/logo/superrare logo.jpeg.js");
const tofunft_logo = require("../assets/logo/tofunft logo.ico.js");
const treasureland_logo = require("../assets/logo/treasureland logo.svg.js");
const tryshowtime_logo = require("../assets/logo/tryshowtime logo.png.js");
const twitter_logo = require("../assets/logo/twitter logo.png.js");
const viv3_logo = require("../assets/logo/viv3 logo.png.js");
const youtube_logo = require("../assets/logo/youtube logo.png.js");
const zora_logo = require("../assets/logo/zora logo.png.js");
const nftPlatformMap = [
  {
    platformUrl: ["opensea"],
    logo: opensea_logo,
    name: "OpenSea"
    /* Opensea */
  },
  {
    platformUrl: ["superrare"],
    logo: superrare_logo,
    name: "SuperRare"
    /* Superrare */
  },
  {
    platformUrl: ["zora"],
    logo: zora_logo,
    name: "Zora"
    /* Zora */
  },
  {
    platformUrl: ["foundation"],
    logo: foundation_logo,
    name: "Foundation"
    /* Foundation */
  },
  {
    platformUrl: ["twitter"],
    logo: twitter_logo,
    name: "Twitter"
    /* Twitter */
  },
  {
    platformUrl: ["rarible.com"],
    logo: raribleLogo,
    name: "Rarible"
    /* Rarible */
  },
  {
    platformUrl: ["niftygateway"],
    logo: nifty_logo,
    name: "NiftyGateway"
    /* NiftyGateway */
  },
  {
    platformUrl: ["async.art"],
    logo: AsyncArt_logo,
    name: "AsyncArt"
    /* AsyncArt */
  },
  {
    platformUrl: ["knownorigin"],
    logo: KnownOrigin_logo,
    name: "KnownOrigin"
    /* KnownOrigin */
  },
  {
    platformUrl: ["makersplace"],
    logo: MakersPlace_logo,
    name: "Makersplace"
    /* MakerSplace */
  },
  {
    platformUrl: ["tryshowtime"],
    logo: tryshowtime_logo,
    name: "Tryshowtime"
    /* Tryshowtime */
  },
  {
    platformUrl: ["magiceden"],
    logo: magiceden_logo,
    name: "MagicEden"
    /* Magiceden */
  },
  {
    platformUrl: ["objkt"],
    logo: objkt_logo,
    name: "Objkt"
    /* Objkt */
  },
  {
    platformUrl: ["kalamint"],
    logo: kalamint_logo,
    name: "Kalamint"
    /* Kalamint */
  },
  {
    platformUrl: ["viv3"],
    logo: viv3_logo,
    name: "VIV3"
    /* Viv3 */
  },
  {
    platformUrl: ["mirror"],
    logo: mirror_logo,
    name: "Mirror"
    /* Mirror */
  },
  {
    platformUrl: ["bilibili"],
    logo: bilibili_logo,
    name: "Bilibili"
    /* Bilibili */
  },
  {
    platformUrl: ["youtube"],
    logo: youtube_logo,
    name: "Youtube"
    /* Youtube */
  },
  {
    platformUrl: ["tofunft"],
    logo: tofunft_logo,
    name: "Tofunft"
    /* Tofunft */
  },
  {
    platformUrl: ["looksrare"],
    logo: looksrare_logo,
    name: "Looksrare"
    /* Looksrare */
  },
  {
    platformUrl: ["treasureland"],
    logo: treasureland_logo,
    name: "Treasureland"
    /* Treasureland */
  },
  {
    platformUrl: ["nftscan"],
    logo: nftscan_logo,
    name: "Nftscan"
    /* Nftscan */
  },
  {
    platformUrl: ["artblocks"],
    logo: artblocks_logo,
    name: "Artblocks"
    /* Artblocks */
  },
  {
    platformUrl: ["nftgo"],
    logo: nftgo_logo,
    name: "Nftgo"
    /* NftGo */
  },
  {
    platformUrl: ["azuki.com"],
    logo: azuki_logo,
    name: "Azuki"
    /* Azuki */
  },
  {
    platformUrl: ["gem.xyz"],
    logo: gem_logo,
    name: "Gem"
    /* Gem */
  },
  {
    platformUrl: ["solanart.io"],
    logo: solanart_logo,
    name: "Solannart"
    /* Solanart */
  },
  {
    platformUrl: [
      "dweb.link",
      "ipfs.io",
      "ipfs.infura.io",
      "ipfs.pixura.io",
      "ipfs.daonomic.com",
      "ipfs.fleek.co"
    ],
    logo: ipfs_logo,
    name: "IPFS"
    /* IPFS */
  },
  {
    platformUrl: ["nft.coinbase"],
    logo: coinbase_logo,
    name: "Coinbase"
    /* Coinbase */
  },
  {
    platformUrl: ["binance.com"],
    logo: binance_logo,
    name: "Binance"
    /* Binance */
  }
];
function getPlatformType(platformUrl) {
  if (!platformUrl) {
    return "Unknown";
  }
  const url = platformUrl.toLowerCase();
  for (const platform of nftPlatformMap) {
    let varify = false;
    platform.platformUrl.map((linkUrl) => {
      if (url.includes(linkUrl)) {
        varify = true;
      }
      return null;
    });
    if (varify) {
      return platform.name;
    }
  }
  return "Unknown";
}
exports.getPlatformType = getPlatformType;
//# sourceMappingURL=getPlatform.js.map
