<?php
declare(strict_types=1);

namespace WP_AUX\Entities\AuxCF\PageFields\Page;

use AuxCF\Entities\Field\Enum\RepeaterFieldLayoutEnum;
use AuxCF\Entities\Field\GroupFieldEntity;
use AuxCF\Entities\Settings\Enum\OperatorEnum;
use WP_AUX\Enum\PageHeaderTypeEnum;

class PageHeroVideoOptionsFieldEntity extends GroupFieldEntity
{
  public static string $name = 'aux_hero_page_header_video_options';
  protected string $label = 'Video Header Options';
  protected string $instructions = 'Optionally choose to override the featured image in the hero page header with a locally-hosted sizzle reel. You must include a transcript for accessibility purposes.';
  protected RepeaterFieldLayoutEnum $layout = RepeaterFieldLayoutEnum::Block;

  protected array $initFields = [
    PageHeroVideoFileFieldEntity::class,
    PageHeroVideoTranscriptFieldEntity::class,
  ];

  protected array $initConditionalLogic = [
    [
      [ PageHeaderTypeFieldEntity::class, OperatorEnum::EQUALS, PageHeaderTypeEnum::Hero ],
    ],
  ];
}
