import artBlock from "../assets/logo/artblocks logo.ico.js";
import asyncArt from "../assets/logo/AsyncArt_logo.jpg.js";
import azuki from "../assets/logo/azuki logo.ico.js";
import bilibili from "../assets/logo/bilibili logo.ico.js";
import binance from "../assets/logo/binance logo.ico.js";
import coinbase from "../assets/logo/coinbase logo.png.js";
import foundation from "../assets/logo/foundation logo.png.js";
import gem from "../assets/logo/gem logo.png.js";
import ipfs from "../assets/logo/ipfs logo.ico.js";
import kalamint from "../assets/logo/kalamint logo.png.js";
import knownOrigin from "../assets/logo/KnownOrigin logo.png.js";
import looksrare from "../assets/logo/looksrare logo.png.js";
import magiceden from "../assets/logo/magiceden logo.png.js";
import makersplace from "../assets/logo/MakersPlace logo.png.js";
import mirror from "../assets/logo/mirror logo.png.js";
import nftgo from "../assets/logo/nftgo logo.ico.js";
import nftscan from "../assets/logo/nftscan logo.png.js";
import nifty from "../assets/logo/nifty logo.png.js";
import objkt from "../assets/logo/objkt logo.png.js";
import opensea from "../assets/logo/opensea logo.png.js";
import rarible from "../assets/logo/rarible-logo.jpeg.js";
import solanart from "../assets/logo/solanart logo.webp.js";
import superrare from "../assets/logo/superrare logo.jpeg.js";
import tofunft from "../assets/logo/tofunft logo.ico.js";
import treasureland from "../assets/logo/treasureland logo.svg.js";
import tryshowtime from "../assets/logo/tryshowtime logo.png.js";
import twitter from "../assets/logo/twitter logo.png.js";
import viv3 from "../assets/logo/viv3 logo.png.js";
import youtube from "../assets/logo/youtube logo.png.js";
import zora from "../assets/logo/zora logo.png.js";
const nftPlatformMap = [
  {
    platformUrl: ["opensea"],
    logo: opensea,
    name: "OpenSea"
    /* Opensea */
  },
  {
    platformUrl: ["superrare"],
    logo: superrare,
    name: "SuperRare"
    /* Superrare */
  },
  {
    platformUrl: ["zora"],
    logo: zora,
    name: "Zora"
    /* Zora */
  },
  {
    platformUrl: ["foundation"],
    logo: foundation,
    name: "Foundation"
    /* Foundation */
  },
  {
    platformUrl: ["twitter"],
    logo: twitter,
    name: "Twitter"
    /* Twitter */
  },
  {
    platformUrl: ["rarible.com"],
    logo: rarible,
    name: "Rarible"
    /* Rarible */
  },
  {
    platformUrl: ["niftygateway"],
    logo: nifty,
    name: "NiftyGateway"
    /* NiftyGateway */
  },
  {
    platformUrl: ["async.art"],
    logo: asyncArt,
    name: "AsyncArt"
    /* AsyncArt */
  },
  {
    platformUrl: ["knownorigin"],
    logo: knownOrigin,
    name: "KnownOrigin"
    /* KnownOrigin */
  },
  {
    platformUrl: ["makersplace"],
    logo: makersplace,
    name: "Makersplace"
    /* MakerSplace */
  },
  {
    platformUrl: ["tryshowtime"],
    logo: tryshowtime,
    name: "Tryshowtime"
    /* Tryshowtime */
  },
  {
    platformUrl: ["magiceden"],
    logo: magiceden,
    name: "MagicEden"
    /* Magiceden */
  },
  {
    platformUrl: ["objkt"],
    logo: objkt,
    name: "Objkt"
    /* Objkt */
  },
  {
    platformUrl: ["kalamint"],
    logo: kalamint,
    name: "Kalamint"
    /* Kalamint */
  },
  {
    platformUrl: ["viv3"],
    logo: viv3,
    name: "VIV3"
    /* Viv3 */
  },
  {
    platformUrl: ["mirror"],
    logo: mirror,
    name: "Mirror"
    /* Mirror */
  },
  {
    platformUrl: ["bilibili"],
    logo: bilibili,
    name: "Bilibili"
    /* Bilibili */
  },
  {
    platformUrl: ["youtube"],
    logo: youtube,
    name: "Youtube"
    /* Youtube */
  },
  {
    platformUrl: ["tofunft"],
    logo: tofunft,
    name: "Tofunft"
    /* Tofunft */
  },
  {
    platformUrl: ["looksrare"],
    logo: looksrare,
    name: "Looksrare"
    /* Looksrare */
  },
  {
    platformUrl: ["treasureland"],
    logo: treasureland,
    name: "Treasureland"
    /* Treasureland */
  },
  {
    platformUrl: ["nftscan"],
    logo: nftscan,
    name: "Nftscan"
    /* Nftscan */
  },
  {
    platformUrl: ["artblocks"],
    logo: artBlock,
    name: "Artblocks"
    /* Artblocks */
  },
  {
    platformUrl: ["nftgo"],
    logo: nftgo,
    name: "Nftgo"
    /* NftGo */
  },
  {
    platformUrl: ["azuki.com"],
    logo: azuki,
    name: "Azuki"
    /* Azuki */
  },
  {
    platformUrl: ["gem.xyz"],
    logo: gem,
    name: "Gem"
    /* Gem */
  },
  {
    platformUrl: ["solanart.io"],
    logo: solanart,
    name: "Solannart"
    /* Solanart */
  },
  {
    platformUrl: [
      "dweb.link",
      "ipfs.io",
      "ipfs.infura.io",
      "ipfs.pixura.io",
      "ipfs.daonomic.com",
      "ipfs.fleek.co"
    ],
    logo: ipfs,
    name: "IPFS"
    /* IPFS */
  },
  {
    platformUrl: ["nft.coinbase"],
    logo: coinbase,
    name: "Coinbase"
    /* Coinbase */
  },
  {
    platformUrl: ["binance.com"],
    logo: binance,
    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";
}
export {
  getPlatformType
};
//# sourceMappingURL=getPlatform.js.map
