@inherits MSGComponentBase @* Named after the document once there is one, and after what the caller opened us for until then. A file which is no longer at its place is told about below, together with what is shown instead: *@ @* 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) { } @* 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.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.IsFileMissing && !this.showsStoredText) { @T("The file could not be found. It may have been moved, renamed, or deleted, or it is otherwise inaccessible.") } else if (this.loadFailureMessage is not null) { @this.loadFailureMessage } else { @if (this.IsFileMissing) { @* The text the AI received outlives the file, so the file being gone is worth a note, not an error: *@ @T("The file is no longer in its original location. Below is the text the AI received from it when you sent it.") } @* Keyed by the document: every document starts on the first panel of its own. *@ @* The label takes the free width, so the button stands right, next to the views. *@ @(this.showsStoredText ? T("Text the AI received") : T("Loaded Content")) @* At its beginning: the preview shows how we read the file, not a place in it. *@ }
@T("Close")