PageSourceSearch

https://app.mentes.ai/assets/ReadPage-Cs0utxGJ.js

js mentes.ai collected 2026-10-02 00:43:01 UTC 4,031 bytes, 2 lines download raw bytes

1import{r as n,j as e,c as i,dm as N,aj as v,d as y,z as k,k as w,g as B,dn as L,O as R,c3 as C,dp as m,dq as P,dr as S,u as z}from"./index-B5baMg1b.js";import{u as A}from"./use-history-back-C8LestKX.js";import{A as I}from"./arrow-left-BFFnMox4.js";import{M as q}from"./message-square-text-D5c792s5.js";import{A as D}from"./arrow-up-right-CvhE7P6h.js";const f=n.forwardRef(({...r},a)=>e.jsx("nav",{ref:a,"aria-label":"breadcrumb",...r}));f.displayName="Breadcrumb";const h=n.forwardRef(({className:r,...a},s)=>e.jsx("ol",{ref:s,className:i("flex flex-wrap items-center gap-1.5 break-words text-sm text-muted-foreground sm:gap-2.5",r),...a}));h.displayName="BreadcrumbList";const l=n.forwardRef(({className:r,...a},s)=>e.jsx("li",{ref:s,className:i("inline-flex items-center gap-1.5",r),...a}));l.displayName="BreadcrumbItem";const o=n.forwardRef(({asChild:r,className:a,...s},c)=>{const d=r?N:"a";return e.jsx(d,{ref:c,className:i("transition-colors hover:text-foreground",a),...s})});o.displayName="BreadcrumbLink";const p=n.forwardRef(({className:r,...a},s)=>e.jsx("span",{ref:s,role:"link","aria-disabled":"true","aria-current":"page",className:i("font-normal text-foreground",r),...a}));p.displayName="BreadcrumbPage";const u=({children:r,className:a,...s})=>e.jsx("li",{role:"presentation","aria-hidden":"true",className:i("[&>svg]:size-3.5",a),...s,children:r??e.jsx(v,{})});u.displayName="BreadcrumbSeparator";function O({link:r}){return r?e.jsx("div",{className:"flex",children:e.jsx(f,{children:e.jsxs(h,{children:[e.jsx(l,{children:e.jsx(o,{href:"/",children:"Home"})}),e.jsx(u,{}),e.jsx(l,{children:r.collection?e.jsx(o,{href:"/c/"+r.collection.id,children:r.collection?.title}):e.jsx(o,{href:"/c/",children:"Inbox"})}),e.jsx(u,{}),e.jsx(l,{children:e.jsx(p,{children:r.title})})]})})}):null}function T({id:r,hideChatWidget:a}){const s=y(),c=A(k(s)),d=w(),j=a||s==="study",{data:t,isLoading:g}=B({queryKey:["link",r],queryFn:()=>L(r),enabled:!!r});return g?e.jsx(R,{}):t?s==="study"?e.jsxs("div",{className:"flex h-full flex-col",children:[e.jsx("div",{className:"w-full shrink-0 px-2 py-2.5 md:px-4",children:e.jsxs("div",{className:"mx-auto flex max-w-3xl items-center gap-3",children:[e.jsx("button",{type:"button",onClick:c,"aria-label":"Back",className:"inline-flex items-center text-muted-foreground transition-colors hover:text-foreground",children:e.jsx(I,{className:"size-4"})}),x(t.url)&&e.jsx("span",{className:"shrink-0 font-mono text-[11px] tracking-wide text-muted-foreground/70",children:x(t.url)}),e.jsx("span",{className:"min-w-0 flex-1 truncate text-sm font-medium text-foreground",children:t.title||"Untitled"}),e.jsxs("button",{type:"button",onClick:()=>{const b={aboutNoteId:t.id,aboutTitle:t.title?.trim()||"this page",aboutType:"LINK"};d(C(s),{state:b})},className:"inline-flex shrink-0 items-center gap-1 text-xs text-muted-foreground transition-colors hover:text-foreground",children:[e.jsx(q,{className:"size-3.5","aria-hidden":"true"}),"Ask about this"]}),t.url&&e.jsxs("a",{href:t.url,target:"_blank",rel:"noopener noreferrer",className:"inline-flex shrink-0 items-center gap-1 text-xs text-muted-foreground transition-colors hover:text-foreground",children:["Open original",e.jsx(D,{className:"size-3.5","aria-hidden":"true"})]})]})}),e.jsx("div",{className:"min-h-0 flex-1 select-none",children:e.jsx(m,{link:t})})]}):e.jsxs("section",{className:"container items-center gap-2 py-2 pb-8",children:[e.jsx("div",{className:"flex border-b pb-2",children:e.jsx(O,{link:t})}),e.jsx("div",{className:"select-none",children:e.jsx(m,{link:t})}),!j&&e.jsx(P,{value:{selectedLink:t},children:e.jsx(S,{})})]}):e.jsx("div",{className:"flex h-full items-center justify-center",children:e.jsx("p",{className:"text-sm text-muted-foreground",children:"Saved page not found"})})}function x(r){if(!r)return null;try{return new URL(r).hostname.replace(/^www\./,"")}catch{return null}}function W(){const{id:r}=z();return r?e.jsx(T,{id:r}):null}export{W as default};
2//# sourceMappingURL=ReadPage-Cs0utxGJ.js.map

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.