<script setup>
defineProps({ row: { type: Object, required: true } });
</script>
<template>
    <span>
        <QIcon
            v-if="row.isTaxDataChecked === 0"
            name="vn:no036"
            color="primary"
            size="xs"
        >
            <QTooltip>{{ $t('salesTicketsTable.noVerifiedData') }}</QTooltip>
        </QIcon>
        <QIcon v-if="row.hasTicketRequest" name="vn:buyrequest" color="primary" size="xs">
            <QTooltip>{{ $t('salesTicketsTable.purchaseRequest') }}</QTooltip>
        </QIcon>
        <QIcon v-if="row.itemShortage" name="vn:unavailable" color="primary" size="xs">
            <QTooltip>{{ $t('salesTicketsTable.notVisible') }}</QTooltip>
        </QIcon>
        <QIcon v-if="row.isFreezed" name="vn:frozen" color="primary" size="xs">
            <QTooltip>{{ $t('salesTicketsTable.clientFrozen') }}</QTooltip>
        </QIcon>
        <QIcon
            v-if="row.risk"
            name="vn:risk"
            :color="row.hasHighRisk ? 'negative' : 'primary'"
            size="xs"
        >
            <QTooltip>
                {{ $t('salesTicketsTable.risk') }}: {{ row.risk - row.credit }}
            </QTooltip>
        </QIcon>
        <QIcon v-if="row.hasComponentLack" name="vn:components" color="primary" size="xs">
            <QTooltip>{{ $t('salesTicketsTable.componentLack') }}</QTooltip>
        </QIcon>
        <QIcon v-if="row.isTooLittle" name="vn:isTooLittle" color="primary" size="xs">
            <QTooltip>{{ $t('salesTicketsTable.tooLittle') }}</QTooltip>
        </QIcon>
    </span>
</template>
