PageSourceSearch

https://boodoo.ai/_next/static/chunks/4865.8e88cc2aa4495c39.js

js boodoo.ai collected 2026-10-05 14:39:20 UTC 8,688 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4865],{5179:(e,t,r)=>{r.d(t,{YZ:()=>a,hI:()=>l,lC:()=>o,pp:()=>d});var s=r(39017),n=r(69125);function a(e){let{children:t,className:r}=e;return(0,s.jsx)("div",{className:(0,n.cn)("text-eyebrow font-medium text-foreground-muted",r),children:t})}function l(e){let{label:t,value:r,align:l="left",className:o}=e;return(0,s.jsxs)("div",{className:(0,n.cn)("right"===l&&"text-right",o),children:[(0,s.jsx)(a,{children:t}),(0,s.jsx)("div",{"data-numeric":!0,className:"mt-1 font-mono text-mono-data text-foreground",children:r})]})}function o(e){let{children:t,className:r}=e;return(0,s.jsx)("div",{className:(0,n.cn)("[&>*]:border-b [&>*]:border-border [&>*:last-child]:border-b-0",r),children:t})}function d(e){let{title:t,children:r,action:n}=e;return(0,s.jsxs)("div",{className:"py-8",children:[(0,s.jsx)("p",{className:"text-title-2 font-medium text-foreground",children:t}),r?(0,s.jsx)("p",{className:"mt-1 max-w-prose text-body-sm text-foreground-muted",children:r}):null,n?(0,s.jsx)("div",{className:"mt-4",children:n}):null]})}},94865:(e,t,r)=>{r.r(t),r.d(t,{CodeViewer:()=>y,LANGUAGES:()=>m,MAX_HIGHLIGHT_BYTES:()=>u,MAX_RENDERED_LINES:()=>h,buildTree:()=>f,languageFor:()=>p});var s=r(39017),n=r(88861),a=r(29724),l=r(69125),o=r(5179),d=r(23298);let i={plain:{color:"var(--foreground)",backgroundColor:"transparent"},styles:[{types:["comment","prolog","doctype","cdata"],style:{color:"var(--code-comment)",fontStyle:"italic"}},{types:["keyword","selector","changed","at-rule"],style:{color:"var(--code-keyword)"}},{types:["string","char","attr-value","regex","inserted"],style:{color:"var(--code-string)"}},{types:["number","boolean","constant","symbol"],style:{color:"var(--code-literal)"}},{types:["function","class-name","tag","attr-name","property","builtin"],style:{color:"var(--code-name)"}},{types:["punctuation","operator"],style:{color:"var(--foreground-muted)"}},{types:["deleted"],style:{color:"var(--destructive)"}}]},c="plaintext",m={ts:"typescript",tsx:"tsx",js:"javascript",jsx:"jsx",mjs:"javascript",cjs:"javascript",json:"json",css:"css",html:"markup",svg:"markup",xml:"markup",md:"markdown",mdx:"markdown",yml:"yaml",yaml:"yaml",sql:"sql",py:"python",go:"go",rs:"rust",graphql:"graphql",prisma:"typescript"};function p(e){var t;let r=e.slice(e.lastIndexOf("/")+1),s=r.lastIndexOf(".");return null!=(t=m[s>0?r.slice(s+1).toLowerCase():""])?t:c}let u=153600,h=3e3;function x(e){return e<1024?"".concat(e," B"):e<1048576?"".concat(Math.round(e/1024)," KB"):"".concat((e/1048576).toFixed(1)," MB")}function f(e){let t={name:"",path:"",folders:[],files:[]};for(let r of e){let e=r.path.split("/");e.pop();let s=t;for(let t of e){let e=s.path?"".concat(s.path,"/").concat(t):t,r=s.folders.find(e=>e.name===t);r||(r={name:t,path:e,folders:[],files:[]},s.folders.push(r)),s=r}s.files.push(r)}return t}function g(e){let{folder:t,depth:r,expanded:n,onToggle:a,selected:l,onSelect:o}=e,d={paddingLeft:"".concat(.75*r+.5,"rem")};return(0,s.jsxs)(s.Fragment,{children:[t.folders.map(e=>{let t=n.has(e.path);return(0,s.jsxs)("div",{children:[(0,s.jsxs)("button",{type:"button",onClick:()=>a(e.path),"aria-expanded":t,style:d,className:"flex w-full items-center gap-1.5 py-1 pr-2 text-left text-body-sm text-foreground-muted transition-colors select-none hover:bg-surface-raised [@media(pointer:coarse)]:py-2.5",children:[(0,s.jsx)("span",{"aria-hidden":"true",className:"w-3 shrink-0 text-foreground-dim",children:t?"▾":"▸"}),(0,s.jsx)("span",{className:"truncate",children:e.name})]}
1),t?(0,s.jsx)(g,{folder:e,depth:r+1,expanded:n,onToggle:a,selected:l,onSelect:o}):null]},e.path)}),t.files.map(e=>{var t;let n=l===e.path;return(0,s.jsxs)("button",{type:"button",onClick:()=>o(e.path),"aria-current":n?"true":void 0,style:{paddingLeft:"".concat(.75*r+1.6,"rem")},className:n?"flex w-full items-center gap-2 border-l-2 border-primary bg-surface-raised py-1 pr-2 text-left text-body-sm font-medium text-foreground select-none [@media(pointer:coarse)]:py-2.5":"flex w-full items-center gap-2 border-l-2 border-transparent py-1 pr-2 text-left text-body-sm text-foreground-muted transition-colors select-none hover:bg-surface-raised hover:text-foreground [@media(pointer:coarse)]:py-2.5",children:[(0,s.jsx)("span",{className:"truncate",children:(t=e.path).slice(t.lastIndexOf("/")+1)}),"120000"===e.mode?(0,s.jsx)("span",{className:"shrink-0 text-caption text-foreground-dim",children:"link"}):null]},e.path)})]})}function b(e){var t;let{path:r,data:n,error:m,isLoading:f}=e;if(f)return(0,s.jsxs)("div",{className:"space-y-2 p-4",children:[(0,s.jsx)(d.EA,{className:"h-3 w-1/3 bg-surface-raised"}),(0,s.jsx)(d.EA,{className:"h-3 w-2/3 bg-surface-raised"}),(0,s.jsx)(d.EA,{className:"h-3 w-1/2 bg-surface-raised"})]});if(m||!n)return(0,s.jsx)("div",{className:"p-4",children:(0,s.jsx)(o.pp,{title:"That file could not be read",children:"It may have been changed by a turn that finished after this list was loaded."})});if(n.symlink)return(0,s.jsxs)("div",{className:"p-4 text-body-sm text-foreground-muted",children:["A link to ",(0,s.jsx)("span",{className:"font-mono text-foreground",children:n.content}),"."]});if(n.binary)return(0,s.jsxs)("div",{className:"p-4 text-body-sm text-foreground-muted",children:["Not shown — this is a binary file (",x(n.size),")."]});if(n.tooLarge)return(0,s.jsxs)("div",{className:"p-4 text-body-sm text-foreground-muted",children:["Not shown — this file is ",x(n.size),", too large to display here."]});let g=null!=(t=n.content)?t:"",b=g.split("\n").length,y=b>h,j=y?g.split("\n").slice(0,h).join("\n"):g,v=n.size>u?c:p(r);return(0,s.jsxs)(s.Fragment,{children:[y?(0,s.jsxs)("p",{className:"border-b border-border px-4 py-2 text-caption text-foreground-muted",children:["Showing the first ",h.toLocaleString()," lines of"," ",b.toLocaleString(),"."]}):null,(0,s.jsx)(a.f4,{theme:i,code:j,language:v,children:e=>{let{tokens:t,getLineProps:r,getTokenProps:n}=e;return(0,s.jsx)("pre",{className:"min-w-full overflow-x-auto p-4 text-mono-data leading-relaxed",children:(0,s.jsx)("code",{className:"table",children:t.map((e,t)=>{let{className:a,...o}=r({line:e});return(0,s.jsxs)("div",{...o,className:(0,l.cn)("table-row",a),children:[(0,s.jsx)("span",{"aria-hidden":"true",className:"table-cell select-none pr-4 text-right text-foreground-dim tabular-nums",children:t+1}),(0,s.jsx)("span",{className:"table-cell whitespace-pre",children:e.map((e,t)=>(0,s.jsx)("span",{...n({token:e})},t))})]},t)})})})}})]})}function y(e){let{files:t,loading:r,error:a,selected:i,onSelect:c,blob:m,blobError:p,blobLoading:u}=e,[h,x]=(0,n.useState)(new Set),y=(0,n.useMemo)(()=>f(t),[t]),j=(0,n.useMemo)(()=>{let e=function e(t){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Set;for(let s of t.folders)r.add(s.path),e(s,r);return r}(y);for(let t of h)e.delete(t);return e},[y,h]);return r?(0,s.jsxs)("div",{className:"space-y-2",children:[(0,s.jsx)(d.EA,{className:"h-3 w-1/4 bg-surface-raised"}),(0,s.jsx)(d.EA,{className:"h-3 w-1/2 bg-surface-raised"})]}):a?(0,s.jsx)(o.pp,{title:"The code could not be loaded",children:"The machine holding this project did not answer. Try again in a moment."}):0===t.length?(0,s.jsx)(o.pp,{title:"No code yet",children:"Nothing has been built for this project. Describe what you want and the first version will appear here."}):(0,s.jsx)("div",{className:"flex h-[min(70dvh,40rem)] min-h-0 flex-col overflow-hidden rounded-md border border-border bg-surface",children:(0,s.jsxs)("div",{className:"flex min-h-0 flex-1",children:[(0,s.jsx)("div",{className:(0,l.cn)("min-h-0 shrink-0 overflow-y-auto overscroll-contain border-border py-2","
1w-full md:w-56 md:border-r",i&&"hidden md:block"),children:(0,s.jsx)(g,{folder:y,depth:0,expanded:j,onToggle:e=>x(t=>{let r=new Set(t);return r.has(e)?r.delete(e):r.add(e),r}),selected:i,onSelect:c})}),(0,s.jsx)("div",{className:(0,l.cn)("flex min-h-0 min-w-0 flex-1 flex-col",!i&&"hidden md:flex"),children:i?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"flex shrink-0 items-center gap-2 border-b border-border px-4 py-2",children:[(0,s.jsx)("button",{type:"button",onClick:()=>c(null),className:"shrink-0 text-caption text-primary select-none md:hidden [@media(pointer:coarse)]:-my-2.5 [@media(pointer:coarse)]:py-2.5",children:"‹ Files"}),(0,s.jsx)("span",{className:"truncate font-mono text-caption text-foreground-muted",children:i})]}),(0,s.jsx)("div",{className:"min-h-0 flex-1 overflow-auto",children:(0,s.jsx)(b,{path:i,data:m,error:p,isLoading:u})})]}):(0,s.jsx)("div",{className:"p-4 text-body-sm text-foreground-muted",children:"Choose a file to read it."})})]})})}}}]);

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.