1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5425],{74104:function(e,r,t){"use strict";t.r(r),t.d(r,{default:function(){return O}});var n=t(59499),i=t(67294),o=t(18876),u=t(3528),y=t(16835),a=t(27812),d=t(11163),s=t(17030),_=t(45868),c=t(85893);function l(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),t.push.apply(t,n)}return t}function p(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?l(Object(t),!0).forEach(function(r){(0,n.Z)(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):l(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})}return e}var f=function(e){(0,i.useContext)(u.ko).user;var r,t,n,o,l,f,v,q,g,j,O,m,b,h,w,I,P,E,k,S,x=(0,i.useContext)(s.O4),D=(x.query,x.jury);x.currentId;var C=(0,d.useRouter)(),N=(0,i.useState)({store:null}),Z=N[0],R=N[1];C.query&&Object.keys(C.query).length>0&&(C.query.entry_type,C.query.year_of_participation&&""!==C.query.year_of_participation&&parseInt(C.query.year_of_participation),C.query.start_id&&""!==C.query.start_id&&parseInt(C.query.start_id),C.query.end_id&&""!==C.query.end_id&&parseInt(C.query.end_id),C.query.setstart_id&&""!==C.query.setstart_id&&parseInt(C.query.setstart_id),C.query.setend_id&&""!==C.query.setend_id&&parseInt(C.query.setend_id),C.query.awardscategory&&""!==C.query.awardscategory&&parseInt(C.query.awardscategory),C.query.medium_type&&""!==C.query.medium_type&&parseInt(C.query.medium_type),C.query.entry_region&&""!==C.query.entry_region&&parseInt(C.query.entry_region),C.query.country_for_jury&&""!==C.query.country_for_jury&&parseInt(C.query.country_for_jury)),(0,i.useEffect)(function(){var e={};C.query&&Object.keys(C.query).length>0&&(e={entry_type:C.query.entry_type||null,year_of_participation:C.query.year_of_participation&&""!==C.query.year_of_participation?parseInt(C.query.year_of_participation):null,start_id:C.query.start_id&&""!==C.query.start_id?parseInt(C.query.start_id):null,end_id:C.query.end_id&&""!==C.query.end_id?parseInt(C.query.end_id):null,setstart_id:C.query.setstart_id&&""!==C.query.setstart_id?parseInt(C.query.setstart_id):null,setend_id:C.query.setend_id&&""!==C.query.setend_id?parseInt(C.query.setend_id):null,awardscategory:C.query.awardscategory&&""!==C.query.awardscategory?parseInt(C.query.awardscategory):1,medium_type:C.query.medium_type&&""!==C.query.medium_type?parseInt(C.query.medium_type):1,entry_region:C.query.entry_region&&""!==C.query.entry_region?parseInt(C.query.entry_region):null,country_for_jury:C.query.country_for_jury&&""!==C.query.country_for_jury?parseInt(C.query.country_for_jury):null}),R(function(r){return p(p({},r),{},{store:e})})},[C.query]);var L=(0,_.Yz)({limit:12,skip:0,order_by:{id:"desc"},jury_id:null==D?void 0:D.id,entry_type:null===(r=Z.store)||void 0===r?void 0:r.entry_type,year_of_participation:null===(t=Z.store)||void 0===t?void 0:t.year_of_participation,start_id:null===(n=Z.store)||void 0===n?void 0:n.start_id,end_id:null===(o=Z.store)||void 0===o?void 0:o.end_id,awardscategory:null===(l=Z.store)||void 0===l?void 0:l.awardscategory,medium_type:null===(f=Z.store)||void 0===f?void 0:f.medium_type,entry_region:null===(v=Z.store)||void 0===v?void 0:v.entry_region,country_for_jury:null===(q=Z.store)||void 0===q?void 0:q.country_for_jury}),M=(0,_.Yz)({entry_type:null===(g=Z.store)||void 0===g?void 0:g.entry_type,year_of_participation:null===(j=Z.store)||void 0===j?void 0:j.year_of_participation,start_id:null===(O=Z.store)||void 0===O?void 0:O.start_id,end_id:null===(m=Z.store)||void 0===m?void 0:m.end_id,awardscategory:null===(b=Z.store)||void 0===b?void 0:b.awardscategory,medium_type:null===(h=Z.store)||void 0===h?void 0:h.medium_type,entry_region:null===(w=Z.store)||void 0===w?void 0:w.entry_region,country_for_jury:null===(I=Z.store)||void 0===I?void 0:I.country_for_jury},!0);return(0,c.jsx)(s.Tr.Provider,{value:{isLoading:L.loading,entries:null===(P=L.data)||void 0===P?void 0:P.entries,entries_count:null===(E=M.data)||void 0===E?void 0:E.entries.aggregate.count,jury_info:p(p({},Z.store),{},{entry_type_title:(null===(k=Z.store)||void 0===k?void 0:k.entry_type)==="single"?"Single Entry":(null===(S=Z.store)||void 0===S?void 0:S.entry_type)==="campaign"?"Campaign":null,jury_name:(null==D?void 0:D.name)||null}),onShowMoreEntries:function(){L.loading||(L.loading=!0,L.fetchMore({updateQuery:function(e,r){var t=r.fetchMoreResult;return t?p(p({},e),{},{entries:[].concat((0,a.Z)(e.entries),(0,a.Z)(t.entries))}):e},variables:{skip:L.data.entries.length}}))},handleEnrtyClick:function(e,r){var t=p({},Z.store);t.pageNumber=parseInt(r/12)+1,t.currentId=e;var n=new URLSearchParams;Object.entries(t).forEach(function(e){var r=(0,y.Z)(e,2),t=r[0],i=r[1];null!=i&&""!==i&&n.set(t,i.toString())}),window.location.href="/judging-home/entry-details/?".concat(n.toString())},entrieslist:!0},children:e.children})},v=function(e){var r=(0,d.useRouter)(),t=r.pathname,n=r.query,o=(0,i.useContext)(u.ko).user,y=(0,_.JV)({id:null==o?void 0:o.id}).data;
1return(0,c.jsx)(s.O4.Provider,{value:{isEntryList:"entry-list"===t.split("/").pop(),isDetails:n.id,currentId:+n.id,jury:null==y?void 0:y.juror[0],user:o,query:n},children:e.children})},q=t(8143);function g(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),t.push.apply(t,n)}return t}function j(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?g(Object(t),!0).forEach(function(r){(0,n.Z)(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):g(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})}return e}var O=(0,t(34579).h)((0,o.C)(function(e){return(0,c.jsx)(u.Kv,j(j({},e),{},{children:(0,c.jsx)(v,j(j({},e),{},{children:(0,c.jsx)(f,j(j({},e),{},{children:(0,c.jsx)(q.Z,j({},e))}))}))}))}))},17135:function(e,r,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/judging-home/entry-list",function(){return t(74104)}])}},function(e){e.O(0,[3662,2842,6115,6037,7614,381,9248,8143,9774,2888,179],function(){return e(e.s=17135)}),_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.