PageSourceSearch

https://indigoaward.com/_next/static/chunks/pages/preview_winners-6e1e63bc46f0e6b0.js

js indigoaward.com collected 2026-09-24 21:18:31 UTC 7,055 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1245],{92267:function(e,n,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/preview_winners",function(){return i(17076)}])},21180:function(e,n,i){"use strict";var t=i(85893),r=i(68029),o=i(38491),l=i(57879),s=i(41664),c=i.n(s);n.Z=e=>{let{href:n,label:i,color:s,heightLineBottom:a,type:u,_hoverColor:d,typeButton:p,withBorder:x=!0,animated:h=!0,scroll:f=!1,prefetch:v=!1,...m}=e;return(0,t.jsx)(r.x,{display:"inline-block",position:"relative",children:"button"===u?(0,t.jsx)(o.z,{...m,color:s||"grey.600",variant:"link",type:p,_focusVisible:{outline:"none"},_hover:{color:d},_after:x&&{content:"''",width:"100%",height:a||"1px",background:s||"grey.600",display:"block",position:"absolute",bottom:"5px",transitionDuration:".2s"},_focus:{outline:"none"},children:i}):(0,t.jsx)(c(),{href:null!=n?n:"#",scroll:f,prefetch:v,children:(0,t.jsx)(l.r,{...m,as:"span",color:s||"grey.600",transition:"color .3s linear",_focusVisible:{outline:"none"},_hover:{textDecoration:"none",color:d,_after:{width:h?"110%":null}},_after:x&&{content:"''",width:"100%",height:a||"1px",background:s||"grey.600",display:"block",position:"absolute",bottom:"5px",transition:"width .2s ease-out"},_focus:{outline:"none"},children:i})})})}},20401:function(e,n,i){"use strict";var t=i(85893),r=i(96254),o=i(90092),l=i(73636),s=i(68029),c=i(21180),a=i(26036),u=i(56030);n.Z=e=>{var n,i;let{competitionName:d,expertisesLinks:p}=e,x=(0,a.useRouter)(),h=null===(n=x.query)||void 0===n?void 0:n.expertise,f=(0,u.r)();return(0,t.jsxs)(r.W,{children:[(0,t.jsxs)(o.x,{as:"h1",fontWeight:300,color:"blue.600",children:["Preview Winners ",d]}),(null==f?void 0:f.currentCompetition.preview_winners)&&(0,t.jsxs)(l.U,{mt:"50px",fontSize:{base:"18px",md:"20px",xl:"24px"},fontWeight:400,lineHeight:{base:"37px",md:"37px",xl:"32px"},spacing:{base:"none",md:"10px",xl:"30px"},direction:{base:"column",md:"row",xl:"row"},wrap:"wrap",children:[null==p?void 0:p.map((e,n)=>{let i=(h&&h.trim()||p.length&&p[0])==String(e.trim());return(0,t.jsx)(s.x,{children:(0,t.jsx)(c.Z,{scroll:!0,label:e,type:"button",fontSize:"inherit",fontWeight:"inherit",lineHeight:"inherit",color:i&&"green.200",onClick:()=>{x.replace("/preview_winners/?expertise=".concat(e),void 0,{shallow:!0})}})},n)}),(0,t.jsx)(s.x,{children:(0,t.jsx)(c.Z,{label:"Honorable Mentions",color:(null===(i=x.query)||void 0===i?void 0:i.expertise)==="Honorable"&&"green.200",href:"/preview_winners?expertise=Honorable"})})]})]})}},17076:function(e,n,i){"use strict";i.r(n),i.d(n,{default:function(){return g}});var t=i(85893),r=i(68029),o=i(96254),l=i(90092),s=i(26036),c=i(49870),a=i(51372),u=i(67294),d=i(20401),p=i(49610),x=i(6459),h=i(88329),f=i(90243),v=i(61190),m=e=>{let n=(0,x.p)(),[i,o]=(0,u.useState)(e.rank||"0"),[s,c]=(0,u.useState)(!1),a=async i=>{let{target:{value:t}}=i;o(t);try{let n=await (0,v.IO)(e.id,{rank:0==t?null:t,honorable:0==t});200===n.status&&c(!0)}catch(e){n({title:"Something went wrong",isClosable:!0,position:"top-right",description:"Failed to update the rank",status:"error"}),console.log(e.response)}};return(0,t.jsxs)(h.k,{mt:"10px",justify:"space-between",align:"center",children:[(0,t.jsx)(l.x,{w:"80%",fontSize:"16px",children:"Edit Rank:"}),(0,t.jsxs)(r.x,{position:"relative",children:[(0,t.jsxs)(f.P,{_focusVisible:{outline:"none"},value:i||"0",onChange:a,children:[(0,t.jsx)("option",{value:"1",children:"Gold"}),(0,t.jsx)("option",{value:"2",children:"Silver"}),(0,t.jsx)("option",{value:"3",children:"Bronze"}),(0,t.jsx)("option",{value:"0",children:"Honorable Mention"})]}),s&&(0,t.jsx)(l.x,{position:"absolute",color:"green.200",children:"Changed"})]})]})},j=i(56030),w=i(56160),_=i(52079);let b=()=>{let e=(0,j.r)(),[n,i]=(0,u.useState)("Agency"),x=(0,s.useRouter)(),{data:h}=(0,c.Z)("/api/winners/preview_winners?expertise=".concat(n),a._i),{data:f}=(0,c.Z)("/api/winners/competitionExpertises?competition=".concat(null==e?void 0:e.currentCompetition.id),a._i);return(0,u.useEffect)(()=>{var e;(null===(e=x.query)||void 0===e?void 0:e.expertise)&&i(x.query.expertise)},[x.query]),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(r.x,{children:(0,t.jsx)(d.Z,{competitionName:null==e?void 0:e.currentCompetition.name,expertisesLinks:f})}),(0,t.jsx)(o.W,{children:(null==e?void 0:e.currentCompetition.preview_winners
1)?(0,t.jsx)(r.x,{mt:{base:"10px",xl:"40px"},children:h?(0,t.jsx)(_.Z,{isPreview:!0,listWinners:null==h?void 0:h.allWinners,competition:null==e?void 0:e.currentCompetition.name,pathRoot:"preview_winners",moreAction:e=>(0,t.jsx)(m,{...e})}):(0,t.jsx)(r.x,{w:"full",h:"50vh",children:(0,t.jsx)(p.Z,{})})}):(0,t.jsxs)(l.x,{my:"20px",fontSize:"30px",color:"blue.600",children:["Preview winners ",null==e?void 0:e.currentCompetition.name," closed"]})})]})};var g=b;b.getLayout=e=>(0,t.jsx)(w.X,{children:e})},49610:function(e,n,i){"use strict";var t=i(85893),r=i(88329),o=i(48899);n.Z=e=>{let{size:n="xl"}=e;return(0,t.jsx)(r.k,{w:"full",h:"full",justify:"center",align:"center",children:(0,t.jsx)(o.$,{size:n,color:"blue.600"})})}},90243:function(e,n,i){"use strict";i.d(n,{P:function(){return h}});var t=i(85893),r=i(65544),o=i(35831),l=i(20397),s=i(67294),c=i(34926),a=i(49381),u=i(37430);let d=(0,a.G)(function(e,n){let{children:i,placeholder:r,className:o,...l}=e;return(0,t.jsxs)(u.m.select,{...l,ref:n,className:(0,c.cx)("chakra-select",o),children:[r&&(0,t.jsx)("option",{value:"",children:r}),i]})});d.displayName="SelectField";var p=i(16013),x=i(73035);let h=(0,a.G)((e,n)=>{let i=(0,x.j)("Select",e),{rootProps:s,placeholder:c,icon:a,color:h,height:f,h:v,minH:j,minHeight:w,iconColor:_,iconSize:b,...g}=(0,r.L)(e),[y,k]=function(e,n){let i={},t={};for(let[r,o]of Object.entries(e))n.includes(r)?i[r]=o:t[r]=o;return[i,t]}(g,o.oE),S=(0,p.Y)(k),C={paddingEnd:"2rem",...i.field,_focus:{zIndex:"unset",...i.field?._focus}};return(0,t.jsxs)(u.m.div,{className:"chakra-select__wrapper",__css:{width:"100%",height:"fit-content",position:"relative",color:h},...y,...s,children:[(0,t.jsx)(d,{ref:n,height:v??f,minH:j??w,placeholder:c,...S,__css:C,children:e.children}),(0,t.jsx)(m,{"data-disabled":(0,l.P)(S.disabled),...(_||h)&&{color:_||h},__css:i.icon,...b&&{fontSize:b},children:a})]})});h.displayName="Select";let f=e=>(0,t.jsx)("svg",{viewBox:"0 0 24 24",...e,children:(0,t.jsx)("path",{fill:"currentColor",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"})}),v=(0,u.m)("div",{baseStyle:{position:"absolute",display:"inline-flex",alignItems:"center",justifyContent:"center",pointerEvents:"none",top:"50%",transform:"translateY(-50%)"}}),m=e=>{let{children:n=(0,t.jsx)(f,{}),...i}=e,r=(0,s.cloneElement)(n,{role:"presentation",className:"chakra-select__icon",focusable:!1,"aria-hidden":!0,style:{width:"1em",height:"1em",color:"currentColor"}});return(0,t.jsx)(v,{...i,className:"chakra-select__icon-wrapper",children:(0,s.isValidElement)(n)?r:null})};m.displayName="SelectIcon"}},function(e){e.O(0,[2013,7237,1228,4617,9866,1057,9669,7720,3622,4543,3873,8696,8660,6160,2079,2888,9774,179],function(){return e(e.s=92267)}),_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.