<?php
declare(strict_types=1);

namespace WP_AUX\Entities\AuxCF\Fields\SidebarComponents\LinkedCard;

use AuxCF\Entities\Field\RadioFieldEntity;
use WP_AUX\Enum\CardsMediaEnum;
use AuxCF\Entities\Settings\Enum\OperatorEnum;
use WP_AUX\Entities\AuxCF\Fields\CustomContent\CustomContentSidebarSelectFieldEntity;
use WP_AUX\Enum\SidebarComponentEnum;
use AuxCF\Entities\Field\Enum\ChoicesFieldLayoutEnum;

class SidebarLinkedCardMediaOptionsFieldEntity extends RadioFieldEntity
{
  public static string $name = 'sidebar_linked_card_media';
  protected string $label = 'Linked Card Media';
  protected string $instructions = 'Choose to optionally display either an icon or an image in this component.';
  protected mixed $choices = CardsMediaEnum::class;
  protected mixed $defaultValue = CardsMediaEnum::None;
  protected ChoicesFieldLayoutEnum $layout = ChoicesFieldLayoutEnum::Horizontal;

  protected array $initConditionalLogic = [
    [
      [ CustomContentSidebarSelectFieldEntity::class, OperatorEnum::EQUALS, SidebarComponentEnum::LinkedCard ],
    ]
  ];

}
