<?php
declare(strict_types=1);

namespace WP_AUX\Entities\AuxCF\Fields\SidebarComponents\FreestandingFact;

use AuxCF\Entities\Field\CheckboxFieldEntity;
use AuxCF\Entities\Field\Enum\ChoicesFieldLayoutEnum;
use AuxCF\Entities\Settings\Enum\OperatorEnum;
use WP_AUX\Entities\AuxCF\Fields\CustomContent\CustomContentSidebarSelectFieldEntity;
use WP_AUX\Enum\SidebarComponentEnum;

class SidebarFreestandingFactHeadersSwitchFieldEntity extends CheckboxFieldEntity
{
  public static string $name = 'sidebar_freestanding_fact_headers_switch';
  protected string $label = 'Superheader and/or Subheader?';
  protected mixed $choices = [
    'superheader' => 'Superheader',
    'subheader' => 'Subheader',
  ];
  protected ChoicesFieldLayoutEnum $layout = ChoicesFieldLayoutEnum::Horizontal;

  protected array $initConditionalLogic = [
    [
      [ CustomContentSidebarSelectFieldEntity::class, OperatorEnum::EQUALS, SidebarComponentEnum::FreeFact ],
    ]
  ];
}
