<?php
declare(strict_types=1);

namespace WP_AUX\Entities\AuxCF\Fields\Card;

use AuxCF\Entities\Field\SelectFieldEntity;
use AuxCF\Entities\Settings\Enum\IntSwitchEnum;
use AuxCF\Entities\Settings\Enum\OperatorEnum;
use WP_AUX\Entities\AuxCF\Fields\Section\SectionCardsMediaOptionsFieldEntity;
use WP_AUX\Entities\AuxCF\Fields\FeaturedCard\CardsMediaOptionsFieldEntity;
use WP_AUX\Enum\IconsEnum;
use WP_AUX\Enum\CardsMediaEnum;

class CardIconFieldEntity extends SelectFieldEntity
{
  public static string $name = 'card_icon';
  protected string $label = 'Card Icon';
  protected mixed $choices = IconsEnum::class;
  protected IntSwitchEnum $allowNull = IntSwitchEnum::On;
  protected IntSwitchEnum $ui = IntSwitchEnum::On;

  protected array $initConditionalLogic = [
    [
      [ SectionCardsMediaOptionsFieldEntity::class, OperatorEnum::EQUALS, CardsMediaEnum::Icon ],
      [ CardsMediaOptionsFieldEntity::class, OperatorEnum::EQUALS, CardsMediaEnum::Icon]
    ],
  ];
}
