1import{r as w,j as e,X as b,L as d}from"./index-CBG5cVW0.js";import{u as g}from"./use-seo-Cig_ajQL.js";import{u as N,H as j,i as u}from"./lexicon-index-DSkk1WQU.js";import{P as $,S as y}from"./page-shell-UGuUKuWi.js";import"./footer-B5P_pcLz.js";const k={bdb:{key:"bdb",routePrefix:"/bdb",shortName:"BDB",longName:"BDB Hebrew Bible Dictionary",byline:"Brown, Driver, and Briggs â A Hebrew and English Lexicon of the Old Testament (1906)"},jastrow:{key:"jastrow",routePrefix:"/jastrow",shortName:"Jastrow",longName:"Jastrow Talmud Dictionary",byline:"Marcus Jastrow â A Dictionary of the Targumim, the Talmud Babli and Yerushalmi, and the Midrashic Literature (1903)"}};function A({lexiconKey:l,letter:n}){const t=k[l],a=N(l),c=n!==void 0&&!u(n),r=!c&&n&&u(n)?n:"",i=w.useMemo(()=>{if(!a||!r)return[];const o=[];for(let s=0;s<a.headwords.length;s++)a.normalized[s].startsWith(r)&&o.push(a.headwords[s]);return o},[a,r]),m=a?.total??0,h=r?`${t.shortName} Headwords starting with ${r} | Bekiut`:`${t.longName} â Complete Headword Index | Bekiut`,x=r?`Browse all ${t.shortName} dictionary headwords starting with the Hebrew letter ${r}. ${i.length} entries with direct lookup links.`:`Complete A-to-Z headword index for the ${t.longName}. Browse all ${m.toLocaleString()} entries by Hebrew letter on Bekiut.`,f=r?`${typeof window<"u"?window.location.origin:""}${t.routePrefix}/headwords/${encodeURIComponent(r)}`:`${typeof window<"u"?window.location.origin:""}${t.routePrefix}/headwords`;return g({title:h,description:x,ogTitle:h.replace(" | Bekiut",""),ogDescription:x,canonical:f,robots:"index, follow"}),c?e.jsx(b,{to:`${t.routePrefix}/headwords`,replace:!0}):e.jsxs($,{children:[e.jsxs("div",{className:"pt-10 pb-8",children:[e.jsxs("nav",{className:"text-sm text-muted-foreground mb-4 flex items-center gap-2 flex-wrap","aria-label":"Breadcrumb",children:[e.jsx(d,{href:t.routePrefix,className:"hover:text-foreground","data-testid":"link-back-reader",children:t.shortName}),e.jsx("span",{children:"âº"}),e.jsx(d,{href:`${t.routePrefix}/headwords`,className:"hover:text-foreground","data-testid":"link-headword-index",children:"Headword Index"}),r&&e.jsxs(e.Fragment,{children:[e.jsx("span",{children:"âº"}),e.jsx("span",{className:"font-hebrew text-base text-foreground",children:r})]})]}),e.jsxs("h1",{className:"font-georgia text-3xl md:text-4xl text-foreground mb-2",children:[r?`${t.shortName} Headwords â `:`${t.longName} â Headword Index`,r&&e.jsx("span",{className:"font-hebrew text-3xl",children:r})]}),e.jsx("p",{className:"text-sm text-muted-foreground",children:r?`${i.length.toLocaleString()} entries starting with ${r}. Click any headword to look it up.`:`Complete A-to-Z directory of all ${m.toLocaleString()} ${t.shortName} entries. Pick a letter to browse.`}),!r&&e.jsx("p",{className:"text-xs text-muted-foreground mt-2",children:t.byline})]}),e.jsx("div",{className:"border-t border-border pt-6 mb-8",children:e.jsx("div",{className:"grid grid-cols-8 sm:grid-cols-11 gap-2",children:j.map(o=>{const s=a?.perLetterCounts[o],p=o===r;return e.jsxs(d,{href:`${t.routePrefix}/headwords/${encodeURIComponent(o)}`,"data-testid":`letter-link-${o}`,className:`h-12 inline-flex flex-col items-center justify-center gap-0 rounded border text-lg font-hebrew ${p?"bg-primary text-primary-foreground border-primary":"border-border hover:bg-secondary"}`,children:[e.jsx("span",{className:"leading-none",children:o}),s!==void 0&&e.jsx("span",{className:"text-[10px] tabular-nums leading-none mt-0.5 opacity-70",children:s.toLocaleString()})]},o)})})}),r&&e.jsx("div",{className:"pb-12",children:a?i.length===0?e.jsxs("p",{className:"text-sm text-muted-foreground",children:["No headwords found for ",r,"."]}):e.jsx("ul",{className:"columns-2 sm:columns-3 md:columns-4 gap-x-6 [&>li]:break-inside-avoid",dir:"rtl",children:i.map((o,s)=>e.jsx("li",{className:"mb-1",children:e.jsx(d,{href:`${t.routePrefix}?q=${encodeURIComponent(o)}`,className:"font-hebrew text-base text-primary dark:text-[#5b9fc5] hover:underline","data-testid":`headword-${s}`,children:o})},`${o}-${s}`))}):e.jsx("p",{className:"text-sm text-muted-foreground",children:"Loading headwordsâ¦"})}),!r&&a&&e.jsxs("div",{className:"border-t border-border pt-6 pb-12",children:[e.jsx(y,{className:"mb-2",children:"About this index"}),e.jsxs("p",{className:"text-sm text-muted-foreground",children:["Every headword in this index links directly into the ",t.shortName," reader. Headwords are sourced from Sefaria's lexicon API and refreshed periodically; counts shown above each letter reflect the most recent snapshot."]})]})]})}export{A 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.