<?php
declare(strict_types=1);

namespace WP_AUX\Entities\AuxCF\Fields\AccordionGroup;

use AuxCF\Entities\Field\Enum\RepeaterFieldLayoutEnum;
use AuxCF\Entities\Field\RepeaterFieldEntity;

use WP_AUX\Entities\AuxCF\Fields\AccordionGroup\CaptionedMedia\AccordionCaptionedMediaSwitchFieldEntity;
use WP_AUX\Entities\AuxCF\Fields\AccordionGroup\CaptionedMedia\AccordionCaptionedMediaAlignmentFieldEntity;
use WP_AUX\Entities\AuxCF\Fields\AccordionGroup\CaptionedMedia\AccordionCaptionedMediaImageFieldEntity;
use WP_AUX\Entities\AuxCF\Fields\AccordionGroup\CaptionedMedia\AccordionCaptionedMediaCaptionFieldEntity;
use WP_AUX\Entities\AuxCF\Fields\AccordionGroup\CaptionedMedia\AccordionCaptionedMediaCreditFieldEntity;

class AccordionsFieldEntity extends RepeaterFieldEntity
{
  public static string $name = 'accordion';
  protected string $label = 'Accordions';
  protected RepeaterFieldLayoutEnum $layout = RepeaterFieldLayoutEnum::Block;
  protected int $min = 1;
  protected string $buttonLabel = 'Add Accordion';

  protected array $initFields = [
    AccordionHeadingFieldEntity::class,
    AccordionHeadersSwitchFieldEntity::class,
    AccordionSuperheaderFieldEntity::class,
    AccordionSubheaderFieldEntity::class,
    AccordionCaptionedMediaSwitchFieldEntity::class,
    AccordionCaptionedMediaAlignmentFieldEntity::class,
    AccordionCaptionedMediaImageFieldEntity::class,
    AccordionCaptionedMediaCaptionFieldEntity::class,
    AccordionCaptionedMediaCreditFieldEntity::class,
    AccordionWYSIWYGFieldEntity::class,
  ];
}
