PageSourceSearch

https://educaler.com.br/_next/static/chunks/pages/ava/class/%5BclassCode%5D/grades/teacher-b63cfc0c1f869b3e.js

js educaler.com.br collected 2026-10-02 00:45:56 UTC 20,256 bytes, 8 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8446],{8679:function(e,t,s){"use strict";var r=s(59864),n={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},l={};function o(e){return r.isMemo(e)?i:l[e.$$typeof]||n}l[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},l[r.Memo]=i;var c=Object.defineProperty,d=Object.getOwnPropertyNames,u=Object.getOwnPropertySymbols,x=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,f=Object.prototype;e.exports=function e(t,s,r){if("string"!=typeof s){if(f){var n=h(s);n&&n!==f&&e(t,n,r)}var i=d(s);u&&(i=i.concat(u(s)));for(var l=o(t),m=o(s),p=0;p<i.length;++p){var g=i[p];if(!a[g]&&!(r&&r[g])&&!(m&&m[g])&&!(l&&l[g])){var j=x(s,g);try{c(t,g,j)}catch(e){}}}}return t}},26777:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/ava/class/[classCode]/grades/teacher",function(){return s(29926)}])},53819:function(e,t,s){"use strict";s.d(t,{Z:function(){return n}});var r=s(85893);function n(e){let{className:t}=e;return(0,r.jsxs)("svg",{className:t,xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",children:[(0,r.jsx)("g",{clipPath:"url(#clip0_330_2856)",children:(0,r.jsx)("path",{d:"M10.0002 0.833496V10.0002M10.0002 10.0002V19.1668M10.0002 10.0002H19.1668M10.0002 10.0002H0.833496",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}),(0,r.jsx)("defs",{children:(0,r.jsx)("clipPath",{id:"clip0_330_2856",children:(0,r.jsx)("rect",{width:"20",height:"20",fill:"white"})})})]})}s(67294)},45696:function(e,t,s){"use strict";s.d(t,{Z:function(){return n}});var r=s(85893);function n(e){let{onClick:t=()=>{}}=e;return(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",className:"cursor-pointer",onClick:t,children:[(0,r.jsx)("path",{d:"M18 13C19.1046 13 20 11.8807 20 10.5C20 9.11929 19.1046 8 18 8C16.8954 8 16 9.11929 16 10.5C16 11.8807 16.8954 13 18 13Z",fill:"#6B7280"}),(0,r.jsx)("path",{d:"M10 13C11.1046 13 12 11.8807 12 10.5C12 9.11929 11.1046 8 10 8C8.89543 8 8 9.11929 8 10.5C8 11.8807 8.89543 13 10 13Z",fill:"#6B7280"}),(0,r.jsx)("path",{d:"M2 13C3.10457 13 4 11.8807 4 10.5C4 9.11929 3.10457 8 2 8C0.895431 8 0 9.11929 0 10.5C0 11.8807 0.895431 13 2 13Z",fill:"#6B7280"})]})}s(67294)},60839:function(e,t,s){"use strict";s.d(t,{Z:function(){return n}});var r=s(85893);function n(e){let{className:t}=e;return(0,r.jsx)("svg",{className:"".concat(t),"aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 20 20",children:(0,r.jsx)("path",{d:"m19.707 9.293-2-2-7-7a1 1 0 0 0-1.414 0l-7 7-2 2a1 1 0 0 0 1.414 1.414L2 10.414V18a2 2 0 0 0 2 2h3a1 1 0 0 0 1-1v-4a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v4a1 1 0 0 0 1 1h3a2 2 0 0 0 2-2v-7.586l.293.293a1 1 0 0 0 1.414-1.414Z"})})}},39897:function(e,t,s){"use strict";s.d(t,{Z:function(){return n}});var r=s(85893);function n(e){let{check:t}=e,s=t?"#1F2A37":"#9CA3AF";return(0,r.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,r.jsx)("path",{d:"M5.50007 4V0.104C5.09344 0.211983 4.72247 0.41829 4.4226 0.7032L2.066 2.9656C1.76982 3.25391 1.55502 3.60991 1.44185 4H5.50007Z",fill:s}),(0,r.jsx)("path",{d:"M13.0548 0H7.16669V4C7.16669 4.42435 6.9911 4.83131 6.67854 5.13137C6.36599 5.43143 5.94208 5.6 5.50007 5.6H1.33352V14.4C1.32683 14.8172 1.49273 15.2199 1.79484 15.5198C2.09695 15.8197 2.51062 15.9924 2.94514 16H13.0548C13.4894 15.9924 13.903 15.8197 14.2051 15.5198C14.5073 15.2199 14.6732 14.8172 14.6665 14.4V1.6C14.6732 1.18282 14.5073 0.780122 14.2051 0.48019C13.903 0.180259 13.4894 0.00757502 13.0548 0Z",fill:s})]})}s(67294)},20123:function(e,t,s){"use strict";s.d(t,{Z:function(){return n}});var r=s(85893);function n(e){let{check:t}=e,s=t?"#1F2A37":"#9CA3AF";return(0,r.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,r.jsxs)("g",{clipPath:"url(#clip0_371_1527)",children:[(0,r.jsx)("path",{d:"M10 10.5263C11.6569 10.5263 13 9.11251 13 7.36846C13 5.62441 11.6569 4.21058 10 4.21058C8.34314 4.21058 7 5.62441 7 7.36846C7 9.11251 8.34314 10.5263 10 10.5263Z",fill:s}),(0,r.jsx)("path",{d:"M9 13.6842H11C12.0609 13.6842 13.0783 14.1278 13.8284 14.9175C14.5786 15.7071 15 16.778 15 17.8947V20H5V17.8947C5 16.778 5.42143 15.7071 6.17157 14.9175C6.92172 14.1278 7.93913 13.6842 9 13.6842Z",fill:s}),(0,r.jsx)("path",{d:"M13 7.36846C12.9993 6.62425 12.7483 5.90431 12.2917 5.33616C11.835 4.76801 11.2021 4.38829 10.505 4.26426",fill:s}),(0,r.jsx)("path",{d:"M14.5 6.46419e-05C13.7815 0.00237674 13.077 0.209012 12.4609 0.598123C11.8448 0.987233 11.34 1.54436 11 2.21058C12.1287 2.45471 13.1428 3.10106 13.8715 4.04065C14.6002 4.98023 14.9987 6.15557 15 7.36846C14.9983 7.70795 14.9648 8.04643 14.9 8.37899C15.9225 8.27657 16.868 7.76293 17.5398 6.94503C18.2115 6.12713 18.5576 5.068 18.5061 3.9882C18.4545 2.90839 18.0093 1.89113 17.263 1.14823C16.5168 0.405338 15.5271 -0.00593086 14.5 6.46419e-05Z",fill:s}),(0,r.jsx)("path",{d:"M7.366 11.8232C6.51249 11.2605 5.83802 10.4424 5.429 9.47372H5C3.6744 9.47539 2.40356 10.0304 1.46622 11.0171C0.528882 12.0038 0.00158786 13.3415 0 14.7369V16.8421C0 17.1213 0.105357 17.389 0.292893 17.5864C0.480429 17.7838 0.734783 17.8947 1 17.8947H3C3.00228 16.5208 3.42963 15.1851 4.21738 14.0896C5.00513 12.9941 6.11042 12.1985 7.366 11.8232Z",fill:s}),(0,r.jsx)("path",{d:"M15 9.47372H14.571C14.162 10.4424 13.4875 11.2605 12.634 11.8232C13.8896 12.1985 14.9949 12.9941 15.7826 14.0896C16.5704 15.1851 16.9977 16.5208 17 17.8947H19C19.2652 17.8947 19.5196 17.7838 19.7071 17.5864C19.8946 17.389 20 17.12
113 20 16.8421V14.7369C19.9984 13.3415 19.4711 12.0038 18.5338 11.0171C17.5964 10.0304 16.3256 9.47539 15 9.47372Z",fill:s}),(0,r.jsx)("path",{d:"M5 7.36847C5.00127 6.15557 5.39984 4.98024 6.12849 4.04065C6.85715 3.10107 7.87133 2.45472 9 2.21059C8.67352 1.57248 8.19564 1.03421 7.61289 0.648193C7.03015 0.262172 6.36238 0.0415439 5.67459 0.00778532C4.98681 -0.0259732 4.30243 0.128288 3.68809 0.455552C3.07374 0.782817 2.55036 1.27194 2.16888 1.8753C1.7874 2.47866 1.56083 3.17571 1.51121 3.8986C1.46159 4.62148 1.59062 5.34558 1.88574 6.0004C2.18086 6.65522 2.63201 7.21845 3.19528 7.63528C3.75855 8.05211 4.41475 8.30832 5.1 8.37899C5.03516 8.04643 5.00166 7.70795 5 7.36847Z",fill:s})]}),(0,r.jsx)("defs",{children:(0,r.jsx)("clipPath",{id:"clip0_371_1527",children:(0,r.jsx)("rect",{width:"20",height:"20",fill:"white"})})})]})}s(67294)},68211:function(e,t,s){"use strict";var r=s(85893),n=s(67294),a=s(12416),i=s(33299),l=s(9008),o=s.n(l),c=s(41664),d=s.n(c),u=s(39332),x=s(53819),h=s(60839),f=s(39897),m=s(20123),p=s(54015),g=s(23094),j=s(60954);t.Z=e=>{let{title:t,children:s,endingAction:l,breadcrumbs:c,withBg:v=!0,extraContent:C=(0,r.jsx)(r.Fragment,{})}=e,{data:y}=(0,i.useSession)(),[w,b]=(0,n.useState)(!1),N=(0,u.usePathname)();return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(o(),{children:[(0,r.jsx)("title",{children:"AVA Educaler"}),(0,r.jsx)("meta",{name:"description",content:"Faculdade Educaler"}),(0,r.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,r.jsxs)("div",{className:"flex h-screen max-h-screen w-screen flex-1 flex-col bg-gray-200 antialiased",children:[(0,r.jsx)(g.Z,{identifier:null,toggleSideBar:function(){b(e=>!e)}}),(0,r.jsxs)("main",{className:"flex w-full overflow-hidden",children:[(0,r.jsx)(j.Z,{isOpen:w,options:[{title:"Turmas",path:"/ava",icon:(0,r.jsx)("div",{className:" text-gray-400 transition duration-75 group-hover:text-gray-900 dark:text-gray-400 dark:group-hover:text-white",children:(0,r.jsx)(f.Z,{check:"/ava"==N})})},{title:"Chat",path:"/ava/chat",icon:(0,r.jsx)("div",{className:" text-gray-400 transition duration-75 group-hover:text-gray-900 dark:text-gray-400 dark:group-hover:text-white",children:(0,r.jsx)(m.Z,{check:"/ava/chat"==N})})}]}),(0,r.jsxs)(p.Z,{children:[(0,r.jsxs)("div",{className:"flex h-auto w-full flex-col gap-1 rounded-lg ".concat(v&&"bg-white shadow-[0px_10px_15px_-3px_rgba(0,0,0,0.10)]","  px-4 py-3 "),children:[t&&(0,r.jsxs)(r.Fragment,{children:[c&&c.length>0&&(0,r.jsx)(a.aG,{"aria-label":"breadcrumb",children:c.map((e,t)=>(0,r.jsxs)(a.aG.Item,{href:e.redirectUrl,children:[0==t&&(0,r.jsx)(h.Z,{className:"mr-2 h-3 w-3"}),e.label]},t))}),(0,r.jsxs)("div",{className:"flex w-full content-end items-center justify-between border-b-2 py-3",children:[(0,r.jsx)("h3",{className:"text-end text-lg font-semibold",children:t}),l&&(0,r.jsxs)(a.zx,{color:"blue",as:d(),href:l.redirectUrl,children:[(0,r.jsx)("div",{className:"mr-2",children:(0,r.jsx)(x.Z,{})}),l.label]})]})]}),(0,r.jsx)("div",{children:s})]}),(0,r.jsx)("div",{className:"mt-4",children:C})]})]})]})]})}},29926:function(e,t,s){"use strict";s.r(t),s.d(t,{default:function(){return f}});var r,n,a=s(85893),i=s(12416),l=s(11163),o=s(68211),c=s(55142),d=s(67294),u=s(85340),x=s(45696),h=s(80983);function f(){var e,t,s,r,n;let c=null!==(s=(0,l.useRouter)().query.classCode)&&void 0!==s?s:"",u="string"==typeof c?c:c[0],[x,f]=(0,d.useState)(0),{data:j,isLoading:v,isError:C}=h.h.avaGradesQueries.getClassStudents.useQuery({classCode:null!=u?u:""},{enabled:!!u});return(0,a.jsx)(o.Z,{title:"Turma: ".concat(u," - Notas"),breadcrumbs:[{label:"In\xedcio",redirectUrl:"/ava/class/".concat(u)},{label:"Notas",redirectUrl:void 0}],children:(0,a.jsxs)("div",{className:"flex h-auto w-full flex-col rounded-lg bg-white",children:[v&&(0,a.jsx)(i.$j,{}),C&&(0,a.jsx)("p",{children:"Ocorreu um erro ao carregar os dados, por favor tente novamente."}),u&&j&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"flex h-auto w-full flex-col rounded-lg bg-white shadow-[0px_1px_3px_0px_rgba(0,0,0,0.10)]",children:[(0,a.jsx)(m,{classCode:u,selectedStudentIndex:x,students:j.students.map(e=>({id:e.student.id,name:e.student.name,imageUrl:e.student.imageUrl})),onChangeStudentIndex:f}),(0,a.jsx)(p,{classId:j.id,studentId:null!==(r=null===(e=j.students[x])||void 0===e?void 0:e.id)&&void 0!==r?r:""})]}),(0,a.jsx)("div",{className:"mt-8",children:(0,a.jsx)(g,{classId:j.id,subjectClassStudentId:null!==(n=null===(t=j.students[x])||void 0===t?void 0:t.id)&&void 0!==n?n:""})})]})]})})}function m(e){let{classCode:t,selectedStudentIndex:s,students:r,onChangeStudentIndex:n}=e,o=(0,l.useRouter)(),h=r[s],[f,m]=(0,d.useState)(!1);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(i.u_,{show:f,onClose:()=>m(!1),children:[(0,a.jsx)(i.u_.Header,{children:"Selecionar Aluno"}),(0,a.jsx)(i.u_.Body,{children:(0,a.jsxs)("fieldset",{className:"flex max-w-md flex-col gap-4",children:[(0,a.jsx)("legend",{className:"mb-4",children:"Selecione o aluno para atribuir notas"}),r.map((e,t)=>(0,a.jsxs)("div",{className:"flex cursor-pointer items-center gap-2",onClick:()=>{n(t),m(!1)},children:[(0,a.jsx)(i.Y8,{className:"cursor-pointer",id:"name",name:"students",value:t,defaultChecked:s==t}),(0,a.jsx)(i.__,{htmlFor:"name",className:"cursor-pointer",children:e.name})]},t))]})})]}),h&&(0,a.jsxs)("div",{className:"flex h-16 w-full flex-row items-center justify-between gap-4 px-4 py-4",children:[(0,a.jsxs)("div",{className:"flex flex-row items-center gap-2",children:[(0,a.jsx)(i.qE,{size:"sm",rounded:!0,placeholderInitials:h.name.charAt(0),className:"rounded-full",img:h.imageUrl}),(0,a.jsx)("p",{className:"text-sm",children:h.name}),(0,a.jsxs)(i.Lt,{label:"",placement:"right",renderTrigger:()=>(0,a.jsx)("div",{className:"ml-4",children:(0,a.jsx)(x.Z,{})}),children:[(0,a.jsx)(i.Lt.Item,{onClick:()=>{m(!0)},children:"Selecionar Aluno"}),(0,a.jsx)(i.Lt.Item,{onClick:()=>{o.push("/ava/class/".concat(t,"/grades"))},children:"Ver Todas as Notas"})]})]}),(0,a.jsxs)("div",{className:"flex flex-row items-center gap-2",children:[(0,a.jsx)(c.Z,{id:"search-student",options:r.map((e,t)=>({id:e.id,name:e.name,index:t})),getOptionLabel:e=>e.name,disablePortal:!0,onChange:(e,t)=>
1{t&&n(t.index)},clearOnEscape:!0,renderInput:e=>(0,a.jsx)("div",{ref:e.InputProps.ref,children:(0,a.jsx)(i.oi,{type:"text",id:"search-student",icon:u.G4C,placeholder:"Buscar Aluno",...e.inputProps})}),noOptionsText:"Aluno n\xe3o encontrado"}),(0,a.jsxs)("div",{className:"flex flex-row items-center justify-between gap-2",children:[(0,a.jsx)(i.zx,{color:"light",outline:!0,disabled:0==s,onClick:()=>{0!=s&&n(s-1)},children:(0,a.jsx)(u.DEl,{size:16})}),(0,a.jsx)(i.zx,{color:"light",outline:!0,disabled:s==r.length-1,onClick:()=>{s!=r.length-1&&n(s+1)},children:(0,a.jsx)(u.MOd,{size:16})})]})]})]})]})}function p(e){let{studentId:t,classId:s}=e,{data:r,isLoading:n,isError:l}=h.h.avaGradesQueries.getStudentActivityResult.useQuery({classId:s,studentId:t});return(0,a.jsxs)(a.Fragment,{children:[n&&(0,a.jsx)(i.$j,{}),l&&(0,a.jsx)("p",{children:"Ocorreu um erro ao carregar as atividades."}),r&&(0,a.jsx)("div",{className:"mt-8 h-auto",children:(0,a.jsxs)(i.iA,{children:[(0,a.jsxs)(i.iA.Head,{className:"border border-gray-200 bg-gray-50 font-semibold text-gray-500",children:[(0,a.jsx)(i.iA.HeadCell,{className:"w-1/2",children:"ATIVIDADE"}),(0,a.jsx)(i.iA.HeadCell,{children:"STATUS"}),(0,a.jsx)(i.iA.HeadCell,{children:"QUEST\xd5ES CORRETAS/TOTAL"})]}),(0,a.jsxs)(i.iA.Body,{className:"divide-y",children:[0===r.length&&(0,a.jsx)(i.iA.Row,{children:(0,a.jsx)(i.iA.Cell,{colSpan:3,children:(0,a.jsx)("p",{children:"Nenhuma atividade encontrada."})})}),r.map(e=>(0,a.jsxs)(i.iA.Row,{children:[(0,a.jsx)(i.iA.Cell,{children:e.name}),(0,a.jsx)(i.iA.Cell,{children:"DELIVERED"==e.status?(0,a.jsx)(i.Ct,{color:"success",size:"sm",className:"w-fit",children:"Entregue"}):"LATE"==e.status?(0,a.jsx)(i.Ct,{color:"warning",size:"sm",className:"w-fit",children:"Entregue com atraso"}):(0,a.jsx)(i.Ct,{color:"failure",size:"sm",className:"w-fit",children:"N\xe3o entregue"})}),(0,a.jsxs)(i.iA.Cell,{children:[e.rightAnswers,"/",e.totalQuestions]})]},e.id))]})]})})]})}function g(e){var t;let{subjectClassStudentId:s,classId:r}=e,{data:n,isLoading:l,isError:o}=h.h.avaGradesQueries.getStudentGrades.useQuery({classId:r,subjectClassStudentId:s},{onSuccess:e=>{let t;if(u.length>0&&(t=u[0].subjectClassStudentId),e.gradingSystem&&t!==s){let t=[];for(let r of e.gradingSystem.units){let n,a=0;
1if(e.grades)for(let t of e.grades)t.unit.id==r.id&&(a=t.note,n=t.id);t.push({unitId:r.id,note:a,gradeId:n,subjectClassStudentId:s})}x(t)}}}),c=h.h.avaGradesMutations.updateStudentGrade.useMutation(),[u,x]=(0,d.useState)([]),f=u.reduce((e,t)=>e+t.note,0)/u.length;async function m(){0!==u.length&&await c.mutateAsync({subjectClassStudentId:s,grades:u})}return(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)(i.Zb,{className:"w-full",children:[l&&(0,a.jsx)(i.$j,{}),o&&(0,a.jsx)("p",{children:"Ocorreu um erro ao carregar as notas."}),n&&n.gradingSystem&&(0,a.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,a.jsx)("p",{className:"text-xl font-bold",children:"Notas"}),(0,a.jsxs)("div",{className:"flex flex-row gap-8",children:[(0,a.jsxs)("p",{children:["M\xe9dia m\xednima para aprova\xe7\xe3o:"," ",(0,a.jsx)("span",{className:"font-bold",children:n.gradingSystem.averageApproval.toFixed(2)})]}),!n.gradingSystem.havefinalTest&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("p",{children:["M\xe9dia m\xednima para prova final:"," ",(0,a.jsx)("span",{className:"font-bold",children:n.gradingSystem.minimumAverageApproval.toFixed(2)})]}),(0,a.jsxs)("p",{children:["M\xe9dia necess\xe1ria na prova final:"," ",(0,a.jsx)("span",{className:"font-bold",children:null===(t=n.gradingSystem.averageFinalApproval)||void 0===t?void 0:t.toFixed(2)})]})]})]}),(0,a.jsxs)("div",{className:"flex flex-row gap-8",children:[n.gradingSystem.units.map(e=>{var t,s;return(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{className:"mb-2 block ",children:(0,a.jsx)(i.__,{htmlFor:"grade",value:e.name})}),(0,a.jsx)(i.oi,{id:"grade",type:"number",placeholder:"0.0",min:0,step:.01,max:10,required:!0,className:"w-32",value:null!==(s=null===(t=u.find(t=>t.unitId==e.id))||void 0===t?void 0:t.note)&&void 0!==s?s:0,onChange:t=>{let s=parseFloat(t.target.value);s>10?s=10:s<0&&(s=0);let r=u.find(t=>t.unitId==e.id);r&&(r.note=s,x([...u]))}})]},e.id)}),(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{className:"mb-2 block ",children:(0,a.jsx)(i.__,{htmlFor:"grade",value:"M\xe9dia Final"})}),(0,a.jsx)(i.oi,{id:"grade",type:"number",placeholder:"0.0",disabled:!0,value:f,min:0,step:.01,max:10,required:!0,className:"w-32"})]})]}),(0,a.jsx)(j,{finalGrade:f,averageApproval:n.gradingSystem.averageApproval,minimumAverageApproval:n.gradingSystem.minimumAverageApproval,havefinalTest:n.gradingSystem.havefinalTest}),(0,a.jsxs)("div",{className:"flex justify-end gap-4",children:[(0,a.jsx)(i.zx,{className:"w-fit",color:"light",onClick:function(){x(u.map(e=>({...e,note:0})))},children:"Limpar"}),(0,a.jsx)(i.zx,{className:"w-fit",color:"blue",onClick:m,isProcessing:c.isLoading,children:"Salvar Nota"})]})]})]})})}function j(e){let{finalGrade:t,averageApproval:s,minimumAverageApproval:r,havefinalTest:n}=e,l=()=>t>=s?0:n&&t<s&&t>=r?1:2;return(0,a.jsxs)(a.Fragment,{children:[0==l()&&(0,a.jsx)(i.Ct,{color:"success",size:"sm",className:"w-fit",children:"Aprovado"}),1==l()&&(0,a.jsx)(i.Ct,{color:"warning",size:"sm",className:"w-fit",children:"Prova Final"}),2==l()&&(0,a.jsx)(i.Ct,{color:"failure",size:"sm",className:"w-fit",children:"Reprovado"})]})}(r=n||(n={}))[r.APPROVED=0]="APPROVED",r[r.FINAL=1]="FINAL",r[r.NOT_APPROVED=2]="NOT_APPROVED"},11163:function(e,t,s){e.exports=s(9090)},69921:function(e,t){"use strict";/** @license React v16.13.1
2 * react-is.production.min.js
3 *
4 * Copyright (c) Facebook, Inc. and its affiliates.
5 *
6 * This source code is licensed under the MIT license found in the
7 * LICENSE file in the root directory of this source tree.
8 */var s="function"==typeof Symbol&&Symbol.for,r=s?Symbol.for("react.element"):60103,n=s?Symbol.for("react.portal"):60106,a=s?Symbol.for("react.fragment"):60107,i=s?Symbol.for("react.strict_mode"):60108,l=s?Symbol.for("react.profiler"):60114,o=s?Symbol.for("react.provider"):60109,c=s?Symbol.for("react.context"):60110,d=s?Symbol.for("react.async_mode"):60111,u=s?Symbol.for("react.concurrent_mode"):60111,x=s?Symbol.for("react.forward_ref"):60112,h=s?Symbol.for("react.suspense"):60113,f=s?Symbol.for("react.suspense_list"):60120,m=s?Symbol.for("react.memo"):60115,p=s?Symbol.for("react.lazy"):60116,g=s?Symbol.for("react.block"):60121,j=s?Symbol.for("react.fundamental"):60117,v=s?Symbol.for("react.responder"):60118,C=s?Symbol.for("react.scope"):60119;function y(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case d:case u:case a:case l:case i:case h:return e;default:switch(e=e&&e.$$typeof){case c:case x:case p:case m:case o:return e;default:return t}}case n:return t}}}function w(e){return y(e)===u}t.AsyncMode=d,t.ConcurrentMode=u,t.ContextConsumer=c,t.ContextProvider=o,t.Element=r,t.ForwardRef=x,t.Fragment=a,t.Lazy=p,t.Memo=m,t.Portal=n,t.Profiler=l,t.StrictMode=i,t.Suspense=h,t.isAsyncMode=function(e){return w(e)||y(e)===d},t.isConcurrentMode=w,t.isContextConsumer=function(e){return y(e)===c},t.isContextProvider=function(e){return y(e)===o},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return y(e)===x},t.isFragment=function(e){return y(e)===a},t.isLazy=function(e){return y(e)===p},t.isMemo=function(e){return y(e)===m},t.isPortal=function(e){return y(e)===n},t.isProfiler=function(e){return y(e)===l},t.isStrictMode=function(e){return y(e)===i},t.isSuspense=function(e){return y(e)===h},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===u||e===l||e===i||e===h||e===f||"object"==typeof e&&null!==e&&(e.$$typeof===p||e.$$typeof===m||e.$$typeof===o||e.$$typeof===c||e.$$typeof===x||e.$$typeof===j||e.$$typeof===v||e.$$typeof===C||e.$$typeof===g)},t.typeOf=y},59864:function(e,t,s){"use strict";e.exports=s(69921)}},function(e){e.O(0,[9260,1664,9332,5142,1813,2888,9774,179],function(){return e(e.s=26777)}),_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.