1import{j as e}from"./index-Ca8Qthj3.js";import{f as d,b as x,N as h,L as i}from"./react-vendor-Coattl4B.js";import{P as p}from"./PageHead-BV4JoAsM.js";import{g as b,b as g,a as y}from"./schema-yPQl4twP.js";import{r as f}from"./ContentBlocks-UiJdCfjg.js";import{g as N,N as s}from"./index-CW6FJnDa.js";import"./CompartmentsExplorer-CkdIjhcV.js";import"./compartmentMeta-N3J5VvCm.js";import"./citationHref-CLrSouJ1.js";const n="'Noto Naskh Arabic', 'Scheherazade New', 'Amiri', serif";function R(){const{slug:r}=d(),a=N(r);if(x.useEffect(()=>{window.scrollTo(0,0)},[r]),!a)return e.jsx(h,{to:"/library/nibras",replace:!0});const l=`/library/nibras/${r}`,t=`/books/nibras/${a.file}`,o=b(y({title:a.title,description:a.summary||`${a.title}, a scanned Urdu essay by ${s}.`,path:l,datePublished:a.date,dateModified:a.date,author:s,type:"Article"}),g([{name:"Library",path:"/library"},{name:"The Essays of Nibras",path:"/library/nibras"},{name:a.title,path:l}]));return e.jsxs("div",{className:"min-h-screen bg-[#fafafa] font-sans",children:[e.jsx(p,{title:a.title,description:a.summary||`${a.title}, a scanned Urdu essay by ${s}.`,path:l,type:"article",schema:o,alternates:!1}),e.jsx("header",{className:"bg-emerald-950 px-6 pt-32 pb-14 text-center text-white",children:e.jsxs("div",{className:"mx-auto max-w-4xl",children:[e.jsxs("nav",{className:"mb-5 flex flex-wrap items-center justify-center gap-2 text-sm text-emerald-300","aria-label":"breadcrumb",children:[e.jsx(i,{to:"/library",className:"hover:text-white",children:"Library"}),e.jsx("span",{className:"opacity-60",children:"âº"}),e.jsx(i,{to:"/library/nibras",className:"hover:text-white",children:"The Essays"})]}),e.jsx("h1",{className:"text-3xl font-bold tracking-tight lg:text-5xl",children:a.title}),a.titleNative&&e.jsx("p",{dir:"rtl",lang:"ur",className:"mt-3 text-2xl text-emerald-300 lg:text-3xl",style:{fontFamily:n},children:a.titleNative}),e.jsxs("p",{className:"mt-6 text-sm text-emerald-200/80",children:[e.jsx("span",{dir:"rtl",lang:"ur",style:{fontFamily:n},children:s})," ","· ",a.pages," pages · ",a.date]})]})}),e.jsxs("main",{className:"mx-auto max-w-3xl px-5 py-10",children:[a.summary&&e.jsx("p",{className:"mb-8 text-[17px] leading-relaxed text-gray-800",children:f(a.summary)}),a.intro?.length>0&&e.jsxs("section",{className:"mb-10",children:[e.jsx("h2",{className:"mb-4 text-2xl font-bold text-gray-900",children:"From the authorâs introduction"}),e.jsx("div",{dir:"rtl",lang:"ur",className:"space-y-4 border-e-4 border-emerald-500 bg-white p-6 text-[17px] leading-loose text-gray-800 shadow-sm",style:{fontFamily:n},children:a.intro.map((m,c)=>e.jsx("p",{children:m},c))})]}),!a.intro?.length&&e.jsx("p",{className:"mb-8 border border-gray-200 bg-white p-5 text-[15px] leading-relaxed text-gray-600",children:"The archive preserved this one as a scan only, with no accompanying text, so the pages themselves carry the argument. Read them below."}),e.jsxs("section",{className:"mb-10",children:[e.jsxs("div",{className:"mb-3 flex flex-wrap items-baseline justify-between gap-3",children:[e.jsx("h2",{className:"text-2xl font-bold text-gray-900",children:"Read the essay"}),e.jsxs("span",{className:"text-xs font-bold tracking-wider text-emerald-700 uppercase",children:[a.pages," pages · ",a.sizeMb," MB"]})]}),e.jsx("object",{data:t,type:"application/pdf","aria-label":`${a.title}, ${a.pages} pages`,className:"h-[80vh] max-h-[900px] min-h-[520px] w-full border border-gray-300 bg-gray-100 shadow-sm",children:e.jsx("iframe",{src:t,title:a.title,loading:"lazy",className:"h-[80vh] max-h-[900px] min-h-[520px] w-full border-0",children:e.jsxs("p",{className:"p-6 text-[15px] text-gray-700",children:["Your browser cannot display the PDF here."," ",e.jsx("a",{href:t,target:"_blank",rel:"noopener noreferrer",className:"underline",children:"Open it in a new tab"}),"."]})})}),e.jsxs("div",{className:"mt-3 flex flex-wrap items-center gap-4",children:[e.jsx("a",{href:t,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 bg-emerald-700 px-5 py-2.5 text-sm font-bold text-white transition-colors hover:bg-emerald-800",children:"Open in a new tab â"}),e.jsx("a",{href:t,download:!0,className:"text-sm font-semibold text-emerald-700 underline underline-offset-2 hover:text-emerald-900",children:"Download"}),e.jsx("span",{className:"text-sm text-gray-500",children:"On phones the reader above may not appear; use either link instead."})]})]}),e.jsx("div",{className:"border-t border-gray-200 pt-6",children:e.jsx(i,{to:"/library/nibras",className:"text-emerald-700 hover:underline",children:"â Back to the essays"})})]})]})}export{R 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.