PageSourceSearch

https://trysteadier.app/assets/DocumentDetail-CuQDlHM6.js

js trysteadier.app collected 2026-10-02 15:59:49 UTC 2,678 bytes, 1 lines download raw bytes

1import{j as e}from"./vendor-motion-CrVg7028.js";import{L as d,B as s,A as c}from"./index-B58eJlvC.js";import{d as m,u as x}from"./vendor-react-CMYciJPr.js";import{F as a}from"./file-text-PNoLp2Co.js";import{D as f}from"./download-IKthukdx.js";import"./vendor-query-C4LcE4u2.js";import"./vendor-supabase-XOXmZWMk.js";function v(){const n=m(),o=x(),{title:t,content:r,supplementary_text:l}=o.state||{},i=(r==null?void 0:r.toLowerCase().endsWith(".pdf"))||(r==null?void 0:r.includes(".pdf"));return e.jsx(d,{children:e.jsxs("div",{className:"flex flex-col h-[calc(100vh-4rem)]",children:[e.jsxs("div",{className:"flex items-center gap-3 px-5 pt-2 pb-3 border-b border-border",children:[e.jsx(s,{variant:"ghost",size:"icon",onClick:()=>n(-1),className:"shrink-0",children:e.jsx(c,{className:"h-5 w-5"})}),e.jsxs("div",{className:"flex items-center gap-3 min-w-0 flex-1",children:[e.jsx("div",{className:"flex h-9 w-9 shrink-0 items-center justify-center rounded-lg bg-primary/10",children:e.jsx(a,{className:"h-4 w-4 text-primary"})}),e.jsx("h1",{className:"font-display text-lg font-bold text-foreground truncate",children:t||"Document"})]}),r&&e.jsx("a",{href:r,download:!0,target:"_blank",rel:"noopener noreferrer",children:e.jsxs(s,{variant:"outline",size:"sm",className:"shrink-0",children:[e.jsx(f,{className:"mr-2 h-4 w-4"}),"Download"]})})]}),l&&e.jsxs("div",{className:"mx-5 mt-3 rounded-xl border border-border bg-muted/50 p-4",children:[e.jsx("p",{className:"text-xs font-medium text-muted-foreground mb-1",children:"Notes"}),e.jsx("p",{className:"text-sm text-foreground whitespace-pre-wrap",children:l})]}),r?e.jsx("div",{className:"flex-1 px-5 py-3",children:i?e.jsxs("div",{className:"flex flex-col h-full",children:[e.jsx("iframe",{src:`https://docs.google.com/gview?url=${encodeURIComponent(r)}&embedded=true`,title:t||"Document",className:"w-full flex-1 rounded-xl border border-border"}),e.jsx("a",{href:r,target:"_blank",rel:"noopener noreferrer",className:"mt-2 inline-block text-xs text-muted-foreground underline hover:text-foreground",children:"Open PDF directly"})]}):e.jsxs("div",{className:"flex flex-col items-center justify-center h-full gap-4 text-center",children:[e.jsx(a,{className:"h-12 w-12 text-muted-foreground"}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"This document can't be previewed in-app."}),e.jsx("a",{href:r,target:"_blank",rel:"noopener noreferrer",children:e.jsx(s,{variant:"outline",children:"Open in New Tab"})})]})}):e.jsx("div",{className:"flex-1 flex items-center justify-center",children:e.jsx("p",{className:"text-sm text-muted-foreground",children:"No document available."})})]})})}export{v as default};

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.