1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6332],{4507:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/dashboard/judge/vote/[contest_slug]",function(){return n(89676)}])},89676:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSP:function(){return h}});var r=n(43692),a=n(5447),o=n(99728),i=n(44453),u=n.n(i),s=n(8014),l=n(98421),c=n(49823),v=n(61975),d=n(56168),_=n(75332),w=n(92240),f=n(33122),g=n(62985),p=n(28665),h=!0;t.default=(0,g.Z)((function(e){var t=e.votingOverview,n=e.entry_level,i=(0,d.useState)(!1),g=i[0],h=i[1],Z=(0,d.useState)((null===t||void 0===t?void 0:t.award_badges)||null),b=Z[0],k=Z[1],C=(0,_.useRouter)().asPath,S=(0,d.useState)((null===t||void 0===t?void 0:t.categories)||[]),y=S[0],N=S[1],O=(0,d.useCallback)(function(){var e=(0,r.Z)(u().mark((function e(n){var r,i;return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return h(!0),e.next=3,(0,c.ZP)({path:"/api/judge/contests/".concat(null===t||void 0===t?void 0:t.slug,"/?entry_level=").concat(n)});case 3:r=e.sent.data,k((null===r||void 0===r?void 0:r.award_badges)||null),(null===r||void 0===r?void 0:r.categories)&&(N(r.categories),i="".concat(C.split("?")[0],"?entry_level=").concat(n),window.history.replaceState((0,o.Z)((0,a.Z)({},window.history.state),{as:i,url:i}),"",i)),h(!1);case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),[C,null===t||void 0===t?void 0:t.slug]);return t?(0,s.jsx)(f.Z,{title:p.KZ,children:(0,s.jsx)(w.Z,{categories:y,isLoading:g,votingOverview:t,entry_level:n,onClick:O,awardBadges:b})}):(0,s.jsx)(v.Z,{link:{label:"Contests",url:l.OW.CONTESTS}})}),{title:function(e){var t=e.votingOverview;return t?t.name:"Contest not found"},subtitle:"Categories"})}},function(e){e.O(0,[2783,6531,5274,9750,9774,2888,179],(function(){return t=4507,e(e.s=t);var t}));var t=e.O();_N_E=t}]);
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.