@inherits MSGComponentBase @* A drop anywhere in this dialog belongs to the dialog, not to the page behind it: *@ @T("See how we load your file. Review the content before we process it further.") @if (this.CanAttach) { @T("You can drag another file into this window. We attach it right away and show it here.") } @if (this.document is null) { } else { @* Keys have to be unique among siblings, no matter the component: this field and the tabs below both stand for the document and would otherwise collide on its path. *@ } @* The frame shows where a dropped file would land. It is drawn only while this dialog can take one, and keeps its width in both states so that nothing jumps during a drag: *@
@if (!this.document?.Exists ?? false) { @T("The specified file could not be found. The file have been moved, deleted, renamed, or is otherwise inaccessible.") } else if (this.isLoadingContent) { @T("Please wait while we load the content of your file. Depending on the file type and size, this may take a moment.") } else if (this.loadFailureMessage is not null) { @this.loadFailureMessage } else { @if (this.previewCutOffCharacters > 0) { @string.Format(T("Your document is large, so we show you only its beginning. We hide the remaining {0:N0} characters here. Rest assured: the AI still receives your entire document."), this.previewCutOffCharacters) } @* Keyed by the document: a switch from an image to a text file changes which panels exist, and a leftover active panel would point at one that is gone. *@ @if (this.document?.IsImage ?? false) { } else {
}
}
@T("Close")