{{!-- ApplicationV2 template for Sneak Action Preview Dialog Updated to support new enhanced sneak features Updated: row-timer-toggle button support --}}
{{!-- Sneaking Token Information Panel --}}

{{sneaker.name}}

{{sneaker.actionLabel}}

{{#if isEndOfTurnDialog}}
End-of-Turn Position Validation

Your Sneaky/Very Sneaky feat allowed chaining multiple sneaks this turn. These are the final position checks for observers who passed their Perception rolls.

{{/if}} {{#unless isEndOfTurnDialog}} {{#if prereqBadges}}
{{#each prereqBadges as |b|}} {{b.label}} {{/each}}
{{/if}} {{/unless}} {{#if sneakDistance}}
Max Sneak Distance: {{sneakDistance.maxFeet}} ft {{#if sneakDistance.movementLabel}} {{sneakDistance.movementLabel}} {{/if}}
{{/if}}
{{!-- Enhanced Controls Section --}}
{{#if showEncounterFilter}} {{/if}}
{{!-- Bulk Actions Section - All buttons in a flex row --}}
{{!-- Bulk Defer Button --}} {{#if canBulkDefer}}
{{/if}} {{!-- End-of-Turn Validation Button --}} {{#if canProcessEndTurn}}
{{/if}} {{!-- Apply All Cover Group --}}
{{localize "PF2E_VISIONER.UI.APPLY_ALL_COVER_LABEL"}}
{{!-- Bulk Set Visibility Group --}} {{#if bulkOverrideStates}}
{{> "pf2e-visioner.bulk-override"}}
{{/if}}
{{!-- Results Table --}}
{{#each outcomes as |outcome|}} {{/each}}
{{localize "PF2E_VISIONER.UI.TOKEN"}} {{localize "PF2E_VISIONER.UI.NAME"}} {{localize "PF2E_VISIONER.UI.START_POS"}}
+
{{localize "PF2E_VISIONER.UI.END_POS"}}
{{#if sneakAllowExtendedEndStates}}+{{/if}} / +
{{localize "PF2E_VISIONER.UI.COVER_BONUS"}} {{localize "PF2E_VISIONER.UI.STEALTH_VS_PERCEPTION"}} {{localize "PF2E_VISIONER.UI.ROLL_OUTCOME"}} {{localize "PF2E_VISIONER.UI.VISIBILITY_CHANGE"}} {{localize "PF2E_VISIONER.UI.ACTIONS"}}
{{#if outcome.token.document.hidden}} {{/if}} {{outcome.token.name}} Sneak result: {{outcome.outcomeLabel}} {{#if outcome.hasPositionData}}
{{!-- Start Position Requirements - Interactive Buttons --}}
{{else}}
{{/if}}
{{#if outcome.hasPositionData}}
{{!-- End Position Requirements - Interactive Buttons --}} {{!-- Defer Button for Sneaky/Very Sneaky Feat --}} {{#if outcome.isDeferred}} {{#if outcome.canDefer}} {{!-- Deferred but can defer again (manual end position change) --}} {{else}} {{!-- Currently deferred and cannot defer again --}} {{/if}} {{else}} {{!-- Not deferred --}} {{/if}}
{{else}}
{{/if}}
{{!-- Cover Bonus Selection Buttons --}}
{{outcome.rollTotal}} {{localize "PF2E_VISIONER.UI.VS_DC"}} {{outcome.dc}}
{{#if outcome.sneakAdeptApplied}} {{localize "PF2E_VISIONER.UI.FAILURE_LABEL"}} {{localize "PF2E_VISIONER.UI.SUCCESS_LABEL"}} {{else}} {{outcome.outcomeLabel}} {{/if}}
{{{visibilityIcon outcome.oldVisibility}}} {{#if outcome.isOldStateAvsControlled}} {{/if}}
{{#each outcome.availableStates as |state|}} {{/each}}
{{#if (and outcome.shouldShowOverride outcome.originalNewVisibility)}}
{{localize "PF2E_VISIONER.UI.ORIGINAL_CHANGE"}} {{{visibilityIcon outcome.originalNewVisibility}}}
{{/if}}
{{#if outcome.isDeferred}}
Deferred
{{else if outcome.hasActionableChange}} {{else}} {{localize "PF2E_VISIONER.UI.NO_CHANGE_LABEL"}} {{/if}}
{{!-- Summary and Bulk Actions --}}
{{changesCount}} of {{totalCount}} observers will have visibility changes.
{{#if isEndOfTurnDialog}} {{else}} {{#if canBulkUndefer}} {{/if}} {{/if}}