<?php
declare(strict_types=1);

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

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

class SidebarFreestandingFactIconFieldEntity extends SelectFieldEntity
{
  public static string $name = 'sidebar_freestanding_fact_icon';
  protected string $label = 'Fact Icon';
  protected mixed $choices = IconsEnum::class;
  protected mixed $defaultValue = IconsEnum::BOLT;
  protected IntSwitchEnum $allowNull = IntSwitchEnum::On;
  protected IntSwitchEnum $ui = IntSwitchEnum::On;

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

}
