PageSourceSearch

https://omanote.com/assets/search-DxdhWdod.js

js omanote.com collected 2026-09-24 14:50:03 UTC 1,701 bytes, 3 lines download raw bytes

1import{d as c}from"./date-utils-BYCNY8p4.js";function r(t){return t.toLowerCase().trim()}function y(t){return r(t).split(/[\s,]+/).map(i=>i.trim()).filter(Boolean)}function a(t,i){const o=y(i);if(!o.length)return!1;const n=t.map(r);return o.every(d=>n.some(e=>e.includes(d)))}function f(t){var n,d;const i=t.query.trim();if(!i)return[];const o=[];for(const e of t.todos)e.deletedAt||a([e.title,e.notes??""],i)&&o.push({id:e.id,title:e.title,kind:"todo",subtitle:`Due ${e.dueDateKey??"today"}`,dateKey:e.createdDateKey,canvasDateKey:e.dueDateKey??e.createdDateKey});for(const e of t.notes){if(e.deletedAt)continue;const s=((n=e.title)==null?void 0:n.trim())||e.body.trim().split(`
2`).filter(Boolean)[0]||e.body.trim();if(a([e.title??"",e.body,e.tags.join(" ")],i)){const l=e.body.trim().split(`
3`).filter(Boolean)[0]||e.body.trim();o.push({id:e.id,title:s||"Untitled note",kind:"note",subtitle:l||e.createdDateKey,dateKey:e.createdDateKey,canvasDateKey:e.createdDateKey})}}for(const e of t.bookmarks)e.deletedAt||a([e.title,e.siteName??"",e.url,e.description??""],i)&&o.push({id:e.id,title:e.title,kind:"bookmark",subtitle:e.url,dateKey:e.createdDateKey,canvasDateKey:e.createdDateKey});for(const e of t.events)e.deletedAt||a([e.label,e.notes??""],i)&&o.push({id:e.id,title:e.label,kind:"event",subtitle:e.loggedAt?c(e.loggedAt):e.createdDateKey,dateKey:e.createdDateKey,canvasDateKey:e.createdDateKey});for(const e of t.pages??[])e.deletedAt||a([e.title??"",e.preview],i)&&o.push({id:e.id,title:((d=e.title)==null?void 0:d.trim())||"Untitled canvas",kind:"page",subtitle:e.preview.trim()||e.createdDateKey,dateKey:e.createdDateKey,canvasDateKey:e.createdDateKey});return o.slice(0,30)}export{f as s};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.