{#if isDailyLog} selectedDate = d} /> {#if birthdayPersons.length > 0}
🎂 Geburtstag heute: {#each birthdayPersons as p} {p.name} {/each}
{/if}
entryText = md} onsave={handleAddEntry} />
{#if !selectedLinkedContextId} {/if}
{#if meetingPickerOpen}
{#each $meetingContexts ?? [] as ctx} {/each}
{/if}
{#if journalScope === 'business'}
Meetings
{#if showNewEventForm}
{#if calendarPickerOpen}
{#if calendarLoading}
Lade...
{:else if calendarError}
{calendarError}
{:else if calendarEvents.length === 0}
Keine Termine für diesen Tag
{:else} {#each calendarEvents as ev (ev.id)} {/each} {/if}
{/if} {/if} {#each $dateEvents ?? [] as event (event.id)}
{/each}
{/if} {#if filteredEntries.length > 0}
{selectedDate}
{#each filteredEntries as entry (entry.id)} {#if editingId === entry.id}
{ if (e.key === 'Escape') cancelEdit(); }}>
{ if (e.key === 'Enter' && (e.ctrlKey || e.metaKey)) { e.preventDefault(); saveEdit(); } }} /> editBody = md} onsave={saveEdit} />
{:else} {@const lines = entry.text.split('\n')} {@const title = lines[0].replace(/^#{1,6}\s+/, '')} {@const body = lines.slice(1).join('\n').trim()}
startEdit(entry)}> {formatTime(entry)}
{#if entry.wiedervorlageDate && !entry.wiedervorlageResolvedAt} {/if} {#if entry.linkedContextId} {contextNameMap().get(entry.linkedContextId) ?? entry.linkedContextId} {/if}
{#if body} {/if}
{/if} {/each}
{:else}
Keine Einträge für {selectedDate}.
{/if} {:else} {#each meetingByDate() as [date, items]}
{date}
{#each items as entry}
{entry.topicTitle} {#if entry.isLinked} Journal {/if}
{/each}
{:else}
Keine Einträge.
{/each} {/if} {#if confirmDeleteId} confirmDeleteId = null} /> {/if}