<?php
declare(strict_types=1);

namespace WP_AUX\Entities\AuxCF\Fields\Video;

use AuxCF\Entities\Field\CheckboxFieldEntity;
use AuxCF\Entities\Field\Enum\ChoicesFieldLayoutEnum;
use AuxCF\Entities\Field\RadioFieldEntity;
use AuxCF\Entities\Field\SelectFieldEntity;
use AuxCF\Entities\Settings\Enum\OperatorEnum;

class VideoLayoutFieldEntity extends SelectFieldEntity
{
  public static string $name = 'video_layout';
  protected string $label = 'Layout/Dimensions';
  protected mixed $choices = [
    'horizontal' => 'Horizontal (16:9)',
    'vertical' => 'Vertical (9:16)',
    'square' => 'Square',
    'custom' => 'Custom Dimensions',
  ];
  protected ChoicesFieldLayoutEnum $layout = ChoicesFieldLayoutEnum::Horizontal;

  protected array $initConditionalLogic = [
    [
      [ VideoSourceFieldEntity::class, OperatorEnum::EQUALS, 'external' ],
    ],
  ];
}
