<template>
    <div class="wrap" v-if="!fileUploaded && !uploading">
        <Toast position="top-right" />

        <Panel header="Please upload a file">
            <FileUpload
                name="demo[]"
                :customUpload="true"
                :auto="true"
                @uploader="uploadFile"
            >
                <template #empty>
                    <p>Drag and drop files to here to upload.</p>
                </template>
            </FileUpload>
        </Panel>

        <BlockUI :blocked="uiBlocked" :fullScreen="true"></BlockUI>
    </div>
    <div class="wrap" v-else-if="!fileUploaded && uploading">
        <Skeleton />
        <Skeleton />
        <Skeleton />
        <Skeleton />
        <Skeleton />
        <Skeleton />
        <Skeleton />
    </div>
    <div class="wrap" v-else>
        <process-file :file="uploadResult" :searchers="searchers"></process-file>
    </div>
</template>

<script lang="ts" src="./Home.ts">
</script>
