<?php
declare(strict_types=1);

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

use AuxCF\Entities\Field\Enum\WysiwygFieldToolbarEnum;
use AuxCF\Entities\Field\WysiwygFieldEntity;
use AuxCF\Entities\Settings\Enum\OperatorEnum;
use WP_AUX\Entities\AuxCF\Fields\CustomContent\CustomContentSidebarSelectFieldEntity;
use WP_AUX\Enum\SidebarComponentEnum;

class SidebarFreestandingFactCitationFieldEntity extends WysiwygFieldEntity
{
  public static string $name = 'sidebar_freestanding_fact_citation';
  protected string $label = 'Fact Citation';
  protected string $instructions = 'Include source and year if available, and link to source when able (e.g., US News and World Report, 2024)';
  protected WysiwygFieldToolbarEnum $toolbar = WysiwygFieldToolbarEnum::UltraBasic;

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