<script lang="ts">
    const calculations: Record<string, any> = {};
    const ausweis: Record<string, any> = {};
</script>

<div class="list-ausweis" style="border: 1px solid #ccc;">
    <div class="flex-row justify-between">
        <div class="flex-column">
            <table class="table-borderless" style="border:none;">
                <tr>
                    <td title="" width="50px"
                        ><div class="checkTextPreviewButton">
                            <div
                                class="checkTextPreview"
                                style="display:none; position: absolute; background-color: black; color: white; padding: 10px; border-radius: 5px; max-width: 600px; z-index:9999;"
                            >
                                {#if ausweis["ausweisart"] == "VA" || ausweis["ausweisart"] == "VANW"}
                                    ({calculations["Klimafaktor_1"]} + {calculations["Klimafaktor_2"]} + {calculations["Klimafaktor_3"]}) / 3 &gt;&gt; durchschnittlicher Klimafaktor
                                {:else}
                                
                                {/if}
                                <br />
                            </div>
                        </div></td
                    >
                </tr>
            </table>
        </div>
    </div>
</div>
