PageSourceSearch

https://thoughtprocess.us/_next/static/chunks/1741.075784f61f9170ac.js

js thoughtprocess.us collected 2026-10-02 02:11:42 UTC 9,469 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1741],{682:(e,s,t)=>{t.d(s,{A:()=>p});var l=t(95155),r=t(56154),n=t(86651),a=t(86254),c=t(35626),i=t(24033),d=t(15870),o=t(35299),x=t(21786),m=t(64269);let h={chat:r.A,search:n.A,navigator:a.A};function u(e){let{children:s}=e;return(0,l.jsx)("span",{className:"shrink-0 rounded-md p-1.5 text-muted-foreground",children:s})}function p(e){let{collection:s,tools:t=["chat","search","navigator"],navigatorLabel:r="Sources",activeTool:n,title:a,uploadOpen:p=!1,uploadInFlight:f=0}=e;return(0,l.jsxs)("header",{className:"flex h-12 shrink-0 flex-row items-center gap-2 px-3",children:[void 0!==s&&(0,l.jsxs)("div",{className:"flex min-w-0 items-center gap-1",children:[(0,l.jsx)(u,{children:(0,l.jsx)(c.A,{className:"h-4 w-4"})}),(0,l.jsx)("span",{className:"min-w-0 truncate rounded-md px-1.5 py-1 text-sm font-semibold text-foreground",children:s}),(0,l.jsx)(u,{children:(0,l.jsx)(i.A,{className:"h-4 w-4"})}),(0,l.jsx)(u,{children:(0,l.jsx)(d.A,{className:"h-4 w-4"})})]}),(0,l.jsx)("div",{className:"flex shrink-0 items-center gap-0.5 rounded-md border border-border-standout bg-background p-0.5",children:t.map(e=>{let s=h[e],t=n===e;return(0,l.jsxs)("span",{className:(0,m.cn)("flex items-center gap-1.5 rounded-[5px] px-2.5 py-1 text-xs font-medium",t?"bg-accent text-foreground":"text-muted-foreground"),children:[(0,l.jsx)(s,{className:"h-3.5 w-3.5 shrink-0"}),"navigator"===e?r:"chat"===e?"AI":"Search"]},e)})}),(0,l.jsx)("div",{className:"flex min-w-0 flex-1 items-center justify-center px-3",children:"string"==typeof a?(0,l.jsx)("h2",{className:"max-w-[28rem] truncate text-center text-xl font-semibold text-foreground",children:a}):a}),void 0!==s&&(0,l.jsx)("div",{className:"flex items-center gap-1.5",children:(0,l.jsx)("span",{className:(0,m.cn)("flex items-center gap-1.5 rounded-md border px-2.5 py-1.5 text-xs font-medium text-foreground",p?"border-border bg-accent":"border-border-standout bg-background"),children:f>0?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(o.A,{className:"h-3.5 w-3.5 shrink-0 animate-spin"}),f," in progress"]}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(x.A,{className:"h-3.5 w-3.5 shrink-0"}),"Upload"]})})})]})}},12210:(e,s,t)=>{t.d(s,{Fx:()=>n,kV:()=>a});var l=t(95155),r=t(29715);let n={type:"spring",stiffness:200,damping:30,mass:1};function a(e){let{width:s,open:t,children:a}=e,c=(0,l.jsx)("div",{className:"h-full py-3",style:{width:s},children:(0,l.jsx)("div",{className:"flex h-full w-full flex-col overflow-hidden border-r border-[hsl(0_0%_80%)]",children:a})});return void 0===t?(0,l.jsx)("div",{className:"h-full shrink-0 overflow-hidden bg-workspace",style:{width:s},children:c}):(0,l.jsx)(r.P.div,{className:"relative h-full shrink-0 overflow-hidden bg-workspace",initial:!1,animate:{width:t?s:0},transition:n,children:c})}},34462:(e,s,t)=>{t.d(s,{G:()=>u});var l=t(95155),r=t(89715),n=t(39068),a=t(27209),c=t(41669),i=t(27937),d=t(24033),o=t(64269);let x=(e,s)=>"".concat(e," ").concat(s).concat(1!==e?"s":""),m={pdf:r.A,web:n.A,youtube:a.A,table:c.A};function h(e){var s,t;let{section:r,hits:n,activeHit:a,density:c,glass:d,open:h,sectionRef:u,fragment:p,allHits:f}=e,g="roomy"===c,j=m[null!=(s=r.type)?s:"pdf"],b=null!=(t=r.collections)?t:[];return(0,l.jsxs)("li",{ref:u,className:(0,o.cn)("relative",g?"ml-4":"ml-2"),children:[(0,l.jsxs)("div",{className:"flex h-7 min-w-0 items-center gap-2 overflow-hidden rounded-md px-2 text-xs text-sidebar-foreground [&>svg]:size-4 [&>svg]:shrink-0",children:[(0,l.jsx)(j,{}),(0,l.jsx)("span",{className:"truncate",children:r.source.title})]}),b.length>0&&(0,l.jsxs)("p",{className:(0,o.cn)("pr-2 py-0.5 text-xs text-muted-foreground",g?"pl-10 mb-2":"pl-8"),children:["in collection",b.length>1?"s":""," ",b.map((e,s)=>(0,l.jsxs)("span",{children:[(0,l.jsx)("span",{className:"underline underline-offset-2",children:e}),s<b.length-2?", ":s===b.length-2?b.length>2?", and ":" and ":""]},e))]}),(0,l.jsxs)("div",{className:(0,o.cn)("flex items-center gap-1 px-2 py-0.5 text-xs text-muted-foreground",g&&"pl-10"),children:[(0,l.jsx)(i.A,{className:(0,o.cn)("h-3 w-3 transition-transform",h&&"rotate-90")}),(0,l.jsx)("span",{children:x(n.length,"matching section")})]}),h&&(0,l.jsx)("ul",{className:(0,o.cn)("ml-4 flex min-w-0 translate-x-px flex-col border-l border-sidebar-border",g?"gap-2.5 px-3.5 py-1":"gap-1 px-2.5 py-0.5"),children:n.map(e=>{var s,t,r;return(0,l.jsx)("li",{"data-hit":e,className:"flex items-start gap-1",children:(0,l.jsx)("div",{ref:(null==p?void 0:p.hit)===e?p.ref:void 0,className:(0,o.cn)("line-clamp-5 flex-1 rounded-sm border border-border text-left text-xs text-foreground","transition-colors duration-300",g?"px-3 pt-2.5 leading-5":"px-2 pt-2 leading-6",e===a&&(d?"bg-white/80":g?"bg-sidebar-accent":"bg-background")),children:(s=f[e].source.body[f[e].chunk
1],"".concat(s.lead).concat(null!=(t=s.mark)?t:"").concat(null!=(r=s.tail)?r:""))})},e)})})]})}function u(e){let{query:s,hits:t,activeHit:r,density:n="compact",glass:a=!1,scope:c,openSections:i,section:m,fragment:u}=e,p="roomy"===n,f=t.reduce((e,s,t)=>{let l=e[e.length-1];return l&&l.source===s.source?l.hits.push(t):e.push({source:s.source,hits:[t],collections:s.collections,type:s.type}),e},[]);return(0,l.jsxs)("div",{className:(0,o.cn)("flex flex-col",p?"gap-2":"gap-1"),children:[(0,l.jsxs)("div",{className:"flex items-center gap-1 rounded-sm px-2 py-1 text-left",children:[(0,l.jsx)(d.A,{className:"mt-0.5 h-3.5 w-3.5 shrink-0 text-muted-foreground"}),(0,l.jsx)("span",{className:"break-words text-sm font-semibold text-foreground",children:s})]}),c&&(0,l.jsx)("div",{className:(0,o.cn)("pr-2 text-xs text-muted-foreground",p?"pl-8":"pl-7"),children:c}),(0,l.jsx)("div",{className:(0,o.cn)("flex flex-col",p?"gap-3":"gap-2"),children:(0,l.jsxs)("div",{className:(0,o.cn)("flex flex-col",p?"gap-2":"gap-1"),children:[(0,l.jsx)("div",{className:"px-2 pt-1 text-[11px] font-semibold uppercase tracking-wide text-muted-foreground",children:x(f.length,"source")}),(0,l.jsx)("ul",{className:(0,o.cn)("flex w-full min-w-0 flex-col",p?"gap-2":"gap-1"),children:f.map((e,s)=>(0,l.jsx)(h,{section:e,hits:e.hits,activeHit:r,density:n,glass:a,open:!i||i.includes(s),sectionRef:(null==m?void 0:m.section)===s?m.ref:void 0,fragment:u,allHits:t},e.source.title))})]})})]})}},50416:(e,s,t)=>{t.d(s,{BE:()=>u,O6:()=>p,tQ:()=>g});var l=t(95155),r=t(12115),n=t(70198),a=t(21857),c=t(24033),i=t(66630),d=t(86651),o=t(64269),x=t(73933),m=t(12210),h=t(80854);let u=464,p=348,f=[{label:"Sources",Icon:n.A},{label:"Notes",Icon:a.A}];function g(e){let{width:s,activeHit:t,smooth:n=!0,inputH:a=68}=e,u=(0,r.useRef)(null);return(0,r.useEffect)(()=>{if(null==t)return;let e=u.current,s=null==e?void 0:e.querySelector('[data-hit="'.concat(t,'"]'));if(!e||!s)return;let l=e.getBoundingClientRect(),r=e.clientHeight?l.height/e.clientHeight:1,a=(s.getBoundingClientRect().top-l.top)/(r||1),c=e.scrollTop+a-(e.clientHeight-s.clientHeight)/2;e.scrollTo({top:Math.max(0,c),behavior:n?"smooth":"auto"})},[t,n]),(0,l.jsx)(m.kV,{width:s,children:(0,l.jsx)("div",{className:"mx-auto flex h-full min-h-0 w-full max-w-2xl flex-col px-1.5 pb-3 pt-1",children:(0,l.jsx)("div",{className:"flex min-h-0 flex-1 flex-col overflow-hidden px-2 pb-2",children:(0,l.jsxs)("div",{className:"relative flex h-full min-h-0 w-full min-w-0 flex-col gap-2 p-2",children:[(0,l.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,l.jsx)("div",{className:"flex h-8 w-full flex-none items-center justify-between gap-2 rounded-md px-2",children:(0,l.jsxs)("span",{className:"group -ml-1 flex min-w-0 items-center gap-1 rounded-sm px-1 py-0.5 text-md text-foreground",children:[(0,l.jsxs)("span",{className:"truncate",children:["Search in ",x.cO]}),(0,l.jsx)(c.A,{className:"h-3.5 w-3.5 shrink-0 text-muted-foreground"})]})}),(0,l.jsxs)("div",{className:"relative",children:[(0,l.jsx)("div",{className:"w-full rounded-sm border border-border-standout bg-background px-2 pr-16 pt-2 text-sm text-muted-foreground",style:{minHeight:a,paddingBottom:a-28},children:"Search for concepts, not keywords..."}),(0,l.jsxs)("div",{className:"absolute bottom-2 right-2 flex items-center gap-0.5",children:[(0,l.jsx)("span",{className:"rounded-sm p-1 text-muted-foreground",children:(0,l.jsx)(i.A,{className:"h-3.5 w-3.5"})}),(0,l.jsx)("span",{className:"rounded-sm p-1 text-muted-foreground",children:(0,l.jsx)(d.A,{className:"h-3.5 w-3.5"})})]})]}),(0,l.jsx)("div",{className:"flex flex-wrap gap-1",children:f.map(e=>{let{label:s,Icon:t}=e;return(0,l.jsxs)("span",{className:(0,o.cn)("inline-flex items-center gap-1 rounded-sm border px-2 py-0.5 text-xs","border-border-standout bg-accent text-foreground"),children:[(0,l.jsx)(t,{className:"h-3 w-3 shrink-0"}),s]},s)})})]}),(0,l.jsxs)("div",{className:"flex min-h-0 flex-1 flex-col gap-2",children:[(0,l.jsx)("div",{className:"flex-none border-t border-border px-2 py-1",children:(0,l.jsx)("span",{className:"text-xs font-semibold text-muted-foreground",children:"Recently Searched"})}),(0,l.jsx)("div",{ref:u,className:"relative min-h-0 flex-1 overflow-hidden px-2",children:(0,l.jsx)(h.ro,{activeHit:t})})]})]})})})})}},80854:(e,s,t)=>{t.d(s,{kz:()=>i,os:()=>a,ro:()=>d});
1var l=t(95155),r=t(73933),n=t(34462);let a=r.c2[0],c={title:r.tq,body:r.qF},i=[{source:c,chunk:1},{source:c,chunk:2},{source:{title:r.MI,body:r.XS[1].body},chunk:2}];function d(e){let{activeHit:s}=e;return(0,l.jsx)(n.G,{query:a,hits:i,activeHit: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.