PageSourceSearch

https://thoughtprocess.us/_next/static/chunks/1620.c667f5a9c7264d62.js

js thoughtprocess.us collected 2026-10-02 02:11:38 UTC 12,212 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1620],{682:(e,a,s)=>{s.d(a,{A:()=>p});var t=s(95155),r=s(56154),l=s(86651),n=s(86254),d=s(35626),c=s(24033),i=s(15870),o=s(35299),x=s(21786),h=s(64269);let m={chat:r.A,search:l.A,navigator:n.A};function u(e){let{children:a}=e;return(0,t.jsx)("span",{className:"shrink-0 rounded-md p-1.5 text-muted-foreground",children:a})}function p(e){let{collection:a,tools:s=["chat","search","navigator"],navigatorLabel:r="Sources",activeTool:l,title:n,uploadOpen:p=!1,uploadInFlight:f=0}=e;return(0,t.jsxs)("header",{className:"flex h-12 shrink-0 flex-row items-center gap-2 px-3",children:[void 0!==a&&(0,t.jsxs)("div",{className:"flex min-w-0 items-center gap-1",children:[(0,t.jsx)(u,{children:(0,t.jsx)(d.A,{className:"h-4 w-4"})}),(0,t.jsx)("span",{className:"min-w-0 truncate rounded-md px-1.5 py-1 text-sm font-semibold text-foreground",children:a}),(0,t.jsx)(u,{children:(0,t.jsx)(c.A,{className:"h-4 w-4"})}),(0,t.jsx)(u,{children:(0,t.jsx)(i.A,{className:"h-4 w-4"})})]}),(0,t.jsx)("div",{className:"flex shrink-0 items-center gap-0.5 rounded-md border border-border-standout bg-background p-0.5",children:s.map(e=>{let a=m[e],s=l===e;return(0,t.jsxs)("span",{className:(0,h.cn)("flex items-center gap-1.5 rounded-[5px] px-2.5 py-1 text-xs font-medium",s?"bg-accent text-foreground":"text-muted-foreground"),children:[(0,t.jsx)(a,{className:"h-3.5 w-3.5 shrink-0"}),"navigator"===e?r:"chat"===e?"AI":"Search"]},e)})}),(0,t.jsx)("div",{className:"flex min-w-0 flex-1 items-center justify-center px-3",children:"string"==typeof n?(0,t.jsx)("h2",{className:"max-w-[28rem] truncate text-center text-xl font-semibold text-foreground",children:n}):n}),void 0!==a&&(0,t.jsx)("div",{className:"flex items-center gap-1.5",children:(0,t.jsx)("span",{className:(0,h.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,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(o.A,{className:"h-3.5 w-3.5 shrink-0 animate-spin"}),f," in progress"]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(x.A,{className:"h-3.5 w-3.5 shrink-0"}),"Upload"]})})})]})}},5136:(e,a,s)=>{s.d(a,{E:()=>c});var t=s(95155),r=s(6191),l=s(65229),n=s(84843);function d(e){let{entry:a,dim:s}=e;return(0,t.jsxs)("div",{className:"space-y-1",children:[(0,t.jsxs)("div",{className:"flex items-center gap-1.5 text-[11px] text-muted-foreground",children:[(0,t.jsx)(n.y,{name:a.addedBy,src:a.avatar}),(0,t.jsxs)("span",{children:["added by ",(0,t.jsx)("span",{className:"text-foreground/80",children:a.addedBy})]})]}),(0,t.jsx)("span",{className:"line-clamp-1 block text-sm font-medium underline",children:a.title}),(0,t.jsx)("div",{className:"line-clamp-5 rounded-sm border border-border px-2 pt-2 text-xs leading-5 text-foreground transition-colors duration-150 ".concat(s?"bg-accent":""),children:a.fragment})]})}function c(e){let{entries:a,padLeft:s=0,pressed:n}=e;return(0,t.jsxs)("div",{className:"flex min-h-0 flex-col text-foreground",children:[(0,t.jsxs)("div",{className:"flex shrink-0 items-center justify-between border-b border-border px-3 py-2",style:{paddingLeft:12+s},children:[(0,t.jsx)("span",{className:"truncate text-xs font-medium text-muted-foreground",children:"Linked sources"}),(0,t.jsxs)("span",{className:"flex items-center gap-1",children:[(0,t.jsx)("span",{className:"rounded p-1 text-foreground",children:(0,t.jsx)(r.A,{className:"h-4 w-4"})}),(0,t.jsx)("span",{className:"rounded p-1 text-muted-foreground",children:(0,t.jsx)(l.A,{className:"h-4 w-4"})})]})]}),(0,t.jsx)("div",{className:"min-h-0 flex-1 space-y-3 overflow-hidden px-3 py-2",style:{paddingLeft:12+s},children:a.map((e,a)=>(0,t.jsx)(d,{entry:e,dim:n===a},"".concat(e.title,":").concat(e.fragment)))})]})}},6191:(e,a,s)=>{s.d(a,{A:()=>t});let t=(0,s(71847).A)("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]])},14764:(e,a,s)=>{s.d(a,{IE:()=>h,zx:()=>o});var t=s(95155),r=s(26983),l=s(47937),n=s(97079),d=s(64893),c=s(40448),i=s(64269);let o=48,x=[{key:"recent",Icon:r.A},{key:"sources",Icon:l.A},{key:"writing",Icon:n.A},{key:"threads",Icon:d.A}];function h(e){let{mode:a="detail",destination:s}=e;return(0,t.jsxs)("div",{className:"flex h-full w-12 shrink-0 flex-col items-center border-r border-surface-border bg-sidebar py-2",children:[(0,t.jsx)("img",{src:"/nowords.png",alt:"",className:"size-7 rounded-md object-contain"}),"detail"===a&&(0,t.jsx)("nav",{className:"mt-3 flex flex-col items-center gap-1",children:x.map(e=>{let{key:a,Icon:r}=e;return(0,t.jsx)("span",{className:(0,i.cn)("flex h-9 w-9 items-center justify-center rounded-md",s===a?"bg-accent text-sidebar-accent-foreground":"text-muted-foreground"),children:(0,t.jsx)(r,{className:"h-[18px] w-[18px]"})},a)})}),(0,t.jsx)("div",{className:"mt-auto",children:(0,t.jsx)("span",{className:"flex h-9 w-9 items-center justify-center rounded-md text-muted-foreground",children:(0,t.jsx)(c.A,{className:"h-[20px] w-[20px]"})})})]})}},15870:(e,a,s)=>{s.d(a,{A:()=>t});let t=(0,s(71847).A)("settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]])},21786:(e,a,s)=>{s.d(a,{A:()=>t});let t=(0,s(71847).A)("upload",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"17 8 12 3 7 8",key:"t8dd8p"}],["line",{x1:"12",x2:"12",y1:"3",y2:"15",key:"widbto"}]])},24033:(e,a,s)=>{s.d(a,{A:()=>t});let t=(0,s(71847).A)("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]])},26983:(e,a,s)=>{s.d(a,{A:()=>t});let t=(0,s(71847).A)("clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]])},35299:(e,a,s)=>{s.d(a,{A:()=>t});let t=(0,s(71847).A)("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]])},35626:(e,a,s)=>{s.d(a,{A:()=>t});let t=(0,s(71847).A)("arrow-left",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]])},40448:(e,a,s)=>{s.d(a,{A:()=>t});let t=(0,s(71847).A)("circle-user-round",[["path",{d:"M18 20a6 6 0 0 0-12 0",key:"1qehca"}],["circle",{cx:"12",cy:"10",r:"4",key:"1h16sb"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]])},47937:(e,a,s)=>{s.d(a,{A:()=>t});let t=(0,s(71847).A)("book-open",[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]])},56154:(e,a,s)=>{s.d(a,{A:()=>t});let t=(0,s(71847).A)("zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]])},57076:(e,a,s)=>{s.d(a,{W:()=>n});var t=s(95155),r=s(682),l=s(14764);
1function n(e){let{collection:a,mode:s,tools:n,navigatorLabel:d,activeTool:c,title:i,uploadOpen:o,uploadInFlight:x,destination:h,children:m,overlay:u}=e;return(0,t.jsxs)("div",{className:"absolute inset-0 flex overflow-hidden text-foreground",children:[(0,t.jsx)(l.IE,{mode:s,destination:h}),(0,t.jsxs)("div",{className:"relative flex min-w-0 flex-1 flex-col overflow-hidden",children:[(0,t.jsx)(r.A,{collection:a,tools:n,navigatorLabel:d,activeTool:c,title:i,uploadOpen:o,uploadInFlight:x}),(0,t.jsx)("div",{className:"flex min-h-0 flex-1",children:m}),u]})]})}},64893:(e,a,s)=>{s.d(a,{A:()=>t});let t=(0,s(71847).A)("messages-square",[["path",{d:"M14 9a2 2 0 0 1-2 2H6l-4 4V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2z",key:"p1xzt8"}],["path",{d:"M18 9h2a2 2 0 0 1 2 2v11l-4-4h-6a2 2 0 0 1-2-2v-1",key:"1cx29u"}]])},84843:(e,a,s)=>{s.d(a,{y:()=>d});var t=s(95155),r=s(12115),l=s(64269);function n(e){let{src:a,alt:s,fallback:n,className:d,style:c}=e,i=(0,r.useRef)(null),[o,x]=(0,r.useState)(!1),[h,m]=(0,r.useState)(!1);(0,r.useEffect)(()=>{let e=i.current;(null==e?void 0:e.complete)&&e.naturalWidth>0&&x(!0)},[a]);let u=!!a&&!h;return(0,t.jsxs)("span",{className:(0,l.cn)("relative flex shrink-0 items-center justify-center overflow-hidden",d),style:c,children:[n,u&&(0,t.jsx)("img",{ref:i,src:a,alt:s,onLoad:()=>x(!0),onError:()=>m(!0),className:"absolute inset-0 h-full w-full object-cover",style:{opacity:+!!o,transition:"opacity 0.6s cubic-bezier(0.16,1,0.3,1)"}})]})}function d(e){let{name:a,src:s,className:r,textClassName:d="text-[8px]"}=e,c=a.trim().slice(0,1).toUpperCase()||"?";return(0,t.jsx)(n,{src:s,alt:a,className:(0,l.cn)("h-4 w-4 rounded-full bg-muted",r),fallback:(0,t.jsx)("span",{className:(0,l.cn)("text-muted-foreground",d),children:c})})}},86254:(e,a,s)=>{s.d(a,{A:()=>t});let t=(0,s(71847).A)("folder-tree",[["path",{d:"M20 10a1 1 0 0 0 1-1V6a1 1 0 0 0-1-1h-2.5a1 1 0 0 1-.8-.4l-.9-1.2A1 1 0 0 0 15 3h-2a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1Z",key:"hod4my"}],["path",{d:"M20 21a1 1 0 0 0 1-1v-3a1 1 0 0 0-1-1h-2.9a1 1 0 0 1-.88-.55l-.42-.85a1 1 0 0 0-.92-.6H13a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1Z",key:"w4yl2u"}],["path",{d:"M3 5a2 2 0 0 0 2 2h3",key:"f2jnh7"}],["path",{d:"M3 3v13a2 2 0 0 0 2 2h3",key:"k8epm1"}]])},86651:(e,a,s)=>{s.d(a,{A:()=>t});let t=(0,s(71847).A)("search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]])},88022:(e,a,s)=>{s.r(a),s.d(a,{WriteHeroScene:()=>b,default:()=>N});var t=s(95155),r=s(29715),l=s(55535),n=s(42589),d=s(73933),c=s(5136),i=s(27604),o=s(70268),x=s(14764),h=s(57076);let{refW:m,refH:u}=n.IL.writeHero,p=(m-x.zx)/2,f=p-48,y={duration:.14,ease:"easeOut"},j=[{name:"rest",dur:2800},{name:"press",dur:320},{name:"open",dur:6400}],v=d.rp[1],g=d.XS[1];function b(){return(0,t.jsx)(l.rs,{refW:m,refH:u,start:"scroll",backdrop:(0,t.jsx)("div",{className:"absolute inset-0 bg-workspace"}),children:(0,t.jsx)(k,{})})}function k(){let{at:e,between:a}=(0,l.TL)(j,{freezeAt:"open"}),s=e("open"),n=(0,t.jsx)(r.P.div,{className:"mt-1.5 flex max-h-[400px] min-h-0 flex-col overflow-hidden rounded-md border border-border-standout bg-background shadow-lg",style:{width:280},initial:!1,animate:{opacity:+!!s,scale:s?1:.98},transition:y,children:(0,t.jsx)(c.E,{entries:v})});return(0,t.jsx)(h.W,{collection:d.cO,activeTool:null,title:d.Ws,destination:"writing",children:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"min-w-0 flex-1 overflow-hidden",children:(0,t.jsxs)("div",{className:"flex h-full min-h-0 flex-row justify-center px-6 py-3",children:[(0,t.jsx)("div",{className:"relative flex min-h-0 shrink-0 flex-col overflow-hidden rounded-md border border-border bg-background shadow-sm",style:{width:f},children:(0,t.jsx)(i.YQ,{tagClauses:[1],activeClause:1,tagSlot:n})}),(0,t.jsx)(r.P.div,{className:"shrink-0 overflow-hidden",initial:!1,animate:{width:296*!s,opacity:+!s},transition:{...o.H7,opacity:y},children:(0,t.jsx)("div",{className:"ml-4 flex max-h-[400px] min-h-0 flex-col overflow-hidden rounded-md border border-border-standout bg-background",style:{width:280},children:(0,t.jsx)(c.E,{entries:v,pressed:a("press","open")?0:null})})})]})}),(0,t.jsx)(o.Ou,{open:s,source:g,width:p})]})})}let N=b},90799:(e,a,s)=>{s.d(a,{A:()=>t});let t=(0,s(71847).A)("pen-line",[["path",{d:"M12 20h9",key:"t2du7b"}],["path",{d:"M16.376 3.622a1 1 0 0 1 3.002 3.002L7.368 18.635a2 2 0 0 1-.855.506l-2.872.838a.5.5 0 0 1-.62-.62l.838-2.872a2 2 0 0 1 .506-.854z",key:"1ykcvy"}]])},97079:(e,a,s)=>{s.d(a,{A:()=>t});let t=(0,s(71847).A)("file-pen",[["path",{d:"M12.5 22H18a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v9.5",key:"1couwa"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M13.378 15.626a1 1 0 1 0-3.004-3.004l-5.01 5.012a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506z",key:"1y4qbx"}]])}}]);

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.