<?php
declare(strict_types=1);

namespace WP_AUX\Entities\AuxCF\Fields\MediaSlab;

use AuxCF\Entities\Field\RadioFieldEntity;
use AuxCF\Entities\Field\Enum\ChoicesFieldLayoutEnum;
use AuxCF\Entities\Settings\Enum\OperatorEnum;
use WP_AUX\Services\AuxFramework\MediaFieldsService;

class MediaSlabVideoSwitchFieldEntity extends RadioFieldEntity
{
  public static string $name = 'media_slab_video_switch';
  protected string $label = MediaFieldsService::VIDEO_SWITCH_FIELD_LABEL;
  protected mixed $choices = [
    'internal' => 'Uploaded Video',
    'external' => 'External Video',
  ];
  protected ChoicesFieldLayoutEnum $layout = ChoicesFieldLayoutEnum::Horizontal;

  protected array $initConditionalLogic = [
    [[ MediaSlabMediaSourceFieldEntity::class, OperatorEnum::EQUALS, 'video' ]],
  ];

}
