import type { BuilderScreen } from "@/lib/admin/builder/types";
import { 
  buildDefaultHeader,
  buildDefaultTitle,
  buildDefaultSubtitle,
  buildDefaultBottomActionButton,
  buildDefaultNavigation,
  buildDefaultCoupon, 
  buildDefaultCopiedMessage 
} from "./blocks";

export function buildCouponDefaults(id: string): BuilderScreen {
  return {
    id,
    template: "coupon",
    header: buildDefaultHeader({
      showProgress: false
    }),
    title: buildDefaultTitle({
      text: "Тебе повезло!",
      align: "center",
    }),
    subtitle: buildDefaultSubtitle({
      text: "Ты получил специальную эксклюзивную скидку на 94%",
      align: "center",
    }),
    coupon: buildDefaultCoupon({
      title: {
        text: "Special Offer",
        font: "manrope",
        weight: "bold",
        align: "center",
        size: "lg",
        color: "default",
      },
      offer: {
        title: {
          text: "94% OFF",
          font: "manrope",
          weight: "bold",
          align: "center",
          size: "3xl",
          color: "primary",
        },
        description: {
          text: "Одноразовая эксклюзивная скидка",
          font: "inter",
          weight: "medium",
          color: "muted",
          align: "center",
          size: "md",
        },
      },
      promoCode: {
        text: "HAIR50",
        font: "geistMono",
        weight: "bold",
        align: "center",
        size: "lg",
        color: "accent",
      },
      footer: {
        text: "Скопируйте или нажмите **Continue**",
        font: "inter",
        weight: "medium",
        color: "muted",
        align: "center",
        size: "sm",
      },
    }),
    copiedMessage: buildDefaultCopiedMessage(),
    bottomActionButton: buildDefaultBottomActionButton(),
    navigation: buildDefaultNavigation(),
  } as BuilderScreen;
}
