<?php
declare(strict_types=1);

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

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

class SidebarCardsMediaOptionsFieldEntity extends SelectFieldEntity
{
  public static string $name = 'sidebar_cards_media';
  protected string $label = 'Card Media';
  protected string $instructions = 'Choose to optionally display either an icon or an image with each card in this component.';
  protected mixed $choices = CardsMediaEnum::class;
  protected mixed $defaultValue = CardsMediaEnum::None;

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