1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4849],{30153:function(e,t,n){"use strict";n.d(t,{g:function(){return l}});var r=n(11860),a=n(53437),i=n(80190),s=n(56168);function o(){return o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o.apply(this,arguments)}var u=["className","rows"],l=(0,a.Gp)((function(e,t){var n=(0,a.mq)("Textarea",e),l=(0,a.Lr)(e),c=l.className,d=l.rows,f=function(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(l,u),p=(0,r.Yp)(f),y=d?(0,i.CE)(n,["h","minH","height","minHeight"]):n;return s.createElement(a.m$.textarea,o({ref:t,rows:d},p,{className:(0,i.cx)("chakra-textarea",c),__css:y}))}));i.Ts&&(l.displayName="Textarea")},65117:function(e,t,n){e.exports=n(30117)},26362:function(e,t,n){"use strict";var r=n(56168);var a="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},i=r.useState,s=r.useEffect,o=r.useLayoutEffect,u=r.useDebugValue;function l(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!a(e,n)}catch(r){return!0}}var c="undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=i({inst:{value:n,getSnapshot:t}}),a=r[0].inst,c=r[1];return o((function(){a.value=n,a.getSnapshot=t,l(a)&&c({inst:a})}),[e,n,t]),s((function(){return l(a)&&c({inst:a}),e((function(){l(a)&&c({inst:a})}))}),[e]),u(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:c},82101:function(e,t,n){"use strict";e.exports=n(26362)},27797:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/dashboard/admin/entries",function(){return n(73872)}])},30117:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(70911).Z;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=s.default,i={loading:function(e){e.error,e.isLoading;return e.pastDelay,null}};r(e,Promise)?i.loader=function(){return e}:"function"===typeof e?i.loader=e:"object"===typeof e&&(i=a({},i,e));if((i=a({},i,t)).suspense)throw new Error("Invalid suspense option usage in next/dynamic. Read more: https://nextjs.org/docs/messages/invalid-dynamic-suspense");i.loadableGenerated&&delete(i=a({},i,i.loadableGenerated)).loadableGenerated;if("boolean"===typeof i.ssr&&!i.suspense){if(!i.ssr)return delete i.ssr,o(n,i);delete i.ssr}return n(i)},t.noSSR=o;var a=n(11476).Z,i=n(22277).Z,s=(i(n(56168)),i(n(42374)));function o(e,t){return delete t.webpack,delete t.modules,e(t)}("function"===typeof t.default||"object"===typeof t.default&&null!==t.default)&&"undefined"===typeof t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},37208:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LoadableContext=void 0;var r=(0,n(22277).Z)(n(56168)).default.createContext(null);t.LoadableContext=r},42374:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(57711).Z,a=n(76260).Z;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(11476).Z,s=(0,n(22277).Z)(n(56168)),o=n(37208),u=n(82101).useSyncExternalStore,l=[],c=[],d=!1;function f(e){var t=e(),n={loading:!0,loaded:null,error:null};return n.promise=t.then((function(e){return n.loading=!1,n.loaded=e,e})).catch((function(e){throw n.loading=!1,n.error=e,e})),n}var p=function(){function e(t,n){r(this,e),this._loadFn=t,this._opts=n,this._callbacks=new Set,this._delay=null,this._timeout=null,this.retry()}return a(e,[{key:"promise",value:function(){return this._res.promise}},{key:"retry",value:function(){var e=this;this._clearTimeouts(),this._res=this._loadFn(this._opts.loader),this._state={pastDelay:!1,timedOut:!1};var t=this._res,n=this._opts;t.loading&&("number"===typeof n.delay&&(0===n.delay?this._state.pastDelay=!0:this._delay=setTimeout((function(){e._update({pastDelay:!0})}),n.delay)),"number"===typeof n.timeout&&(this._timeout=setTimeout((function(){e._update({timedOut:!0})}),n.timeout))),this._res.promise.then((function(){e._update({}),e._clearTimeouts()})).catch((function(t){e._update({}),e._clearTimeouts()})),this._update({})}},{key:"_update",value:function(e){this._state=i({},this._state,{error:this._res.error,loaded:this._res.loaded,loading:this._res.loading},e),this._callbacks.forEach((function(e){return e()}))}},{key:"_clearTimeouts",value:function(){clearTimeout(this._delay),clearTimeout(this._timeout)}},{key:"getCurrentValue",value:function(){return this._state}},{key:"subscribe",value:function(e){var t=this;return this._callbacks.add(e),function(){t._callbacks.delete(e)}}}]),e}();function y(e){return function(e,t){var n=function(){if(!l){var t=new p(e,a);l={getCurrentValue:t.getCurrentValue.bind(t),subscribe:t.subscribe.bind(t),retry:t.retry.bind(t),promise:t.promise.bind(t)}}return l.promise()},r=function(){n();var e=s.default.useContext(o.LoadableContext);
1e&&Array.isArray(a.modules)&&a.modules.forEach((function(t){e(t)}))},a=Object.assign({loader:null,loading:null,delay:200,timeout:null,webpack:null,modules:null,suspense:!1},t);a.suspense&&(a.lazy=s.default.lazy(a.loader));var l=null;if(!d){var f=a.webpack?a.webpack():a.modules;f&&c.push((function(e){var t=!0,r=!1,a=void 0;try{for(var i,s=f[Symbol.iterator]();!(t=(i=s.next()).done);t=!0){var o=i.value;if(-1!==e.indexOf(o))return n()}}catch(u){r=!0,a=u}finally{try{t||null==s.return||s.return()}finally{if(r)throw a}}}))}var y=a.suspense?function(e,t){return r(),s.default.createElement(a.lazy,i({},e,{ref:t}))}:function(e,t){r();var n=u(l.subscribe,l.getCurrentValue,l.getCurrentValue);return s.default.useImperativeHandle(t,(function(){return{retry:l.retry}}),[]),s.default.useMemo((function(){return n.loading||n.error?s.default.createElement(a.loading,{isLoading:n.loading,pastDelay:n.pastDelay,timedOut:n.timedOut,error:n.error,retry:l.retry}):n.loaded?s.default.createElement((t=n.loaded)&&t.__esModule?t.default:t,e):null;var t}),[e,n])};return y.preload=function(){return n()},y.displayName="LoadableComponent",s.default.forwardRef(y)}(f,e)}function m(e,t){for(var n=[];e.length;){var r=e.pop();n.push(r(t))}return Promise.all(n).then((function(){if(e.length)return m(e,t)}))}y.preloadAll=function(){return new Promise((function(e,t){m(l).then(e,t)}))},y.preloadReady=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return new Promise((function(t){var n=function(){return d=!0,t()};m(c,e).then(n,n)}))},window.__NEXT_PRELOADREADY=y.preloadReady;var h=y;t.default=h},98477:function(e,t,n){"use strict";n.d(t,{Z:function(){return E}});var r=n(8014),a=n(74576),i=n(56168),s=n(1154),o=n(84911),u=n(34237),l=n(40137),c=n(27548),d=n(82857),f=n(21350),p=n(76318),y=n(55310),m=n(60062),h=n(78917),v=[{title:"Status",type:m.k.DROPDOWN,key:"status",options:[{value:y.K1.APPROVED,label:"Complete"},{value:y.K1.PENDING,label:"Incomplete"},{value:y.K1.REJECTED,label:"Rejected"}]},h.MJ,h.yI,h.hp,h.Bf].concat((0,o.Z)(h.M$),[{title:"Tags",key:"tags[]",type:m.k.CONTEXT_CHOICES,context_key:"entry_tags"},{title:"Entry ID",key:"id[]",type:m.k.MULTI_TEXT}],(0,o.Z)(h.dv),[{title:"Made it to Judge Voting",key:"is_in_pva",type:m.k.BOOLEAN},{title:"Invalid",key:"is_invalid",type:m.k.BOOLEAN},{title:"Payment Mode",key:"payment_mode",type:m.k.DROPDOWN,options:[{value:y.x6.CREDITS,label:"Credits"},{value:y.x6.DEFAULT,label:"Pay Per Entry"}]}]),_=[{type:"PREVIEW",accessor:"images",title:"Preview",width:100},{type:"TEXT",accessor:"title",title:"Title",variant:"numeralsTiny"},{type:"ENTRY_STATUS",accessor:"status",title:"Status",width:120},{type:"TEXT",accessor:"id",title:"ID (Entry)",width:80},{type:"TEXT",accessor:"submission",title:"ID (Submission)",width:120},{type:"CUSTOM",title:"Awards",accessor:"awards",render:function(e,t){return(0,r.jsx)(u.kC,{direction:"column",align:"flex-start",mb:t.length?"-5px":"0px",children:t.length?t.map((function(e,t){return(0,r.jsx)(u.xu,{mr:"5px",mb:"5px",children:(0,r.jsx)(d.Z,{variant:"light",label:e.overall?void 0:e.category.name,placement:"left",children:(0,r.jsx)(c.Z,{bg:e.award_config.color||"support2.2",label:e.overall?(0,r.jsx)(r.Fragment,{children:(0,r.jsxs)(u.kC,{children:[(0,r.jsx)(l.Z,{icon:"star",fill:"accent1.2",size:12}),(0,r.jsx)(u.xv,{ml:"5px",children:e.award_config.name})]})}):e.award_config.name})})},t)})):(0,r.jsx)(u.xv,{variant:"overline",children:"None"})})}},{type:"TEXT",accessor:"instagram",title:"Instagram"},{type:"TEXT_TRANSFORMER",accessor:"entry_type",title:"Entry Type",delimiter:"_",width:100},{type:"TEXT_TRANSFORMER",accessor:"entry_level",title:"Entry Level",delimiter:"_",width:140},{type:"CATEGORIES",accessor:"tags",title:"Tags"},{type:"CATEGORIES",accessor:"categories",title:"Categories"},{type:"DATE",accessor:"created",title:"Date",width:100},{type:"TEXT",accessor:"time",title:"Time",width:80},{type:"TEXT",accessor:"contest_title",title:"Contest"},{type:"TEXT",accessor:"year",title:"Year",width:60},{type:"AVATAR",accessor:"user",title:"Artist"}
1,{type:"ACTION",accessor:"action",valueKey:"id",title:"Action",width:60,onClick:function(e){e&&(0,f.z)((function(){p.u.entryId=e}))}}],b={user:"name",title:"title",status:"status",created:"created",contest_title:"contest_title",year:"contest_year"},g=n(42548),E=function(e){var t=e.userId,n=(0,i.useRef)(null),o=(0,i.useMemo)((function(){return(0,g.z6)(_)}),[]),u=(0,i.useCallback)((function(e){return null===e||void 0===e?void 0:e.reduce((function(e,t){var n={};return o.forEach((function(e){var r=e.accessor;n[r]=t[r]})),e.push(n),e}),[])}),[o]),l=(0,i.useMemo)((function(){var e="/api/admin/stats/entries/";return t&&(e+="?user_id=".concat(t)),e}),[t]);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(a.Z,{tableRef:n,leftStickyColumnCount:2,storageKey:"entries_management_columns",columns:o,formatData:u,filters:v,url:l,paginate:!0,useUrlParams:!t,innerContainerStyles:t?{p:0,h:"auto"}:void 0,sortConfig:b}),(0,r.jsx)(s.Z,{tableRef:n})]})}},73872:function(e,t,n){"use strict";n.r(t);var r=n(8014),a=n(62985),i=n(98477),s=n(34237),o=n(35838),u=n(65117),l=n.n(u)()((function(){return Promise.all([n.e(9305),n.e(761)]).then(n.bind(n,60761))}),{loadableGenerated:{webpack:function(){return[60761]}},ssr:!1});t.default=(0,a.Z)((function(){return(0,r.jsx)(i.Z,{})}),{title:"Entry Management",rightSide:(0,r.jsxs)(s.kC,{gap:"40px",align:"center",children:[(0,r.jsx)(l,{}),(0,r.jsx)(s.kC,{align:"center",justify:"space-between",zIndex:1001,display:{base:"none",md:"initial"},children:(0,r.jsx)(o.Z,{triggerProps:{mt:"-13px",pt:"13px",mb:"-13px",pb:"13px"}})})]})})}},function(e){e.O(0,[4186,4474,1445,1111,2783,3434,9566,9464,9966,5613,8400,2111,2061,6571,2322,6531,5274,4519,4576,3502,1329,875,6302,8694,9774,2888,179],(function(){return t=27797,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.