1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6790],{88853:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/ava/class/[classCode]/classmates",function(){return s(47544)}])},53819:function(e,t,s){"use strict";s.d(t,{Z:function(){return r}});var l=s(85893);function r(e){let{className:t}=e;return(0,l.jsxs)("svg",{className:t,xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",children:[(0,l.jsx)("g",{clipPath:"url(#clip0_330_2856)",children:(0,l.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,l.jsx)("defs",{children:(0,l.jsx)("clipPath",{id:"clip0_330_2856",children:(0,l.jsx)("rect",{width:"20",height:"20",fill:"white"})})})]})}s(67294)},60839:function(e,t,s){"use strict";s.d(t,{Z:function(){return r}});var l=s(85893);function r(e){let{className:t}=e;return(0,l.jsx)("svg",{className:"".concat(t),"aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 20 20",children:(0,l.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 r}});var l=s(85893);function r(e){let{check:t}=e,s=t?"#1F2A37":"#9CA3AF";return(0,l.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,l.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,l.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 r}});var l=s(85893);function r(e){let{check:t}=e,s=t?"#1F2A37":"#9CA3AF";return(0,l.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,l.jsxs)("g",{clipPath:"url(#clip0_371_1527)",children:[(0,l.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,l.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,l.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,l.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,l.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,l.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,l.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,l.jsx)("defs",{children:(0,l.jsx)("clipPath",{id:"clip0_371_1527",children:(0,l.jsx)("rect",{width:"20",height:"20",fill:"white"})})})]})}s(67294)},68211:function(e,t,s){"use strict";var l=s(85893),r=s(67294),n=s(12416),a=s(33299),i=s(9008),c=s.n(i),d=s(41664),o=s.n(d),h=s(39332),u=s(53819),x=s(60839),f=s(39897),m=s(20123),j=s(54015),C=s(23094),g=s(60954);t.Z=e=>{let{title:t,children:s,endingAction:i,breadcrumbs:d,withBg:p=!0,extraContent:v=(0,l.jsx)(l.Fragment,{})}=e,{data:w}=(0,a.useSession)(),[N,b]=(0,r.useState)(!1),A=(0,h.usePathname)();return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)(c(),{children:[(0,l.jsx)("title",{children:"AVA Educaler"}),(0,l.jsx)("meta",{name:"description",content:"Faculdade Educaler"}),(0,l.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,l.jsxs)("div",{className:"flex h-screen max-h-screen w-screen flex-1 flex-col bg-gray-200 antialiased",children:[(0,l.jsx)(C.Z,{identifier:null,toggleSideBar:function(){b(e=>!e)}}),(0,l.jsxs)("main",{className:"flex w-full overflow-hidden",children:[(0,l.jsx)(g.Z,{isOpen:N,options:[{title:"Turmas",path:"/ava",icon:(0,l.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,l.jsx)(f.Z,{check:"/ava"==A})})},{title:"Chat",path:"/ava/chat",icon:(0,l.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,l.jsx)(m.Z,{check:"/ava/chat"==A})})}]}),(0,l.jsxs)(j.Z,{children:[(0,l.jsxs)("div",{className:"flex h-auto w-full flex-col gap-1 rounded-lg ".concat(p&&"bg-white shadow-[0px_10px_15px_-3px_rgba(0,0,0,0.10)]"," px-4 py-3 "),children:[t&&(0,l.jsxs)(l.Fragment,{children:[d&&d.length>0&&(0,l.jsx)(n.aG,{"aria-label":"breadcrumb",children:d.map((e,t)=>(0,l.jsxs)(n.aG.Item,{href:e.redirectUrl,children:[0==t&&(0,l.jsx)(x.Z,{className:"mr-2 h-3 w-3"}),e.label]},t))}),(0,l.jsxs)("div",{className:"flex w-full content-end items-center justify-between border-b-2 py-3",children:[(0,l.jsx)("h3",{className:"text-end text-lg font-semibold",children:t}),i&&(0,l.jsxs)(n.zx,{color:"blue",as:o(),href:i.redirectUrl,children:[(0,l.jsx)("div",{className:"mr-2",children:(0,l.jsx)(u.Z,{})}),i.label]})]})]}),(0,l.jsx)("div",{children:s})]}),(0,l.jsx)("div",{className:"mt-4",children:v})]})]})]})]})}},47544:function(e,t,s){"use strict";s.r(t),s.d(t,{default:function(){return o}});var l=s(85893),r=s(12416),n=s(11163),a=s(67294),i=s(68211),c=s(80983),d=s(48716);function o(){var e,t;let s=null!==(e=(0,n.useRouter)().query.classCode)&&void 0!==e?e:"",o="string"==typeof s?s:s[0],[h,u]=(0,a.useState)(1),{data:x,isLoading:f,isError:m}=c.h.avaClassmatesQueriesRouter.getClassmates.useQuery({classCode:null!=o?o:"",pageOffset:h-1,pageSize:10},{enabled:!!o}),j=Math.min((h+1)*10,null!==(t=null==x?void 0:x.totalItems)&&void 0!==t?t:0),C=(null==x?void 0:x.totalItems)?Math.ceil((null==x?void 0:x.totalItems)/10):0,g=[{label:"In\xedcio",redirectUrl:"/ava/class/".concat(o)},{label:"Minha Turma",redirectUrl:void 0}];return(0,l.jsx)(l.Fragment,{children:(0,l.jsxs)(i.Z,{title:"Turma: ".concat(o," - Minha Turma"),breadcrumbs:g,children:[f&&(0,l.jsx)("div",{className:"mt-4 text-center",children:(0,l.jsx)(r.$j,{})}),m&&(0,l.jsx)("p",{className:"mt-4 text-center text-lg font-light text-gray-500",children:"Ocorreu um erro ao carregar os alunos, por favor tente novamente."}),x&&0===x.data.length&&(0,l.jsx)("p",{className:"mt-4 text-center text-lg font-light text-gray-500",children:"Nenhum Aluno encontrado."}),x&&x.data.length>0&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)(r.iA,{className:"my-4 w-full",children:[(0,l.jsxs)(r.iA.Head,{children:[(0,l.jsx)(r.iA.HeadCell,{children:"Nome"}),(0,l.jsx)(r.iA.HeadCell,{children:"Papel"})]}),(0,l.jsx)(r.iA.Body,{className:"divide-y",children:x.data.map((e,t)=>{var s;return(0,l.jsxs)(r.iA.Row,{className:"bg-white",children:[(0,l.jsx)(r.iA.Cell,{className:"flex flex-row whitespace-nowrap font-medium text-gray-900",children:(0,l.jsx)(r.qE,{img:null!==(s=null==e?void 0:e.imageUrl)&&void 0!==s?s:"/logo.png",size:"sm",rounded:!0,children:(0,l.jsx)("p",{children:e.name})})}),(0,l.jsx)(r.iA.Cell,{children:(0,d.z)(e.role)})]},t)})})]}),(0,l.jsxs)("div",{className:"mb-2 flex flex-row items-center justify-between px-4 py-2",children:[(0,l.jsxs)("p",{children:["Exibindo"," ",(0,l.jsxs)("span",{className:"font-semibold",children:[(h-1)*10+1,"-",j]})," ","de"," ",(0,l.jsx)("span",{className:"font-semibold",children:x.totalItems})]}),(0,l.jsx)(r.tl,{currentPage:h,totalPages:C,onPageChange:e=>u(e),previousLabel:"",nextLabel:"",showIcons:!0,theme:{pages:{selector:{active:"bg-[#e1effe] text-[#1A56DB]"}}}})]})]})]})})}},48716:function(e,t,s){"use strict";s.d(t,{z:function(){return r}});var l=s(70385);let r=e=>{switch(e){case l.Role.ADMIN:return"Administrador";case l.Role.COORDINATOR:return"Coordenador";case l.Role.STUDENT:return"Estudante";case l.Role.TEACHER:return"Professor";case l.Role.USER:return"Usu\xe1rio";case l.Role.SECRETARY:return"Secret\xe1rio";case l.Role.FINANCIAL:return"Financeiro";default:return""}}},11163:function(e,t,s){e.exports=s(9090)}},function(e){e.O(0,[9260,1664,385,9332,1813,2888,9774,179],function(){return e(e.s=88853)}),_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.