1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2981],{69420:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/assignment/[assignmentId]/rubric-feedback",function(){return n(1638)}])},76782:function(e,t,n){"use strict";n.d(t,{G:function(){return b}});var r=n(42237),o=n(5083),u=n(48974),a=n(59239),c=n(50682),l=n(13652),d=n(7112),f=n(8910),m=n(45548);let b=[{name:"Home",href:"/home",icon:r.Z},{name:"Workflows",href:"/workflows",icon:o.Z},{name:"Tools",href:"/tools",icon:u.Z},{name:"Grade Assignments",href:"/assignments",icon:a.Z},{name:"Chat",href:"/chat",icon:c.Z},{name:"Rubrics",href:"/rubrics",icon:l.Z},{name:"Audio",href:"/audio",icon:d.Z},{name:"Assistants",href:"/assistants",icon:f.Z},{name:"Settings",href:"/settings",icon:m.Z}]},18535:function(e,t,n){"use strict";n.d(t,{Z:function(){return Logo}});var r=n(85893);function Logo(e){let{textSize:t="text-2xl",minimized:n=!1}=e;return(0,r.jsx)("div",{className:" flex flex-col items-center justify-center h-full ",children:(0,r.jsx)("div",{className:"\n flex flex-col items-left justify-center\n w-full h-full\n ".concat(t," font-bold\n text-center\n "),children:(0,r.jsxs)("span",{className:"mt-2",style:{fontFamily:"Apfel Grotezk"},children:[(0,r.jsx)("span",{className:"text-black ".concat(t),children:n?"L":"Leo"}),"."]})})})}},1638:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return RubricFeedbackSubmission}});var r=n(85893),o=n(65689),u=n(71804),a=n(890),c=n(79022),l=n(5654),d=n(68293),f=n(83505),m=n(94518),b=n(26595),h=n(11163),g=n(67294),w=n(9473);function RubricFeedbackSubmission(e){let{submission:t,assignment:n}=e,k=(0,w.I0)(),v=(0,h.useRouter)(),p=(0,w.v9)(e=>e.currentSubmission),x=(0,w.v9)(e=>e.currentRubricFeedbackSubmission);(0,g.useEffect)(()=>{v.query.assignmentId&&v.query.i&&k((0,f.i6)(v.query.assignmentId,parseInt(v.query.i)))},[v.query.i,v.query.assignmentId,k]);let[y,j]=(0,g.useState)(null),[Z,E]=(0,g.useState)(!1),handleSubmitSave=async()=>{E(!0);let{_id:e,overallComments:t,highlightedText:n,criteriaLevels:r,criteriaPoints:o,criteriaFeedback:u}=p.functionResult,{success:a,data:c}=await (0,b.Z)("post","/api/v1/db/rubricFeedbackFunctionResult/update",{functionResultId:e,data:{overallComments:t,highlightedText:n,criteriaLevels:r,criteriaPoints:o,criteriaFeedback:u}});a&&(console.log("success"),k((0,m.RF)(5e3,"success","Feedback updated!"))),E(!1)};return(0,r.jsxs)(r.Fragment,{children:[(null==x?void 0:x.isLoading)&&(0,r.jsx)("div",{className:"fixed top-0 left-0 w-full h-full flex items-center justify-center bg-white bg-opacity-80 z-50",children:(0,r.jsx)(o.Z,{size:12})}),(0,r.jsx)(l.Z,{documentPanel:(0,r.jsx)(u.Z,{currentRubricOrFeedbackSubmission:x,setRubricOrFeedbackFeedbackItems:d.FL,setRubricOrFeedbackProcessedHtml:d.JF}),feedbackPanel:(0,r.jsx)(a.Z,{handleHoverComment:e=>{let t=document.getElementById(e);t&&(t.style.backgroundColor="yellow",t.style.border="1px solid lightgray",t.style.borderRadius="10px"),j(e)},clearHoverComment:()=>{if(y){let e=document.getElementById(y);e&&e.removeAttribute("style")}j(null)}}),navbar:(0,r.jsx)(c.Z,{handleSubmitSave:handleSubmitSave,isSubmitting:Z}),current:"Assignments"})]})}},14157:function(e,t,n){"use strict";n.d(t,{f:function(){return s}});var r=n(67294),o=n(16723);function i(e){var t;if(e.type)return e.type;let n=null!=(t=e.as)?t:"button";if("string"==typeof n&&"button"===n.toLowerCase())return"button"}function s(e,t){let[n,u]=(0,r.useState)(()=>i(e));return(0,o.e)(()=>{u(i(e))},[e.type,e.as]),(0,o.e)(()=>{n||t.current&&t.current instanceof HTMLButtonElement&&!t.current.hasAttribute("type")&&u("button")},[n,t]),n}},52913:function(e,t,n){"use strict";var r=n(67294);let o=r.forwardRef(function({title:e,titleId:t,...n},o){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:o,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M10.5 19.5L3 12m0 0l7.5-7.5M3 12h18"}))});t.Z=o},57292:function(e,t,n){"use strict";var r=n(67294);let o=r.forwardRef(function({title:e,titleId:t,...n},o){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:o,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13.5 4.5L21 12m0 0l-7.5 7.5M21 12H3"}))});t.Z=o},55263:function(e,t,n){"use strict";var r=n(67294);let o=r.forwardRef(function({title:e,titleId:t,...n},o){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:o,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M17.593 3.322c1.1.128 1.907 1.077 1.907 2.185V21L12 17.25 4.5 21V5.507c0-1.108.806-2.057 1.907-2.185a48.507 48.507 0 0111.186 0z"}))});t.Z=o}},function(e){e.O(0,[5445,6556,7222,1664,8835,5996,9525,9156,98,350,890,9774,2888,179],function(){return e(e.s=69420)}),_N_E=e.O()}]);
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.