@inherits MSGComponentBase @TA("What would you like to take away?") @TA("The lab writes these materials from your confirmed work states. Check and edit each of them, and confirm it. Then you can export it as a document.") @if (this.MissingSteps.Count > 0) { @string.Format(Culture, TA("These steps have no confirmed work state yet: {0}. The materials use only what you confirmed and name what is still open."), string.Join(", ", this.MissingSteps.Select(step => $"„{step.Title}“"))) } @T("Create all materials in parallel") @* Only one material is open at a time, so that the list stays clear: *@ @foreach (var kind in BflResultKind.All) { var status = this.StatusOf(kind);
@kind.Title @this.StatusText(status)
@if (!this.results.TryGetValue(kind, out var result)) { @TA("AI Studio cannot open this material. Its file may be damaged, or a newer version of AI Studio stored it. AI Studio leaves the file unchanged.") } else { @if (this.IsGenerating(kind)) { @T("The lab writes this material") @T("Stop") } @if (result.Draft is { } draft) {
@T("Draft, not confirmed yet") @if (BflStaleness.IsOutdated(draft, this.WorkStates)) { @TA("A work state changed since the lab wrote this draft. You can create it anew.") } @if (this.editing.Contains(kind)) { } else {
} @T("Confirm") @if (this.editing.Contains(kind)) { @T("Show preview") } else { @T("Edit") } @T("Discard draft")
} else if (result.Confirmed is { } confirmed) { @if (BflStaleness.IsOutdated(confirmed, this.WorkStates)) { @TA("A work state changed since you confirmed this material. Please create it anew, or check whether it still fits.") } else { @string.Format(Culture, TA("You confirmed this material on {0}."), confirmed.ChangedAtUtc.ToLocalTime().ToString("g", Culture)) }
@foreach (var format in FileExportFormat.DocumentFormats) { } @foreach (var format in FileExportFormat.TextFormats) { } @T("Edit") } @if (kind is BflResultKind.REFLECTION_FOLDER) { @TA("Include personal disclosures") @TA("Add the conversations as an appendix") } @(result.Draft is null && result.Confirmed is null ? T("Create") : T("Create anew")) }
}