PageSourceSearch

https://get.marking.ai/_next/static/chunks/6071-e9bdd08f8edebc05.js

js marking.ai collected 2026-10-05 12:16:05 UTC 11,477 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6071],{2402:(e,t,n)=>{n.d(t,{$d:()=>i,CO:()=>l,XX:()=>u,so:()=>o});var a=n(39217),r=n(39376);let l="Only PDF files are supported. If you have a different file type, open it and export or Save As PDF, then upload the PDF.",i="This PDF has no readable pages. Please open the file to check it, then upload a valid PDF.";async function s(e){try{return(await a.PDFDocument.load(e,{ignoreEncryption:!0})).getPageCount()>0}catch(e){return!0}}function o(e){let t=e instanceof Uint8Array?e:new Uint8Array(e),n=[37,80,68,70,45],a=Math.min(t.length-n.length,1024);for(let e=0;e<=a;e++){let a=!0;for(let r=0;r<n.length;r++)if(t[e+r]!==n[r]){a=!1;break}if(a)return!0}return!1}async function u(e){var t;let n,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},u=null!=(t=a.maxBytes)?t:r.gx;if(e.size>u)return(0,r.n3)(u);try{n=await e.arrayBuffer()}catch(e){return null}return o(n)?await s(n)?null:i:l}},8407:(e,t,n)=>{n.d(t,{ef:()=>p,fT:()=>m,he:()=>f});var a=n(54568),r=n(7620),l=n(826),i=n(7493),s=n(98208),o=n(39251);function u(e){let{icon:t,className:n}=e;return(0,a.jsx)("div",{className:(0,l.cn)("flex size-10 shrink-0 items-center justify-center rounded-lg border border-neutral-200 bg-white text-neutral-700 shadow-xs",n),children:(0,a.jsx)(t,{className:"size-5"})})}function d(e){let{label:t,className:n,tone:r}=e;return(0,a.jsx)("div",{className:(0,l.cn)("flex size-10 shrink-0 items-center justify-center rounded-lg","pdf"===r?"bg-red-600":"bg-neutral-700",n),children:(0,a.jsx)("span",{className:"text-[10px] font-bold leading-none tracking-wide text-white",children:t})})}function c(e){let{iconVariant:t,file:n,isError:r}=e;if(r)return(0,a.jsx)(u,{icon:i.F.error,className:"border-destructive/30 text-destructive"});if("file-type"===t){var l;let e=null==(l=n.name.split(".").pop())?void 0:l.toLowerCase();if("pdf"===e)return(0,a.jsx)(d,{label:"PDF",tone:"pdf"});if((0,o.eo)(n.name))return(0,a.jsx)(d,{label:(null!=e?e:"").toUpperCase(),tone:"media"})}return(0,a.jsx)(u,{icon:i.F.submissions})}function m(e){let{accept:t,multiple:n=!1,maxSize:s,maxFiles:o,disabled:d=!1,hint:c,promptCta:m="Click to upload",promptRest:f="or drag and drop",onFilesSelected:p,onRejected:x,className:g,...v}=e,[h,b]=r.useState(!1),y=r.useRef(null),j=r.useCallback(e=>{if(!e||0===e.length)return;let t=Array.from(e),n=[],a=t;if(s)for(let e of(a=[],t))e.size>s?n.push({file:e,reason:"too-large"}):a.push(e);if(o&&a.length>o){for(let e of a.slice(o))n.push({file:e,reason:"too-many"});a=a.slice(0,o)}n.length>0&&(null==x||x(n)),0!==a.length&&p(a)},[s,o,p,x]),N=()=>{var e;d||null==(e=y.current)||e.click()};return(0,a.jsxs)("div",{role:"button",tabIndex:d?-1:0,"aria-disabled":d||void 0,onClick:N,onKeyDown:e=>{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),N())},onDragOver:e=>{e.preventDefault(),d||b(!0)},onDragLeave:e=>{e.preventDefault(),b(!1)},onDrop:e=>{e.preventDefault(),b(!1),d||j(e.dataTransfer.files)},...v,"data-slot":"file-upload-dropzone","data-state":d?"disabled":h?"dragging":"default",className:(0,l.cn)("relative flex w-full flex-col items-center gap-3 rounded-xl border border-neutral-300 bg-white px-6 py-4 text-center transition-colors","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",!d&&"cursor-pointer hover:border-primary hover:bg-primary/5",h&&"border-primary bg-primary/5",d&&"cursor-not-allowed opacity-60",g),children:[(0,a.jsx)("input",{ref:y,type:"file",accept:t,multiple:n,disabled:d,onChange:e=>{j(e.target.files),y.current&&(y.current.value="")},className:"hidden"}),(0,a.jsx)(u,{icon:i.F.cloudUpload}),(0,a.jsxs)("div",{className:"flex flex-col items-center gap-1",children:[(0,a.jsxs)("p",{className:"text-sm leading-5",children:[(0,a.jsx)("span",{className:"font-semibold text-primary-700",children:m})," ",(0,a.jsx)("span",{className:"font-normal text-neutral-600",children:f})]}),c?(0,a.jsx)("p",{className:"text-xs leading-[18px] font-normal text-neutral-600",children:c}):null]})]})}function f(e){var t;let{file:n,state:r="complete",progress:o=0,errorMessage:u,statusNote:d,iconVariant:m="file-type",onRemove:f,onRetry:p,className:x}=e,g=null==(t=n.size)||Number.isNaN(t)?null:t<1024?"".concat(t," B"):t<1048576?"".concat((t/1024).toFixed(0)," KB"):t<0x40000000?"".concat((t/1048576).toFixed(1)," MB"):"".concat((t/0x40000000).toFixed(1)," GB"),v="error"===r,h="uploading"===r,b="complete"===r,y="queued"===r,j=Math.max(0,Math.min(100,Math.round(o)));return(0,a.jsxs)("div",{"data-slot":"file-upload-item","data-state":r,className:(0,l.cn)("flex items-start gap-3 rounded-xl border bg-white px-4 py-3.5",v?"border-destructive/40 bg-destructive/[0.03]":b?"border-success":"border-neutral-200",x),children:[(0,a.jsx)(c,{iconVariant:m,file:n,isError:v}),(0,a.jsxs)("div",{className:"flex min-w-0 flex-1 flex-col gap-1",children:[(0,a.jsxs)("div",{className:"flex items-start justify-between gap-3",children:[(0,a.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,a.jsx)("p",{className:"truncate text-sm font-medium leading-5 text-neutral-700",children:n.name}),g?(0,a.jsx)("p",{className:"text-sm leading-5 font-normal text-neutral-600",children:g}):null]}),(0,a.jsxs)("div",{className:"flex shrink-0 items-center gap-1",children:[v&&p?(0,a.jsx)("button",{type:"button",onClick:p,className:"rounded px-2 py-1 text-sm font-semibold text-primary-700 hover:underline focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",children:"Try again"}):null,f?(0,a.jsx)("button",{type:"button",onClick:f,"aria-label":h?"Cancel upload":"Remove file",className:"rounded p-1 text-neutral-400 transition-colors hover:text-neutral-700 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",children:h||y?(0,a.jsx)(i.F.close,{className:"size-4"}):(0,a.jsx)(i.F.delete,{className:"size-4"})}):null]})]}),(h||b)&&(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)(s.ke,{value:b?100:j,size:"sm",className:"flex-1"}),(0,a.jsx)("span",{className:"text-sm font-medium tabular-nums text-neutral-700",children:b?"100%":"".concat(j,"%")})]}),y&&(0,a.jsx)("p",{className:"text-sm leading-5 text-neutral-500",children:"Queued"}),h?(0,a.jsx)("p",{className:"text-sm leading-5 text-neutral-600 empty:hidden","aria-live":"polite",children:null!=d?d:""}):null,v?(0,a.jsx)("p",{className:"text-sm leading-5 text-destructive",children:v?null!=u?u:"Upload failed, please try again":null}):null]})]})}function p(e){let{files:t,onRemove:n,onRetry:r,iconVariant:i,className:s,...o}=e;return(0,a.jsxs)("div",{"data-slot":"file-upload",className:(0,l.cn)("flex w-full flex-col gap-3",s),children:[(0,a.jsx)(m,{...o}),t&&t.length>0?(0,a.jsx)("div",{className:"flex flex-col gap-2",children:t.map((e,t)=>(0,a.jsx)(f,{file:e.file,state:e.state,progress:e.progress,errorMessage:e.errorMessage,iconVariant:i,onRemove:n?()=>
1n(t):void 0,onRetry:r?()=>r(t):void 0},"".concat(e.file.name,"-").concat(t)))}):null]})}},39251:(e,t,n)=>{n.d(t,{C:()=>i,Vy:()=>a,eo:()=>o,i_:()=>s});let a=new Set(["mp3","mp4","m4a","wav","webm"]);function r(e){var t;let n=null!=(t=(null!=e?e:"").split(/[\\/]/).pop())?t:"",a=n.lastIndexOf(".");return a<0?"":n.slice(a+1).toLowerCase()}let l=new Set(["mov","m4v","avi","mkv","wmv","3gp","3g2","mpg","mpeg","aac","ogg","oga","opus","flac","amr","aiff","aif","wma"]);function i(e){return l.has(r(e))}function s(e){return r(e)}function o(e){return a.has(r(e))}},39376:(e,t,n)=>{n.d(t,{$N:()=>h,As:()=>p,FL:()=>b,Hj:()=>c,Jf:()=>g,Ze:()=>o,Zt:()=>s,_C:()=>d,bB:()=>x,gx:()=>r,n3:()=>l,nk:()=>u,o8:()=>v,te:()=>f,uM:()=>i,zW:()=>m});var a=n(39251);let r=0x3200000;function l(e){let t=Math.round(e/1024/1024);return"That PDF is over the ".concat(t," MB limit, so our AI can't read it.")}let i=l(0x3200000),s=0x1400000,o=262144e3,u=18e5,d="This recording is over the ".concat(u/6e4," minute limit. Trim it to the assessed part and upload it again.");function c(e){return Math.ceil(e/6e4)}function m(e){return(0,a.eo)(e)?o:s}let f=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o,t=Math.round(e/1024/1024);return"That recording is over the ".concat(t," MB limit. Trim it, or export the audio only (for example as .m4a or .mp3), and try again.")}();function p(e){return"".concat(e," is in a format we can't mark yet. Recordings can be .mp3, .mp4, .m4a, .wav or .webm: save it as an MP4, or export just the audio, then upload it again.")}let x="That's a recording, not a PDF. The marking guide must be a PDF — add your students' recordings on the next step.",g=0x1400000,v="That file is over the 20 MB limit.",h="That file appears to be empty.",b="Couldn't retry this file — remove the row and add it again."},49024:(e,t,n)=>{n.d(t,{RE:()=>s,UN:()=>a,c5:()=>r,pp:()=>i,yS:()=>l});let a="Network error during upload",r="Upload timed out. Please check your connection and try again.",l="Upload aborted",i="Upload failed with status ";function s(e,t,n){var s;let o=null!=(s=null==n?void 0:n.stallTimeoutMs)?s:9e4;return new Promise((s,u)=>{var d;if(null==n||null==(d=n.signal)?void 0:d.aborted)return void u(Error(l));let c=new XMLHttpRequest;c.open("PUT",e),(null==n?void 0:n.contentType)&&c.setRequestHeader("Content-Type",n.contentType),(null==n?void 0:n.timeoutMs)&&(c.timeout=n.timeoutMs);let m=null,f=null,p=!1,x=!1,g=null,v=()=>{null!==g&&clearTimeout(g),g=setTimeout(h,o)},h=()=>{p||(x=!0,c.abort())},b=e=>{if(!p)v(),e.lengthComputable&&(null==n?void 0:n.onProgress)&&(f=Math.round(e.loaded/e.total*100),null===m&&(m=requestAnimationFrame(()=>{m=null,p||null===f||n.onProgress(f)})))},y=()=>{p||(E(),c.status>=200&&c.status<300?s():u(Error("".concat(i).concat(c.status," ").concat(c.statusText))))},j=()=>{p||(E(),u(Error(a)))},N=()=>{p||(E(),u(Error(x?r:l)))},w=()=>{p||(E(),u(Error(r)))},k=()=>{p||c.abort()};function E(){p=!0,c.upload.removeEventListener("progress",b),c.removeEventListener("load",y),c.removeEventListener("error",j),c.removeEventListener("abort",N),c.removeEventListener("timeout",w),null!==m&&(cancelAnimationFrame(m),m=null),null!==g&&(clearTimeout(g),g=null),(null==n?void 0:n.signal)&&n.signal.removeEventListener("abort",k)}c.upload.addEventListener("progress",b),c.addEventListener("load",y),c.addEventListener("error",j),c.addEventListener("abort",N),c.addEventListener("timeout",w),(null==n?void 0:n.signal)&&n.signal.addEventListener("abort",k),v(),c.send(t)})}},50801:(e,t,n)=>{n.d(t,{i:()=>a});let a="This PDF is password-protected, so it can't be read."},98655:(e,t,n)=>{n.d(t,{D0:()=>u,bg:()=>m,dh:()=>d,ry:()=>c});var a=n(54568);n(7620);var r=n(45702),l=n(4916),i=n(19042),s=n(53826),o=n(826);function u(e){let{className:t,...n}=e;return(0,a.jsx)(r.X,{"data-slot":"field",className:(0,o.cn)("flex w-full flex-col gap-2",t),...n})}function d(e){let{className:t,children:n,required:r,...i}=e;return(0,a.jsxs)(l.d,{"data-slot":"field-label",className:(0,o.cn)("text-sm font-medium leading-5 text-neutral-700","data-[disabled]:text-neutral-500",t),...i,children:[n,r?(0,a.jsx)("span",{"aria-hidden":!0,
1className:"ml-0.5 text-primary",children:"*"}):null]})}function c(e){let{className:t,...n}=e;return(0,a.jsx)(i.r,{"data-slot":"field-description",className:(0,o.cn)("text-sm font-normal leading-5 text-neutral-600","data-[disabled]:text-neutral-400",t),...n})}function m(e){let{className:t,...n}=e;return(0,a.jsx)(s.b,{"data-slot":"field-error",className:(0,o.cn)("text-sm font-normal leading-5 text-destructive",t),...n})}}}]);

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.