use super::super::super::blockers::{
    real_grouped_row_is_unsupported_chairman_target_scope,
    real_grouped_row_is_unsupported_confiscation_variant,
    real_grouped_row_is_unsupported_retire_train_scope,
    real_grouped_row_is_unsupported_retire_train_variant,
    real_grouped_row_is_unsupported_territory_access_scope,
    real_grouped_row_is_unsupported_territory_access_variant,
};
use crate::inspect::smp::events::SmpLoadedPackedEventRecordSummary;

pub(super) fn record_has_unsupported_chairman_target_scope(
    record: &SmpLoadedPackedEventRecordSummary,
) -> bool {
    record
        .grouped_effect_rows
        .iter()
        .any(real_grouped_row_is_unsupported_chairman_target_scope)
}

pub(super) fn record_has_unsupported_territory_access_scope(
    record: &SmpLoadedPackedEventRecordSummary,
) -> bool {
    record
        .grouped_effect_rows
        .iter()
        .any(real_grouped_row_is_unsupported_territory_access_scope)
}

pub(super) fn record_has_unsupported_territory_access_variant(
    record: &SmpLoadedPackedEventRecordSummary,
) -> bool {
    record
        .grouped_effect_rows
        .iter()
        .any(real_grouped_row_is_unsupported_territory_access_variant)
}

pub(super) fn record_has_unsupported_confiscation_variant(
    record: &SmpLoadedPackedEventRecordSummary,
) -> bool {
    record
        .grouped_effect_rows
        .iter()
        .any(real_grouped_row_is_unsupported_confiscation_variant)
}

pub(super) fn record_has_unsupported_retire_train_scope(
    record: &SmpLoadedPackedEventRecordSummary,
) -> bool {
    record
        .grouped_effect_rows
        .iter()
        .any(real_grouped_row_is_unsupported_retire_train_scope)
}

pub(super) fn record_has_unsupported_retire_train_variant(
    record: &SmpLoadedPackedEventRecordSummary,
) -> bool {
    record
        .grouped_effect_rows
        .iter()
        .any(real_grouped_row_is_unsupported_retire_train_variant)
}
