PageSourceSearch

https://couscouskabyle-iscc-app.hf.space/assets/AdminLegalPage-B4hT1tHF.js

js couscouskabyle-iscc-app.hf.space collected 2026-10-03 16:46:56 UTC 2,361 bytes, 1 lines download raw bytes

1import{r,j as a}from"./vendor-DGOCnzxu.js";import{c as h,L as b,e as k,r as p}from"./index-BBMFk3BU.js";import{D as i}from"./DataState-Dd66sfXo.js";import{b as j,a as x}from"./router-BWikjRJy.js";import"./gsap-CzGW6FVa.js";function N(){const[n,d]=r.useState(null),[o,m]=r.useState(""),[u]=j(),c=x();if(r.useEffect(()=>{let e=!0;return h().then(t=>{e&&d(t)}).catch(t=>{e&&m(t.message)}),()=>{e=!1}},[]),o)return a.jsx(i,{kind:"error",title:"Legal documents couldn't load",message:o});if(!n)return a.jsx(b,{variant:"panel",center:!0,label:"Loading legal documents…"});if(!n.ok)return a.jsx(i,{kind:"error",title:"Legal documents couldn't load",message:n.message});const s=n.docs.find(e=>e.key===u.get("doc"))??n.docs[0];function g(e){const t=e.target.closest("a"),l=(t==null?void 0:t.getAttribute("href"))??"";l.startsWith("/admin/legal")&&(e.preventDefault(),c(l),window.scrollTo(0,0))}function f(){const e=new Blob([s.markdown],{type:"text/markdown;charset=utf-8"}),t=URL.createObjectURL(e),l=document.createElement("a");l.href=t,l.download=s.filename,l.click(),URL.revokeObjectURL(t)}return a.jsxs("main",{className:"adminLegal",children:[a.jsx("h1",{children:"Legal"}),a.jsx("p",{className:"pageIntro",children:"Contracts and policies for customer agreements. Every document here is a DRAFT until counsel has reviewed it."}),a.jsx("nav",{className:"adminHubTabs","aria-label":"Legal documents",children:n.docs.map(e=>a.jsx("a",{href:`/admin/legal?doc=${e.key}`,className:["adminHubTabs__tab",e.key===s.key?"is-active":null].filter(Boolean).join(" "),"aria-current":e.key===s.key?"page":void 0,onClick:t=>{t.preventDefault(),c(`/admin/legal?doc=${e.key}`)},children:e.title},e.key))}),s.available?a.jsxs(a.Fragment,{children:[a.jsxs("div",{className:"adminLegal__toolbar",children:[a.jsxs("span",{className:"adminLegal__source",children:[s.path,s.document_date?` · dated ${k(s.document_date)}`:""]}),a.jsx("button",{type:"button",className:"legalPage__close",onClick:f,children:"Download .md"})]}),a.jsx("div",{className:"legalPage__banner",role:"note",children:"DRAFT — not yet reviewed by qualified counsel. Not legally binding."}),a.jsx("div",{className:"legalPage__body",onClick:g,children:p(s.display_markdown)})]}):a.jsx(i,{kind:"unavailable",title:`${s.title} is missing`,message:`${s.path} is not in this build.`})]})}export{N as AdminLegalPage};

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.