<?php
declare(strict_types=1);

namespace WP_AUX\Entities\AuxCF\Fields\Section;

use AuxCF\Entities\Field\SelectFieldEntity;
use WP_AUX\Enum\CtaTypes\AllCtaNoButtonsTypesEnum;
use AuxCF\Entities\Settings\Enum\OperatorEnum;

class SectionCardsCtaTypeFieldEntity extends SelectFieldEntity
{
  public static string $name = 'section_cards_cta_type';
  protected string $label = 'Cards CTA Type';
  protected string $instructions = 'How do you want each card\'s call to action link(s) to appear, if at all?';
  protected mixed $choices = AllCtaNoButtonsTypesEnum::class;

  protected array $initConditionalLogic = [
    [
      [ SectionCardsLayoutSwitchFieldEntity::class, OperatorEnum::EQUALS, 'standard' ],
    ],
    [
      [ SectionCardsLayoutSwitchFieldEntity::class, OperatorEnum::EQUALS, 'inline' ],
    ]
  ];
}
