<?php
declare(strict_types=1);

namespace WP_AUX\Entities\AuxCF\Fields\CardSlab;

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

use WP_AUX\Entities\AuxCF\Fields\Card\CardHeadersSwitchFieldEntity;
use WP_AUX\Entities\AuxCF\Fields\Card\CardSuperheaderFieldEntity;
use WP_AUX\Entities\AuxCF\Fields\Card\CardHeadingFieldEntity;
use WP_AUX\Entities\AuxCF\Fields\Card\CardCtaFieldEntity;
use WP_AUX\Entities\AuxCF\Fields\Card\CardSubheaderFieldEntity;
use WP_AUX\Entities\AuxCF\Fields\Card\CardContentFieldEntity;
use WP_AUX\Entities\AuxCF\Fields\Card\CardImageFieldEntity;
use WP_AUX\Entities\AuxCF\Fields\Card\CardIconFieldEntity;
use WP_AUX\Entities\AuxCF\Fields\CardSlab\CardSlabCtaFieldEntity;

class CardSlabCardsFieldEntity extends RepeaterFieldEntity
{
  public static string $name = 'card_slab_card';
  protected string $label = 'Cards';
  protected RepeaterFieldLayoutEnum $layout = RepeaterFieldLayoutEnum::Block;
  protected int $min = 1;
  protected ?int $max = 2;
  protected string $buttonLabel = 'Add Card';

  protected array $initFields = [
    CardHeadingFieldEntity::class,
    CardHeadersSwitchFieldEntity::class,
    CardSuperheaderFieldEntity::class,
    CardSubheaderFieldEntity::class,
    CardImageFieldEntity::class,
    CardIconFieldEntity::class,
    CardSlabCtaFieldEntity::class,
    CardContentFieldEntity::class,
  ];
}
