1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3534],{37527:function(e,t,a){"use strict";var r,n=a(50959);function s(){return(s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e}).apply(this,arguments)}t.Z=function(e){return n.createElement("svg",s({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},e),r||(r=n.createElement("path",{stroke:"fill",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 4.354a4 4 0 1 1 0 5.292M15 21H3v-1a6 6 0 1 1 12 0zm0 0h6v-1a6 6 0 0 0-9-5.197M13 7a4 4 0 1 1-8 0 4 4 0 0 1 8 0"})))}},69094:function(e,t,a){"use strict";var r,n=a(50959);function s(){return(s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e}).apply(this,arguments)}t.Z=function(e){return n.createElement("svg",s({xmlns:"http://www.w3.org/2000/svg",width:12,height:12,fill:"none"},e),r||(r=n.createElement("path",{stroke:"fill",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M9 3 3 9m0-6 6 6"})))}},44419:function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/classroom/suporte",function(){return a(95642)}])},87104:function(e,t,a){"use strict";a.d(t,{a:function(){return d}});var r=a(11527),n=a(72748),s=a(15108),o=a(55907),i=a(39982),l=a(5243),u=a(69094),c=a(50959);function d(e){let{onSubmit:t,searchKey:a,placeholder:d,borderRadius:g,size:p="md",buttonVariant:f="default",hideResultsHint:h=!1}=e,x="grayDark"===f,[v,w]=(0,c.useState)(a),b=e=>{w(e)};return(0,r.jsxs)("div",{className:"flex w-full flex-col gap-1",children:[(0,r.jsxs)(s.B,{size:p,maxW:777,bg:"transparent",children:[(0,r.jsx)(o.I,{value:v,onKeyDown:e=>{"Enter"===e.code&&t(v)},onChange:e=>b(e.target.value),placeholder:d,borderRadius:null!=g?g:6,fontSize:"14px",...x?{variant:"grayDark"}:{}}),(0,r.jsx)(i.x,{children:(0,r.jsx)(l.h,{"aria-label":"Pesquisar",icon:(0,r.jsx)(n.W,{}),size:p,borderLeftRadius:0,onClick:()=>t(v),...x?{variant:"grayDark"}:{},style:{border:"1px solid #4B5563",borderLeft:0}})})]}),""!==a&&!h&&(0,r.jsxs)("div",{className:"flex w-fit items-center justify-start gap-2",children:[(0,r.jsxs)("p",{className:"text-xs ".concat(x?"text-gray-300":""),children:["Mostrando resultados para ",'"'.concat(a,'"')]}),(0,r.jsx)("button",{type:"button",onClick:()=>{w(""),t("")},className:"rounded p-1 ".concat(x?"bg-gray-800":"bg-gray-100"),children:(0,r.jsx)(u.Z,{className:x?"stroke-gray-300":"stroke-slate-700"})})]})]})}},95642:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return f}});var r=a(11527),n=a(6144),s=a(21661),o=a(39148),i=a(50959),l=a(70216),u=a(5965),c=a(47491),d=a(87104),g=a(62211),p=a(17918);function f(){var e;let t=(0,o.useRouter)(),[a,f]=(0,i.useState)(1),[h,x]=(0,i.useState)(0),[v,w]=(0,i.useState)(""),{currentPage:b,setCurrentPage:j,pages:m}=(0,n.h0)({total:a,limits:{outer:1,inner:1},pagesCount:a,initialState:{pageSize:10,isDisabled:!1,currentPage:1}}),y=null===(e=c.g[h])||void 0===e?void 0:e.status,{data:k,isLoading:N}=(0,s.a)(["supportTickets","teacher",b,y,v],()=>p.Z.teacherFindPaginated({page:b,limit:10,status:y,searchKey:v}));(0,i.useEffect)(()=>{(null==k?void 0:k.totalPages)&&f(k.totalPages)},[null==k?void 0:k.totalPages]);let E=()=>{j(1),f(1),t.query.page&&"1"!==String(t.query.page)&&t.replace({query:{...t.query,page:1}},void 0,{shallow:!0})};return(0,r.jsx)(l.Z,{rolesAllowed:["TEACHER"],contentClassName:"bg-white",children:(0,r.jsxs)("div",{className:"flex flex-col gap-6 p-8",children:[(0,r.jsx)("p",{className:"text-2xl font-semibold text-gray-900",children:"Suporte"}),(0,r.jsx)(d.a,{onSubmit:e=>{w(e),E()},searchKey:v,placeholder:"Buscar por t\xedtulo"}),(0,r.jsx)(c.Z,{tabIndex:h,onChange:e=>{x(e),E()}}),(0,r.jsx)(u.Z,{data:k,isLoading:N,variant:"staff",hrefFor:e=>g.Z.classroom.support.details(e.id),showNewMessage:e=>!e.readByTeacher,pages:m,currentPage:b,totalPagesCount:a,onPageChange:j})]})})}}},function(e){e.O(0,[8927,8601,3578,7162,1264,7423,5530,6984,5080,2211,216,5296,9774,2888,179],function(){return e(e.s=44419)}),_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.