import Fuse from "fuse.js";
import CarouselImage2 from "../../assets/landingPageAssets/agenticIcons/12.png";
import CarouselImage1 from "../../assets/landingPageAssets/carouselImages/image-2.png";
import CarouselImage3 from "../../assets/landingPageAssets/agenticIcons/15.png";
import CarouselImage4 from "../../assets/landingPageAssets/agenticIcons/19.png";
import CarouselImage5 from "../../assets/landingPageAssets/agenticIcons/8.png";
import CarouselImage6 from "../../assets/landingPageAssets/agenticIcons/6.png";
import Image1 from "../../assets/landingPageAssets/agenticIcons/24.png";
import Image2 from "../../assets/landingPageAssets/agenticIcons/1.png";
import Image3 from "../../assets/landingPageAssets/agenticIcons/2.png";
import Image4 from "../../assets/landingPageAssets/agenticIcons/3.png";
import Image5 from "../../assets/landingPageAssets/agenticIcons/4.png";
import Image6 from "../../assets/landingPageAssets/agenticIcons/5.png";
import Image7 from "../../assets/landingPageAssets/agenticIcons/6.png";
import Image8 from "../../assets/landingPageAssets/agenticIcons/7.png";
import Image9 from "../../assets/landingPageAssets/agenticIcons/8.png";
import Image10 from "../../assets/landingPageAssets/agenticIcons/9.png";
import Image11 from "../../assets/landingPageAssets/agenticIcons/10.png";
import Image12 from "../../assets/landingPageAssets/agenticIcons/11.png";
import Image13 from "../../assets/landingPageAssets/agenticIcons/12.png";
import Image14 from "../../assets/landingPageAssets/agenticIcons/13.png";
import Image15 from "../../assets/landingPageAssets/agenticIcons/14.png";
import Image16 from "../../assets/landingPageAssets/agenticIcons/15.png";
import Image17 from "../../assets/landingPageAssets/agenticIcons/16.png";
import Image18 from "../../assets/landingPageAssets/agenticIcons/17.png";
import Image19 from "../../assets/landingPageAssets/agenticIcons/18.png";
import Image20 from "../../assets/landingPageAssets/agenticIcons/19.png";
import Image21 from "../../assets/landingPageAssets/agenticIcons/20.png";
import Image22 from "../../assets/landingPageAssets/agenticIcons/21.png";
import Image23 from "../../assets/landingPageAssets/agenticIcons/22.png";
import Image24 from "../../assets/landingPageAssets/agenticIcons/23.png";
import StarIcon1 from "../../assets/landingPageAssets/agenticIcons/starIcon1.svg";
import StarIcon2 from "../../assets/landingPageAssets/agenticIcons/starIcon2.svg";
import StarIcon3 from "../../assets/landingPageAssets/agenticIcons/starIcon3.svg";
import StarIcon4 from "../../assets/landingPageAssets/agenticIcons/starIcon4.svg";
import StarIcon5 from "../../assets/landingPageAssets/agenticIcons/starIcon5.svg";

// Client logos (individual files)
import logoAAA from "../../assets/clientLogos/aaa.png";
import logoAlFuttaim from "../../assets/clientLogos/al-futtaim.png";
import logoArhaus from "../../assets/clientLogos/arhaus.png";
import logoAsleyStewart from "../../assets/clientLogos/asley-stewart.png";
import logoBigLots from "../../assets/clientLogos/biglots.png";
import logoBjs from "../../assets/clientLogos/bjs.png";
import logoBriscoe from "../../assets/clientLogos/briscoe.png";
import logoCarters from "../../assets/clientLogos/carters.png";
import logoCb from "../../assets/clientLogos/cb.png";
import logoCoach from "../../assets/clientLogos/coach.png";
import logoDollarGeneral from "../../assets/clientLogos/dollargeneral.png";
import logoFossil from "../../assets/clientLogos/fossil.png";
import logoGForge from "../../assets/clientLogos/g-forge.png";
import logoHeritageGrocers from "../../assets/clientLogos/heritage-grocers.png";
import logoJared from "../../assets/clientLogos/jared.png";
import logoJoaan from "../../assets/clientLogos/joaan.png";
import logoKateSpade from "../../assets/clientLogos/katespade.png";
import logoKay from "../../assets/clientLogos/kay.png";
import logoKik from "../../assets/clientLogos/kik.png";
import logoLeslies from "../../assets/clientLogos/leslies.png";
import logoLevis from "../../assets/clientLogos/lsco_logo_red.jpg";
import logoMS from "../../assets/clientLogos/m-s.png";
import logoOshkosh from "../../assets/clientLogos/oshkosh.png";
import logoPantagonia from "../../assets/clientLogos/pantagonia.png";
import logoPeterMillar from "../../assets/clientLogos/peter-millar.png";
import logoPink from "../../assets/clientLogos/pink.png";
import logoPittaRoso from "../../assets/clientLogos/pitta-roso.png";
import logoPsp from "../../assets/clientLogos/psp.png";
import logoRalphLauren from "../../assets/clientLogos/ralphlauren.png";
import logoRebel from "../../assets/clientLogos/rebel.png";
import logoScarpe from "../../assets/clientLogos/scarpe.png";
import logoShadeStore from "../../assets/clientLogos/shade-store.png";
import logoSignet from "../../assets/clientLogos/signet.png";
import logoSo5 from "../../assets/clientLogos/so5.png";
import logoSpanx from "../../assets/clientLogos/spanx.png";
import logoSteveMadden from "../../assets/clientLogos/stevemadden.png";
import logoStuart from "../../assets/clientLogos/stuart.png";
import logoTillys from "../../assets/clientLogos/tillys.png";
import logoTommyBahama from "../../assets/clientLogos/tommy-bahama.png";
import logoVs from "../../assets/clientLogos/vs.png";
import logoZales from "../../assets/clientLogos/zales.png";
import logoLovisa from "../../assets/clientLogos/lovisa_1.png";
import logoFigs from "../../assets/clientLogos/figs.svg";
import logoBalsum from "../../assets/clientLogos/Balsam.svg";
import logoPacSun from "../../assets/clientLogos/PACSUN.png";
import logoStarBoard from "../../assets/clientLogos/Starboard.svg";
import logoTapsetry from  "../../assets/clientLogos/tapestry.png";
import logoCNA from  "../../assets/clientLogos/cna.png";

export const CAROUSEL_IMAGES = [
  CarouselImage1,
  CarouselImage2,
  CarouselImage3,
  CarouselImage4,
  CarouselImage5,
  CarouselImage6,
];

export const CAROUSEL_IMAGES_TEXT = [
  "KVI KVC Recommendation",
  "SOP/ Policy Navigator",
  "Campaign brief generator",
  "Anomaly detector",
  "Promotion Effectiveness Analyser",
  "Label and Compliance checker",
];

export const AGENTIC_USECASES = [
  // Group 1
  {
    name: "Tariff Mitigation Analytics",
    description: "Analyze tariff impacts and identify mitigation strategies.",
    background: "#FFF9F5",
    borderColor: "#FFBE9A",
    backgroundImage: StarIcon1,
    image: Image1,
  },
  {
    name: "Store & Product Clustering Agent",
    description: "Group similar stores and products by relevant attributes.",
    background: "#F1FCFF",
    borderColor: "#2BBFEE",
    backgroundImage: StarIcon2,
    image: Image2,
  },
  {
    name: "KVI and KVC Recommendation",
    description:
      "Automatically identify Key Value Items and Key Value Categories.",
    background: "#F9F9FF",
    borderColor: "#6962EF",
    backgroundImage: StarIcon4,
    image: Image3,
  },
  {
    name: "Localized Size Curve Optimization",
    description: "Automatically optimize size distributions by location.",
    background: "#069A760D",
    borderColor: "#069A76",
    backgroundImage: StarIcon5,
    image: Image6,
  },
  {
    name: "Dynamic Pricing Agent",
    description:
      "Continuously adjust prices based on demand, seasonality, and competition.",
    background: "#F2F6FF",
    borderColor: "#607CBA",
    backgroundImage: StarIcon3,
    image: Image20,
  },
  {
    name: "Promotion Optimizer Agent",
    description: "Optimize promo mix, depth, and timing for maximum ROI.",
    background: "#F9F9FF",
    borderColor: "#6962EF",
    backgroundImage: StarIcon4,
    image: Image9,
  },
  {
    name: "Ad-Spend Allocator Agent",
    description: "Allocate budget across channels and audiences to hit goals.",
    background: "#F1FCFF",
    borderColor: "#2BBFEE",
    backgroundImage: StarIcon2,
    image: Image21,
  },

  // Group 2
  {
    name: "Trend Radar Agent",
    description: "Detect emerging trends from search, social, and sales data.",
    background: "#FFF9F5",
    borderColor: "#FFBE9A",
    backgroundImage: StarIcon1,
    image: Image15,
  },
  {
    name: "Audience Micro-Segmentation Agent",
    description: "Discover granular customer cohorts for targeted activation.",
    background: "#F1FCFF",
    borderColor: "#2BBFEE",
    backgroundImage: StarIcon2,
    image: Image22,
  },
  {
    name: "Campaign Creative Generator Agent",
    description: "Generate on-brand concepts, copy, and variants at scale.",
    background: "#F2F6FF",
    borderColor: "#607CBA",
    backgroundImage: StarIcon3,
    image: Image16,
  },
  {
    name: "Email & SMS Personalizer Agent",
    description: "Personalize messages using customer behavior and context.",
    background: "#F9F9FF",
    borderColor: "#6962EF",
    backgroundImage: StarIcon4,
    image: Image23,
  },
  {
    name: "Influencer Matchmaker Agent",
    description: "Find creators with the best audience fit and predicted lift.",
    background: "#069A760D",
    borderColor: "#069A76",
    backgroundImage: StarIcon5,
    image: Image11,
  },
  {
    name: "Marketing-Mix Modeling Agent",
    description: "Measure channel contribution and optimize spend allocation.",
    background: "#F1FCFF",
    borderColor: "#2BBFEE",
    backgroundImage: StarIcon2,
    image: Image18,
  },
  {
    name: "Cross-Channel Attribution Agent",
    description: "Attribute impact across journeys beyond last-click bias.",
    background: "#F2F6FF",
    borderColor: "#607CBA",
    backgroundImage: StarIcon3,
    image: Image14,
  },
  {
    name: "SEO Content Optimizer Agent",
    description: "Create search-optimized content tailored to user intent.",
    background: "#FFF9F5",
    borderColor: "#FFBE9A",
    backgroundImage: StarIcon1,
    image: Image24,
  },

  // Group 3
  {
    name: "Product Description Generator",
    description:
      "Generate product descriptions for each item using guidelines.",
    background: "#F2F6FF",
    borderColor: "#607CBA",
    backgroundImage: StarIcon3,
    image: Image4,
  },
  {
    name: "Agent Assist",
    description:
      "Enable customer support representatives to access accurate answers.",
    background: "#F9F9FF",
    borderColor: "#6962EF",
    backgroundImage: StarIcon4,
    image: Image8,
  },
  {
    name: "Product FAQ Generator",
    description: "Generate product descriptions using guidelines.",
    background: "#F2F6FF",
    borderColor: "#607CBA",
    backgroundImage: StarIcon3,
    image: Image12,
  },
  {
    name: "Personalized Product Recommendation",
    description: "Serve tailored recommendations across channels in real time.",
    background: "#F1FCFF",
    borderColor: "#2BBFEE",
    backgroundImage: StarIcon2,
    image: Image5,
  },
  {
    name: "Cart-Recovery Nudge Agent",
    description: "Recover abandoned carts with contextual, timed nudges.",
    background: "#069A760D",
    borderColor: "#069A76",
    backgroundImage: StarIcon5,
    image: Image7,
  },
];

export const CLIENT_LOGOS = [
  { name: "Ralph Lauren", image: logoRalphLauren },
  { name: "Coach", image: logoCoach },
  { name: "Tommy Bahama", image: logoTommyBahama },
  { name: "carter's", image: logoCarters },
  { name: "kate spade", image: logoKateSpade },
  { name: "levi-lsa", image: logoLevis },
  { name: "patagonia", image: logoPantagonia },
  { name: "Victoria's Secret", image: logoVs },
  { name: "Starboard", image: logoStarBoard },
  { name: "Saks OFF 5TH", image: logoSo5 },
  { name: "Stuart Weitzman", image: logoStuart },
  { name: "PacSun", image: logoPacSun },
  { name: "M&S", image: logoMS },
  { name: "Cracker Barrel", image: logoCb },
  { name: "Signet Jewelers", image: logoSignet },
  { name: "Steve Madden", image: logoSteveMadden },
  { name: "psp", image: logoPsp },
  { name: "Balsamhill", image: logoBalsum },
  { name: "Tillys", image: logoTillys },
  { name: "lesliespool", image: logoLeslies },
  { name: "Fossil", image: logoFossil },
  { name: "Jared", image: logoJared },
  { name: "Ashley Stewart", image: logoAsleyStewart },
  { name: "OshKosh B'gosh", image: logoOshkosh },
  { name: "Kay Jewelers", image: logoKay },
  { name: "PINK", image: logoPink },
  { name: "REBEL Sport", image: logoRebel },
  { name: "Arhaus", image: logoArhaus },
  { name: "Spanx", image: logoSpanx },
  { name: "FIGS", image: logoFigs },
  { name: "Dollar General", image: logoDollarGeneral },
  { name: "Zales", image: logoZales },
  { name: "PittaRosso", image: logoPittaRoso },
  { name: "Lovisa", image: logoLovisa },
  { name: "Briscoe Group", image: logoBriscoe },
  { name: "Al-Futtaim", image: logoAlFuttaim },
  { name: "AAA", image: logoAAA },
  { name: "kik", image: logoKik },
  { name: "Scarpe&Scarpe", image: logoScarpe },
  { name: "Tapestry", image: logoTapsetry },
  { name: "CNA", image: logoCNA },
];

const fuse = new Fuse(CLIENT_LOGOS, {
  keys: ["name"],
  threshold: 0.3,
  ignoreLocation: true,
});

export const findClient = (clientName) => {
  const results = fuse.search(clientName);
  return results.length > 0 ? results[0].item : null;
};
