{{player-component document=currentItem}}

<div class="corpus-window">

    <div class="corpus-app-container{{if player.window ' window'}}">
    {{#if player.window}}
        {{#if (eq player.window 'notice')}}
            {{ notice-component }}
        {{else if (if-and (eq player.window 'transcript') player.transcriptIframe)}}
            <div class="transcript-container">
              <iframe class="transcript-iframe" src="{{player.transcript}}"></iframe>
            </div>
        {{else if (if-and (eq player.window 'transcript') player.transcript)}}
            {{ transcript-component }}
        {{/if}}
    {{else}}
        {{ outlet }}
    {{/if}}
    </div>
    {{#if player.window}}
    {{toolbar-component}}
    {{/if}}

    <div class="corpus-app-wrapper">
        {{ filter-component }}
        {{ playlist-component model=model page=page limit=limit pageAction='setPageQueryparams' isLoading=isLoading currentUrl=currentUrl }}
    </div>

</div>