1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5395],{21651:function(e,t,r){r.d(t,{x:function(){return s}});var a=r(42620),l=r(40740),n=r(29012);function s(e){let{lessonId:t,slotIndex:r,report:s,altHtmlUrl:o,onRemediated:i}=e,d=(0,n.T)("builderMain"),[c,u]=(0,l.useState)(null),[m,b]=(0,l.useState)(null),[x,p]=(0,l.useState)(null);if(!s)return null;let h="pdf"===s.kind&&s.findings.some(e=>"image_only_pdf"===e.code)&&!o,v="docx"===s.kind,g=s.score>=85?"success":s.score>=50?"warning":"danger",f=async e=>{u(e),b(null);try{let l=await fetch("/api/lessons/".concat(t,"/attachments/").concat(r,"/remediate"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:e})}),n=await l.json().catch(()=>null);if(!l.ok||!(null==n?void 0:n.data)){var a;b(null!==(a=null==n?void 0:n.error)&&void 0!==a?a:d("a11yDocError"));return}let s={action:e,...n.data};p(s),i(s)}catch(e){b(d("a11yDocError"))}finally{u(null)}};return(0,a.jsxs)("section",{"aria-labelledby":"a11y-doc-".concat(t,"-").concat(r),className:"mt-3 rounded-md border border-[rgb(var(--border-default))] bg-[rgb(var(--surface-raised))] p-3 text-sm",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between gap-3",children:[(0,a.jsx)("h3",{id:"a11y-doc-".concat(t,"-").concat(r),className:"font-medium",children:d("a11yDocTitle")}),(0,a.jsx)("span",{className:"mono-badge text-[rgb(var(--".concat(g,"))]"),children:d("a11yDocScore",{score:s.score})})]}),0===s.findings.length?(0,a.jsx)("p",{className:"mt-2 text-[rgb(var(--success))]",children:d("a11yDocClean")}):(0,a.jsx)("ul",{role:"list",className:"mt-2 space-y-2",children:s.findings.map(e=>{var t,r;return(0,a.jsxs)("li",{className:"flex gap-2",children:[(0,a.jsx)("span",{"aria-hidden":"true",children:"error"===e.severity?"â":"warning"===e.severity?"â ":"â¹"}),(0,a.jsxs)("span",{children:[(0,a.jsx)("span",{className:"font-medium",children:(t=e.code,r=e.count,d("docFinding_".concat(t),{count:null!=r?r:0}))}),(0,a.jsx)("span",{className:"block text-xs text-[rgb(var(--text-muted))]",children:d("docFix_".concat(e.code))})]})]},e.code)})}),o?(0,a.jsx)("p",{className:"mt-3",children:(0,a.jsx)("a",{href:o,target:"_blank",rel:"noopener noreferrer",className:"font-medium text-[rgb(var(--brand))] underline underline-offset-2",children:d("a11yDocAltHtmlLabel")})}):null,(h||v)&&!x?(0,a.jsxs)("div",{className:"mt-3 flex flex-wrap gap-3",children:[h?(0,a.jsx)("button",{type:"button",disabled:null!==c,onClick:()=>f("ocr"),className:"rounded-md bg-[rgb(var(--brand))] px-3 py-1.5 text-xs font-semibold text-[rgb(var(--brand-foreground))] disabled:opacity-60",children:"ocr"===c?d("a11yDocOcrBusy"):d("a11yDocOcrCta")}):null,v?(0,a.jsx)("button",{type:"button",disabled:null!==c,onClick:()=>f("convert_to_text_lesson"),className:"rounded-md border border-[rgb(var(--brand))] px-3 py-1.5 text-xs font-semibold text-[rgb(var(--brand))] disabled:opacity-60",children:"convert_to_text_lesson"===c?d("a11yDocConvertBusy"):d("a11yDocConvertCta")}):null]}):null,(null==x?void 0:x.action)==="convert_to_text_lesson"?(0,a.jsx)("p",{role:"status",className:"mt-3 text-[rgb(var(--success))]",children:d("a11yDocConvertDone")}):null,(null==x?void 0:x.action)==="ocr"?(0,a.jsx)("p",{role:"status",className:"mt-3 text-[rgb(var(--success))]",children:x.truncated?d("a11yDocOcrDoneTruncated",{done:x.pagesProcessed,total:x.pagesTotal}):d("a11yDocOcrDone")}):null,m?(0,a.jsx)("p",{role:"alert",className:"mt-3 text-[rgb(var(--danger))]",children:m}):null]})}},55395:function(e,t,r){r.r(t),r.d(t,{SubmissionLessonEditor:function(){return u}});var a=r(42620),l=r(40740),n=r(29012),s=r(36148),o=r(21651),i=r(18251);let d=[{value:"application/pdf",labelKey:"fileTypePdf"},{value:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",labelKey:"fileTypeDocx"},{value:"application/vnd.openxmlformats-officedocument.presentationml.presentation",labelKey:"fileTypePptx"},{value:"application/zip",labelKey:"fileTypeZip"}],c="block w-full rounded-md border border-[rgb(var(--border-default))] bg-[rgb(var(--surface-base))] px-3 py-2 text-sm focus:border-[rgb(var(--focus-ring))] focus:outline-none focus:ring-2 focus:ring-[rgb(var(--focus-ring))]/30";function u(e){var t,r,u,m,b,x,p,h,v,g,f;let{lessonId:j,initialContent:y,onSaveStateChange:N}=e,k=(0,n.T)("builderMain"),w=null!=y?y:{},C=w.instructions&&"object"==typeof w.instructions?w.instructions:null,[L,S]=(0,l.useState)("string"==typeof w.instructions?w.instructions:""),[H,M]=(0,l.useState)(null!==(t=w.acceptedTypes)&&void 0!==t?t:["application/pdf"]),[T,U]=(0,l.useState)(null!==(r=w.maxSizeMb)&&void 0!==r?r:50),[_,D]=(0,l.useState)(null!==(u=w.templateUrl)&&void 0!==u?u:null),[A,I]=(0,l.useState)(null!==(m=w.templateName)&&void 0!==m?m:null),[F,P]=(0,l.useState)(null!==(b=w.templateA11y)&&void 0!==b?b:null),[O,z]=(0,l.useState)(null!==(x=w.templateAltHtmlUrl)&&void 0!==x?x:null),[E,R]=(0,l.useState)(null!==(p=w.confirmationMessage)&&void 0!==p?p:""),[B,q]=(0,l.useState)(null!==(h=w.isPrerequisite)&&void 0!==h&&h),[K,W]=(0,l.useState)(null!==(v=w.examplesMode)&&void 0!==v?v:"off"),[V,J]=(0,l.useState)(null!==(g=w.label)&&void 0!==g?g:""),[Q,$]=(0,l.useState)(null!==(f=w.rubricId)&&void 0!==f?f:null),Y=(0,i.H)({lessonId:j}),[Z,G]=(0,l.useState)(!1),X=(0,l.useRef)(null),ee=(0,l.useCallback)(e=>{N("saving"),X.current&&clearTimeout(X.current);let t={instructions:null!=C?C:L,acceptedTypes:H,maxSizeMb:T,templateUrl:_,templateName:A,templateA11y:F,templateAltHtmlUrl:O,confirmationMessage:E||null,isPrerequisite:B,examplesMode:K,label:V||null,rubricId:Q,...e};X.current=setTimeout(async()=>{try{let e=await fetch("/api/lessons/".concat(j),{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({content:t})});N(e.ok?"saved":"error")}catch(e){N("error")}},1e3)},[j,N,C,L,H,T,_,A,F,O,E,B,K,V,Q]);(0,l.useEffect)(()=>()=>{X.current&&clearTimeout(X.current)},[]);let et=e=>{let t=H.includes(e)?H.filter(t=>t!==e):[...H,e];0!==t.length&&(M(t),ee({acceptedTypes:t}))},er=async e=>{G(!0);try{var t,r;let a=new FormData;a.append("file",e);let l=await fetch("/api/lessons/".concat(j,"/template"),{method:"POST",body:a}),n=await l.json().catch(()=>null);if(l.ok&&(null==n?void 0:null===(t=n.data)||void 0===t?void 0:t.url)){let e=null!==(r=n.data.a11y)&&void 0!==r?r:null;D(n.data.url),I(n.data.name),P(e),z(null),ee({templateUrl:n.data.url,templateName:n.data.name,templateA11y:e,templateAltHtmlUrl:null})}else N("error")}finally{G(!1)}};return(0,a.jsxs)("div",{className:"space-y-6 rounded-md border border-[rgb(var(--border-default))] bg-[rgb(var(--surface-base))] p-6",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("label",{htmlFor:"submission-instructions",className:"block text-sm font-medium",children:k("submissionInstructionsLabel")}),C?(0,a.jsxs)("div",{className:"mt-1.5",children:[(0,a.jsx)("div",{className:"rounded-md border border-[rgb(var(--border-default))] bg-[rgb(var(--surface-raised))] px-4 py-3 text-sm text-[rgb(var(--text-secondary))]",children:(0,a.jsx)(s.d,{content:C})}),(0,a.jsx)("p",{className:"mt-1 text-xs text-[rgb(var(--text-muted))]",children:k("submissionImportedInstructions")})]}):(0,a.jsx)("textarea",{id:"submission-instructions",rows:5,maxLength:4e3,value:L,onChange:e=>{S(e.target.value),ee({instructions:e.target.value})},className:"mt-1.5 ".concat(c),placeholder:k("submissionInstructionsPlaceholder")})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("label",{className:"block text-sm font-medium",children:k("templateLabel")}),(0,a.jsx)("p",{className:"mt-0.5 text-xs text-[rgb(var(--text-muted))]",children:k("templateHint")}),(0,a.jsx)("div",{className:"mt-2",children:_?(0,a.jsxs)("div",{className:"flex items-center gap-3 rounded-lg border border-[rgb(var(--border-default))] bg-[rgb(var(--surface-base))] p-3",children:[(0,a.jsx)("span",{className:"flex h-10 w-10 shrink-0 items-center justify-center rounded-md bg-[rgb(var(--brand))]/10 text-[rgb(var(--text-primary))]","aria-hidden":"true",children:(0,a.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M14 2H6a2 2 0 00-2 2v16a2 2 0 002 2h12a2 2 0 002-2V8l-6-6z"}),(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M14 2v6h6"})]})}),(0,a.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,a.jsx)("a",{href:_,target:"_blank",rel:"noopener noreferrer",className:"block truncate text-sm font-semibold text-[rgb(var(--text-primary))] hover:text-[rgb(var(--brand))] hover:underline",children:A||k("templateFallbackName")}),(0,a.jsx)("p",{className:"text-xs text-[rgb(var(--text-muted))]",children:k("templateDownloadable")})]}),(0,a.jsxs)("label",{className:"shrink-0 cursor-pointer text-sm font-medium text-[rgb(var(--brand))] hover:underline",children:[Z?k("uploading"):k("replace"),(0,a.jsx)("input",{type:"file",className:"sr-only",disabled:Z,onChange:e=>{var t;let r=null===(t=e.target.files)||void 0===t?void 0:t[0];r&&er(r)}})]}),(0,a.jsx)("button",{type:"button",onClick:()=>{D(null),I(null),P(null),z(null),ee({templateUrl:null,templateName:null,templateA11y:null,templateAltHtmlUrl:null})},className:"shrink-0 text-sm font-medium text-[rgb(var(--danger))] hover:underline",children:k("remove")})]}):(0,a.jsxs)("label",{className:"flex cursor-pointer items-center gap-3 rounded-lg border border-dashed border-[rgb(var(--border-default))] bg-[rgb(var(--surface-base))] p-4 hover:border-[rgb(var(--brand))] hover:bg-[rgb(var(--surface-raised))]",children:[(0,a.jsx)("span",{className:"flex h-10 w-10 shrink-0 items-center justify-center rounded-md bg-[rgb(var(--surface-raised))] text-[rgb(var(--text-muted))]","aria-hidden":"true",children:(0,a.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 3v12m0 0l-4-4m4 4l4-4M5 21h14"})})}),(0,a.jsx)("span",{className:"text-sm font-medium text-[rgb(var(--text-primary))]",children:Z?k("uploading"):k("templateUploadCta")}),(0,a.jsx)("input",{type:"file",className:"sr-only",disabled:Z,onChange:e=>{var t;let r=null===(t=e.target.files)||void 0===t?void 0:t[0];r&&er(r)}})]})}),_?(0,a.jsx)(o.x,{lessonId:j,slotIndex:0,report:F,altHtmlUrl:O,onRemediated:e=>{"ocr"===e.action&&(z(e.altHtmlUrl),ee({templateAltHtmlUrl:e.altHtmlUrl}))}}):null]}),(0,a.jsxs)("fieldset",{children:[(0,a.jsx)("legend",{className:"text-sm font-medium",children:k("acceptedTypesLegend")}),(0,a.jsx)("div",{className:"mt-2 grid gap-2 sm:grid-cols-2",children:d.map(e=>(0,a.jsxs)("label",{className:"flex items-center gap-2 rounded-md border border-[rgb(var(--border-default))] px-3 py-2 text-sm",children:[(0,a.jsx)("input",{type:"checkbox",checked:H.includes(e.value),onChange:()=>
1et(e.value),className:"h-4 w-4 rounded border-[rgb(var(--border-default))] text-[rgb(var(--brand))] focus:ring-[rgb(var(--focus-ring))]"}),(0,a.jsx)("span",{children:k(e.labelKey)})]},e.value))})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("label",{htmlFor:"submission-max",className:"block text-sm font-medium",children:k("maxSizeLabel")}),(0,a.jsx)("input",{id:"submission-max",type:"number",min:1,max:100,value:T,onChange:e=>{let t=Math.min(100,Math.max(1,Number(e.target.value)||1));U(t),ee({maxSizeMb:t})},className:"mt-1.5 w-32 ".concat(c)})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("label",{htmlFor:"submission-confirm",className:"block text-sm font-medium",children:k("confirmationMessageLabel")}),(0,a.jsx)("p",{className:"mt-0.5 text-xs text-[rgb(var(--text-muted))]",children:k("confirmationMessageHint")}),(0,a.jsx)("textarea",{id:"submission-confirm",rows:2,maxLength:300,value:E,onChange:e=>{R(e.target.value),ee({confirmationMessage:e.target.value||null})},className:"mt-1.5 ".concat(c),placeholder:k("confirmationMessagePlaceholder")})]}),(0,a.jsxs)("fieldset",{className:"space-y-3 border-t border-[rgb(var(--border-default))] pt-4",children:[(0,a.jsx)("legend",{className:"text-sm font-semibold",children:k("lessonSettingsLegend")}),(0,a.jsxs)("label",{className:"flex items-start gap-2 text-sm",children:[(0,a.jsx)("input",{type:"checkbox",checked:B,onChange:e=>{q(e.target.checked),ee({isPrerequisite:e.target.checked})},className:"mt-0.5 h-4 w-4 rounded border-[rgb(var(--border-default))] text-[rgb(var(--brand))] focus:ring-[rgb(var(--focus-ring))]"}),(0,a.jsxs)("span",{children:[(0,a.jsx)("span",{className:"font-medium",children:k("prerequisiteLabel")}),(0,a.jsx)("br",{}),(0,a.jsx)("span",{className:"text-[rgb(var(--text-muted))]",children:k("prerequisiteHint")})]})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("label",{htmlFor:"submission-examples",className:"block text-sm font-medium",children:k("examplesModeLabel")}),(0,a.jsx)("p",{className:"mt-0.5 text-xs text-[rgb(var(--text-muted))]",children:k("examplesModeHint")}),(0,a.jsxs)("select",{id:"submission-examples",value:K,onChange:e=>{let t=e.target.value;W(t),ee({examplesMode:t})},className:"mt-1.5 w-64 ".concat(c),children:[(0,a.jsx)("option",{value:"off",children:k("examplesModeOff")}),(0,a.jsx)("option",{value:"all",children:k("examplesModeAll")}),(0,a.jsx)("option",{value:"selected",children:k("examplesModeSelected")})]}),"selected"===K?(0,a.jsx)("p",{className:"mt-1.5 text-xs text-[rgb(var(--text-muted))]",children:k("examplesModeSelectedHint")}):null]}),(0,a.jsx)(i.Q,{id:"submission-rubric",value:Q,rubrics:Y,onChange:e=>{$(e),ee({rubricId:e})}}),(0,a.jsxs)("div",{children:[(0,a.jsx)("label",{htmlFor:"submission-label",className:"block text-sm font-medium",children:k("lessonLabelLabel")}),(0,a.jsx)("input",{id:"submission-label",type:"text",maxLength:16,value:V,onChange:e=>{J(e.target.value),ee({label:e.target.value||null})},className:"mt-1.5 w-48 ".concat(c),placeholder:k("lessonLabelPlaceholder")}),(0,a.jsx)("p",{className:"mt-1 text-xs text-[rgb(var(--text-muted))]",children:k("lessonLabelMaxChars")})]})]}),(0,a.jsx)("div",{className:"rounded-md border border-[rgb(var(--info))]/30 bg-[rgb(var(--info))]/5 p-3 text-sm text-[rgb(var(--text-secondary))]",children:k.rich("submissionReviewNote",{link:e=>(0,a.jsx)("a",{href:"submissions",className:"rounded-sm font-medium text-[rgb(var(--brand))] underline underline-offset-2",children:e})})})]})}},18251:function(e,t,r){r.d(t,{H:function(){return s},Q:function(){return o}});var a=r(42620),l=r(40740),n=r(29012);function s(e){let[t,r]=(0,l.useState)([]),{lessonId:a,schoolId:n}=e;return(0,l.useEffect)(()=>{let e=!1,t=a?"lessonId=".concat(encodeURIComponent(a)):n?"schoolId=".concat(encodeURIComponent(n)):"";if(t)return fetch("/api/admin/rubrics?".concat(t)).then(e=>e.ok?e.json():null).then(t=>{var a;!e&&(null==t?void 0:null===(a=t.data)||void 0===a?void 0:a.rubrics)&&r(t.data.rubrics.map(e=>{var t;return{id:e.id,name:e.name,description:null!==(t=e.description)&&void 0!==t?t:null}}))}).catch(()=>{}),()=>{e=!0}},[a,n]),t}function o(e){let{id:t,value:r,rubrics:l,onChange:s}=e,o=(0,n.T)("quizEditor");return(0,a.jsxs)("div",{children:[(0,a.jsx)("label",{htmlFor:t,className:"block text-xs font-medium text-[rgb(var(--text-secondary))]",children:o("rubricSelect")}),(0,a.jsxs)("select",{id:t,value:null!=r?r:"",onChange:e=>s(e.target.value||null),className:"mt-1 block w-full sm:w-72 ".concat("rounded-md border border-[rgb(var(--border-default))] bg-[rgb(var(--surface-base))] px-3 py-2 text-sm"),children:[(0,a.jsx)("option",{value:"",children:o("rubricNone")}),l.map(e=>(0,a.jsx)("option",{value:e.id,children:e.name},e.id))]}),(0,a.jsx)("p",{className:"mt-1 text-xs text-[rgb(var(--text-muted))]",children:o("rubricSelectHint")})]})}},1913:function(e,t,r){r.d(t,{I:function(){return n}});var a=r(42620),l=r(29012);function n(e){let{url:t,name:r,altHtmlUrl:n}=e,s=(0,l.T)("player");return t?(0,a.jsxs)("div",{className:"mb-6 flex flex-wrap items-center gap-3 rounded-lg border border-[rgb(var(--brand))]/30 bg-[rgb(var(--brand))]/5 p-4",children:[(0,a.jsx)("span",{className:"flex h-11 w-11 shrink-0 items-center justify-center rounded-md bg-[rgb(var(--brand))]/15 text-[rgb(var(--text-primary))]","aria-hidden":"true",children:(0,a.jsxs)("svg",{viewBox:"0 0 24 24",width:"22",height:"22",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M14 2H6a2 2 0 00-2 2v16a2 2 0 002 2h12a2 2 0 002-2V8l-6-6z"}),(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M14 2v6h6"})]})}),(0,a.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,a.jsx)("p",{className:"text-sm font-semibold text-[rgb(var(--text-primary))]",children:s("attachmentLabel")}),(0,a.jsx)("p",{className:"truncate text-xs text-[rgb(var(--text-secondary))]",children:r||s("attachmentLabel")}),n?(0,a.jsx)("a",{href:n,target:"_blank",rel:"noopener noreferrer",className:"mt-1 inline-block rounded-sm text-xs font-medium text-[rgb(var(--brand))] underline underline-offset-2",children:s("accessibleHtmlVersion")}):null]}),(0,a.jsxs)("a",{href:t,target:"_blank",rel:"noopener noreferrer",download:!0,className:"inline-flex shrink-0 items-center gap-2 rounded-md bg-[rgb(var(--brand))] px-4 py-2.5 text-sm font-semibold text-[rgb(var(--brand-foreground))] hover:bg-[rgb(var(--brand-hover))]",children:[(0,a.jsx)("svg",{viewBox:"0 0 24 24",width:"18",height:"18",fill:"none",stroke:"currentColor",strokeWidth:"2","aria-hidden":"true",children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 3v12m0 0l-4-4m4 4l4-4M5 21h14"})}),s("downloadAttachment")]})]}):null}},36148:function(e,t,r){r.d(t,{d:function(){return p}});var a=r(42620);r(95089);var l=r(40740),n=r(69384),s=r(29012),o=r(90623),i=r(19758),d=r(19187),c=r(56036),u=r(14349);let m=e=>"string"==typeof e&&e.trim()?e:null;var b=r(1913),x=r(38707);function p(e){var t;let{content:r}=e,p=(0,s.T)("player"),h=(0,n.$)(),v=(0,o.bU)(),g=null!=h?h:v,f=(0,l.useRef)(null),j=(0,l.useMemo)(()=>{try{let e=r&&"object"==typeof r&&"doc"in r?r.doc:r;if(!e)return"";let t=(0,i.ar)(e,(0,d.L)());return(0,u.f5)((0,c.$z)(t))}catch(e){return""}},[r]),y=null!==(t=(function(e){if(!e||"object"!=typeof e)return[];let t=[];for(let a of["attachment","template"]){let l="template"===a?{url:"templateUrl",name:"templateName",a11y:"templateA11y",altHtml:"templateAltHtmlUrl"}:{url:"attachmentUrl",name:"attachmentName",a11y:"attachmentA11y",altHtml:"attachmentAltHtmlUrl"},n=m(e[l.url]);if(n){var r;
1t.push({index:t.length,kind:a,url:n,name:m(e[l.name]),a11y:(r=e[l.a11y])&&"object"==typeof r&&1===r.version&&Array.isArray(r.findings)?e[l.a11y]:null,altHtmlUrl:m(e[l.altHtml])})}}return t})(r).find(e=>"attachment"===e.kind))&&void 0!==t?t:null;return j?(0,a.jsxs)(a.Fragment,{children:[y?(0,a.jsx)(b.I,{url:y.url,name:y.name,altHtmlUrl:y.altHtmlUrl}):null,(0,a.jsx)(x.h,{targetRef:f,lang:g,className:"mb-4"}),(0,a.jsx)("div",{ref:f,lang:g,className:"prose prose-lg max-w-none",dangerouslySetInnerHTML:{__html:j}})]}):y?(0,a.jsx)(b.I,{url:y.url,name:y.name,altHtmlUrl:y.altHtmlUrl}):(0,a.jsx)("p",{className:"rounded-md border border-dashed border-[rgb(var(--border-default))] bg-[rgb(var(--surface-base))] p-6 text-[rgb(var(--text-muted))]",children:p("noContentYet")})}}}]);
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.