1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8882],{61521:(e,n,a)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/boletim",function(){return a(94472)}])},94472:(e,n,a)=>{"use strict";a.r(n),a.d(n,{default:()=>v});var l=a(37876),s=a(72907),t=a(72147),i=a(42993),r=a(18952),u=a(20243),o=a(52782),c=a(60230),d=a(52894),m=a(89099),h=a(14232),x=a(65714),p=a(2796);let b=()=>{var e;let n=(0,m.useRouter)(),a="string"==typeof n.query.semana?n.query.semana:"",[b,v]=(0,h.useState)(null),[_,f]=(0,h.useState)([]),[j,y]=(0,h.useState)(!0),[A,g]=(0,h.useState)("");return((0,h.useEffect)(()=>{n.isReady&&(y(!0),g(""),Promise.all([a?x.G.byWeek(a):x.G.latest(),x.G.archive()]).then(e=>{let[n,a]=e;v(n||null),f(a)}).catch(e=>{var n,a,l;v(null),g(null!=(l=null==e||null==(a=e.response)||null==(n=a.data)?void 0:n.message)?l:"N\xe3o foi poss\xedvel carregar o boletim.")}).finally(()=>y(!1)))},[a,n.isReady]),j)?(0,l.jsx)(s.A,{sx:{py:15,textAlign:"center"},children:(0,l.jsx)(t.A,{})}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(i.A,{direction:{xs:"column",sm:"row"},gap:2,sx:{mb:3},alignItems:{sm:"center"},children:(0,l.jsxs)(r.A,{sx:{minWidth:240},children:[(0,l.jsx)(u.A,{children:"Semana"}),(0,l.jsx)(o.A,{label:"Semana",value:null!=(e=null==b?void 0:b.semanaInicio)?e:"",onChange:e=>{let a;return a=e.target.value,n.push({pathname:"/boletim",query:{semana:a}})},children:_.map(e=>(0,l.jsxs)(c.A,{value:e.semanaInicio,children:[(0,p.CH)(e.semanaInicio,e.dataExibida)," - ",e.titulo]},e.semanaInicio))})]})}),A&&(0,l.jsx)(d.A,{severity:"info",children:A}),!A&&!b&&(0,l.jsx)(d.A,{severity:"info",children:"Ainda n\xe3o h\xe1 boletins publicados."}),b&&(0,l.jsx)(p.Kc,{bulletin:b})]})};b.authGuard=!0;let v=b}},e=>{e.O(0,[8105,636,6593,8792],()=>e(e.s=61521)),_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.