{{ liveMessage() }}
@if (isLoading()) { }{{ tr().planning.invalidInput }}
} @else if (planningOutcome()?.kind === 'PlanningConflict') {{{ tr().planning.conflict }}
} @else if (planningOutcome()?.kind === 'PlanningIncomplete') {{{ hasPlannerError() ? tr().planning.error : tr().planning.incomplete }}
} @else if (planningOutcome()?.kind === 'Plan') {{{ tr().planning.complete }}
}{{ tr().planning.conflictingRules }}:
{{ rule.id }}
{{ tr().planning.bottleneck }}: {{ outcomeExplanation.bottleneck.message }}
{{ outcomeExplanation.reason.message }}
{{ interrupted.reason.message }}
{{ tr().planning.completedStages }}: {{ interrupted.completedStages.length ? interrupted.completedStages.join(', ') : tr().planning.none }}
{{ tr().planning.uncompletedStages }}: {{ interrupted.uncompletedStages.length ? interrupted.uncompletedStages.join(', ') : tr().planning.none }}
{{ selected.placement.balanceId }}
@if (selected.balance) {
{{ ruleId }}{{ last ? '' : ', ' }}
}
} @else {
{{ tr().planning.noRules }}
}
{{ tr().planning.comparisonHelp }}
{{ tr().planning.hypothetical }}
@if (counterfactual(); as analysis) {{{ analysis.placement.date }} · {{ analysis.placement.balanceId }}
} @if (counterfactualLoading()) {{{ tr().planning.counterfactualLoading }}
} @else if (counterfactualError()) {{{ tr().planning.counterfactualError }} {{ counterfactualError() }}
} @else if (selectedCounterfactualResult(); as result) {{{ result.status === 'eligible' ? tr().planning.eligible : tr().planning.ineligible }}
@if (result.historicalStatus) {{{ tr().planning.historical }}: {{ traceStatusLabel(result.historicalStatus) }}
} @if (result.reason) {{{ tr().planning.reason }}: {{ result.reason.message }}
} @if (result.comparison; as comparison) {{{ tr().planning.firstDecisive }}: {{ comparison.firstDecisiveObjective ? formatIdentifier(comparison.firstDecisiveObjective) : tr().planning.none }}
{{ tr().planning.explanationError }} {{ explanationError()!.message }}
}{{ tr().planning.traceLoading }}
} @else if (planningTrace(); as trace) { @if (trace.error) {{{ trace.error.message }}
}{{ tr().planning.dates }}: {{ decision.dates.length ? decision.dates.join(', ') : tr().planning.none }}
@if (decision.reason) {{{ tr().planning.reason }}: {{ decision.reason.message }}
}{{ candidate.reason.message }}
} @if (candidate.comparison?.firstDecisiveObjective) {{{ tr().planning.firstDecisive }}: {{ formatIdentifier( candidate.comparison! .firstDecisiveObjective! ) }}
} @if (candidate.comparison; as comparison) { @if (comparison.tieBreak) {{{ tr().planning.tieBreak }}: {{ formatIdentifier( comparison.tieBreak ) }}
}{{ traceMoment() === 'before' ? tr().planning.before : tr().planning.after }}: {{ state.placements.length }} {{ tr().planning.placements }}, {{ state.earnedActivations.length }} {{ tr().planning.activations }}
} } } @else {{{ tr().planning.noDecisions }}
}{{ tr().planning.traceUnavailable }}
}