import type { BuilderFunnelState, BuilderScreen } from "@/lib/admin/builder/types";
import type { BuilderState } from "./types";
import { buildListDefaults } from "./defaults/list";

export const INITIAL_META: BuilderFunnelState["meta"] = {
  id: "funnel-builder-draft",
  title: "New Funnel",
  description: "",
  firstScreenId: "screen-1",
};

export const INITIAL_SCREEN: BuilderScreen = {
  ...buildListDefaults("screen-1"),
  // Переопределяем опции для начального экрана
  list: {
    selectionType: "single",
    options: [
      {
        id: "option-1", 
        label: "Вариант 1",
      },
      {
        id: "option-2",
        label: "Вариант 2",
      },
    ],
  },
} as BuilderScreen;

export const INITIAL_STATE: BuilderState = {
  meta: INITIAL_META,
  screens: [INITIAL_SCREEN],
  selectedScreenId: INITIAL_SCREEN.id,
  isDirty: false,
};
