import type { ISingleOptionsField } from "@/admin/shared/types/fields.type";
import { DEFAULT_CURRENCY_SETTINGS } from "./base";

export const imageRadioDefaults = (): Partial<ISingleOptionsField> => ({
  label: "",
  _id: null,
  default: "",
  onValue: null,
  description: "",
  required: false,
  _event: "change",
  allowRound: false,
  additionalCss: "",
  _tag: "cost-radio-with-image",
  additionalStyles: "",
  addToSummary: true,
  allowCurrency: false,
  calculateHidden: false,
  fieldCurrency: false,
  hasNextTick: true,
  nextTickCount: 0,
  disableOptions: [],
  type: "Radio With Image",
  icon: "ccb-icon-Path-3511",
  alias: "radio_with_img_field_id_",
  desc_option: "after",
  summary_view: "show_value",
  styles: {
    elementColumns: "4",
    box_style: "vertical",
    style: "default",
  },
  options: [
    { src: null, optionText: "Option 1", optionValue: "10" },
    { src: null, optionText: "Option 2", optionValue: "20" },
    { src: null, optionText: "Option 3", optionValue: "30" },
    { src: null, optionText: "Option 4", optionValue: "40" },
  ],
  apply_style_for_all: false,
  show_value_in_option: true,
  width: "100",
  fieldCurrencySettings: { ...DEFAULT_CURRENCY_SETTINGS },
});
