var t = ` ` import Pane from './pane.js' import Icon from './icon.js' import LinkTree from './link-tree.js' import { formatDate } from './dateutils.js'; export default { components: { Pane, Icon, LinkTree }, props: ['note'], emits: ['note-open', 'note-save', 'note-delete', 'finder-open'], methods: { formattedDate(dateStr) { if (!dateStr) return ''; const date = new Date(dateStr); return formatDate(date, '%b %d %Y at %H:%M'); }, }, computed: { sortedIncomingLinks() { return this.note.IncomingLinks?.sort((a, b) => a.Title.localeCompare(b.Title)) || []; }, countIncomingLinks() { return this.note.IncomingLinks?.length || 0; }, existingOutgoingLinks() { return this.note.OutgoingLinks?.filter(l => l.Title !== '') || []; }, danglingOutgoingLinks() { return this.note.OutgoingLinks?.filter(l => l.Title == '') || []; }, countOutgoingLinks() { return this.note.OutgoingLinks?.length || 0; }, }, template: t }