export type PricingPlanCard = {
  id: number;
  title: string;
  subtitle: string;
  price: string;
  periodLabel: string;
  description: string;
  buttonLabel: string;
  buttonPath: string;
  cardClassName?: string;
};

export type PricingTab = {
  id: string;
  label: string;
  plans: PricingPlanCard[];
};

export type CompareColumn = {
  id: string;
  planName: string;
  planPrice: string;
};

export type CompareFeatureValue =
  | { type: "text"; value: string }
  | { type: "boolean"; value: boolean };

export type CompareRow = {
  id: string;
  title: string;
  rowClassName?: string;
  values: CompareFeatureValue[];
};

export type CompareCta = {
  id: string;
  label: string;
  path: string;
  buttonClassName: string;
};

export type ComparePricePreset = {
  ctaId: string;
  prices: string[];
};

const basePlans: PricingPlanCard[] = [
  {
    id: 1,
    title: "Basic Package",
    subtitle: "Perfect for individuals, small businesses",
    price: "$18.00",
    periodLabel: "/monthly package",
    description:
      "Perfect for individuals or small businesses, it offers core features rate without on quality.",
    buttonLabel: "Start 7th Days Free Trial",
    buttonPath: "#",
  },
  {
    id: 2,
    title: "Standard Package",
    subtitle: "Great for growing teams power flexibility.",
    price: "$58.00",
    periodLabel: "/monthly package",
    description:
      "Designed for growing businesses, it includes all the essentials from the Basic Package plus",
    buttonLabel: "Start 7th Days Free Trial",
    buttonPath: "#",
    cardClassName: "v2",
  },
  {
    id: 3,
    title: "Custom Package",
    subtitle: "For high-performance chat automation",
    price: "$98.00",
    periodLabel: "/monthly package",
    description:
      "Perfect for individuals or small businesses, it offers core features rate without on quality.",
    buttonLabel: "Start 7th Days Free Trial",
    buttonPath: "#",
  },
];

export const pricingTabs: PricingTab[] = [
  {
    id: "monthly",
    label: "Monthly",
    plans: basePlans,
  },
  {
    id: "yearly",
    label: "Yearly - Save 23%",
    plans: basePlans,
  },
];

export const compareColumns: CompareColumn[] = [
  { id: "basic", planName: "Basic", planPrice: "$19" },
  { id: "professional", planName: "Professional", planPrice: "$49" },
  { id: "enterprise", planName: "Enterprise", planPrice: "$99" },
];

export const compareRows: CompareRow[] = [
  {
    id: "contacts-limit",
    title: "Contacts Limit",
    values: [
      { type: "text", value: "Up to 1,000" },
      { type: "text", value: "Up to 10,000" },
      { type: "text", value: "Unlimited" },
    ],
  },
  {
    id: "users",
    title: "Users",
    rowClassName: "v2",
    values: [
      { type: "text", value: "1 User" },
      { type: "text", value: "Up to 5 Users" },
      { type: "text", value: "Unlimited" },
    ],
  },
  {
    id: "lead-contact-management",
    title: "Lead & Contact Management",
    values: [
      { type: "boolean", value: true },
      { type: "boolean", value: true },
      { type: "boolean", value: true },
    ],
  },
  {
    id: "sales-pipeline",
    title: "Sales Pipeline",
    rowClassName: "v2",
    values: [
      { type: "boolean", value: true },
      { type: "boolean", value: true },
      { type: "boolean", value: true },
    ],
  },
  {
    id: "marketing-automation",
    title: "Marketing Automation",
    values: [
      { type: "boolean", value: false },
      { type: "boolean", value: true },
      { type: "boolean", value: true },
    ],
  },
  {
    id: "analytics-reporting",
    title: "Analytics & Reporting",
    rowClassName: "v2",
    values: [
      { type: "text", value: "Basic Reports" },
      { type: "text", value: "Advanced Reports" },
      { type: "text", value: "Custom Reports" },
    ],
  },
  {
    id: "integrations",
    title: "Integrations",
    values: [
      { type: "text", value: "Limited" },
      { type: "text", value: "Full Integrations" },
      { type: "text", value: "Premium Integrations" },
    ],
  },
  {
    id: "dedicated-support",
    title: "Dedicated Support",
    rowClassName: "v2",
    values: [
      { type: "text", value: "Email Support" },
      { type: "text", value: "Priority Support" },
      { type: "text", value: "24/7 Dedicated Support" },
    ],
  },
  {
    id: "customization-options",
    title: "Customization Options",
    values: [
      { type: "text", value: "Limited" },
      { type: "text", value: "Moderate" },
      { type: "text", value: "Full Customization" },
    ],
  },
];

export const compareCtas: CompareCta[] = [
  { id: "cta-basic", label: "Select Basic", path: "#", buttonClassName: "btn-style1 v3" },
  { id: "cta-pro", label: "Select Pro", path: "#", buttonClassName: "btn-style1 v3" },
  { id: "cta-max", label: "Select Max", path: "#", buttonClassName: "btn-style1 v3" },
];

export const comparePricePresets: ComparePricePreset[] = [
  { ctaId: "cta-basic", prices: ["$19", "$49", "$99"] },
  { ctaId: "cta-pro", prices: ["$29", "$59", "$109"] },
  { ctaId: "cta-max", prices: ["$39", "$69", "$129"] },
];
