{{!-- ApplicationV2 template for Consequences Dialog for attack rolls from hidden/undetected tokens Matches the visibility manager's design and styling with red theme --}}
{{!-- Attacking Token Information Panel --}}

{{attackingToken.name}}

{{#if attackData.isAttackRoll}} {{localize "PF2E_VISIONER.UI.ATTACK_CONSEQUENCES"}} {{else}} {{localize "PF2E_VISIONER.UI.ATTACK_CONSEQUENCES"}} {{/if}}

{{!-- Encounter Filter + Ignore Allies --}}
{{#if showEncounterFilter}} {{/if}}
{{!-- Results Table --}} {{#if bulkOverrideStates}}
{{> "pf2e-visioner.bulk-override"}}
{{/if}}
{{#each outcomes as |outcome|}} {{/each}}
{{localize "PF2E_VISIONER.UI.TOKEN"}} {{localize "PF2E_VISIONER.UI.NAME"}} {{localize "PF2E_VISIONER.UI.VISIBILITY_CHANGE"}} {{localize "PF2E_VISIONER.UI.ACTIONS"}}
{{#if outcome.target.document.hidden}} {{/if}} {{outcome.target.name}}
{{{visibilityIcon outcome.currentVisibility}}} {{#if outcome.isOldStateAvsControlled}} {{#if outcome.isOldStateAvsControlled}} {{/if}} {{/if}}
{{#each outcome.availableStates as |state|}} {{/each}}
{{#if outcome.hasActionableChange}} {{else}} {{localize "PF2E_VISIONER.UI.NO_CHANGE_LABEL"}} {{/if}}
{{!-- Bulk Actions --}}
{{changesCount}} of {{totalCount}} targets will have visibility changes.