@inherits MSGComponentBase @T("Material") @TA("Applies to all steps: the lab reads it in every conversation and asks you about it.") @* The whole page takes dropped files; the paperclip opens the file chooser. Recordings come to this component, which transcribes them through the material service instead of the attachment control. *@
@TA("Drag documents such as notes or papers, recordings of interviews, or images such as posters here, or click the paperclip.")
@if (this.MaterialInProgress is { } materialInProgress) { @(materialInProgress.Kind is BflMaterialKind.RECORDING ? string.Format(T("Transcribing '{0}'; a long recording takes a while"), materialInProgress.Name) : string.Format(T("Reading '{0}'"), materialInProgress.Name)) } @if (this.materials.Count > 0) { @foreach (var entry in this.materials) { @if (entry.Material is { } material) { @material.Name @this.Caption(material) @if (this.ShareNotice(material) is { } shareNotice) { @shareNotice } @if (material.IsIncomplete) { @T("Some parts of it could not be read.") } @if (material.IsShortened) { @T("Only its beginning was kept.") } @if (material.FilteredPassages > 0) { @string.Format(T("Suspicious passages removed: {0}"), material.FilteredPassages) } } else { @T("Material which cannot be opened") @T("Its files may be damaged, or a newer version of AI Studio stored it.") } } } else if (this.MaterialInProgress is null) { @TA("You have not added any material yet.") } @TA("Add only material which you may process with the selected provider. Recordings also go to the transcription provider of AI Studio.")